From eef32bba91c28d53eda61bb5f7ca7c27bfaa4056 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 12:59:24 +0000 Subject: [PATCH 1/2] build(deps): bump jsonpath-plus from 10.4.0 to 11.2.0 Bumps [jsonpath-plus](https://github.com/s3u/JSONPath) from 10.4.0 to 11.2.0. - [Release notes](https://github.com/s3u/JSONPath/releases) - [Changelog](https://github.com/JSONPath-Plus/JSONPath/blob/main/CHANGES.md) - [Commits](https://github.com/s3u/JSONPath/compare/v10.4.0...v11.2.0) --- updated-dependencies: - dependency-name: jsonpath-plus dependency-version: 11.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 61303f2ce1e..5c6aaacca76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "hpagent": "^1.2.0", "isomorphic-ws": "^5.0.0", "js-yaml": "^5.1.0", - "jsonpath-plus": "^10.3.0", + "jsonpath-plus": "^11.2.0", "openid-client": "^6.1.3", "rfc4648": "^1.3.0", "socks": "^2.8.4", @@ -1735,9 +1735,9 @@ } }, "node_modules/jsonpath-plus": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.4.0.tgz", - "integrity": "sha512-T92WWatJXmhBbKsgH/0hl+jxjdXrifi5IKeMY02DWggRxX0UElcbVzPlmgLTbvsPeW1PasQ6xE2Q75stkhGbsA==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-11.2.0.tgz", + "integrity": "sha512-sfM35kUqO1GvBqxrcPSfnai3/fHHFgH6OHP5HbMgQMPSVc5LeBXYvM1HknEpZJPCyNU9Hd3DKiFuDHh2RphTkQ==", "license": "MIT", "dependencies": { "@jsep-plugin/assignment": "^1.3.0", @@ -1749,7 +1749,7 @@ "jsonpath-plus": "bin/jsonpath-cli.js" }, "engines": { - "node": ">=18.0.0" + "node": ">=22.0.0" } }, "node_modules/locate-path": { diff --git a/package.json b/package.json index aacd3598c31..4d2f4e4411c 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "hpagent": "^1.2.0", "isomorphic-ws": "^5.0.0", "js-yaml": "^5.1.0", - "jsonpath-plus": "^10.3.0", + "jsonpath-plus": "^11.2.0", "openid-client": "^6.1.3", "rfc4648": "^1.3.0", "socks": "^2.8.4", From 4f849893881bd2eb0acf8c63fc660c8f8c311bf0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Oct 2026 16:03:53 +0000 Subject: [PATCH 2/2] Fix jsonpath-plus result typing Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com> --- src/azure_auth.ts | 7 +++++-- src/gcp_auth.ts | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/azure_auth.ts b/src/azure_auth.ts index ffa54fe1066..1d6438a39b3 100644 --- a/src/azure_auth.ts +++ b/src/azure_auth.ts @@ -90,7 +90,10 @@ export class AzureAuth implements Authenticator { const tokenPathKey = '$' + tokenPathKeyInConfig.slice(1, -1); const expiryPathKey = '$' + expiryPathKeyInConfig.slice(1, -1); - config['access-token'] = jsonpath.JSONPath({ path: tokenPathKey, json: resultObj }); - config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj }); + config['access-token'] = jsonpath.JSONPath({ + path: tokenPathKey, + json: resultObj, + }) as Config['access-token']; + config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj }) as Config['expiry']; } } diff --git a/src/gcp_auth.ts b/src/gcp_auth.ts index 139aebcac99..e33cb372f14 100644 --- a/src/gcp_auth.ts +++ b/src/gcp_auth.ts @@ -86,7 +86,10 @@ export class GoogleCloudPlatformAuth implements Authenticator { const tokenPathKey = '$' + tokenPathKeyInConfig.slice(1, -1); const expiryPathKey = '$' + expiryPathKeyInConfig.slice(1, -1); - config['access-token'] = jsonpath.JSONPath({ path: tokenPathKey, json: resultObj }); - config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj }); + config['access-token'] = jsonpath.JSONPath({ + path: tokenPathKey, + json: resultObj, + }) as Config['access-token']; + config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj }) as Config['expiry']; } }