@cdklabs/cdk-ecs-codedeploy 0.0.265 → 0.0.267
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/.jsii +2 -2
- package/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@smithy/core/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/CHANGELOG.md +45 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/README.md +36 -75
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/md5.js +23 -23
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/parse.js +2 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/rng.js +4 -5
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v1.js +17 -17
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v35.js +12 -10
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v4.js +9 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/version.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/stringify.js +7 -3
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v1.js +2 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v35.js +6 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v4.js +7 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/version.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/index.js +18 -18
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng-browser.js +2 -3
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/stringify.js +8 -3
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v1.js +2 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v35.js +7 -5
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v4.js +8 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/version.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/package.json +41 -41
- package/node_modules/@smithy/middleware-retry/package.json +3 -3
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +128 -7
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +125 -0
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +4 -4
- package/node_modules/@smithy/signature-v4/dist-types/HeaderFormatter.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/package.json +1 -2
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/package.json +4 -4
- package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -76
- package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
- package/node_modules/@aws-crypto/crc32/README.md +0 -16
- package/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/aws_crc32.js +0 -31
- package/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/index.js +0 -108
- package/node_modules/@aws-crypto/crc32/build/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +0 -12
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +0 -142
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js +0 -51
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +0 -3
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +0 -37
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts +0 -37
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +0 -1
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +0 -218
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +0 -1
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js +0 -284
- package/node_modules/@aws-crypto/crc32/package.json +0 -28
- package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
- package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
- package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -23
- package/node_modules/@smithy/eventstream-codec/LICENSE +0 -201
- package/node_modules/@smithy/eventstream-codec/README.md +0 -4
- package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +0 -468
- package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +0 -62
- package/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +0 -182
- package/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +0 -43
- package/node_modules/@smithy/eventstream-codec/dist-es/Message.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +0 -14
- package/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +0 -16
- package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +0 -14
- package/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js +0 -690
- package/node_modules/@smithy/eventstream-codec/dist-es/index.js +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js +0 -30
- package/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +0 -31
- package/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +0 -20
- package/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +0 -26
- package/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +0 -18
- package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts +0 -11
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +0 -31
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +0 -20
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +0 -26
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +0 -18
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +0 -11
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/package.json +0 -61
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- /package/node_modules/@smithy/{eventstream-codec/dist-cjs/EventStreamCodec.js → signature-v4/dist-cjs/HeaderFormatter.js} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.URL = exports.DNS = void 0;
|
|
7
|
+
exports.default = v35;
|
|
8
|
+
|
|
9
|
+
var _stringify = require("./stringify.js");
|
|
10
|
+
|
|
11
|
+
var _parse = _interopRequireDefault(require("./parse.js"));
|
|
12
|
+
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
|
|
15
|
+
function stringToBytes(str) {
|
|
16
|
+
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
17
|
+
|
|
18
|
+
const bytes = [];
|
|
19
|
+
|
|
20
|
+
for (let i = 0; i < str.length; ++i) {
|
|
21
|
+
bytes.push(str.charCodeAt(i));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return bytes;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
28
|
+
exports.DNS = DNS;
|
|
29
|
+
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
30
|
+
exports.URL = URL;
|
|
31
|
+
|
|
32
|
+
function v35(name, version, hashfunc) {
|
|
33
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
34
|
+
var _namespace;
|
|
35
|
+
|
|
36
|
+
if (typeof value === 'string') {
|
|
37
|
+
value = stringToBytes(value);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (typeof namespace === 'string') {
|
|
41
|
+
namespace = (0, _parse.default)(namespace);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
45
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
46
|
+
} // Compute hash of namespace and value, Per 4.3
|
|
47
|
+
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
48
|
+
// hashfunc([...namespace, ... value])`
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
52
|
+
bytes.set(namespace);
|
|
53
|
+
bytes.set(value, namespace.length);
|
|
54
|
+
bytes = hashfunc(bytes);
|
|
55
|
+
bytes[6] = bytes[6] & 0x0f | version;
|
|
56
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
57
|
+
|
|
58
|
+
if (buf) {
|
|
59
|
+
offset = offset || 0;
|
|
60
|
+
|
|
61
|
+
for (let i = 0; i < 16; ++i) {
|
|
62
|
+
buf[offset + i] = bytes[i];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return buf;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return (0, _stringify.unsafeStringify)(bytes);
|
|
69
|
+
} // Function#name is not settable on some platforms (#270)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
try {
|
|
73
|
+
generateUUID.name = name; // eslint-disable-next-line no-empty
|
|
74
|
+
} catch (err) {} // For CommonJS default export support
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
generateUUID.DNS = DNS;
|
|
78
|
+
generateUUID.URL = URL;
|
|
79
|
+
return generateUUID;
|
|
80
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _native = _interopRequireDefault(require("./native.js"));
|
|
9
|
+
|
|
10
|
+
var _rng = _interopRequireDefault(require("./rng.js"));
|
|
11
|
+
|
|
12
|
+
var _stringify = require("./stringify.js");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function v4(options, buf, offset) {
|
|
17
|
+
if (_native.default.randomUUID && !buf && !options) {
|
|
18
|
+
return _native.default.randomUUID();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
options = options || {};
|
|
22
|
+
|
|
23
|
+
const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
27
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
28
|
+
|
|
29
|
+
if (buf) {
|
|
30
|
+
offset = offset || 0;
|
|
31
|
+
|
|
32
|
+
for (let i = 0; i < 16; ++i) {
|
|
33
|
+
buf[offset + i] = rnds[i];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return buf;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return (0, _stringify.unsafeStringify)(rnds);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var _default = v4;
|
|
43
|
+
exports.default = _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _v = _interopRequireDefault(require("./v35.js"));
|
|
9
|
+
|
|
10
|
+
var _sha = _interopRequireDefault(require("./sha1.js"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
const v5 = (0, _v.default)('v5', 0x50, _sha.default);
|
|
15
|
+
var _default = v5;
|
|
16
|
+
exports.default = _default;
|
package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/validate.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _regex = _interopRequireDefault(require("./regex.js"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function validate(uuid) {
|
|
13
|
+
return typeof uuid === 'string' && _regex.default.test(uuid);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var _default = validate;
|
|
17
|
+
exports.default = _default;
|
package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/version.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function version(uuid) {
|
|
13
|
+
if (!(0, _validate.default)(uuid)) {
|
|
14
|
+
throw TypeError('Invalid UUID');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var _default = version;
|
|
21
|
+
exports.default = _default;
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*/
|
|
21
21
|
function md5(bytes) {
|
|
22
22
|
if (typeof bytes === 'string') {
|
|
23
|
-
|
|
23
|
+
const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
24
24
|
|
|
25
25
|
bytes = new Uint8Array(msg.length);
|
|
26
26
|
|
|
27
|
-
for (
|
|
27
|
+
for (let i = 0; i < msg.length; ++i) {
|
|
28
28
|
bytes[i] = msg.charCodeAt(i);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -37,13 +37,13 @@ function md5(bytes) {
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
function md5ToHexEncodedArray(input) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
const output = [];
|
|
41
|
+
const length32 = input.length * 32;
|
|
42
|
+
const hexTab = '0123456789abcdef';
|
|
43
43
|
|
|
44
|
-
for (
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
for (let i = 0; i < length32; i += 8) {
|
|
45
|
+
const x = input[i >> 5] >>> i % 32 & 0xff;
|
|
46
|
+
const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
47
47
|
output.push(hex);
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -66,16 +66,16 @@ function wordsToMd5(x, len) {
|
|
|
66
66
|
/* append padding */
|
|
67
67
|
x[len >> 5] |= 0x80 << len % 32;
|
|
68
68
|
x[getOutputLength(len) - 1] = len;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
let a = 1732584193;
|
|
70
|
+
let b = -271733879;
|
|
71
|
+
let c = -1732584194;
|
|
72
|
+
let d = 271733878;
|
|
73
|
+
|
|
74
|
+
for (let i = 0; i < x.length; i += 16) {
|
|
75
|
+
const olda = a;
|
|
76
|
+
const oldb = b;
|
|
77
|
+
const oldc = c;
|
|
78
|
+
const oldd = d;
|
|
79
79
|
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
80
80
|
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
81
81
|
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
@@ -159,10 +159,10 @@ function bytesToWords(input) {
|
|
|
159
159
|
return [];
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
const length8 = input.length * 8;
|
|
163
|
+
const output = new Uint32Array(getOutputLength(length8));
|
|
164
164
|
|
|
165
|
-
for (
|
|
165
|
+
for (let i = 0; i < length8; i += 8) {
|
|
166
166
|
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -175,8 +175,8 @@ function bytesToWords(input) {
|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
function safeAdd(x, y) {
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
const lsw = (x & 0xffff) + (y & 0xffff);
|
|
179
|
+
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
180
180
|
return msw << 16 | lsw & 0xffff;
|
|
181
181
|
}
|
|
182
182
|
/*
|
|
@@ -5,8 +5,8 @@ function parse(uuid) {
|
|
|
5
5
|
throw TypeError('Invalid UUID');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
let v;
|
|
9
|
+
const arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
10
10
|
|
|
11
11
|
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
12
12
|
arr[1] = v >>> 16 & 0xff;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
2
2
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
3
3
|
// generators (like Math.random()).
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
let getRandomValues;
|
|
5
|
+
const rnds8 = new Uint8Array(16);
|
|
6
6
|
export default function rng() {
|
|
7
7
|
// lazy load so that environments that need to polyfill have a chance to do so
|
|
8
8
|
if (!getRandomValues) {
|
|
9
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10
|
-
|
|
11
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
9
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
12
11
|
|
|
13
12
|
if (!getRandomValues) {
|
|
14
13
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
@@ -21,15 +21,15 @@ function ROTL(x, n) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function sha1(bytes) {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
25
|
+
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
26
26
|
|
|
27
27
|
if (typeof bytes === 'string') {
|
|
28
|
-
|
|
28
|
+
const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
29
29
|
|
|
30
30
|
bytes = [];
|
|
31
31
|
|
|
32
|
-
for (
|
|
32
|
+
for (let i = 0; i < msg.length; ++i) {
|
|
33
33
|
bytes.push(msg.charCodeAt(i));
|
|
34
34
|
}
|
|
35
35
|
} else if (!Array.isArray(bytes)) {
|
|
@@ -38,44 +38,44 @@ function sha1(bytes) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
bytes.push(0x80);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
const l = bytes.length / 4 + 2;
|
|
42
|
+
const N = Math.ceil(l / 16);
|
|
43
|
+
const M = new Array(N);
|
|
44
44
|
|
|
45
|
-
for (
|
|
46
|
-
|
|
45
|
+
for (let i = 0; i < N; ++i) {
|
|
46
|
+
const arr = new Uint32Array(16);
|
|
47
47
|
|
|
48
|
-
for (
|
|
49
|
-
arr[j] = bytes[
|
|
48
|
+
for (let j = 0; j < 16; ++j) {
|
|
49
|
+
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
M[
|
|
52
|
+
M[i] = arr;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
56
56
|
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
57
57
|
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
58
58
|
|
|
59
|
-
for (
|
|
60
|
-
|
|
59
|
+
for (let i = 0; i < N; ++i) {
|
|
60
|
+
const W = new Uint32Array(80);
|
|
61
61
|
|
|
62
|
-
for (
|
|
63
|
-
W[t] = M[
|
|
62
|
+
for (let t = 0; t < 16; ++t) {
|
|
63
|
+
W[t] = M[i][t];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
for (
|
|
67
|
-
W[
|
|
66
|
+
for (let t = 16; t < 80; ++t) {
|
|
67
|
+
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
let a = H[0];
|
|
71
|
+
let b = H[1];
|
|
72
|
+
let c = H[2];
|
|
73
|
+
let d = H[3];
|
|
74
|
+
let e = H[4];
|
|
75
75
|
|
|
76
|
-
for (
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
for (let t = 0; t < 80; ++t) {
|
|
77
|
+
const s = Math.floor(t / 20);
|
|
78
|
+
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
|
79
79
|
e = d;
|
|
80
80
|
d = c;
|
|
81
81
|
c = ROTL(b, 30) >>> 0;
|
package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js
CHANGED
|
@@ -4,17 +4,20 @@ import validate from './validate.js';
|
|
|
4
4
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const byteToHex = [];
|
|
8
8
|
|
|
9
|
-
for (
|
|
10
|
-
byteToHex.push((i + 0x100).toString(16).
|
|
9
|
+
for (let i = 0; i < 256; ++i) {
|
|
10
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function
|
|
14
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
13
|
+
export function unsafeStringify(arr, offset = 0) {
|
|
15
14
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
16
15
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
17
|
-
|
|
16
|
+
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]];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function stringify(arr, offset = 0) {
|
|
20
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
18
21
|
// of the following:
|
|
19
22
|
// - One or more input array values don't map to a hex octet (leading to
|
|
20
23
|
// "undefined" in the uuid)
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import rng from './rng.js';
|
|
2
|
-
import
|
|
2
|
+
import { unsafeStringify } from './stringify.js'; // **`v1()` - Generate time-based UUID**
|
|
3
3
|
//
|
|
4
4
|
// Inspired by https://github.com/LiosK/UUID.js
|
|
5
5
|
// and http://docs.python.org/library/uuid.html
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
let _nodeId;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
let _clockseq; // Previous uuid creation time
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
let _lastMSecs = 0;
|
|
13
|
+
let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
14
14
|
|
|
15
15
|
function v1(options, buf, offset) {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
let i = buf && offset || 0;
|
|
17
|
+
const b = buf || new Array(16);
|
|
18
18
|
options = options || {};
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
let node = options.node || _nodeId;
|
|
20
|
+
let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
|
21
21
|
// specified. We do this lazily to minimize issues related to insufficient
|
|
22
22
|
// system entropy. See #189
|
|
23
23
|
|
|
24
24
|
if (node == null || clockseq == null) {
|
|
25
|
-
|
|
25
|
+
const seedBytes = options.random || (options.rng || rng)();
|
|
26
26
|
|
|
27
27
|
if (node == null) {
|
|
28
28
|
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
@@ -39,12 +39,12 @@ function v1(options, buf, offset) {
|
|
|
39
39
|
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
43
43
|
// cycle to simulate higher resolution clock
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
48
48
|
|
|
49
49
|
if (dt < 0 && options.clockseq === undefined) {
|
|
50
50
|
clockseq = clockseq + 1 & 0x3fff;
|
|
@@ -67,13 +67,13 @@ function v1(options, buf, offset) {
|
|
|
67
67
|
|
|
68
68
|
msecs += 12219292800000; // `time_low`
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
71
71
|
b[i++] = tl >>> 24 & 0xff;
|
|
72
72
|
b[i++] = tl >>> 16 & 0xff;
|
|
73
73
|
b[i++] = tl >>> 8 & 0xff;
|
|
74
74
|
b[i++] = tl & 0xff; // `time_mid`
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
77
77
|
b[i++] = tmh >>> 8 & 0xff;
|
|
78
78
|
b[i++] = tmh & 0xff; // `time_high_and_version`
|
|
79
79
|
|
|
@@ -85,11 +85,11 @@ function v1(options, buf, offset) {
|
|
|
85
85
|
|
|
86
86
|
b[i++] = clockseq & 0xff; // `node`
|
|
87
87
|
|
|
88
|
-
for (
|
|
88
|
+
for (let n = 0; n < 6; ++n) {
|
|
89
89
|
b[i + n] = node[n];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
return buf ||
|
|
92
|
+
return buf || unsafeStringify(b);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export default v1;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { unsafeStringify } from './stringify.js';
|
|
2
2
|
import parse from './parse.js';
|
|
3
3
|
|
|
4
4
|
function stringToBytes(str) {
|
|
5
5
|
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const bytes = [];
|
|
8
8
|
|
|
9
|
-
for (
|
|
9
|
+
for (let i = 0; i < str.length; ++i) {
|
|
10
10
|
bytes.push(str.charCodeAt(i));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
return bytes;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export default function (name, version, hashfunc) {
|
|
16
|
+
export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
17
|
+
export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
18
|
+
export default function v35(name, version, hashfunc) {
|
|
19
19
|
function generateUUID(value, namespace, buf, offset) {
|
|
20
|
+
var _namespace;
|
|
21
|
+
|
|
20
22
|
if (typeof value === 'string') {
|
|
21
23
|
value = stringToBytes(value);
|
|
22
24
|
}
|
|
@@ -25,14 +27,14 @@ export default function (name, version, hashfunc) {
|
|
|
25
27
|
namespace = parse(namespace);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
if (namespace.length !== 16) {
|
|
30
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
29
31
|
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
30
32
|
} // Compute hash of namespace and value, Per 4.3
|
|
31
33
|
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
32
34
|
// hashfunc([...namespace, ... value])`
|
|
33
35
|
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
36
38
|
bytes.set(namespace);
|
|
37
39
|
bytes.set(value, namespace.length);
|
|
38
40
|
bytes = hashfunc(bytes);
|
|
@@ -42,14 +44,14 @@ export default function (name, version, hashfunc) {
|
|
|
42
44
|
if (buf) {
|
|
43
45
|
offset = offset || 0;
|
|
44
46
|
|
|
45
|
-
for (
|
|
47
|
+
for (let i = 0; i < 16; ++i) {
|
|
46
48
|
buf[offset + i] = bytes[i];
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
return buf;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
return
|
|
54
|
+
return unsafeStringify(bytes);
|
|
53
55
|
} // Function#name is not settable on some platforms (#270)
|
|
54
56
|
|
|
55
57
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import native from './native.js';
|
|
1
2
|
import rng from './rng.js';
|
|
2
|
-
import
|
|
3
|
+
import { unsafeStringify } from './stringify.js';
|
|
3
4
|
|
|
4
5
|
function v4(options, buf, offset) {
|
|
6
|
+
if (native.randomUUID && !buf && !options) {
|
|
7
|
+
return native.randomUUID();
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
options = options || {};
|
|
6
|
-
|
|
11
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
7
12
|
|
|
8
13
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
9
14
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
@@ -11,14 +16,14 @@ function v4(options, buf, offset) {
|
|
|
11
16
|
if (buf) {
|
|
12
17
|
offset = offset || 0;
|
|
13
18
|
|
|
14
|
-
for (
|
|
19
|
+
for (let i = 0; i < 16; ++i) {
|
|
15
20
|
buf[offset + i] = rnds[i];
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
return buf;
|
|
19
24
|
}
|
|
20
25
|
|
|
21
|
-
return
|
|
26
|
+
return unsafeStringify(rnds);
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export default v4;
|
|
@@ -7,13 +7,17 @@ import validate from './validate.js';
|
|
|
7
7
|
const byteToHex = [];
|
|
8
8
|
|
|
9
9
|
for (let i = 0; i < 256; ++i) {
|
|
10
|
-
byteToHex.push((i + 0x100).toString(16).
|
|
10
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function
|
|
13
|
+
export function unsafeStringify(arr, offset = 0) {
|
|
14
14
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
15
15
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
16
|
-
|
|
16
|
+
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]];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function stringify(arr, offset = 0) {
|
|
20
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
17
21
|
// of the following:
|
|
18
22
|
// - One or more input array values don't map to a hex octet (leading to
|
|
19
23
|
// "undefined" in the uuid)
|