Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Unified Diff: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/uuid/uuid.js

Issue 877193002: Upgrade vulcanize to 0.7.6. (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/uuid/uuid.js
diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/uuid/uuid.js b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/uuid/uuid.js
index f037bd4bf45d78310dcb8c2db0589f3dbe1d0b7b..be5bfede9d2712e960863bada33f70e3823881cf 100644
--- a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/uuid/uuid.js
+++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/uuid/uuid.js
@@ -8,11 +8,6 @@
// returns 128-bits of randomness, since that's what's usually required
var _rng = require('./rng');
-// Buffer class to use,
-// we can't use `Buffer || Array` otherwise Buffer would be
-// shimmed by browserify and added to the browser build
-var BufferClass = require('./buffer');
-
// Maps for number <-> hex string conversion
var _byteToHex = [];
var _hexToByte = {};
@@ -157,7 +152,7 @@ function v4(options, buf, offset) {
var i = buf && offset || 0;
if (typeof(options) == 'string') {
- buf = options == 'binary' ? new BufferClass(16) : null;
+ buf = options == 'binary' ? new Array(16) : null;
options = null;
}
options = options || {};
@@ -184,6 +179,5 @@ uuid.v1 = v1;
uuid.v4 = v4;
uuid.parse = parse;
uuid.unparse = unparse;
-uuid.BufferClass = BufferClass;
module.exports = uuid;

Powered by Google App Engine
This is Rietveld 408576698