Skip to content

Commit

Permalink
build!: drop node 10 from engines list, update typescript to 4.6.3 (#477
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ddelgrosso1 authored Apr 19, 2022
1 parent 627304c commit a926962
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ branchProtectionRules:
- "ci/kokoro: System test"
- docs
- lint
- test (10)
- test (12)
- test (14)
- test (16)
- cla/google
- windows
- OwlBot Post Processor
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
node: [12, 14, 16]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
34 changes: 0 additions & 34 deletions .kokoro/continuous/node10/common.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions .kokoro/continuous/node10/docs.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions .kokoro/continuous/node10/lint.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/continuous/node10/samples-test.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/continuous/node10/system-test.cfg

This file was deleted.

9 changes: 0 additions & 9 deletions .kokoro/continuous/node10/test.cfg

This file was deleted.

24 changes: 0 additions & 24 deletions .kokoro/continuous/node8/common.cfg

This file was deleted.

Empty file removed .kokoro/continuous/node8/test.cfg
Empty file.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"google"
],
"engines": {
"node": ">=10"
"node": ">=12"
},
"author": "Google, LLC",
"license": "Apache-2.0",
Expand All @@ -46,7 +46,7 @@
"@types/multiparty": "0.0.33",
"@types/mv": "^2.1.0",
"@types/ncp": "^2.0.1",
"@types/node": "^16.11.3",
"@types/node": "^17.0.23",
"@types/node-fetch": "^2.5.7",
"@types/sinon": "^10.0.0",
"@types/tmp": "0.2.3",
Expand All @@ -58,7 +58,7 @@
"execa": "^5.0.0",
"express": "^4.16.4",
"form-data": "^4.0.0",
"gts": "^3.0.0",
"gts": "^3.1.0",
"is-docker": "^2.0.0",
"karma": "^6.0.0",
"karma-chrome-launcher": "^3.0.0",
Expand All @@ -80,7 +80,7 @@
"stream-browserify": "^3.0.0",
"tmp": "0.2.1",
"ts-loader": "^8.0.0",
"typescript": "^3.8.3",
"typescript": "^4.6.3",
"uuid": "^8.0.0",
"webpack": "^5.35.0",
"webpack-cli": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/gaxios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class Gaxios {
} catch (e) {
const err = e as GaxiosError;
err.config = opts;
const {shouldRetry, config} = await getRetryConfig(e);
const {shouldRetry, config} = await getRetryConfig(err);
if (shouldRetry && config) {
err.config.retryConfig!.currentRetryAttempt =
config.retryConfig!.currentRetryAttempt;
Expand Down
3 changes: 2 additions & 1 deletion test/test.retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ describe('🛸 retry & exponential backoff', () => {
try {
await req;
throw Error('unreachable');
} catch (err) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {
assert(err.config);
assert.strictEqual(err.config.retryConfig.currentRetryAttempt, 0);
}
Expand Down

0 comments on commit a926962

Please sign in to comment.