Skip to content

Commit 96cfe94

Browse files
committed
fix: .snyk & package.json to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130
1 parent 08bbba8 commit 96cfe94

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.snyk

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.12.0
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
'npm:lodash:20180130':
7+
- '@dadi/logger > aws-kinesis-writable > lodash':
8+
patched: '2018-07-05T23:23:10.204Z'

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@
88
"test": "snazzy 'lib/*.js' && env NODE_ENV=test ./node_modules/.bin/istanbul cover --report cobertura --report text --report html --report lcov ./node_modules/mocha/bin/_mocha",
99
"posttest": "./scripts/coverage.js",
1010
"start": "node ./index.js --node-env=development",
11-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
11+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
12+
"snyk-protect": "snyk protect",
13+
"prepare": "npm run snyk-protect"
1214
},
1315
"dependencies": {
1416
"@dadi/logger": "^1.0.0",
1517
"colors": "^1.1.2",
1618
"console-stamp": "^0.2.5",
1719
"convict": "^4.0.0",
1820
"mkdirp": "^0.5.1",
19-
"rsmq-worker": "^0.4.3"
21+
"rsmq-worker": "^0.4.3",
22+
"snyk": "^1.88.1"
2023
},
2124
"devDependencies": {
2225
"env-test": "^1.0.0",
@@ -38,5 +41,6 @@
3841
"type": "git",
3942
"url": "https://github.com/dadi/queue.git"
4043
},
41-
"author": "Robert Stanford <rs@dadi.co>"
44+
"author": "Robert Stanford <rs@dadi.co>",
45+
"snyk": true
4246
}

0 commit comments

Comments
 (0)