From 5e39745286df5e71cb3e79086d6c9f435f951ee9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 6 Oct 2022 16:45:39 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908 - https://snyk.io/vuln/SNYK-JS-MERGE-1040469 - https://snyk.io/vuln/SNYK-JS-MERGE-1042987 - https://snyk.io/vuln/SNYK-JS-MORGAN-72579 - https://snyk.io/vuln/SNYK-JS-NODEFETCH-2342118 - https://snyk.io/vuln/SNYK-JS-NODEFETCH-674311 - https://snyk.io/vuln/SNYK-JS-PLIST-2405644 - https://snyk.io/vuln/SNYK-JS-SHELLQUOTE-1766506 - https://snyk.io/vuln/SNYK-JS-UGLIFYJS-1727251 - https://snyk.io/vuln/SNYK-JS-WS-1296835 - https://snyk.io/vuln/SNYK-JS-XMLDOM-1084960 - https://snyk.io/vuln/SNYK-JS-YARGSPARSER-560381 - https://snyk.io/vuln/npm:base64-url:20180512 - https://snyk.io/vuln/npm:braces:20180219 - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:fresh:20170908 - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:ms:20170412 - https://snyk.io/vuln/npm:negotiator:20160616 - https://snyk.io/vuln/npm:plist:20180219 - https://snyk.io/vuln/npm:qs:20170213 - https://snyk.io/vuln/npm:ws:20171108 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 44 ++++++++++++++++++++++++-------------------- 2 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1e544e1 --- /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: + 'npm:lodash:20180130': + - react-native > plist > xmlbuilder > lodash: + patched: '2022-10-06T16:45:36.448Z' diff --git a/package.json b/package.json index c0ac47c..9836918 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,26 @@ { - "name": "UsersManager", - "version": "0.0.1", - "private": true, - "scripts": { - "start": "node node_modules/react-native/local-cli/cli.js start", - "test": "jest" - }, - "dependencies": { - "react": "16.0.0-alpha.12", - "react-native": "0.48.3" - }, - "devDependencies": { - "babel-jest": "21.0.2", - "babel-preset-react-native": "4.0.0", - "jest": "21.1.0", - "react-test-renderer": "16.0.0-alpha.12" - }, - "jest": { - "preset": "react-native" - } + "name": "UsersManager", + "version": "0.0.1", + "private": true, + "scripts": { + "start": "node node_modules/react-native/local-cli/cli.js start", + "test": "jest", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "dependencies": { + "react": "16.5.0", + "react-native": "0.64.0", + "@snyk/protect": "latest" + }, + "devDependencies": { + "babel-jest": "21.0.2", + "babel-preset-react-native": "4.0.0", + "jest": "21.1.0", + "react-test-renderer": "16.0.0-alpha.12" + }, + "jest": { + "preset": "react-native" + }, + "snyk": true } \ No newline at end of file