From b7239be9da263a0f7066f79d087eaf700a9613e9 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 19 Dec 2018 00:04:12 -0800 Subject: [PATCH] [Tests] switch from `nsp` to `npm audit` --- .npmrc | 1 + .travis.yml | 1 + package.json | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index 43c97e7..c6d2e51 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ package-lock=false +audit-level=high diff --git a/.travis.yml b/.travis.yml index 62a761f..3d36ade 100644 --- a/.travis.yml +++ b/.travis.yml @@ -260,3 +260,4 @@ matrix: - os: osx - env: TEST=true ALLOW_FAILURE=true - env: COVERAGE=true + - env: POSTTEST=true diff --git a/package.json b/package.json index 82fbe55..99ab139 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,14 @@ "pretest": "npm run lint", "test": "npm run tests-only", "tests-only": "node --harmony --es-staging test.js", - "posttest": "npm run security", + "posttest": "npm run audit", "coverage": "covert test.js", "coverage-quiet": "covert test.js --quiet", "lint": "eslint test.js *.js", "eccheck": "editorconfig-tools check *.js **/*.js > /dev/null", - "security": "nsp check" + "preaudit": "npm install --package-lock --package-lock-only", + "audit": "npm audit", + "postaudit": "rm package-lock.json" }, "repository": { "type": "git",