diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b373820 --- /dev/null +++ b/.snyk @@ -0,0 +1,22 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - watchify > chokidar > fsevents > node-pre-gyp > hawk > hoek: + patched: '2018-12-08T05:20:53.861Z' + - babel-cli > chokidar > fsevents > node-pre-gyp > hawk > hoek: + patched: '2018-12-08T05:20:53.861Z' + - babel-cli > chokidar > fsevents > node-pre-gyp > hawk > boom > hoek: + patched: '2018-12-08T05:20:53.861Z' + - watchify > chokidar > fsevents > node-pre-gyp > hawk > boom > hoek: + patched: '2018-12-08T05:20:53.861Z' + - babel-cli > chokidar > fsevents > node-pre-gyp > hawk > sntp > hoek: + patched: '2018-12-08T05:20:53.861Z' + - watchify > chokidar > fsevents > node-pre-gyp > hawk > sntp > hoek: + patched: '2018-12-08T05:20:53.861Z' + - watchify > chokidar > fsevents > node-pre-gyp > hawk > cryptiles > boom > hoek: + patched: '2018-12-08T05:20:53.861Z' + - babel-cli > chokidar > fsevents > node-pre-gyp > hawk > cryptiles > boom > hoek: + patched: '2018-12-08T05:20:53.861Z' diff --git a/package.json b/package.json index eb86190..e6b41f1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "test": "echo \"Error: no test specified\" && exit 1", "watch": "watchify . -d -v -o bundle.main.js", "start": "sed 's|bundle.min.js|bundle.main.js|g' index.html -i && http-server -p 3000 .", - "dist": "sed 's|bundle.main.js|bundle.min.js|g' index.html -i && browserify . -d | babel -s inline -f bundle.min.js --presets es2015 | uglifyjs --source-map content=inline,url=bundle.min.js.map --compress -o bundle.min.js" + "dist": "sed 's|bundle.main.js|bundle.min.js|g' index.html -i && browserify . -d | babel -s inline -f bundle.min.js --presets es2015 | uglifyjs --source-map content=inline,url=bundle.min.js.map --compress -o bundle.min.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "keywords": [ "zeronet", @@ -44,6 +46,8 @@ "moment": "^2.20.1", "uglify-js": "^3.3.12", "watchify": "^3.10.0", - "zeronet": "github:ZeroNetJS/zeronet-js" - } + "zeronet": "github:ZeroNetJS/zeronet-js", + "snyk": "^1.116.2" + }, + "snyk": true }