Skip to content

Commit

Permalink
fix(deps): pin TypeScript below 3.7.0 (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Dec 5, 2019
1 parent 04dae9c commit a9c6e92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion renovate.json
Expand Up @@ -14,5 +14,6 @@
"extends": "packages:linters",
"groupName": "linters"
}
]
],
"ignoreDeps": ["typescript"]
}
2 changes: 1 addition & 1 deletion src/auth/oauth2client.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit a9c6e92

Please sign in to comment.