updated electron due to a security update

This commit is contained in:
Queen Bee
2018-01-22 20:05:59 -08:00
parent 1d4d4aa194
commit bff854f493
91 changed files with 7639 additions and 5236 deletions

21
node_modules/uuid/lib/rng-browser.js generated vendored
View File

@@ -2,25 +2,26 @@
// browser this is a little complicated due to unknown quality of Math.random()
// and inconsistent support for the `crypto` API. We do the best we can via
// feature-detection
var rng;
var crypto = global.crypto || global.msCrypto; // for IE 11
if (crypto && crypto.getRandomValues) {
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues.bind(crypto)) ||
(typeof(msCrypto) != 'undefined' && msCrypto.getRandomValues.bind(msCrypto));
if (getRandomValues) {
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
rng = function whatwgRNG() {
crypto.getRandomValues(rnds8);
module.exports = function whatwgRNG() {
getRandomValues(rnds8);
return rnds8;
};
}
if (!rng) {
} else {
// Math.random()-based (RNG)
//
// If all else fails, use Math.random(). It's fast, but is of unspecified
// quality.
var rnds = new Array(16);
rng = function() {
module.exports = function mathRNG() {
for (var i = 0, r; i < 16; i++) {
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
@@ -29,5 +30,3 @@ if (!rng) {
return rnds;
};
}
module.exports = rng;

10
node_modules/uuid/lib/rng.js generated vendored
View File

@@ -1,10 +1,8 @@
// Unique ID creation requires a high quality random # generator. In node.js
// this is pretty straight-forward - we use the crypto API.
var rb = require('crypto').randomBytes;
var crypto = require('crypto');
function rng() {
return rb(16);
}
module.exports = rng;
module.exports = function nodeRNG() {
return crypto.randomBytes(16);
};

View File

@@ -54,7 +54,11 @@ function sha1(bytes) {
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
}
var a = H[0], b = H[1], c = H[2], d = H[3], e = H[4];
var a = H[0];
var b = H[1];
var c = H[2];
var d = H[3];
var e = H[4];
for (var t=0; t<80; t++) {
var s = Math.floor(t/20);

28
node_modules/uuid/lib/sha1.js generated vendored
View File

@@ -3,19 +3,23 @@
var crypto = require('crypto');
function sha1(bytes) {
// support modern Buffer API
if (typeof Buffer.from === 'function') {
if (Array.isArray(bytes)) bytes = Buffer.from(bytes);
else if (typeof bytes === 'string') bytes = Buffer.from(bytes, 'utf8');
}
if (typeof Buffer.from === 'function') {
// Modern Buffer API
if (Array.isArray(bytes)) {
bytes = Buffer.from(bytes);
} else if (typeof bytes === 'string') {
bytes = Buffer.from(bytes, 'utf8');
}
} else {
// Pre-v4 Buffer API
if (Array.isArray(bytes)) {
bytes = new Buffer(bytes);
} else if (typeof bytes === 'string') {
bytes = new Buffer(bytes, 'utf8');
}
}
// support pre-v4 Buffer API
else {
if (Array.isArray(bytes)) bytes = new Buffer(bytes);
else if (typeof bytes === 'string') bytes = new Buffer(bytes, 'utf8');
}
return crypto.createHash('sha1').update(bytes).digest();
return crypto.createHash('sha1').update(bytes).digest();
}
module.exports = sha1;