Replace deprecated calls in atob and btoa
This commit is contained in:
@ -1,2 +1,2 @@
|
||||
const atob = str => new Buffer(str, 'base64').toString('binary');
|
||||
const atob = str => Buffer.from(str, 'base64').toString('binary');
|
||||
module.exports = atob;
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
const btoa = str => new Buffer(str, 'binary').toString('base64');
|
||||
const btoa = str => new Buffer.from(str, 'binary').toString('base64');
|
||||
module.exports = btoa;
|
||||
|
||||
Reference in New Issue
Block a user