Skip to content

Commit 6543c7d

Browse files
committed
[Tests] switch from nsp to npm audit
1 parent 3fd3a62 commit 6543c7d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package-lock=false
2+
audit-level=high

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,4 @@ matrix:
260260
- os: osx
261261
- env: TEST=true ALLOW_FAILURE=true
262262
- env: COVERAGE=true
263+
- env: POSTTEST=true

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
"pretest": "npm run lint",
1010
"test": "npm run tests-only",
1111
"tests-only": "node --harmony --es-staging test",
12-
"posttest": "npm run security",
12+
"posttest": "npm run audit",
1313
"coverage": "covert test.js",
1414
"lint": "eslint test.js *.js",
15-
"security": "nsp check"
15+
"preaudit": "npm install --package-lock --package-lock-only",
16+
"audit": "npm audit",
17+
"postaudit": "rm package-lock.json"
1618
},
1719
"repository": {
1820
"type": "git",
@@ -33,7 +35,6 @@
3335
"foreach": "^2.0.5",
3436
"indexof": "^0.0.1",
3537
"is": "^3.2.1",
36-
"nsp": "^3.2.1",
3738
"semver": "^5.5.0",
3839
"tape": "^4.9.0"
3940
},

0 commit comments

Comments
 (0)