Skip to content

Commit ef4f34d

Browse files
authored
fix(build): add override for jsonpath-plus to avoid CVE (#729)
Signed-off-by: Phil Adams <[email protected]>
1 parent 3e7fec9 commit ef4f34d

File tree

7 files changed

+1137
-1239
lines changed

7 files changed

+1137
-1239
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
{
1616
singleQuote: true,
1717
arrowParens: 'avoid',
18+
trailingComma: 'es5',
1819
},
1920
],
2021
'no-console': 0,

package-lock.json

+1,126-1,229
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@semantic-release/npm": "^10.0.4",
3838
"eslint": "^8.41.0",
3939
"eslint-config-prettier": "^8.8.0",
40-
"eslint-plugin-prettier": "^4.2.0",
40+
"eslint-plugin-prettier": "^5.0.1",
4141
"jest": "^27.4.5",
4242
"jsdoc": "^4.0.4",
4343
"mustache": "^4.2.0",
@@ -46,6 +46,7 @@
4646
"overrides": {
4747
"proxy-agent": "^6.3.0",
4848
"micromatch": "^4.0.8",
49+
"jsonpath-plus": "^10.2.0",
4950
"rollup": "2.79.2"
5051
}
5152
}

packages/ruleset/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"coverageDirectory": "./coverage/",
4646
"testEnvironment": "node",
4747
"moduleNameMapper": {
48-
"nimma/legacy": "<rootDir>/../../node_modules/nimma/dist/legacy/cjs",
49-
"nimma/fallbacks": "<rootDir>/../../node_modules/nimma/dist/cjs/fallbacks/"
48+
"nimma/legacy": "<rootDir>/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs",
49+
"nimma/fallbacks": "<rootDir>/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/"
5050
}
5151
},
5252
"prettier": {

packages/ruleset/test/rules/optional-request-body.test.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ describe(`Spectral rule: ${ruleId}`, () => {
4343
it('requestBody.required explicitly false', async () => {
4444
const testDocument = makeCopy(rootDocument);
4545

46-
testDocument.components.requestBodies[
47-
'UpdateCarRequest'
48-
].required = false;
46+
testDocument.components.requestBodies['UpdateCarRequest'].required =
47+
false;
4948
testDocument.components.schemas['CarPatch'].required = ['make', 'model'];
5049

5150
const results = await testRule(ruleId, rule, testDocument);

packages/utilities/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"coverageDirectory": "./coverage/",
3232
"testEnvironment": "node",
3333
"moduleNameMapper": {
34-
"nimma/legacy": "<rootDir>/../../node_modules/nimma/dist/legacy/cjs",
35-
"nimma/fallbacks": "<rootDir>/../../node_modules/nimma/dist/cjs/fallbacks/"
34+
"nimma/legacy": "<rootDir>/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs",
35+
"nimma/fallbacks": "<rootDir>/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/"
3636
}
3737
}
3838
}

packages/validator/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"coverageDirectory": "./coverage/",
6060
"testEnvironment": "node",
6161
"moduleNameMapper": {
62-
"nimma/legacy": "<rootDir>/../../node_modules/nimma/dist/legacy/cjs",
63-
"nimma/fallbacks": "<rootDir>/../../node_modules/nimma/dist/cjs/fallbacks/",
62+
"nimma/legacy": "<rootDir>/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs",
63+
"nimma/fallbacks": "<rootDir>/../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/",
6464
"@stoplight/spectral-ruleset-bundler/presets/node": "<rootDir>/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/presets/node",
6565
"@stoplight/spectral-ruleset-bundler/plugins/stdin": "<rootDir>/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/stdin",
6666
"@stoplight/spectral-ruleset-bundler/plugins/builtins": "<rootDir>/../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/builtins",

0 commit comments

Comments
 (0)