Skip to content

Commit

Permalink
limit to node >=16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toviszsolt committed Mar 24, 2024
1 parent babdef6 commit fb1eb89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 33 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/integration.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install
run: yarn install
run: yarn install --ignore-engines
- name: Test
run: yarn test
- name: Upload coverage reports to Codecov
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"node",
"esm"
],
"engines": {
"node": ">=16.0.0"
},
"type": "commonjs",
"main": "./dist/index.cjs",
"browser": "./dist/browser.js",
Expand Down
5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if (typeof btoa !== 'function' || typeof atob !== 'function') {
global.btoa = (data) => Buffer.from(data, 'binary').toString('base64');
global.atob = (data) => Buffer.from(data, 'base64').toString('binary');
}

const encode = (input) => {
const bytes = ArrayBuffer.isView(input)
? new Uint8Array(input.buffer, input.byteOffset, input.byteLength)
Expand Down

0 comments on commit fb1eb89

Please sign in to comment.