Skip to content

Commit

Permalink
vercel#369 Update dependencies and fix a null check
Browse files Browse the repository at this point in the history
  • Loading branch information
alisabzevari committed Feb 23, 2019
1 parent e8034fa commit 1fe6947
Show file tree
Hide file tree
Showing 3 changed files with 774 additions and 1,148 deletions.
22 changes: 11 additions & 11 deletions package.json
Expand Up @@ -27,26 +27,26 @@
],
"license": "MIT",
"devDependencies": {
"@types/content-type": "^1.1.2",
"@types/content-type": "1.1.3",
"@types/is-stream": "^1.1.0",
"@types/jest": "^23.3.14",
"@types/node": "^10.12.24",
"@types/node": "11.9.5",
"@types/request-promise": "^4.1.42",
"@types/test-listen": "^1.1.0",
"@typescript-eslint/eslint-plugin": "1.3.0",
"@typescript-eslint/parser": "1.3.0",
"@typescript-eslint/eslint-plugin": "1.4.1",
"@typescript-eslint/parser": "1.4.1",
"@zeit/eslint-config-node": "0.3.0",
"eslint": "5.14.0",
"eslint": "5.14.1",
"husky": "1.3.1",
"jest": "^23.6.0",
"jest": "24",
"request": "2.88.0",
"request-promise": "4.2.2",
"request-promise": "4.2.4",
"resumer": "0.0.0",
"test-listen": "^1.1.0",
"ts-jest": "^23.10.5",
"typescript": "^3.3.3"
"ts-jest": "24",
"typescript": "3.3.3333"
},
"dependencies": {
"@types/jest": "24.0.6",
"arg": "^4.1.0",
"chalk": "^2.4.2",
"content-type": "1.0.4",
Expand All @@ -69,7 +69,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
"pre-commit": "npm run build && npm run lint-staged"
}
}
}
2 changes: 1 addition & 1 deletion src/cli.ts
Expand Up @@ -209,7 +209,7 @@ function startEndpoint(module: RequestHandler, endpoint: ListenOptions) {
// this message is perfectly for prod
if (typeof details === "string") {
console.log(`micro: Accepting connections on ${details}`);
} else if (typeof details === "object" && details.port) {
} else if (typeof details === "object" && details !== null && details.port) {
console.log(`micro: Accepting connections on port ${details.port}`);
} else {
console.log("micro: Accepting connections");
Expand Down

0 comments on commit 1fe6947

Please sign in to comment.