Skip to content

Commit

Permalink
Merge pull request #1130 from brendandburns/onex
Browse files Browse the repository at this point in the history
Update typescript dependency and some small code fixes
  • Loading branch information
k8s-ci-robot committed Jun 20, 2023
2 parents d804cb1 + 5cc997f commit e2e09ce
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
"ts-mockito": "^2.3.1",
"ts-node": "^8.2.0",
"tslint": "^6.1.3",
"typedoc": "^0.24.6",
"typescript": "~4.9.4"
"typedoc": "^0.24.8",
"typescript": "~5.1.3"
},
"bugs": {
"url": "https://github.com/kubernetes-client/javascript/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/azure_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AzureAuth implements Authenticator {
}

const expiresOnDate = expiresOn ? new Date(parseInt(expiresOn, 10) * 1000) : undefined;
const expiration = expiry ? Date.parse(expiry) : expiresOnDate!;
const expiration = expiry ? Date.parse(expiry) : expiresOnDate!.getTime();
if (expiration < Date.now()) {
return true;
}
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"target": "es2019",
"lib": ["es2020"],
"moduleResolution": "node",
Expand Down

0 comments on commit e2e09ce

Please sign in to comment.