diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ec9ac69 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - lodash: + patched: '2020-05-04T02:53:49.446Z' diff --git a/package.json b/package.json index f15f141..dcdefb2 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,16 @@ "lint": "eslint src test", "pretest": "npm run lint", "test": "BABEL_ENV='test' node 'scripts/JasmineUnitRunner.js'", - "xcode": "open ./ios/RNNewRelic.xcodeproj" + "xcode": "open ./ios/RNNewRelic.xcodeproj", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "peerDependencies": { "react-native": "*" }, "dependencies": { - "lodash": "^4.11.1" + "lodash": "^4.11.1", + "snyk": "^1.317.0" }, "devDependencies": { "app-root-path": "latest", @@ -71,5 +74,6 @@ "sourceMaps": false } } - } + }, + "snyk": true }