Skip to content

Commit 7f8a7d7

Browse files
authored
fix: CVE of tough-cookie and word-wrap (opensearch-project#763)
Signed-off-by: SuZhou-Joe <[email protected]>
1 parent 39444c1 commit 7f8a7d7

File tree

2 files changed

+68
-31
lines changed

2 files changed

+68
-31
lines changed

package-lock.json

+62-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"lint": "eslint . --ext .js",
2525
"pkg-version": "./scripts/getpkgversion.sh",
2626
"generate:test-data": "node ./scripts/generate_data/index.js",
27-
"postinstall": "husky install"
27+
"postinstall": "husky install",
28+
"preinstall": "npx npm-force-resolutions"
2829
},
2930
"repository": {
3031
"type": "git",
@@ -57,5 +58,9 @@
5758
"husky": "^6.0.0",
5859
"luxon": "^3.2.1",
5960
"mocha-junit-reporter": "^2.0.0"
61+
},
62+
"resolutions": {
63+
"tough-cookie": "^4.1.3",
64+
"optionator": "^0.9.3"
6065
}
6166
}

0 commit comments

Comments
 (0)