We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0fa7b commit 32b3836Copy full SHA for 32b3836
src/functions.js
@@ -553,7 +553,7 @@ const functions = (() => {
553
// Simply doing `new Buffer` at this point causes Browserify to pull
554
// in the entire Buffer browser library, which is large and unnecessary.
555
// Using `global.Buffer` defeats this.
556
- return new global.Buffer(str, 'binary').toString('base64');
+ return new global.Buffer.from(str, 'binary').toString('base64'); // eslint-disable-line new-cap
557
};
558
return btoa(str);
559
}
0 commit comments