uuid 11.0.4 → 11.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/md5.d.ts +3 -1
- package/dist/cjs/native.d.ts +1 -0
- package/dist/cjs/parse.d.ts +1 -1
- package/dist/cjs/rng.d.ts +1 -1
- package/dist/cjs/rng.js +1 -1
- package/dist/cjs/sha1.d.ts +3 -1
- package/dist/cjs/stringify.js +2 -1
- package/dist/cjs/v1.js +2 -1
- package/dist/cjs/v1ToV6.js +1 -1
- package/dist/cjs/v35.d.ts +2 -2
- package/dist/cjs/v35.js +3 -3
- package/dist/cjs/v6ToV1.js +1 -1
- package/dist/cjs/v7.js +2 -1
- package/dist/cjs-browser/md5.d.ts +1 -1
- package/dist/cjs-browser/parse.d.ts +1 -1
- package/dist/cjs-browser/rng.d.ts +1 -1
- package/dist/cjs-browser/rng.js +1 -1
- package/dist/cjs-browser/stringify.js +2 -1
- package/dist/cjs-browser/v1.js +2 -1
- package/dist/cjs-browser/v1ToV6.js +1 -1
- package/dist/cjs-browser/v35.d.ts +2 -2
- package/dist/cjs-browser/v35.js +3 -3
- package/dist/cjs-browser/v6ToV1.js +1 -1
- package/dist/cjs-browser/v7.js +2 -1
- package/dist/esm/md5.d.ts +3 -1
- package/dist/esm/native.d.ts +1 -0
- package/dist/esm/parse.d.ts +1 -1
- package/dist/esm/rng.d.ts +1 -1
- package/dist/esm/sha1.d.ts +3 -1
- package/dist/esm/v35.d.ts +2 -2
- package/dist/esm-browser/md5.d.ts +1 -1
- package/dist/esm-browser/parse.d.ts +1 -1
- package/dist/esm-browser/rng.d.ts +1 -1
- package/dist/esm-browser/v35.d.ts +2 -2
- package/package.json +11 -10
package/dist/cjs/md5.d.ts
CHANGED
package/dist/cjs/native.d.ts
CHANGED
package/dist/cjs/parse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function parse(uuid: string): Uint8Array
|
|
1
|
+
declare function parse(uuid: string): Uint8Array;
|
|
2
2
|
export default parse;
|
package/dist/cjs/rng.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function rng(): Uint8Array
|
|
1
|
+
export default function rng(): Uint8Array;
|
package/dist/cjs/rng.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = rng;
|
|
4
3
|
const crypto_1 = require("crypto");
|
|
5
4
|
const rnds8Pool = new Uint8Array(256);
|
|
6
5
|
let poolPtr = rnds8Pool.length;
|
|
@@ -11,3 +10,4 @@ function rng() {
|
|
|
11
10
|
}
|
|
12
11
|
return rnds8Pool.slice(poolPtr, (poolPtr += 16));
|
|
13
12
|
}
|
|
13
|
+
exports.default = rng;
|
package/dist/cjs/sha1.d.ts
CHANGED
package/dist/cjs/stringify.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unsafeStringify =
|
|
3
|
+
exports.unsafeStringify = void 0;
|
|
4
4
|
const validate_js_1 = require("./validate.js");
|
|
5
5
|
const byteToHex = [];
|
|
6
6
|
for (let i = 0; i < 256; ++i) {
|
|
@@ -28,6 +28,7 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
28
28
|
byteToHex[arr[offset + 14]] +
|
|
29
29
|
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
30
30
|
}
|
|
31
|
+
exports.unsafeStringify = unsafeStringify;
|
|
31
32
|
function stringify(arr, offset = 0) {
|
|
32
33
|
const uuid = unsafeStringify(arr, offset);
|
|
33
34
|
if (!(0, validate_js_1.default)(uuid)) {
|
package/dist/cjs/v1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV1State =
|
|
3
|
+
exports.updateV1State = void 0;
|
|
4
4
|
const rng_js_1 = require("./rng.js");
|
|
5
5
|
const stringify_js_1 = require("./stringify.js");
|
|
6
6
|
const _state = {};
|
|
@@ -48,6 +48,7 @@ function updateV1State(state, now, rnds) {
|
|
|
48
48
|
state.msecs = now;
|
|
49
49
|
return state;
|
|
50
50
|
}
|
|
51
|
+
exports.updateV1State = updateV1State;
|
|
51
52
|
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
52
53
|
if (rnds.length < 16) {
|
|
53
54
|
throw new Error('Random bytes length must be >= 16');
|
package/dist/cjs/v1ToV6.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = v1ToV6;
|
|
4
3
|
const parse_js_1 = require("./parse.js");
|
|
5
4
|
const stringify_js_1 = require("./stringify.js");
|
|
6
5
|
function v1ToV6(uuid) {
|
|
@@ -8,6 +7,7 @@ function v1ToV6(uuid) {
|
|
|
8
7
|
const v6Bytes = _v1ToV6(v1Bytes);
|
|
9
8
|
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
10
9
|
}
|
|
10
|
+
exports.default = v1ToV6;
|
|
11
11
|
function _v1ToV6(v1Bytes) {
|
|
12
12
|
return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
|
|
13
13
|
}
|
package/dist/cjs/v35.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUIDTypes } from './types.js';
|
|
2
|
-
export declare function stringToBytes(str: string): Uint8Array
|
|
2
|
+
export declare function stringToBytes(str: string): Uint8Array;
|
|
3
3
|
export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4
4
|
export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5
5
|
type HashFunction = (bytes: Uint8Array) => Uint8Array;
|
|
6
|
-
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array
|
|
6
|
+
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array;
|
|
7
7
|
export {};
|
package/dist/cjs/v35.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = void 0;
|
|
4
|
-
exports.stringToBytes = stringToBytes;
|
|
5
|
-
exports.default = v35;
|
|
3
|
+
exports.URL = exports.DNS = exports.stringToBytes = void 0;
|
|
6
4
|
const parse_js_1 = require("./parse.js");
|
|
7
5
|
const stringify_js_1 = require("./stringify.js");
|
|
8
6
|
function stringToBytes(str) {
|
|
@@ -13,6 +11,7 @@ function stringToBytes(str) {
|
|
|
13
11
|
}
|
|
14
12
|
return bytes;
|
|
15
13
|
}
|
|
14
|
+
exports.stringToBytes = stringToBytes;
|
|
16
15
|
exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
17
16
|
exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
18
17
|
function v35(version, hash, value, namespace, buf, offset) {
|
|
@@ -39,3 +38,4 @@ function v35(version, hash, value, namespace, buf, offset) {
|
|
|
39
38
|
}
|
|
40
39
|
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
41
40
|
}
|
|
41
|
+
exports.default = v35;
|
package/dist/cjs/v6ToV1.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = v6ToV1;
|
|
4
3
|
const parse_js_1 = require("./parse.js");
|
|
5
4
|
const stringify_js_1 = require("./stringify.js");
|
|
6
5
|
function v6ToV1(uuid) {
|
|
@@ -8,6 +7,7 @@ function v6ToV1(uuid) {
|
|
|
8
7
|
const v1Bytes = _v6ToV1(v6Bytes);
|
|
9
8
|
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
10
9
|
}
|
|
10
|
+
exports.default = v6ToV1;
|
|
11
11
|
function _v6ToV1(v6Bytes) {
|
|
12
12
|
return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
13
13
|
}
|
package/dist/cjs/v7.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV7State =
|
|
3
|
+
exports.updateV7State = void 0;
|
|
4
4
|
const rng_js_1 = require("./rng.js");
|
|
5
5
|
const stringify_js_1 = require("./stringify.js");
|
|
6
6
|
const _state = {};
|
|
@@ -32,6 +32,7 @@ function updateV7State(state, now, rnds) {
|
|
|
32
32
|
}
|
|
33
33
|
return state;
|
|
34
34
|
}
|
|
35
|
+
exports.updateV7State = updateV7State;
|
|
35
36
|
function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
|
36
37
|
if (rnds.length < 16) {
|
|
37
38
|
throw new Error('Random bytes length must be >= 16');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function md5(bytes: Uint8Array): Uint8Array
|
|
1
|
+
declare function md5(bytes: Uint8Array): Uint8Array;
|
|
2
2
|
export default md5;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function parse(uuid: string): Uint8Array
|
|
1
|
+
declare function parse(uuid: string): Uint8Array;
|
|
2
2
|
export default parse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function rng(): Uint8Array
|
|
1
|
+
export default function rng(): Uint8Array;
|
package/dist/cjs-browser/rng.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = rng;
|
|
4
3
|
let getRandomValues;
|
|
5
4
|
const rnds8 = new Uint8Array(16);
|
|
6
5
|
function rng() {
|
|
@@ -12,3 +11,4 @@ function rng() {
|
|
|
12
11
|
}
|
|
13
12
|
return getRandomValues(rnds8);
|
|
14
13
|
}
|
|
14
|
+
exports.default = rng;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unsafeStringify =
|
|
3
|
+
exports.unsafeStringify = void 0;
|
|
4
4
|
const validate_js_1 = require("./validate.js");
|
|
5
5
|
const byteToHex = [];
|
|
6
6
|
for (let i = 0; i < 256; ++i) {
|
|
@@ -28,6 +28,7 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
28
28
|
byteToHex[arr[offset + 14]] +
|
|
29
29
|
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
30
30
|
}
|
|
31
|
+
exports.unsafeStringify = unsafeStringify;
|
|
31
32
|
function stringify(arr, offset = 0) {
|
|
32
33
|
const uuid = unsafeStringify(arr, offset);
|
|
33
34
|
if (!(0, validate_js_1.default)(uuid)) {
|
package/dist/cjs-browser/v1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV1State =
|
|
3
|
+
exports.updateV1State = void 0;
|
|
4
4
|
const rng_js_1 = require("./rng.js");
|
|
5
5
|
const stringify_js_1 = require("./stringify.js");
|
|
6
6
|
const _state = {};
|
|
@@ -48,6 +48,7 @@ function updateV1State(state, now, rnds) {
|
|
|
48
48
|
state.msecs = now;
|
|
49
49
|
return state;
|
|
50
50
|
}
|
|
51
|
+
exports.updateV1State = updateV1State;
|
|
51
52
|
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
52
53
|
if (rnds.length < 16) {
|
|
53
54
|
throw new Error('Random bytes length must be >= 16');
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = v1ToV6;
|
|
4
3
|
const parse_js_1 = require("./parse.js");
|
|
5
4
|
const stringify_js_1 = require("./stringify.js");
|
|
6
5
|
function v1ToV6(uuid) {
|
|
@@ -8,6 +7,7 @@ function v1ToV6(uuid) {
|
|
|
8
7
|
const v6Bytes = _v1ToV6(v1Bytes);
|
|
9
8
|
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
10
9
|
}
|
|
10
|
+
exports.default = v1ToV6;
|
|
11
11
|
function _v1ToV6(v1Bytes) {
|
|
12
12
|
return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
|
|
13
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUIDTypes } from './types.js';
|
|
2
|
-
export declare function stringToBytes(str: string): Uint8Array
|
|
2
|
+
export declare function stringToBytes(str: string): Uint8Array;
|
|
3
3
|
export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4
4
|
export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5
5
|
type HashFunction = (bytes: Uint8Array) => Uint8Array;
|
|
6
|
-
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array
|
|
6
|
+
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array;
|
|
7
7
|
export {};
|
package/dist/cjs-browser/v35.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = void 0;
|
|
4
|
-
exports.stringToBytes = stringToBytes;
|
|
5
|
-
exports.default = v35;
|
|
3
|
+
exports.URL = exports.DNS = exports.stringToBytes = void 0;
|
|
6
4
|
const parse_js_1 = require("./parse.js");
|
|
7
5
|
const stringify_js_1 = require("./stringify.js");
|
|
8
6
|
function stringToBytes(str) {
|
|
@@ -13,6 +11,7 @@ function stringToBytes(str) {
|
|
|
13
11
|
}
|
|
14
12
|
return bytes;
|
|
15
13
|
}
|
|
14
|
+
exports.stringToBytes = stringToBytes;
|
|
16
15
|
exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
17
16
|
exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
18
17
|
function v35(version, hash, value, namespace, buf, offset) {
|
|
@@ -39,3 +38,4 @@ function v35(version, hash, value, namespace, buf, offset) {
|
|
|
39
38
|
}
|
|
40
39
|
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
41
40
|
}
|
|
41
|
+
exports.default = v35;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = v6ToV1;
|
|
4
3
|
const parse_js_1 = require("./parse.js");
|
|
5
4
|
const stringify_js_1 = require("./stringify.js");
|
|
6
5
|
function v6ToV1(uuid) {
|
|
@@ -8,6 +7,7 @@ function v6ToV1(uuid) {
|
|
|
8
7
|
const v1Bytes = _v6ToV1(v6Bytes);
|
|
9
8
|
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
10
9
|
}
|
|
10
|
+
exports.default = v6ToV1;
|
|
11
11
|
function _v6ToV1(v6Bytes) {
|
|
12
12
|
return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
13
13
|
}
|
package/dist/cjs-browser/v7.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV7State =
|
|
3
|
+
exports.updateV7State = void 0;
|
|
4
4
|
const rng_js_1 = require("./rng.js");
|
|
5
5
|
const stringify_js_1 = require("./stringify.js");
|
|
6
6
|
const _state = {};
|
|
@@ -32,6 +32,7 @@ function updateV7State(state, now, rnds) {
|
|
|
32
32
|
}
|
|
33
33
|
return state;
|
|
34
34
|
}
|
|
35
|
+
exports.updateV7State = updateV7State;
|
|
35
36
|
function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
|
36
37
|
if (rnds.length < 16) {
|
|
37
38
|
throw new Error('Random bytes length must be >= 16');
|
package/dist/esm/md5.d.ts
CHANGED
package/dist/esm/native.d.ts
CHANGED
package/dist/esm/parse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function parse(uuid: string): Uint8Array
|
|
1
|
+
declare function parse(uuid: string): Uint8Array;
|
|
2
2
|
export default parse;
|
package/dist/esm/rng.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function rng(): Uint8Array
|
|
1
|
+
export default function rng(): Uint8Array;
|
package/dist/esm/sha1.d.ts
CHANGED
package/dist/esm/v35.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUIDTypes } from './types.js';
|
|
2
|
-
export declare function stringToBytes(str: string): Uint8Array
|
|
2
|
+
export declare function stringToBytes(str: string): Uint8Array;
|
|
3
3
|
export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4
4
|
export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5
5
|
type HashFunction = (bytes: Uint8Array) => Uint8Array;
|
|
6
|
-
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array
|
|
6
|
+
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function md5(bytes: Uint8Array): Uint8Array
|
|
1
|
+
declare function md5(bytes: Uint8Array): Uint8Array;
|
|
2
2
|
export default md5;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function parse(uuid: string): Uint8Array
|
|
1
|
+
declare function parse(uuid: string): Uint8Array;
|
|
2
2
|
export default parse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function rng(): Uint8Array
|
|
1
|
+
export default function rng(): Uint8Array;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUIDTypes } from './types.js';
|
|
2
|
-
export declare function stringToBytes(str: string): Uint8Array
|
|
2
|
+
export declare function stringToBytes(str: string): Uint8Array;
|
|
3
3
|
export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4
4
|
export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5
5
|
type HashFunction = (bytes: Uint8Array) => Uint8Array;
|
|
6
|
-
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array
|
|
6
|
+
export default function v35(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number): string | Uint8Array;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uuid",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.5",
|
|
4
4
|
"description": "RFC9562 UUIDs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"funding": [
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"release-please": "16.15.0",
|
|
69
69
|
"runmd": "1.4.1",
|
|
70
70
|
"standard-version": "9.5.0",
|
|
71
|
-
"typescript": "5.
|
|
71
|
+
"typescript": "5.0.4",
|
|
72
72
|
"typescript-eslint": "8.18.2"
|
|
73
73
|
},
|
|
74
74
|
"optionalDevDependencies": {
|
|
@@ -87,15 +87,17 @@
|
|
|
87
87
|
"docs": "npm run build && npx runmd --output=README.md README_js.md",
|
|
88
88
|
"eslint:check": "eslint src/ test/ examples/ *.[jt]s",
|
|
89
89
|
"eslint:fix": "eslint --fix src/ test/ examples/ *.[jt]s",
|
|
90
|
-
"examples:browser:rollup:build": "cd examples/browser-rollup && npm
|
|
91
|
-
"examples:browser:webpack:build": "cd examples/browser-webpack && npm
|
|
92
|
-
"examples:node:commonjs:test": "cd examples/node-commonjs && npm
|
|
93
|
-
"examples:node:esmodules:test": "cd examples/node-esmodules && npm
|
|
94
|
-
"examples:node:jest:test": "cd examples/node-jest && npm
|
|
90
|
+
"examples:browser:rollup:build": "cd examples/browser-rollup && npm run build",
|
|
91
|
+
"examples:browser:webpack:build": "cd examples/browser-webpack && npm run build",
|
|
92
|
+
"examples:node:commonjs:test": "cd examples/node-commonjs && npm test",
|
|
93
|
+
"examples:node:esmodules:test": "cd examples/node-esmodules && npm test",
|
|
94
|
+
"examples:node:jest:test": "cd examples/node-jest && npm test",
|
|
95
|
+
"examples:node:typescript:test": "cd examples/typescript && npm test",
|
|
95
96
|
"lint": "npm run eslint:check && npm run prettier:check",
|
|
96
97
|
"md": "runmd --watch --output=README.md README_js.md",
|
|
97
|
-
"prepack": "npm run build",
|
|
98
|
+
"prepack": "npm run build -- --no-pack",
|
|
98
99
|
"prepare": "husky",
|
|
100
|
+
"prepublishOnly": "npm run build",
|
|
99
101
|
"pretest:benchmark": "npm run build",
|
|
100
102
|
"pretest:browser": "./scripts/iodd && npm run build && npm-run-all --parallel examples:browser:**",
|
|
101
103
|
"pretest:node": "npm run build",
|
|
@@ -103,10 +105,9 @@
|
|
|
103
105
|
"prettier:check": "prettier --check .",
|
|
104
106
|
"prettier:fix": "prettier --write .",
|
|
105
107
|
"release": "standard-version --no-verify",
|
|
106
|
-
"test:benchmark": "cd examples/benchmark &&
|
|
108
|
+
"test:benchmark": "cd examples/benchmark && npm test",
|
|
107
109
|
"test:browser": "wdio run ./wdio.conf.js",
|
|
108
110
|
"test:node": "npm-run-all --parallel examples:node:**",
|
|
109
|
-
"test:pack": "./scripts/testpack.sh",
|
|
110
111
|
"test:watch": "node --test --enable-source-maps --watch dist/esm/test/*.js",
|
|
111
112
|
"test": "node --test --enable-source-maps dist/esm/test/*.js"
|
|
112
113
|
},
|