diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5911c95 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + SNYK-JS-LODASH-567746: + - '@contentstack/datasync-manager > lodash': + patched: '2022-05-18T00:31:43.230Z' diff --git a/package.json b/package.json index 0583805..2716161 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,17 @@ "scripts": { "continue": "node index.js", "start": "npm run clean && node index.js", - "clean": "rimraf .ledger .token .checkpoint unprocessible/" + "clean": "rimraf .ledger .token .checkpoint unprocessible/", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "dependencies": { "@contentstack/datasync-asset-store-filesystem": "1.0.0", "@contentstack/datasync-content-store-filesystem": "1.0.1", "@contentstack/datasync-content-store-mongodb": "1.0.1", "@contentstack/webhook-listener": "1.0.0", - "@contentstack/datasync-manager": "1.2.0" + "@contentstack/datasync-manager": "1.2.0", + "@snyk/protect": "latest" }, "devDependencies": { "eslint": "^6.1.0", @@ -24,5 +27,6 @@ "url": "https://github.com/contentstack/datasync-boilerplate" }, "author": "Contentstack LLC ", - "license": "MIT" + "license": "MIT", + "snyk": true }