@cdk8s/awscdk-resolver 0.0.368 → 0.0.370

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.
Files changed (118) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -14
  6. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  7. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -38
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +1 -8
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +0 -4
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +0 -6
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +10 -6
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +0 -6
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +3 -0
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -9
  16. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +0 -2
  17. package/node_modules/@aws-sdk/core/package.json +3 -4
  18. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  19. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  20. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  21. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  22. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  23. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  24. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  25. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  26. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +29 -2
  27. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +13 -0
  28. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +2 -0
  29. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +36 -3
  33. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +15 -0
  34. package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
  35. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  36. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  37. package/package.json +4 -4
  38. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/CHANGELOG.md +0 -274
  39. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/CONTRIBUTING.md +0 -18
  40. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/LICENSE.md +0 -9
  41. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/README.md +0 -466
  42. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/bin/uuid +0 -2
  43. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  44. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  45. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  46. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  47. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  48. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  49. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  50. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  51. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  52. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  53. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  54. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  55. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  56. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  57. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  58. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  59. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/index.js +0 -9
  60. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  61. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/native.js +0 -4
  62. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  63. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  64. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  65. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  66. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  67. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  68. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  69. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  70. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  71. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  72. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  73. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  74. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/version.js +0 -11
  75. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/index.js +0 -9
  76. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/md5.js +0 -13
  77. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/native.js +0 -4
  78. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/nil.js +0 -1
  79. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/parse.js +0 -35
  80. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/regex.js +0 -1
  81. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/rng.js +0 -12
  82. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  83. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  84. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v1.js +0 -95
  85. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v3.js +0 -4
  86. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v35.js +0 -66
  87. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v4.js +0 -29
  88. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v5.js +0 -4
  89. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/validate.js +0 -7
  90. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/version.js +0 -11
  91. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/index.js +0 -79
  92. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/md5-browser.js +0 -223
  93. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/md5.js +0 -23
  94. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/native-browser.js +0 -11
  95. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/native.js +0 -15
  96. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/nil.js +0 -8
  97. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/parse.js +0 -45
  98. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/regex.js +0 -8
  99. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/rng-browser.js +0 -25
  100. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/rng.js +0 -24
  101. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/sha1-browser.js +0 -104
  102. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/sha1.js +0 -23
  103. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/stringify.js +0 -44
  104. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/uuid-bin.js +0 -85
  105. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v1.js +0 -107
  106. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v3.js +0 -16
  107. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v35.js +0 -80
  108. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v4.js +0 -43
  109. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v5.js +0 -16
  110. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/validate.js +0 -17
  111. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/version.js +0 -21
  112. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/package.json +0 -135
  113. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/wrapper.mjs +0 -10
  114. package/node_modules/@types/uuid/LICENSE +0 -21
  115. package/node_modules/@types/uuid/README.md +0 -15
  116. package/node_modules/@types/uuid/index.d.mts +0 -12
  117. package/node_modules/@types/uuid/index.d.ts +0 -86
  118. package/node_modules/@types/uuid/package.json +0 -54
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _rng = _interopRequireDefault(require("./rng.js"));
9
-
10
- var _stringify = require("./stringify.js");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- // **`v1()` - Generate time-based UUID**
15
- //
16
- // Inspired by https://github.com/LiosK/UUID.js
17
- // and http://docs.python.org/library/uuid.html
18
- let _nodeId;
19
-
20
- let _clockseq; // Previous uuid creation time
21
-
22
-
23
- let _lastMSecs = 0;
24
- let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
25
-
26
- function v1(options, buf, offset) {
27
- let i = buf && offset || 0;
28
- const b = buf || new Array(16);
29
- options = options || {};
30
- let node = options.node || _nodeId;
31
- let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
32
- // specified. We do this lazily to minimize issues related to insufficient
33
- // system entropy. See #189
34
-
35
- if (node == null || clockseq == null) {
36
- const seedBytes = options.random || (options.rng || _rng.default)();
37
-
38
- if (node == null) {
39
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
40
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
41
- }
42
-
43
- if (clockseq == null) {
44
- // Per 4.2.2, randomize (14 bit) clockseq
45
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
46
- }
47
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
48
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
49
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
50
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
51
-
52
-
53
- let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
54
- // cycle to simulate higher resolution clock
55
-
56
- let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
57
-
58
- const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
59
-
60
- if (dt < 0 && options.clockseq === undefined) {
61
- clockseq = clockseq + 1 & 0x3fff;
62
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
63
- // time interval
64
-
65
-
66
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
67
- nsecs = 0;
68
- } // Per 4.2.1.2 Throw error if too many uuids are requested
69
-
70
-
71
- if (nsecs >= 10000) {
72
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
73
- }
74
-
75
- _lastMSecs = msecs;
76
- _lastNSecs = nsecs;
77
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
78
-
79
- msecs += 12219292800000; // `time_low`
80
-
81
- const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
82
- b[i++] = tl >>> 24 & 0xff;
83
- b[i++] = tl >>> 16 & 0xff;
84
- b[i++] = tl >>> 8 & 0xff;
85
- b[i++] = tl & 0xff; // `time_mid`
86
-
87
- const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
88
- b[i++] = tmh >>> 8 & 0xff;
89
- b[i++] = tmh & 0xff; // `time_high_and_version`
90
-
91
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
92
-
93
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
94
-
95
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
96
-
97
- b[i++] = clockseq & 0xff; // `node`
98
-
99
- for (let n = 0; n < 6; ++n) {
100
- b[i + n] = node[n];
101
- }
102
-
103
- return buf || (0, _stringify.unsafeStringify)(b);
104
- }
105
-
106
- var _default = v1;
107
- exports.default = _default;
@@ -1,16 +0,0 @@
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 _md = _interopRequireDefault(require("./md5.js"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- const v3 = (0, _v.default)('v3', 0x30, _md.default);
15
- var _default = v3;
16
- exports.default = _default;
@@ -1,80 +0,0 @@
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
- }
@@ -1,43 +0,0 @@
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;
@@ -1,16 +0,0 @@
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;
@@ -1,17 +0,0 @@
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;
@@ -1,21 +0,0 @@
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;
@@ -1,135 +0,0 @@
1
- {
2
- "name": "uuid",
3
- "version": "9.0.1",
4
- "description": "RFC4122 (v1, v4, and v5) UUIDs",
5
- "funding": [
6
- "https://github.com/sponsors/broofa",
7
- "https://github.com/sponsors/ctavan"
8
- ],
9
- "commitlint": {
10
- "extends": [
11
- "@commitlint/config-conventional"
12
- ]
13
- },
14
- "keywords": [
15
- "uuid",
16
- "guid",
17
- "rfc4122"
18
- ],
19
- "license": "MIT",
20
- "bin": {
21
- "uuid": "./dist/bin/uuid"
22
- },
23
- "sideEffects": false,
24
- "main": "./dist/index.js",
25
- "exports": {
26
- ".": {
27
- "node": {
28
- "module": "./dist/esm-node/index.js",
29
- "require": "./dist/index.js",
30
- "import": "./wrapper.mjs"
31
- },
32
- "browser": {
33
- "import": "./dist/esm-browser/index.js",
34
- "require": "./dist/commonjs-browser/index.js"
35
- },
36
- "default": "./dist/esm-browser/index.js"
37
- },
38
- "./package.json": "./package.json"
39
- },
40
- "module": "./dist/esm-node/index.js",
41
- "browser": {
42
- "./dist/md5.js": "./dist/md5-browser.js",
43
- "./dist/native.js": "./dist/native-browser.js",
44
- "./dist/rng.js": "./dist/rng-browser.js",
45
- "./dist/sha1.js": "./dist/sha1-browser.js",
46
- "./dist/esm-node/index.js": "./dist/esm-browser/index.js"
47
- },
48
- "files": [
49
- "CHANGELOG.md",
50
- "CONTRIBUTING.md",
51
- "LICENSE.md",
52
- "README.md",
53
- "dist",
54
- "wrapper.mjs"
55
- ],
56
- "devDependencies": {
57
- "@babel/cli": "7.18.10",
58
- "@babel/core": "7.18.10",
59
- "@babel/eslint-parser": "7.18.9",
60
- "@babel/preset-env": "7.18.10",
61
- "@commitlint/cli": "17.0.3",
62
- "@commitlint/config-conventional": "17.0.3",
63
- "bundlewatch": "0.3.3",
64
- "eslint": "8.21.0",
65
- "eslint-config-prettier": "8.5.0",
66
- "eslint-config-standard": "17.0.0",
67
- "eslint-plugin-import": "2.26.0",
68
- "eslint-plugin-node": "11.1.0",
69
- "eslint-plugin-prettier": "4.2.1",
70
- "eslint-plugin-promise": "6.0.0",
71
- "husky": "8.0.1",
72
- "jest": "28.1.3",
73
- "lint-staged": "13.0.3",
74
- "npm-run-all": "4.1.5",
75
- "optional-dev-dependency": "2.0.1",
76
- "prettier": "2.7.1",
77
- "random-seed": "0.3.0",
78
- "runmd": "1.3.9",
79
- "standard-version": "9.5.0"
80
- },
81
- "optionalDevDependencies": {
82
- "@wdio/browserstack-service": "7.16.10",
83
- "@wdio/cli": "7.16.10",
84
- "@wdio/jasmine-framework": "7.16.6",
85
- "@wdio/local-runner": "7.16.10",
86
- "@wdio/spec-reporter": "7.16.9",
87
- "@wdio/static-server-service": "7.16.6"
88
- },
89
- "scripts": {
90
- "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
91
- "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
92
- "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
93
- "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
94
- "examples:node:jest:test": "cd examples/node-jest && npm install && npm test",
95
- "prepare": "cd $( git rev-parse --show-toplevel ) && husky install",
96
- "lint": "npm run eslint:check && npm run prettier:check",
97
- "eslint:check": "eslint src/ test/ examples/ *.js",
98
- "eslint:fix": "eslint --fix src/ test/ examples/ *.js",
99
- "pretest": "[ -n $CI ] || npm run build",
100
- "test": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/",
101
- "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
102
- "test:browser": "wdio run ./wdio.conf.js",
103
- "pretest:node": "npm run build",
104
- "test:node": "npm-run-all --parallel examples:node:**",
105
- "test:pack": "./scripts/testpack.sh",
106
- "pretest:benchmark": "npm run build",
107
- "test:benchmark": "cd examples/benchmark && npm install && npm test",
108
- "prettier:check": "prettier --check '**/*.{js,jsx,json,md}'",
109
- "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
110
- "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
111
- "md": "runmd --watch --output=README.md README_js.md",
112
- "docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
113
- "docs:diff": "npm run docs && git diff --quiet README.md",
114
- "build": "./scripts/build.sh",
115
- "prepack": "npm run build",
116
- "release": "standard-version --no-verify"
117
- },
118
- "repository": {
119
- "type": "git",
120
- "url": "https://github.com/uuidjs/uuid.git"
121
- },
122
- "lint-staged": {
123
- "*.{js,jsx,json,md}": [
124
- "prettier --write"
125
- ],
126
- "*.{js,jsx}": [
127
- "eslint --fix"
128
- ]
129
- },
130
- "standard-version": {
131
- "scripts": {
132
- "postchangelog": "prettier --write CHANGELOG.md"
133
- }
134
- }
135
- }
@@ -1,10 +0,0 @@
1
- import uuid from './dist/index.js';
2
- export const v1 = uuid.v1;
3
- export const v3 = uuid.v3;
4
- export const v4 = uuid.v4;
5
- export const v5 = uuid.v5;
6
- export const NIL = uuid.NIL;
7
- export const version = uuid.version;
8
- export const validate = uuid.validate;
9
- export const stringify = uuid.stringify;
10
- export const parse = uuid.parse;
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,15 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/uuid`
3
-
4
- # Summary
5
- This package contains type definitions for uuid (https://github.com/uuidjs/uuid).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid.
9
-
10
- ### Additional Details
11
- * Last updated: Thu, 25 Jan 2024 23:07:19 GMT
12
- * Dependencies: none
13
-
14
- # Credits
15
- These definitions were written by [Oliver Hoffmann](https://github.com/iamolivinius), [Felipe Ochoa](https://github.com/felipeochoa), [Chris Barth](https://github.com/cjbarth), [Linus Unnebäck](https://github.com/LinusU), and [Christoph Tavan](https://github.com/ctavan).
@@ -1,12 +0,0 @@
1
- import uuid from "./index.js";
2
- export import v1 = uuid.v1;
3
- export import v3 = uuid.v3;
4
- export import v4 = uuid.v4;
5
- export import v5 = uuid.v5;
6
- export import NIL = uuid.NIL;
7
- export import version = uuid.version;
8
- export import validate = uuid.validate;
9
- export import stringify = uuid.stringify;
10
- export import parse = uuid.parse;
11
- export import V1Options = uuid.V1Options;
12
- export import V4Options = uuid.V4Options;
@@ -1,86 +0,0 @@
1
- // disable automatic export
2
- export {};
3
-
4
- // Uses ArrayLike to admit Uint8 and co.
5
- type OutputBuffer = ArrayLike<number>;
6
- type InputBuffer = ArrayLike<number>;
7
-
8
- interface RandomOptions {
9
- /** `Array` of 16 random bytes (0-255) */
10
- random?: InputBuffer | undefined;
11
- }
12
- interface RngOptions {
13
- /** Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) */
14
- rng?: (() => InputBuffer) | undefined;
15
- }
16
-
17
- interface V1BaseOptions {
18
- /** RFC "node" field as an `Array[6]` of byte values (per 4.1.6) */
19
- node?: InputBuffer | undefined;
20
- /** RFC "clock sequence" as a `Number` between 0 - 0x3fff */
21
- clockseq?: number | undefined;
22
- /** RFC "timestamp" field (`Number` of milliseconds, unix epoch) */
23
- msecs?: number | Date | undefined;
24
- /** RFC "timestamp" field (`Number` of nanoseconds to add to msecs, should be 0-10,000) */
25
- nsecs?: number | undefined;
26
- }
27
- interface V1RandomOptions extends V1BaseOptions, RandomOptions {}
28
- interface V1RngOptions extends V1BaseOptions, RngOptions {}
29
-
30
- export type V1Options = V1RandomOptions | V1RngOptions;
31
- export type V4Options = RandomOptions | RngOptions;
32
-
33
- type v1String = (options?: V1Options) => string;
34
- type v1Buffer = <T extends OutputBuffer>(options: V1Options | null | undefined, buffer: T, offset?: number) => T;
35
- type v1 = v1Buffer & v1String;
36
-
37
- type v4String = (options?: V4Options) => string;
38
- type v4Buffer = <T extends OutputBuffer>(options: V4Options | null | undefined, buffer: T, offset?: number) => T;
39
- type v4 = v4Buffer & v4String;
40
-
41
- type v3String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
42
- type v3Buffer = <T extends OutputBuffer>(
43
- name: string | InputBuffer,
44
- namespace: string | InputBuffer,
45
- buffer: T,
46
- offset?: number,
47
- ) => T;
48
- interface v3Static {
49
- // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L16
50
- DNS: string;
51
- // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L17
52
- URL: string;
53
- }
54
- type v3 = v3Buffer & v3String & v3Static;
55
-
56
- type v5String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
57
- type v5Buffer = <T extends OutputBuffer>(
58
- name: string | InputBuffer,
59
- namespace: string | InputBuffer,
60
- buffer: T,
61
- offset?: number,
62
- ) => T;
63
- interface v5Static {
64
- // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L16
65
- DNS: string;
66
- // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L17
67
- URL: string;
68
- }
69
- type v5 = v5Buffer & v5String & v5Static;
70
-
71
- type NIL = string;
72
-
73
- type parse = (uuid: string) => Uint8Array;
74
- type stringify = (buffer: InputBuffer, offset?: number) => string;
75
- type validate = (uuid: string) => boolean;
76
- type version = (uuid: string) => number;
77
-
78
- export const NIL: NIL;
79
- export const parse: parse;
80
- export const stringify: stringify;
81
- export const v1: v1;
82
- export const v3: v3;
83
- export const v4: v4;
84
- export const v5: v5;
85
- export const validate: validate;
86
- export const version: version;
@@ -1,54 +0,0 @@
1
- {
2
- "name": "@types/uuid",
3
- "version": "9.0.8",
4
- "description": "TypeScript definitions for uuid",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Oliver Hoffmann",
10
- "githubUsername": "iamolivinius",
11
- "url": "https://github.com/iamolivinius"
12
- },
13
- {
14
- "name": "Felipe Ochoa",
15
- "githubUsername": "felipeochoa",
16
- "url": "https://github.com/felipeochoa"
17
- },
18
- {
19
- "name": "Chris Barth",
20
- "githubUsername": "cjbarth",
21
- "url": "https://github.com/cjbarth"
22
- },
23
- {
24
- "name": "Linus Unnebäck",
25
- "githubUsername": "LinusU",
26
- "url": "https://github.com/LinusU"
27
- },
28
- {
29
- "name": "Christoph Tavan",
30
- "githubUsername": "ctavan",
31
- "url": "https://github.com/ctavan"
32
- }
33
- ],
34
- "main": "",
35
- "types": "index.d.ts",
36
- "exports": {
37
- "./package.json": "./package.json",
38
- ".": {
39
- "types": {
40
- "import": "./index.d.mts",
41
- "default": "./index.d.ts"
42
- }
43
- }
44
- },
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
48
- "directory": "types/uuid"
49
- },
50
- "scripts": {},
51
- "dependencies": {},
52
- "typesPublisherContentHash": "ee6ba7ad17fbbead7a508faf213a9ad0f49c12929e8c6b0f05fb35129bc72d61",
53
- "typeScriptVersion": "4.6"
54
- }