Skip to content

Commit ff5c87d

Browse files
committed
Removed poly for atob and btoa as it's not needed since node 16
1 parent 89ebf6d commit ff5c87d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ console.assert(
2929
);
3030
```
3131

32-
**Please note** this module requires global `atob` and `btoa` in NodeJS, polyfilled in tests in here as such.
32+
**Please note** this module requires global `atob` and `btoa` in NodeJS **< 16**, polyfilled in old tests in here as such.
3333

3434
```js
3535
global.btoa = str => Buffer.from(str).toString('base64');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"cjs": "ascjs esm cjs",
99
"rollup:new": "rollup --config rollup/new.config.js",
1010
"rollup:babel": "rollup --config rollup/babel.config.js",
11-
"min": "uglifyjs index.js --support-ie8 --comments=/^!/ -c -m -o min.js",
11+
"min": "uglifyjs index.js -c -m -o min.js",
1212
"coveralls": "nyc report --reporter=text-lcov | coveralls",
1313
"test": "nyc node test/index.js"
1414
},

test/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
global.btoa = str => Buffer.from(str).toString('base64');
2-
global.atob = str => Buffer.from(str, 'base64').toString();
3-
41
const {encode, decode} = require('../cjs');
52

63
const even = new Uint8Array([0, 1, 2, 3]);

0 commit comments

Comments
 (0)