Skip to content

Commit

Permalink
adding Nsp check, and removing Regular expression vulnerability in ex…
Browse files Browse the repository at this point in the history
…press 4.15

pillarjs/send#146

the same issue reported on git, shows the regular express vulnerablility, which required me to upgrade the express server, and other dependencies.

2. have added startMessage.js to print start message on dev builds

3. added start and security check scripts to npm.
  • Loading branch information
rmarya-asu committed Feb 2, 2018
1 parent 136d710 commit 26825ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions package.json
Expand Up @@ -3,15 +3,25 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./service/app.js"
"prestart": "node ./service/scripts/startMessage.js",
"start": "npm-run-all --parallel security-check open:src ",
"open:src": "node ./service/app.js",
"security-check": "nsp check",
"localtunnel": "lt --port 3000",
"share": "npm-run-all --parallel open:src localtunnel"
},
"dependencies": {
"body-parser": "~1.18.2",
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"ejs": "^2.5.7",
"express": "~4.15.5",
"express": "^4.16.2",
"morgan": "~1.9.0",
"serve-favicon": "~2.4.5"
},
"devDependencies": {
"chalk": "^2.3.0",
"localtunnel": "^1.8.3",
"npm-run-all": "^4.1.2"
}
}
2 changes: 2 additions & 0 deletions service/scripts/startMessage.js
@@ -0,0 +1,2 @@
var chalk = require('chalk');
console.log(chalk.green('starting app in dev mode ...'));

0 comments on commit 26825ed

Please sign in to comment.