Update checked-in dependencies
This commit is contained in:
parent
cf733fe86d
commit
07a86f82ca
167 changed files with 565 additions and 3893 deletions
8
node_modules/uuid/dist/esm/v1.js
generated
vendored
8
node_modules/uuid/dist/esm/v1.js
generated
vendored
|
|
@ -46,10 +46,18 @@ export function updateV1State(state, now, rnds) {
|
|||
return state;
|
||||
}
|
||||
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
||||
if (rnds.length < 16) {
|
||||
throw new Error('Random bytes length must be >= 16');
|
||||
}
|
||||
if (!buf) {
|
||||
buf = new Uint8Array(16);
|
||||
offset = 0;
|
||||
}
|
||||
else {
|
||||
if (offset < 0 || offset + 16 > buf.length) {
|
||||
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
||||
}
|
||||
}
|
||||
msecs ??= Date.now();
|
||||
nsecs ??= 0;
|
||||
clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue