Skip to content

Commit

Permalink
Update dependency to token-types v3, supporting BigInt
Browse files Browse the repository at this point in the history
BigInt requires Node version v10, updated module engine API requirement.
Update strtok3 to v6.1.0 to allign the dependent token-types version.

Related: Borewit/token-types#300
  • Loading branch information
Borewit committed Jul 10, 2021
1 parent ac866f9 commit 9cd6972
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
- 8
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ async function _fromTokenizer(tokenizer) {
await tokenizer.readBuffer(guid);
return {
id: guid,
size: await tokenizer.readToken(Token.UINT64_LE)
size: Number(await tokenizer.readToken(Token.UINT64_LE))
};
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"ava": "ava --serial --verbose",
Expand Down Expand Up @@ -197,8 +197,8 @@
},
"dependencies": {
"readable-web-to-node-stream": "^3.0.0",
"strtok3": "^6.0.3",
"token-types": "^2.0.0"
"strtok3": "^6.1.0",
"token-types": "^3.0.0"
},
"xo": {
"envs": [
Expand Down

0 comments on commit 9cd6972

Please sign in to comment.