From a9c6e9284efe8102974c57c9824ed6275d743c7a Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 4 Dec 2019 17:46:28 -0800 Subject: [PATCH] fix(deps): pin TypeScript below 3.7.0 (#845) --- package.json | 2 +- renovate.json | 3 ++- src/auth/oauth2client.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3f43bc25..03dfa5b8 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "source-map-support": "^0.5.6", "tmp": "^0.1.0", "ts-loader": "^6.0.0", - "typescript": "~3.7.0", + "typescript": "3.6.4", "webpack": "^4.20.2", "webpack-cli": "^3.1.1" }, diff --git a/renovate.json b/renovate.json index 61f31b77..9518bf36 100644 --- a/renovate.json +++ b/renovate.json @@ -14,5 +14,6 @@ "extends": "packages:linters", "groupName": "linters" } - ] + ], + "ignoreDeps": ["typescript"] } diff --git a/src/auth/oauth2client.ts b/src/auth/oauth2client.ts index 3a895c39..e2bc61f4 100644 --- a/src/auth/oauth2client.ts +++ b/src/auth/oauth2client.ts @@ -920,7 +920,7 @@ export class OAuth2Client extends AuthClient { try { const r = await this.getRequestMetadataAsync(opts.url); opts.headers = opts.headers || {}; - if (r.headers?.['x-goog-user-project']) { + if (r.headers && r.headers['x-goog-user-project']) { opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; } if (r.headers && r.headers.Authorization) {