Skip to content

Commit

Permalink
Upgrade dependencies to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jazmon committed Sep 1, 2018
1 parent 2281595 commit 89f617b
Show file tree
Hide file tree
Showing 3 changed files with 566 additions and 508 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
"verbose": false
},
"devDependencies": {
"@types/jest": "^22.1.3",
"@types/jest": "^23.3.1",
"@types/morgan": "^1.7.35",
"@types/node": "^9.4.6",
"jest": "^22.3.0",
"prettier": "^1.10.2",
"@types/node": "^10.9.4",
"jest": "^23.5.0",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"ts-jest": "^22.0.4",
"tslint": "^5.9.1",
"tslint-config-airbnb": "^5.6.0",
"tslint-config-prettier": "^1.8.0",
"typescript": "^2.7.2"
"ts-jest": "^23.1.4",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"typescript": "^3.0.3"
},
"keywords": [
"node",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ export const requireEnvVars = (envVars: string[]) => {

export const throwMissingEnvVars = (envVars: string[]) => {
const missingEnvVars = requireEnvVars(envVars);
if (missingEnvVars.length > 0)
if (missingEnvVars.length > 0) {
throw new Error(
`Required enviroment variables are not defined! ${JSON.stringify(
missingEnvVars,
)}`,
);
}
};

export default requireConfigVars;
Loading

0 comments on commit 89f617b

Please sign in to comment.