Update checked-in dependencies
This commit is contained in:
parent
ace5545513
commit
f87e7a6293
248 changed files with 9686 additions and 262 deletions
4
node_modules/uuid/dist/esm-node/native.js
generated
vendored
Normal file
4
node_modules/uuid/dist/esm-node/native.js
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import crypto from 'crypto';
|
||||
export default {
|
||||
randomUUID: crypto.randomUUID
|
||||
};
|
||||
12
node_modules/uuid/dist/esm-node/stringify.js
generated
vendored
12
node_modules/uuid/dist/esm-node/stringify.js
generated
vendored
|
|
@ -7,13 +7,17 @@ import validate from './validate.js';
|
|||
const byteToHex = [];
|
||||
|
||||
for (let i = 0; i < 256; ++i) {
|
||||
byteToHex.push((i + 0x100).toString(16).substr(1));
|
||||
byteToHex.push((i + 0x100).toString(16).slice(1));
|
||||
}
|
||||
|
||||
export function unsafeStringify(arr, offset = 0) {
|
||||
// Note: Be careful editing this code! It's been tuned for performance
|
||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
||||
}
|
||||
|
||||
function stringify(arr, offset = 0) {
|
||||
// Note: Be careful editing this code! It's been tuned for performance
|
||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||
const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||
// of the following:
|
||||
// - One or more input array values don't map to a hex octet (leading to
|
||||
// "undefined" in the uuid)
|
||||
|
|
|
|||
4
node_modules/uuid/dist/esm-node/v1.js
generated
vendored
4
node_modules/uuid/dist/esm-node/v1.js
generated
vendored
|
|
@ -1,5 +1,5 @@
|
|||
import rng from './rng.js';
|
||||
import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**
|
||||
import { unsafeStringify } from './stringify.js'; // **`v1()` - Generate time-based UUID**
|
||||
//
|
||||
// Inspired by https://github.com/LiosK/UUID.js
|
||||
// and http://docs.python.org/library/uuid.html
|
||||
|
|
@ -89,7 +89,7 @@ function v1(options, buf, offset) {
|
|||
b[i + n] = node[n];
|
||||
}
|
||||
|
||||
return buf || stringify(b);
|
||||
return buf || unsafeStringify(b);
|
||||
}
|
||||
|
||||
export default v1;
|
||||
10
node_modules/uuid/dist/esm-node/v35.js
generated
vendored
10
node_modules/uuid/dist/esm-node/v35.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import stringify from './stringify.js';
|
||||
import { unsafeStringify } from './stringify.js';
|
||||
import parse from './parse.js';
|
||||
|
||||
function stringToBytes(str) {
|
||||
|
|
@ -15,8 +15,10 @@ function stringToBytes(str) {
|
|||
|
||||
export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
||||
export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
||||
export default function (name, version, hashfunc) {
|
||||
export default function v35(name, version, hashfunc) {
|
||||
function generateUUID(value, namespace, buf, offset) {
|
||||
var _namespace;
|
||||
|
||||
if (typeof value === 'string') {
|
||||
value = stringToBytes(value);
|
||||
}
|
||||
|
|
@ -25,7 +27,7 @@ export default function (name, version, hashfunc) {
|
|||
namespace = parse(namespace);
|
||||
}
|
||||
|
||||
if (namespace.length !== 16) {
|
||||
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
||||
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
||||
} // Compute hash of namespace and value, Per 4.3
|
||||
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
||||
|
|
@ -49,7 +51,7 @@ export default function (name, version, hashfunc) {
|
|||
return buf;
|
||||
}
|
||||
|
||||
return stringify(bytes);
|
||||
return unsafeStringify(bytes);
|
||||
} // Function#name is not settable on some platforms (#270)
|
||||
|
||||
|
||||
|
|
|
|||
9
node_modules/uuid/dist/esm-node/v4.js
generated
vendored
9
node_modules/uuid/dist/esm-node/v4.js
generated
vendored
|
|
@ -1,7 +1,12 @@
|
|||
import native from './native.js';
|
||||
import rng from './rng.js';
|
||||
import stringify from './stringify.js';
|
||||
import { unsafeStringify } from './stringify.js';
|
||||
|
||||
function v4(options, buf, offset) {
|
||||
if (native.randomUUID && !buf && !options) {
|
||||
return native.randomUUID();
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||
|
||||
|
|
@ -18,7 +23,7 @@ function v4(options, buf, offset) {
|
|||
return buf;
|
||||
}
|
||||
|
||||
return stringify(rnds);
|
||||
return unsafeStringify(rnds);
|
||||
}
|
||||
|
||||
export default v4;
|
||||
2
node_modules/uuid/dist/esm-node/version.js
generated
vendored
2
node_modules/uuid/dist/esm-node/version.js
generated
vendored
|
|
@ -5,7 +5,7 @@ function version(uuid) {
|
|||
throw TypeError('Invalid UUID');
|
||||
}
|
||||
|
||||
return parseInt(uuid.substr(14, 1), 16);
|
||||
return parseInt(uuid.slice(14, 15), 16);
|
||||
}
|
||||
|
||||
export default version;
|
||||
Loading…
Add table
Add a link
Reference in a new issue