diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..f6713ce0 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - cheerio > lodash: + patched: '2022-03-27T16:04:16.645Z' diff --git a/package-lock.json b/package-lock.json index 99485600..e4e795db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gamedig", - "version": "2.0.21", + "version": "3.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -9,6 +9,11 @@ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-3.1.0.tgz", "integrity": "sha512-n4J+zu52VdY43kdi/XdI9DzuMr1Mur8zFL5ZRG2opCans9aiFwkPxHYFEb5Xgy7n1Z4K6WfI4FpqUqsh3E8BPQ==" }, + "@snyk/protect": { + "version": "1.884.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.884.0.tgz", + "integrity": "sha512-xDzQMV/ASOT2kJg68RcePRlAgqtUPFlykzAoqej7jcd1qBrbxr5mIT6H8CXfZiclBwLf99QYkS/cWozd3HbhjA==" + }, "@szmarczak/http-timer": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.5.tgz", @@ -380,9 +385,9 @@ "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" }, "moment": { "version": "2.27.0", diff --git a/package.json b/package.json index 63e5dd7d..f2fddbf7 100644 --- a/package.json +++ b/package.json @@ -1,66 +1,72 @@ { - "name": "gamedig", - "description": "Query for the status of any game server in Node.JS", - "tags": [ - "srcds", - "query", - "game", - "utility", - "util", - "server", - "gameserver", - "node", - "nodejs", - "game-server-query", - "game server query", - "server query", - "game server", - "gameserverquery", - "serverquery", - "terraria", - "counter strike", - "csgo", - "minecraft" - ], - "main": "lib/index.js", - "author": "GameDig Contributors", - "version": "3.0.0", - "repository": { - "type": "git", - "url": "https://github.com/gamedig/node-gamedig.git" - }, - "bugs": { - "url": "https://github.com/gamedig/node-gamedig/issues" - }, - "license": "MIT", - "engines": { - "node": ">=8.0.0" - }, - "dependencies": { - "cheerio": "^1.0.0-rc.3", - "compressjs": "^1.0.2", - "gbxremote": "^0.2.1", - "got": "^11.5.1", - "iconv-lite": "^0.6.2", - "long": "^4.0.0", - "minimist": "^1.2.5", - "moment": "^2.27.0", - "punycode": "^2.1.1", - "varint": "^5.0.0" - }, - "bin": { - "gamedig": "bin/gamedig.js" - }, - "files": [ - "bin/gamedig.js", - "lib/", - "protocols/", - "games.txt", - "LICENSE", - "README.md" - ], - "devDependencies": { - "@types/cheerio": "^0.22.21", - "@types/node": "^8.10.61" - } + "name": "gamedig", + "description": "Query for the status of any game server in Node.JS", + "tags": [ + "srcds", + "query", + "game", + "utility", + "util", + "server", + "gameserver", + "node", + "nodejs", + "game-server-query", + "game server query", + "server query", + "game server", + "gameserverquery", + "serverquery", + "terraria", + "counter strike", + "csgo", + "minecraft" + ], + "main": "lib/index.js", + "author": "GameDig Contributors", + "version": "3.0.0", + "repository": { + "type": "git", + "url": "https://github.com/gamedig/node-gamedig.git" + }, + "bugs": { + "url": "https://github.com/gamedig/node-gamedig/issues" + }, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + }, + "dependencies": { + "cheerio": "^1.0.0-rc.3", + "compressjs": "^1.0.2", + "gbxremote": "^0.2.1", + "got": "^11.5.1", + "iconv-lite": "^0.6.2", + "long": "^4.0.0", + "minimist": "^1.2.6", + "moment": "^2.27.0", + "punycode": "^2.1.1", + "varint": "^5.0.0", + "@snyk/protect": "latest" + }, + "bin": { + "gamedig": "bin/gamedig.js" + }, + "files": [ + "bin/gamedig.js", + "lib/", + "protocols/", + "games.txt", + "LICENSE", + "README.md" + ], + "devDependencies": { + "@types/cheerio": "^0.22.21", + "@types/node": "^8.10.61" + }, + "scripts": { + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }