From 07ee9237eaaa44addb47ba417907d349fcb854fc Mon Sep 17 00:00:00 2001 From: Melloware Date: Sat, 16 Nov 2024 08:26:23 -0500 Subject: [PATCH] fix: snyk jsonpath plus issue (#1702) --- packages/core/package.json | 2 +- yarn.lock | 221 +++++++++++++++++++------------------ 2 files changed, 112 insertions(+), 111 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 08b9b4b94..d6230abe4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -28,7 +28,7 @@ }, "dependencies": { "@apidevtools/swagger-parser": "^10.1.0", - "@ibm-cloud/openapi-ruleset": "^1.24.0", + "@ibm-cloud/openapi-ruleset": "^1.25.1", "acorn": "^8.14.0", "ajv": "^8.17.1", "chalk": "^4.1.2", diff --git a/yarn.lock b/yarn.lock index 9892ce879..0701aa65f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -876,28 +876,28 @@ __metadata: languageName: node linkType: hard -"@ibm-cloud/openapi-ruleset-utilities@npm:1.4.0": - version: 1.4.0 - resolution: "@ibm-cloud/openapi-ruleset-utilities@npm:1.4.0" - checksum: 10c0/c7bdd2c60c9712671e60aa9c2f282d620d215e2bbf74ba36854498d23f2671af1ee952abb21a19aa07f024e9370529f30ba11533eea5a0dad1ab0cff1af2c005 +"@ibm-cloud/openapi-ruleset-utilities@npm:1.5.0": + version: 1.5.0 + resolution: "@ibm-cloud/openapi-ruleset-utilities@npm:1.5.0" + checksum: 10c0/f67ea021b3f025aee7ae83d7c927267f316140c182fb853590981ac5374553b6f82b5f8198af861154ab7eb073e22db2896d1c482de96a6fcc4761feebb31e07 languageName: node linkType: hard -"@ibm-cloud/openapi-ruleset@npm:^1.24.0": - version: 1.24.0 - resolution: "@ibm-cloud/openapi-ruleset@npm:1.24.0" +"@ibm-cloud/openapi-ruleset@npm:^1.25.1": + version: 1.25.1 + resolution: "@ibm-cloud/openapi-ruleset@npm:1.25.1" dependencies: - "@ibm-cloud/openapi-ruleset-utilities": "npm:1.4.0" - "@stoplight/spectral-formats": "npm:^1.7.0" - "@stoplight/spectral-functions": "npm:^1.9.0" - "@stoplight/spectral-rulesets": "npm:^1.20.2" + "@ibm-cloud/openapi-ruleset-utilities": "npm:1.5.0" + "@stoplight/spectral-formats": "npm:^1.8.1" + "@stoplight/spectral-functions": "npm:^1.9.1" + "@stoplight/spectral-rulesets": "npm:^1.21.1" chalk: "npm:^4.1.2" lodash: "npm:^4.17.21" loglevel: "npm:^1.9.2" loglevel-plugin-prefix: "npm:0.8.4" minimatch: "npm:^6.2.0" validator: "npm:^13.11.0" - checksum: 10c0/7658aee7f39475b17b55e374777520adcff2a94ac2bdb49f41c1d910e85aa4f23583c4b78d41493a5d51e48e384d970159c26fba2807f0bfc2ce61a5798fdaa5 + checksum: 10c0/bb14b012b77eef87de9f59856c6545e9ff1ad25a9cfed0c779e8de84142b2b798a3a4f729725340e8bd73a1f0ed82dcd87985b1436baf40a7ff3d9b5391c0ee8 languageName: node linkType: hard @@ -980,6 +980,15 @@ __metadata: languageName: node linkType: hard +"@jsep-plugin/assignment@npm:^1.2.1": + version: 1.3.0 + resolution: "@jsep-plugin/assignment@npm:1.3.0" + peerDependencies: + jsep: ^0.4.0||^1.0.0 + checksum: 10c0/d749554dc691798116eb068eebe2d9bcb0b0d89ef6c7cc7c2a9f37d03da15fdbf8053407e97008090cd1bd6f256ea6c26abbada7399cf79f0b6b502e164b084b + languageName: node + linkType: hard + "@jsep-plugin/regex@npm:^1.0.1": version: 1.0.3 resolution: "@jsep-plugin/regex@npm:1.0.3" @@ -989,6 +998,15 @@ __metadata: languageName: node linkType: hard +"@jsep-plugin/regex@npm:^1.0.3": + version: 1.0.4 + resolution: "@jsep-plugin/regex@npm:1.0.4" + peerDependencies: + jsep: ^0.4.0||^1.0.0 + checksum: 10c0/bec7eb7ea6ab453a2672edc808644c5be3dc06b2a9d77182e18cd595b37deba6dcdb3760849d8684afc5779a86b7d2604dd525cb612a548f9ed9f31a8032ec24 + languageName: node + linkType: hard + "@jsep-plugin/ternary@npm:^1.0.2": version: 1.1.3 resolution: "@jsep-plugin/ternary@npm:1.1.3" @@ -1194,7 +1212,7 @@ __metadata: dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" "@faker-js/faker": "npm:^8.4.0" - "@ibm-cloud/openapi-ruleset": "npm:^1.24.0" + "@ibm-cloud/openapi-ruleset": "npm:^1.25.1" "@types/debug": "npm:^4.1.12" "@types/fs-extra": "npm:^11.0.4" "@types/inquirer": "npm:^9.0.7" @@ -1560,94 +1578,63 @@ __metadata: languageName: node linkType: hard -"@stoplight/spectral-core@npm:^1.7.0, @stoplight/spectral-core@npm:^1.8.0, @stoplight/spectral-core@npm:^1.8.1": - version: 1.18.3 - resolution: "@stoplight/spectral-core@npm:1.18.3" +"@stoplight/spectral-core@npm:^1.19.2": + version: 1.19.3 + resolution: "@stoplight/spectral-core@npm:1.19.3" dependencies: "@stoplight/better-ajv-errors": "npm:1.0.3" "@stoplight/json": "npm:~3.21.0" "@stoplight/path": "npm:1.3.2" "@stoplight/spectral-parsers": "npm:^1.0.0" - "@stoplight/spectral-ref-resolver": "npm:^1.0.0" - "@stoplight/spectral-runtime": "npm:^1.0.0" + "@stoplight/spectral-ref-resolver": "npm:^1.0.4" + "@stoplight/spectral-runtime": "npm:^1.1.2" "@stoplight/types": "npm:~13.6.0" "@types/es-aggregate-error": "npm:^1.0.2" "@types/json-schema": "npm:^7.0.11" - ajv: "npm:^8.6.0" + ajv: "npm:^8.17.1" ajv-errors: "npm:~3.0.0" ajv-formats: "npm:~2.1.0" es-aggregate-error: "npm:^1.0.7" - jsonpath-plus: "npm:7.1.0" + jsonpath-plus: "npm:10.1.0" lodash: "npm:~4.17.21" lodash.topath: "npm:^4.5.2" minimatch: "npm:3.1.2" - nimma: "npm:0.2.2" - pony-cause: "npm:^1.0.0" - simple-eval: "npm:1.0.0" - tslib: "npm:^2.3.0" - checksum: 10c0/72ceb2257c89c10f1a70c4d65c834e266115cd2eeb1d821fe50be04d033ebff5c16673ae320e7ddab8077a6657c5361244b22ee95294a41c0d4d9869fba09d64 + nimma: "npm:0.2.3" + pony-cause: "npm:^1.1.1" + simple-eval: "npm:1.0.1" + tslib: "npm:^2.8.1" + checksum: 10c0/1648ee3fa3521677ce220f0ebac2c0ec7307d2e6624938b25d2b8693fb9f0e36657b9b25bbb4a817bd9f8f03e6bf98e77c4450ec4d24222025f8968d2b9542b6 languageName: node linkType: hard -"@stoplight/spectral-formats@npm:^1.0.0": - version: 1.6.0 - resolution: "@stoplight/spectral-formats@npm:1.6.0" +"@stoplight/spectral-formats@npm:^1.8.1": + version: 1.8.2 + resolution: "@stoplight/spectral-formats@npm:1.8.2" dependencies: "@stoplight/json": "npm:^3.17.0" - "@stoplight/spectral-core": "npm:^1.8.0" + "@stoplight/spectral-core": "npm:^1.19.2" "@types/json-schema": "npm:^7.0.7" - tslib: "npm:^2.3.1" - checksum: 10c0/8b6629a4fc12073df0eccb70796ca8b1390ce8eba5ac9e99d1edbcd3d2710fff6c6379dff023a76ec9985afed21205cedd5985ca80c49a6d98ad69669d0c49c9 - languageName: node - linkType: hard - -"@stoplight/spectral-formats@npm:^1.7.0": - version: 1.8.0 - resolution: "@stoplight/spectral-formats@npm:1.8.0" - dependencies: - "@stoplight/json": "npm:^3.17.0" - "@stoplight/spectral-core": "npm:^1.8.0" - "@types/json-schema": "npm:^7.0.7" - tslib: "npm:^2.3.1" - checksum: 10c0/695517295bd967090688bd21b8195f59209da9faaa8111cadbcd40e9ee279fb1ff93ed57df1b130a70d5be49ea3764cb42549824f3c48e3594bda94995d83126 - languageName: node - linkType: hard - -"@stoplight/spectral-functions@npm:^1.5.1": - version: 1.8.0 - resolution: "@stoplight/spectral-functions@npm:1.8.0" - dependencies: - "@stoplight/better-ajv-errors": "npm:1.0.3" - "@stoplight/json": "npm:^3.17.1" - "@stoplight/spectral-core": "npm:^1.7.0" - "@stoplight/spectral-formats": "npm:^1.0.0" - "@stoplight/spectral-runtime": "npm:^1.1.0" - ajv: "npm:^8.6.3" - ajv-draft-04: "npm:~1.0.0" - ajv-errors: "npm:~3.0.0" - ajv-formats: "npm:~2.1.0" - lodash: "npm:~4.17.21" - tslib: "npm:^2.3.0" - checksum: 10c0/9b0100178334fff41bef7e047f158a5da334cbddd1d1d40daa6e7dd8c2a9fbefb2cabeb1fd2fd9657bc1a6faa9b1307aae052bf938dc295a6648b5e40a979a55 + tslib: "npm:^2.8.1" + checksum: 10c0/4401ebe05442e6f48d54d18c020a2dbc4b87b650dc3af2e278f41a569b16a957fab417dbb4dffb14f4c19a8b91f6e9df49defff2fabeaa97bbfb259a980c1d2e languageName: node linkType: hard -"@stoplight/spectral-functions@npm:^1.9.0": - version: 1.9.0 - resolution: "@stoplight/spectral-functions@npm:1.9.0" +"@stoplight/spectral-functions@npm:^1.9.1": + version: 1.9.2 + resolution: "@stoplight/spectral-functions@npm:1.9.2" dependencies: "@stoplight/better-ajv-errors": "npm:1.0.3" "@stoplight/json": "npm:^3.17.1" - "@stoplight/spectral-core": "npm:^1.7.0" - "@stoplight/spectral-formats": "npm:^1.7.0" - "@stoplight/spectral-runtime": "npm:^1.1.0" + "@stoplight/spectral-core": "npm:^1.19.2" + "@stoplight/spectral-formats": "npm:^1.8.1" + "@stoplight/spectral-runtime": "npm:^1.1.2" ajv: "npm:^8.17.1" ajv-draft-04: "npm:~1.0.0" ajv-errors: "npm:~3.0.0" ajv-formats: "npm:~2.1.0" lodash: "npm:~4.17.21" - tslib: "npm:^2.3.0" - checksum: 10c0/7b79058881823cf77527bb9bac0484a783ba5d947a426a1c6f988f83b6154f1c7dcb186d1a2e912ad2df5a70583ba8814a22d62d0a2d2105b92aaf0729071128 + tslib: "npm:^2.8.1" + checksum: 10c0/5655693e81fb0a803bcf414805ba7551ef3f242d643d159d8d8e8aeaa0a33bf5f90e5bc0a8ba61ed1f8a5a929abab75137b01170e3dad61379852b53a4c99043 languageName: node linkType: hard @@ -1663,30 +1650,30 @@ __metadata: languageName: node linkType: hard -"@stoplight/spectral-ref-resolver@npm:^1.0.0": - version: 1.0.4 - resolution: "@stoplight/spectral-ref-resolver@npm:1.0.4" +"@stoplight/spectral-ref-resolver@npm:^1.0.4": + version: 1.0.5 + resolution: "@stoplight/spectral-ref-resolver@npm:1.0.5" dependencies: "@stoplight/json-ref-readers": "npm:1.2.2" "@stoplight/json-ref-resolver": "npm:~3.1.6" "@stoplight/spectral-runtime": "npm:^1.1.2" dependency-graph: "npm:0.11.0" - tslib: "npm:^2.3.1" - checksum: 10c0/e68400ea198e380b4d6e20e08319d1939151db1b4d18c834d85ccca2a98cf6c2010ec7701a111f9b8560b4817984da2307ca0a75ff6ad9f7a924b72bd4a59e32 + tslib: "npm:^2.8.1" + checksum: 10c0/db7f31d1679c3d6f1adb4b63a8a5288be3b1bfee4515a05fa7092b7eb3ee3d228a9bcd693df4b4e5e1f49323f8a7603ded0163cafd752ce5b4e50fe3b16e446b languageName: node linkType: hard -"@stoplight/spectral-rulesets@npm:^1.20.2": - version: 1.21.0 - resolution: "@stoplight/spectral-rulesets@npm:1.21.0" +"@stoplight/spectral-rulesets@npm:^1.21.1": + version: 1.21.2 + resolution: "@stoplight/spectral-rulesets@npm:1.21.2" dependencies: "@asyncapi/specs": "npm:^6.8.0" "@stoplight/better-ajv-errors": "npm:1.0.3" "@stoplight/json": "npm:^3.17.0" - "@stoplight/spectral-core": "npm:^1.8.1" - "@stoplight/spectral-formats": "npm:^1.7.0" - "@stoplight/spectral-functions": "npm:^1.5.1" - "@stoplight/spectral-runtime": "npm:^1.1.1" + "@stoplight/spectral-core": "npm:^1.19.2" + "@stoplight/spectral-formats": "npm:^1.8.1" + "@stoplight/spectral-functions": "npm:^1.9.1" + "@stoplight/spectral-runtime": "npm:^1.1.2" "@stoplight/types": "npm:^13.6.0" "@types/json-schema": "npm:^7.0.7" ajv: "npm:^8.17.1" @@ -1694,12 +1681,12 @@ __metadata: json-schema-traverse: "npm:^1.0.0" leven: "npm:3.1.0" lodash: "npm:~4.17.21" - tslib: "npm:^2.3.0" - checksum: 10c0/8f0e841c94fbd2742712370e2d03a9cc8e766e72971b0a20fa0003612f05929cbbb6194fb71d0c111c3780f1d738c0538096d0ba2ba8c32d00e1ed0cc436331c + tslib: "npm:^2.8.1" + checksum: 10c0/88887b6aebde0c7f52b92428e694ccb17f1fcf4039e768acfd57cc77bd5b879d02e8a46f49610b806470b21d43dad5ede9dbe11a6635828f347f0a028c8de294 languageName: node linkType: hard -"@stoplight/spectral-runtime@npm:^1.0.0, @stoplight/spectral-runtime@npm:^1.1.0, @stoplight/spectral-runtime@npm:^1.1.1, @stoplight/spectral-runtime@npm:^1.1.2": +"@stoplight/spectral-runtime@npm:^1.1.2": version: 1.1.2 resolution: "@stoplight/spectral-runtime@npm:1.1.2" dependencies: @@ -2421,7 +2408,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.0.0, ajv@npm:^8.11.0, ajv@npm:^8.12.0, ajv@npm:^8.17.1, ajv@npm:^8.6.0, ajv@npm:^8.6.3": +"ajv@npm:^8.0.0, ajv@npm:^8.11.0, ajv@npm:^8.12.0, ajv@npm:^8.17.1, ajv@npm:^8.6.3": version: 8.17.1 resolution: "ajv@npm:8.17.1" dependencies: @@ -5991,13 +5978,20 @@ __metadata: languageName: node linkType: hard -"jsep@npm:^1.1.2, jsep@npm:^1.2.0": +"jsep@npm:^1.2.0": version: 1.3.9 resolution: "jsep@npm:1.3.9" checksum: 10c0/7c57727c98de797a319d00f74c19fa96f4760fbced428b00a86a01124412815c07ec1757806c09b9576f35461ecd04f717fa2a64954ff22f1d93d152bc5ecf16 languageName: node linkType: hard +"jsep@npm:^1.3.6, jsep@npm:^1.3.9": + version: 1.4.0 + resolution: "jsep@npm:1.4.0" + checksum: 10c0/fe60adf47e050e22eadced42514a51a15a3cf0e2d147896584486acd8ee670fc16641101b9aeb81f4aaba382043d29744b7aac41171e8106515b14f27e0c7116 + languageName: node + linkType: hard + "json-buffer@npm:3.0.1": version: 3.0.1 resolution: "json-buffer@npm:3.0.1" @@ -6081,17 +6075,17 @@ __metadata: languageName: node linkType: hard -"jsonpath-plus@npm:7.1.0": - version: 7.1.0 - resolution: "jsonpath-plus@npm:7.1.0" - checksum: 10c0/3a74b39f434c6496191eaa2820331407d89868b59cfbb9458c0f665e6877a67125b506d68c887746420660e7a3c4f279367182bec38093f3a0129f3757c85c48 - languageName: node - linkType: hard - -"jsonpath-plus@npm:^6.0.1": - version: 6.0.1 - resolution: "jsonpath-plus@npm:6.0.1" - checksum: 10c0/ecbe5caad723a42e1cc4a28058ca837eba00d36075766a7f3cf828491648e3b64d9fa0d5a64dd868e7c3180b1f9fcec565c32a1c05b34bef9f88c3c0c7acd1a2 +"jsonpath-plus@npm:10.1.0, jsonpath-plus@npm:^6.0.1 || ^10.1.0": + version: 10.1.0 + resolution: "jsonpath-plus@npm:10.1.0" + dependencies: + "@jsep-plugin/assignment": "npm:^1.2.1" + "@jsep-plugin/regex": "npm:^1.0.3" + jsep: "npm:^1.3.9" + bin: + jsonpath: bin/jsonpath-cli.js + jsonpath-plus: bin/jsonpath-cli.js + checksum: 10c0/1ff0743f9113f7750b598563c7886e1b07c19f112c4a8d976165e6799ff9774279985d1f4a147e87eacc0b94eb27dbd6e3ab5cf0728d4ba947f00757bc6aebb4 languageName: node linkType: hard @@ -6836,22 +6830,22 @@ __metadata: languageName: node linkType: hard -"nimma@npm:0.2.2": - version: 0.2.2 - resolution: "nimma@npm:0.2.2" +"nimma@npm:0.2.3": + version: 0.2.3 + resolution: "nimma@npm:0.2.3" dependencies: "@jsep-plugin/regex": "npm:^1.0.1" "@jsep-plugin/ternary": "npm:^1.0.2" astring: "npm:^1.8.1" jsep: "npm:^1.2.0" - jsonpath-plus: "npm:^6.0.1" + jsonpath-plus: "npm:^6.0.1 || ^10.1.0" lodash.topath: "npm:^4.5.2" dependenciesMeta: jsonpath-plus: optional: true lodash.topath: optional: true - checksum: 10c0/d273788965d721715ae5a18e8460e97854e56386d162cd72955dcd07449dfbd091d5b5779119be06ee831eb9d1c6be568e22593a050390d0a39de7525cea0955 + checksum: 10c0/7e31b03e84b1c9ce0aeacce5a026629e3bc8ed7be1989ec098de416d071227506b290069e88bb54e2005642c6a6012696f5c427b52a0a9bbe1a9d193f4a9efb5 languageName: node linkType: hard @@ -7657,7 +7651,7 @@ __metadata: languageName: node linkType: hard -"pony-cause@npm:^1.0.0": +"pony-cause@npm:^1.1.1": version: 1.1.1 resolution: "pony-cause@npm:1.1.1" checksum: 10c0/63ee3e22c3a9ddda3aca17c2368657934b6c713a1af5b44b48aa6d06a1afc0f0c1f49e20b641be94f33f6c5bd2877977c4b6ca8de2514756b9351318ec4f14a5 @@ -8516,12 +8510,12 @@ __metadata: languageName: node linkType: hard -"simple-eval@npm:1.0.0": - version: 1.0.0 - resolution: "simple-eval@npm:1.0.0" +"simple-eval@npm:1.0.1": + version: 1.0.1 + resolution: "simple-eval@npm:1.0.1" dependencies: - jsep: "npm:^1.1.2" - checksum: 10c0/23aa719bce9ad2d0fad0de9f5320d5cd08f6cefc4833ae53e97b5f25e0712cb3018a361c528247853697d4b8c6e1ca1d7a33020f9056edfdfa1e967c090535e2 + jsep: "npm:^1.3.6" + checksum: 10c0/0fc9f84e3bca0c87c78d12dac7dd04bcb448d4060b95101ea7bfdf8aec941cdbbb924230bd0b0a40a319e335c92abd439760be65c06bab04b2d829688c6fcd2a languageName: node linkType: hard @@ -9114,13 +9108,20 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.0.1, tslib@npm:^2.1.0, tslib@npm:^2.2.0, tslib@npm:^2.3.0, tslib@npm:^2.3.1, tslib@npm:^2.6.0, tslib@npm:^2.6.2": +"tslib@npm:^2.0.1, tslib@npm:^2.1.0, tslib@npm:^2.2.0, tslib@npm:^2.3.1, tslib@npm:^2.6.0, tslib@npm:^2.6.2": version: 2.6.3 resolution: "tslib@npm:2.6.3" checksum: 10c0/2598aef53d9dbe711af75522464b2104724d6467b26a60f2bdac8297d2b5f1f6b86a71f61717384aa8fd897240467aaa7bcc36a0700a0faf751293d1331db39a languageName: node linkType: hard +"tslib@npm:^2.8.1": + version: 2.8.1 + resolution: "tslib@npm:2.8.1" + checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62 + languageName: node + linkType: hard + "tsup@npm:^8.0.2": version: 8.2.4 resolution: "tsup@npm:8.2.4"