Skip to content

Commit 7a85b9c

Browse files
authored
Merge pull request #1025 from brendandburns/npm
Update to Typescript 5.0.2, Upgrade husky to 8.0.3
2 parents 6dddcd9 + 64a6d30 commit 7a85b9c

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@types/underscore": "^1.11.4",
8383
"chai": "^4.2.0",
8484
"chai-as-promised": "^7.1.1",
85-
"husky": "^8.0.2",
85+
"husky": "^8.0.3",
8686
"jasmine": "^4.5.0",
8787
"mocha": "^10.1.0",
8888
"mock-fs": "^5.2.0",
@@ -94,7 +94,7 @@
9494
"ts-node": "^10.9.1",
9595
"tslint": "^6.1.3",
9696
"typedoc": "^0.23.22",
97-
"typescript": "~4.9.4"
97+
"typescript": "~5.0.2"
9898
},
9999
"optionalDependencies": {
100100
"openid-client": "^5.3.0"

src/azure_auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class AzureAuth implements Authenticator {
5757
return false;
5858
}
5959

60-
const expiresOnDate = expiresOn ? new Date(parseInt(expiresOn, 10) * 1000) : undefined;
60+
const expiresOnDate = expiresOn ? new Date(parseInt(expiresOn, 10) * 1000).getTime() : undefined;
6161
const expiration = expiry ? Date.parse(expiry) : expiresOnDate!;
6262
if (expiration < Date.now()) {
6363
return true;

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"noImplicitAny": false,
5-
"suppressImplicitAnyIndexErrors": true,
65
"target": "es2019",
76
"lib": ["es2020"],
87
"moduleResolution": "node",
@@ -17,8 +16,6 @@
1716
"importHelpers": true,
1817
"skipLibCheck": true,
1918
"esModuleInterop": true
20-
// enable this when it works with tslint, or we switch to prettier
21-
// "declarationMap": true
2219
},
2320
"exclude": [
2421
"node_modules",

0 commit comments

Comments
 (0)