Skip to content

Commit 6bf6e77

Browse files
authored
Merge pull request ava-labs#400 from ava-labs/development
v3.9.3-rc
2 parents 87ef66f + cf92c69 commit 6bf6e77

File tree

5 files changed

+519
-510
lines changed

5 files changed

+519
-510
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [14, 16]
17+
node-version: [16]
1818
steps:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-node@v2

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-node@v2
2626
with:
2727
cache: yarn
28-
node-version: '14'
28+
node-version: '16'
2929
- name: Install NodeJS dependencies
3030
run: yarn install --frozen-lockfile
3131
- name: Setup Golang Version

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@types/create-hash": "1.2.2",
5050
"@types/hdkey": "2.0.0",
5151
"@types/jest": "27.0.2",
52-
"@types/node": "16.10.2",
52+
"@types/node": "16.11.6",
5353
"@typescript-eslint/eslint-plugin": "4.33.0",
5454
"@typescript-eslint/parser": "4.33.0",
5555
"clean-webpack-plugin": "4.0.0",
@@ -58,41 +58,41 @@
5858
"eslint-plugin-prettier": "4.0.0",
5959
"eslint-plugin-security": "1.4.0",
6060
"git-revision-webpack-plugin": "5.0.0",
61-
"html-webpack-plugin": "5.3.2",
62-
"husky": "7.0.2",
63-
"isomorphic-dompurify": "^0.15.0",
61+
"html-webpack-plugin": "5.5.0",
62+
"husky": "7.0.4",
6463
"jest": "26.6.3",
6564
"jest-mock-axios": "4.4.1",
6665
"prettier": "2.4.1",
67-
"terser-webpack-plugin": "5.1.4",
66+
"terser-webpack-plugin": "5.2.4",
6867
"ts-jest": "26.5.6",
6968
"ts-loader": "9.2.6",
7069
"typedoc": "0.22.4",
7170
"typedoc-plugin-external-module-name": "4.0.6",
72-
"typedoc-plugin-markdown": "3.11.2",
73-
"typescript": "4.4.3",
74-
"webpack": "5.51.1",
75-
"webpack-cli": "4.8.0"
71+
"typedoc-plugin-markdown": "3.11.3",
72+
"webpack": "5.58.2",
73+
"typescript": "4.4.4",
74+
"webpack-cli": "4.9.1"
7675
},
7776
"engines": {
78-
"node": ">=14.17.0"
77+
"node": ">=16.13.0"
7978
},
8079
"dependencies": {
8180
"assert": "2.0.0",
82-
"axios": "0.21.4",
81+
"axios": "0.24.0",
8382
"bech32": "2.0.0",
8483
"bip39": "3.0.4",
8584
"bn.js": "5.2.0",
8685
"buffer": "6.0.3",
8786
"create-hash": "1.2.0",
8887
"crypto-browserify": "3.12.0",
8988
"elliptic": "6.5.4",
90-
"ethers": "5.4.7",
89+
"ethers": "5.5.1",
9190
"hdkey": "2.0.1",
91+
"isomorphic-dompurify": "^0.15.0",
9292
"isomorphic-ws": "4.0.1",
9393
"store2": "2.12.0",
9494
"stream-browserify": "3.0.0",
95-
"ws": "8.2.2"
95+
"ws": "8.2.3"
9696
},
9797
"prettier": {
9898
"tabWidth": 2,

src/avalanche.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
* @packageDocumentation
33
* @module AvalancheCore
44
*/
5-
import axios, { AxiosRequestConfig, AxiosResponse, Method } from "axios"
5+
import axios, {
6+
AxiosRequestConfig,
7+
AxiosRequestHeaders,
8+
AxiosResponse,
9+
Method
10+
} from "axios"
611
import { APIBase, RequestResponseData } from "./common/apibase"
712
import { ProtocolError } from "./utils/errors"
813
import { getPreferredHRP } from "./utils/helperfunctions"
@@ -197,7 +202,7 @@ export default class AvalancheCore {
197202
this.auth = auth
198203
}
199204

200-
protected _setHeaders = (headers: any): object => {
205+
protected _setHeaders = (headers: any): AxiosRequestHeaders => {
201206
if (typeof this.headers === "object") {
202207
for (const [key, value] of Object.entries(this.headers)) {
203208
headers[`${key}`] = value
@@ -262,7 +267,7 @@ export default class AvalancheCore {
262267
baseurl: string,
263268
getdata: object,
264269
postdata: string | object | ArrayBuffer | ArrayBufferView,
265-
headers: object = {},
270+
headers: AxiosRequestHeaders = {},
266271
axiosConfig: AxiosRequestConfig = undefined
267272
): Promise<RequestResponseData> => {
268273
let config: AxiosRequestConfig

0 commit comments

Comments
 (0)