diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..eba9ecf --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - fingerprintjs2 > npm > cli-table2 > lodash: + patched: '2018-07-05T05:39:22.882Z' + - fingerprintjs2 > npm > npm-audit-report > cli-table2 > lodash: + patched: '2018-07-05T05:39:22.882Z' diff --git a/package.json b/package.json index 5280588..9b47c2d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "build:dev": "yarn run build:commonjs && yarn run build:browser", "build": "yarn run build:src && yarn run build:dev && yarn run build:prod", "test": "NODE_ENV=test mocha --exit --compilers js:babel-register --recursive", - "prepublish": "yarn run build" + "prepublish": "yarn run build", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "keywords": [ "blinktrade", @@ -37,7 +39,8 @@ "macaddress": "^0.2.8", "nodeify": "^1.0.0", "sjcl": "^1.0.3", - "ws": "^3.3.1" + "ws": "^3.3.1", + "snyk": "^1.88.1" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -59,5 +62,6 @@ "sinon": "^1.17.6", "webpack": "^1.13.2", "webpack-node-externals": "^1.3.3" - } + }, + "snyk": true }