Skip to content

Commit

Permalink
fix: supports node v14
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Zhu committed Nov 14, 2023
1 parent 20c701b commit f2457c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pr-branch-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ jobs:
name: Node.JS ${{ matrix.node-version }} Axios ${{ matrix.axios-version }}
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --ignore-engines # @typescript-eslint/[email protected] requires node 16+
if: ${{ matrix.node-version == '14.x' }}
- run: yarn install
if: ${{ matrix.node-version != '14.x' }}
- run: yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "LifeOmic <[email protected]>",
"license": "MIT",
"engines": {
"node": ">=16"
"node": ">=14"
},
"files": [
"src/**/*.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/retry.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Alpha } from '../src';
import nock from 'nock';
import { AxiosError, AxiosHeaders } from 'axios';
import { AxiosError } from 'axios';

beforeAll(() => {
nock.disableNetConnect();
Expand Down

0 comments on commit f2457c7

Please sign in to comment.