diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..34bce7473 --- /dev/null +++ b/.snyk @@ -0,0 +1,13 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - contributors > urllib > debug: + patched: '2022-08-19T05:15:54.199Z' + 'npm:ms:20170412': + - contributors > urllib > debug > ms: + patched: '2022-08-19T05:15:54.199Z' + - contributors > urllib > humanize-ms > ms: + patched: '2022-08-19T05:15:54.199Z' diff --git a/package.json b/package.json index 05a527544..5c721f303 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "test-local": "make test", "start": "./bin/nodejsctl start && cp History.md docs/web/history.md", "status": "./bin/nodejsctl status", - "stop": "./bin/nodejsctl stop" + "stop": "./bin/nodejsctl stop", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "bin": { "cnpmjs.org": "bin/cli.js" @@ -70,7 +72,8 @@ "urllib": "^2.24.0", "utility": "^1.12.0", "uuid": "^8.3.0", - "xss": "^0.3.3" + "xss": "^0.3.3", + "@snyk/protect": "latest" }, "devDependencies": { "autod": "*", @@ -80,7 +83,7 @@ "istanbul": "*", "jshint": "*", "mm": "*", - "mocha": "3", + "mocha": "6.2.3", "node-dev": "*", "pedding": "*", "pg": "5", @@ -88,7 +91,7 @@ "power-assert": "^1.4.2", "should": "8", "sqlite3": "*", - "supertest": "2", + "supertest": "3.0.0", "thunk-mocha": "1" }, "homepage": "https://github.com/cnpm/cnpmjs.org", @@ -117,5 +120,6 @@ "fengmk2 (http://fengmk2.com)", "dead_horse (http://deadhorse.me)" ], - "license": "MIT" + "license": "MIT", + "snyk": true }