mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
506fa2d744
The warnings about use of the unsafe Buffer constructor have been addressed by package updates and patches. The updates were: * `gulp-sourcemaps` was updated from v2 to v3, and was patched to replace remaining uses of the `Buffer` constructor * Upstream PR: https://github.com/gulp-sourcemaps/gulp-sourcemaps/pull/388 * The transitive dependency `yazl` was updated from v2.4.3 to v2.5.1 in the lockfile. * The abandoned packages `combine-source-map` and `inline-source-map` were patched.
23 lines
988 B
Diff
23 lines
988 B
Diff
diff --git a/node_modules/combine-source-map/node_modules/convert-source-map/index.js b/node_modules/combine-source-map/node_modules/convert-source-map/index.js
|
|
index bfe92d1..bee1ffe 100644
|
|
--- a/node_modules/combine-source-map/node_modules/convert-source-map/index.js
|
|
+++ b/node_modules/combine-source-map/node_modules/convert-source-map/index.js
|
|
@@ -9,7 +9,7 @@ var mapFileCommentRx =
|
|
/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg
|
|
|
|
function decodeBase64(base64) {
|
|
- return new Buffer(base64, 'base64').toString();
|
|
+ return Buffer.from(base64, 'base64').toString();
|
|
}
|
|
|
|
function stripComment(sm) {
|
|
@@ -60,7 +60,7 @@ Converter.prototype.toJSON = function (space) {
|
|
|
|
Converter.prototype.toBase64 = function () {
|
|
var json = this.toJSON();
|
|
- return new Buffer(json).toString('base64');
|
|
+ return Buffer.from(json).toString('base64');
|
|
};
|
|
|
|
Converter.prototype.toComment = function (options) {
|