Skip to content

Commit b8135d7

Browse files
Merge pull request #3102 from kubernetes-client/dependabot/npm_and_yarn/main/jsonpath-plus-11.2.0
build(deps): bump jsonpath-plus from 10.4.0 to 11.2.0
2 parents b721419 + 4f84989 commit b8135d7

4 files changed

Lines changed: 16 additions & 10 deletions

File tree

‎package-lock.json‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"hpagent": "^1.2.0",
6464
"isomorphic-ws": "^5.0.0",
6565
"js-yaml": "^5.1.0",
66-
"jsonpath-plus": "^10.3.0",
66+
"jsonpath-plus": "^11.2.0",
6767
"openid-client": "^6.1.3",
6868
"rfc4648": "^1.3.0",
6969
"socks": "^2.8.4",

‎src/azure_auth.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export class AzureAuth implements Authenticator {
9090
const tokenPathKey = '$' + tokenPathKeyInConfig.slice(1, -1);
9191
const expiryPathKey = '$' + expiryPathKeyInConfig.slice(1, -1);
9292

93-
config['access-token'] = jsonpath.JSONPath({ path: tokenPathKey, json: resultObj });
94-
config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj });
93+
config['access-token'] = jsonpath.JSONPath({
94+
path: tokenPathKey,
95+
json: resultObj,
96+
}) as Config['access-token'];
97+
config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj }) as Config['expiry'];
9598
}
9699
}

‎src/gcp_auth.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ export class GoogleCloudPlatformAuth implements Authenticator {
8686
const tokenPathKey = '$' + tokenPathKeyInConfig.slice(1, -1);
8787
const expiryPathKey = '$' + expiryPathKeyInConfig.slice(1, -1);
8888

89-
config['access-token'] = jsonpath.JSONPath({ path: tokenPathKey, json: resultObj });
90-
config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj });
89+
config['access-token'] = jsonpath.JSONPath({
90+
path: tokenPathKey,
91+
json: resultObj,
92+
}) as Config['access-token'];
93+
config.expiry = jsonpath.JSONPath({ path: expiryPathKey, json: resultObj }) as Config['expiry'];
9194
}
9295
}

0 commit comments

Comments
 (0)