Skip to content

Commit 9102f1c

Browse files
authored
Update dependency to token-types v3, supporting BigInt (#465)
1 parent ac866f9 commit 9102f1c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 16
1314
- 14
1415
- 12
1516
- 10
16-
- 8
1717
steps:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-node@v1

core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ async function _fromTokenizer(tokenizer) {
10671067
await tokenizer.readBuffer(guid);
10681068
return {
10691069
id: guid,
1070-
size: await tokenizer.readToken(Token.UINT64_LE)
1070+
size: Number(await tokenizer.readToken(Token.UINT64_LE))
10711071
};
10721072
}
10731073

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"engines": {
14-
"node": ">=8"
14+
"node": ">=10"
1515
},
1616
"scripts": {
1717
"ava": "ava --serial --verbose",
@@ -197,8 +197,8 @@
197197
},
198198
"dependencies": {
199199
"readable-web-to-node-stream": "^3.0.0",
200-
"strtok3": "^6.0.3",
201-
"token-types": "^2.0.0"
200+
"strtok3": "^6.1.1",
201+
"token-types": "^3.0.0"
202202
},
203203
"xo": {
204204
"envs": [

0 commit comments

Comments
 (0)