From 9102f1cad31ac529aa5a6b1c775fb565a51042f0 Mon Sep 17 00:00:00 2001 From: Borewit Date: Sun, 11 Jul 2021 17:21:56 +0200 Subject: [PATCH] Update dependency to token-types v3, supporting BigInt (#465) --- .github/workflows/main.yml | 2 +- core.js | 2 +- package.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18531b3f..a4d6377b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/core.js b/core.js index 20cd2aeb..f5e16796 100644 --- a/core.js +++ b/core.js @@ -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)) }; } diff --git a/package.json b/package.json index 8d588114..85c5255d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "url": "https://sindresorhus.com" }, "engines": { - "node": ">=8" + "node": ">=10" }, "scripts": { "ava": "ava --serial --verbose", @@ -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.1", + "token-types": "^3.0.0" }, "xo": { "envs": [