Skip to content

Remove Chalk, Updated packages #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict'
const chalk = require('chalk')

const utils = require('./utils')
const validate = require('./apiGateway/validate')
const methods = require('./apiGateway/methods')
Expand Down Expand Up @@ -146,8 +144,8 @@ class ServerlessApigatewayServiceProxy {
let serviceProxyMessages = ''

const endpointInfo = this.gatheredData.info.endpoints
message += `${chalk.yellow.underline('Serverless APIGateway Service Proxy OutPuts')}\n`
message += `${chalk.yellow('endpoints:')}`
message += `Serverless APIGateway Service Proxy OutPuts\n`
message += `endpoints:`

proxies.forEach((serviceProxy) => {
Object.keys(serviceProxy).forEach((serviceName) => {
Expand Down
7 changes: 2 additions & 5 deletions lib/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict'
const chalk = require('chalk')
const sinon = require('sinon')
const chai = require('chai')
const BbPromise = require('bluebird')
Expand Down Expand Up @@ -374,10 +373,8 @@ describe('#index()', () => {
info: { endpoints: 'https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev' }
}

const expectedMessage = `${chalk.yellow.underline(
'Serverless APIGateway Service Proxy OutPuts'
)}
${chalk.yellow('endpoints:')}
const expectedMessage = `Serverless APIGateway Service Proxy OutPuts
endpoints:
POST - https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/kinesis
POST - https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/sqs
POST - https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/s3
Expand Down
Loading