@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.
Files changed (156) hide show
  1. package/.jsii +2 -2
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@smithy/core/package.json +4 -4
  8. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +3 -3
  9. package/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +3 -3
  10. package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
  11. package/node_modules/@smithy/middleware-retry/node_modules/uuid/CHANGELOG.md +45 -0
  12. package/node_modules/@smithy/middleware-retry/node_modules/uuid/README.md +36 -75
  13. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  14. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  15. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  16. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  17. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  18. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  19. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  20. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  21. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  22. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  23. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  24. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  25. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  26. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  27. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  28. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  29. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  30. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/native.js +4 -0
  31. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  32. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  33. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  34. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  35. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  36. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  37. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  38. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  39. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  40. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/version.js +1 -1
  41. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/native.js +4 -0
  42. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  43. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v1.js +2 -2
  44. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v35.js +6 -4
  45. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v4.js +7 -2
  46. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/version.js +1 -1
  47. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/index.js +18 -18
  48. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native-browser.js +11 -0
  49. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native.js +15 -0
  50. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng-browser.js +2 -3
  51. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/stringify.js +8 -3
  52. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v1.js +2 -2
  53. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v35.js +7 -5
  54. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v4.js +8 -2
  55. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/version.js +1 -1
  56. package/node_modules/@smithy/middleware-retry/node_modules/uuid/package.json +41 -41
  57. package/node_modules/@smithy/middleware-retry/package.json +3 -3
  58. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +128 -7
  59. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +125 -0
  60. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +4 -4
  61. package/node_modules/@smithy/signature-v4/dist-types/HeaderFormatter.d.ts +24 -0
  62. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
  63. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +24 -0
  64. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
  65. package/node_modules/@smithy/signature-v4/package.json +1 -2
  66. package/node_modules/@smithy/smithy-client/package.json +2 -2
  67. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  68. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  69. package/package.json +4 -4
  70. package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -76
  71. package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
  72. package/node_modules/@aws-crypto/crc32/README.md +0 -16
  73. package/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts +0 -7
  74. package/node_modules/@aws-crypto/crc32/build/aws_crc32.js +0 -31
  75. package/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map +0 -1
  76. package/node_modules/@aws-crypto/crc32/build/index.d.ts +0 -7
  77. package/node_modules/@aws-crypto/crc32/build/index.js +0 -108
  78. package/node_modules/@aws-crypto/crc32/build/index.js.map +0 -1
  79. package/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +0 -15
  80. package/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +0 -12
  81. package/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +0 -142
  82. package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js +0 -51
  83. package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +0 -3
  84. package/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +0 -37
  85. package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
  86. package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
  87. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts +0 -37
  88. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +0 -1
  89. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +0 -218
  90. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +0 -1
  91. package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js +0 -284
  92. package/node_modules/@aws-crypto/crc32/package.json +0 -28
  93. package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
  94. package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
  95. package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -23
  96. package/node_modules/@smithy/eventstream-codec/LICENSE +0 -201
  97. package/node_modules/@smithy/eventstream-codec/README.md +0 -4
  98. package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +0 -1
  99. package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +0 -1
  100. package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +0 -1
  101. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +0 -1
  102. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +0 -1
  103. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +0 -1
  104. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +0 -1
  105. package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +0 -1
  106. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +0 -468
  107. package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +0 -1
  108. package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +0 -1
  109. package/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +0 -62
  110. package/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +0 -182
  111. package/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +0 -43
  112. package/node_modules/@smithy/eventstream-codec/dist-es/Message.js +0 -1
  113. package/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +0 -14
  114. package/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +0 -17
  115. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +0 -16
  116. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +0 -14
  117. package/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js +0 -690
  118. package/node_modules/@smithy/eventstream-codec/dist-es/index.js +0 -8
  119. package/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js +0 -30
  120. package/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js +0 -1
  121. package/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +0 -31
  122. package/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +0 -12
  123. package/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +0 -20
  124. package/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +0 -26
  125. package/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +0 -17
  126. package/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +0 -18
  127. package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +0 -17
  128. package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +0 -17
  129. package/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +0 -2
  130. package/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts +0 -8
  131. package/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts +0 -11
  132. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +0 -31
  133. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +0 -12
  134. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +0 -20
  135. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +0 -26
  136. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +0 -17
  137. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +0 -18
  138. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +0 -17
  139. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +0 -17
  140. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +0 -2
  141. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +0 -8
  142. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +0 -11
  143. package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +0 -12
  144. package/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +0 -12
  145. package/node_modules/@smithy/eventstream-codec/package.json +0 -61
  146. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  147. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  148. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  149. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  150. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  151. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  152. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  153. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  154. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  155. package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  156. /package/node_modules/@smithy/{eventstream-codec/dist-cjs/EventStreamCodec.js → signature-v4/dist-cjs/HeaderFormatter.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import rng from './rng.js';
2
- import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**
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
@@ -89,7 +89,7 @@ function v1(options, buf, offset) {
89
89
  b[i + n] = node[n];
90
90
  }
91
91
 
92
- return buf || stringify(b);
92
+ return buf || unsafeStringify(b);
93
93
  }
94
94
 
95
95
  export default v1;
@@ -1,4 +1,4 @@
1
- import stringify from './stringify.js';
1
+ import { unsafeStringify } from './stringify.js';
2
2
  import parse from './parse.js';
3
3
 
4
4
  function stringToBytes(str) {
@@ -15,8 +15,10 @@ function stringToBytes(str) {
15
15
 
16
16
  export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
17
17
  export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
18
- export default function (name, version, hashfunc) {
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,7 +27,7 @@ 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 =
@@ -49,7 +51,7 @@ export default function (name, version, hashfunc) {
49
51
  return buf;
50
52
  }
51
53
 
52
- return stringify(bytes);
54
+ return unsafeStringify(bytes);
53
55
  } // Function#name is not settable on some platforms (#270)
54
56
 
55
57
 
@@ -1,7 +1,12 @@
1
+ import native from './native.js';
1
2
  import rng from './rng.js';
2
- import stringify from './stringify.js';
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
 
@@ -18,7 +23,7 @@ function v4(options, buf, offset) {
18
23
  return buf;
19
24
  }
20
25
 
21
- return stringify(rnds);
26
+ return unsafeStringify(rnds);
22
27
  }
23
28
 
24
29
  export default v4;
@@ -5,7 +5,7 @@ function version(uuid) {
5
5
  throw TypeError('Invalid UUID');
6
6
  }
7
7
 
8
- return parseInt(uuid.substr(14, 1), 16);
8
+ return parseInt(uuid.slice(14, 15), 16);
9
9
  }
10
10
 
11
11
  export default version;
@@ -3,58 +3,58 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "v1", {
6
+ Object.defineProperty(exports, "NIL", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.default;
9
+ return _nil.default;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "v3", {
12
+ Object.defineProperty(exports, "parse", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _v2.default;
15
+ return _parse.default;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "v4", {
18
+ Object.defineProperty(exports, "stringify", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _v3.default;
21
+ return _stringify.default;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "v5", {
24
+ Object.defineProperty(exports, "v1", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _v4.default;
27
+ return _v.default;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "NIL", {
30
+ Object.defineProperty(exports, "v3", {
31
31
  enumerable: true,
32
32
  get: function () {
33
- return _nil.default;
33
+ return _v2.default;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "version", {
36
+ Object.defineProperty(exports, "v4", {
37
37
  enumerable: true,
38
38
  get: function () {
39
- return _version.default;
39
+ return _v3.default;
40
40
  }
41
41
  });
42
- Object.defineProperty(exports, "validate", {
42
+ Object.defineProperty(exports, "v5", {
43
43
  enumerable: true,
44
44
  get: function () {
45
- return _validate.default;
45
+ return _v4.default;
46
46
  }
47
47
  });
48
- Object.defineProperty(exports, "stringify", {
48
+ Object.defineProperty(exports, "validate", {
49
49
  enumerable: true,
50
50
  get: function () {
51
- return _stringify.default;
51
+ return _validate.default;
52
52
  }
53
53
  });
54
- Object.defineProperty(exports, "parse", {
54
+ Object.defineProperty(exports, "version", {
55
55
  enumerable: true,
56
56
  get: function () {
57
- return _parse.default;
57
+ return _version.default;
58
58
  }
59
59
  });
60
60
 
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
8
+ var _default = {
9
+ randomUUID
10
+ };
11
+ exports.default = _default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _crypto = _interopRequireDefault(require("crypto"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ var _default = {
13
+ randomUUID: _crypto.default.randomUUID
14
+ };
15
+ exports.default = _default;
@@ -13,9 +13,8 @@ const rnds8 = new Uint8Array(16);
13
13
  function rng() {
14
14
  // lazy load so that environments that need to polyfill have a chance to do so
15
15
  if (!getRandomValues) {
16
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
17
- // find the complete implementation of crypto (msCrypto) on IE11.
18
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
16
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
17
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
19
18
 
20
19
  if (!getRandomValues) {
21
20
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ exports.unsafeStringify = unsafeStringify;
7
8
 
8
9
  var _validate = _interopRequireDefault(require("./validate.js"));
9
10
 
@@ -16,13 +17,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
17
  const byteToHex = [];
17
18
 
18
19
  for (let i = 0; i < 256; ++i) {
19
- byteToHex.push((i + 0x100).toString(16).substr(1));
20
+ byteToHex.push((i + 0x100).toString(16).slice(1));
20
21
  }
21
22
 
22
- function stringify(arr, offset = 0) {
23
+ function unsafeStringify(arr, offset = 0) {
23
24
  // Note: Be careful editing this code! It's been tuned for performance
24
25
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
25
- const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
26
+ 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]];
27
+ }
28
+
29
+ function stringify(arr, offset = 0) {
30
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
26
31
  // of the following:
27
32
  // - One or more input array values don't map to a hex octet (leading to
28
33
  // "undefined" in the uuid)
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _rng = _interopRequireDefault(require("./rng.js"));
9
9
 
10
- var _stringify = _interopRequireDefault(require("./stringify.js"));
10
+ var _stringify = require("./stringify.js");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
@@ -100,7 +100,7 @@ function v1(options, buf, offset) {
100
100
  b[i + n] = node[n];
101
101
  }
102
102
 
103
- return buf || (0, _stringify.default)(b);
103
+ return buf || (0, _stringify.unsafeStringify)(b);
104
104
  }
105
105
 
106
106
  var _default = v1;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = _default;
7
6
  exports.URL = exports.DNS = void 0;
7
+ exports.default = v35;
8
8
 
9
- var _stringify = _interopRequireDefault(require("./stringify.js"));
9
+ var _stringify = require("./stringify.js");
10
10
 
11
11
  var _parse = _interopRequireDefault(require("./parse.js"));
12
12
 
@@ -29,8 +29,10 @@ exports.DNS = DNS;
29
29
  const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
30
30
  exports.URL = URL;
31
31
 
32
- function _default(name, version, hashfunc) {
32
+ function v35(name, version, hashfunc) {
33
33
  function generateUUID(value, namespace, buf, offset) {
34
+ var _namespace;
35
+
34
36
  if (typeof value === 'string') {
35
37
  value = stringToBytes(value);
36
38
  }
@@ -39,7 +41,7 @@ function _default(name, version, hashfunc) {
39
41
  namespace = (0, _parse.default)(namespace);
40
42
  }
41
43
 
42
- if (namespace.length !== 16) {
44
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
43
45
  throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
44
46
  } // Compute hash of namespace and value, Per 4.3
45
47
  // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
@@ -63,7 +65,7 @@ function _default(name, version, hashfunc) {
63
65
  return buf;
64
66
  }
65
67
 
66
- return (0, _stringify.default)(bytes);
68
+ return (0, _stringify.unsafeStringify)(bytes);
67
69
  } // Function#name is not settable on some platforms (#270)
68
70
 
69
71
 
@@ -5,13 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _native = _interopRequireDefault(require("./native.js"));
9
+
8
10
  var _rng = _interopRequireDefault(require("./rng.js"));
9
11
 
10
- var _stringify = _interopRequireDefault(require("./stringify.js"));
12
+ var _stringify = require("./stringify.js");
11
13
 
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
16
  function v4(options, buf, offset) {
17
+ if (_native.default.randomUUID && !buf && !options) {
18
+ return _native.default.randomUUID();
19
+ }
20
+
15
21
  options = options || {};
16
22
 
17
23
  const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
@@ -30,7 +36,7 @@ function v4(options, buf, offset) {
30
36
  return buf;
31
37
  }
32
38
 
33
- return (0, _stringify.default)(rnds);
39
+ return (0, _stringify.unsafeStringify)(rnds);
34
40
  }
35
41
 
36
42
  var _default = v4;
@@ -14,7 +14,7 @@ function version(uuid) {
14
14
  throw TypeError('Invalid UUID');
15
15
  }
16
16
 
17
- return parseInt(uuid.substr(14, 1), 16);
17
+ return parseInt(uuid.slice(14, 15), 16);
18
18
  }
19
19
 
20
20
  var _default = version;
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "uuid",
3
- "version": "8.3.2",
3
+ "version": "9.0.1",
4
4
  "description": "RFC4122 (v1, v4, and v5) UUIDs",
5
+ "funding": [
6
+ "https://github.com/sponsors/broofa",
7
+ "https://github.com/sponsors/ctavan"
8
+ ],
5
9
  "commitlint": {
6
10
  "extends": [
7
11
  "@commitlint/config-conventional"
@@ -25,6 +29,10 @@
25
29
  "require": "./dist/index.js",
26
30
  "import": "./wrapper.mjs"
27
31
  },
32
+ "browser": {
33
+ "import": "./dist/esm-browser/index.js",
34
+ "require": "./dist/commonjs-browser/index.js"
35
+ },
28
36
  "default": "./dist/esm-browser/index.js"
29
37
  },
30
38
  "./package.json": "./package.json"
@@ -32,6 +40,7 @@
32
40
  "module": "./dist/esm-node/index.js",
33
41
  "browser": {
34
42
  "./dist/md5.js": "./dist/md5-browser.js",
43
+ "./dist/native.js": "./dist/native-browser.js",
35
44
  "./dist/rng.js": "./dist/rng-browser.js",
36
45
  "./dist/sha1.js": "./dist/sha1-browser.js",
37
46
  "./dist/esm-node/index.js": "./dist/esm-browser/index.js"
@@ -45,53 +54,50 @@
45
54
  "wrapper.mjs"
46
55
  ],
47
56
  "devDependencies": {
48
- "@babel/cli": "7.11.6",
49
- "@babel/core": "7.11.6",
50
- "@babel/preset-env": "7.11.5",
51
- "@commitlint/cli": "11.0.0",
52
- "@commitlint/config-conventional": "11.0.0",
53
- "@rollup/plugin-node-resolve": "9.0.0",
54
- "babel-eslint": "10.1.0",
55
- "bundlewatch": "0.3.1",
56
- "eslint": "7.10.0",
57
- "eslint-config-prettier": "6.12.0",
58
- "eslint-config-standard": "14.1.1",
59
- "eslint-plugin-import": "2.22.1",
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",
60
68
  "eslint-plugin-node": "11.1.0",
61
- "eslint-plugin-prettier": "3.1.4",
62
- "eslint-plugin-promise": "4.2.1",
63
- "eslint-plugin-standard": "4.0.1",
64
- "husky": "4.3.0",
65
- "jest": "25.5.4",
66
- "lint-staged": "10.4.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",
67
74
  "npm-run-all": "4.1.5",
68
75
  "optional-dev-dependency": "2.0.1",
69
- "prettier": "2.1.2",
76
+ "prettier": "2.7.1",
70
77
  "random-seed": "0.3.0",
71
- "rollup": "2.28.2",
72
- "rollup-plugin-terser": "7.0.2",
73
- "runmd": "1.3.2",
74
- "standard-version": "9.0.0"
78
+ "runmd": "1.3.9",
79
+ "standard-version": "9.5.0"
75
80
  },
76
81
  "optionalDevDependencies": {
77
- "@wdio/browserstack-service": "6.4.0",
78
- "@wdio/cli": "6.4.0",
79
- "@wdio/jasmine-framework": "6.4.0",
80
- "@wdio/local-runner": "6.4.0",
81
- "@wdio/spec-reporter": "6.4.0",
82
- "@wdio/static-server-service": "6.4.0",
83
- "@wdio/sync": "6.4.0"
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"
84
88
  },
85
89
  "scripts": {
86
90
  "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
87
91
  "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
88
92
  "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
89
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",
90
96
  "lint": "npm run eslint:check && npm run prettier:check",
91
97
  "eslint:check": "eslint src/ test/ examples/ *.js",
92
98
  "eslint:fix": "eslint --fix src/ test/ examples/ *.js",
93
99
  "pretest": "[ -n $CI ] || npm run build",
94
- "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
100
+ "test": "BABEL_ENV=commonjsNode node --throw-deprecation node_modules/.bin/jest test/unit/",
95
101
  "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
96
102
  "test:browser": "wdio run ./wdio.conf.js",
97
103
  "pretest:node": "npm run build",
@@ -99,11 +105,11 @@
99
105
  "test:pack": "./scripts/testpack.sh",
100
106
  "pretest:benchmark": "npm run build",
101
107
  "test:benchmark": "cd examples/benchmark && npm install && npm test",
102
- "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
103
- "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
108
+ "prettier:check": "prettier --check '**/*.{js,jsx,json,md}'",
109
+ "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
104
110
  "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
105
111
  "md": "runmd --watch --output=README.md README_js.md",
106
- "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
112
+ "docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
107
113
  "docs:diff": "npm run docs && git diff --quiet README.md",
108
114
  "build": "./scripts/build.sh",
109
115
  "prepack": "npm run build",
@@ -113,12 +119,6 @@
113
119
  "type": "git",
114
120
  "url": "https://github.com/uuidjs/uuid.git"
115
121
  },
116
- "husky": {
117
- "hooks": {
118
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
119
- "pre-commit": "lint-staged"
120
- }
121
- },
122
122
  "lint-staged": {
123
123
  "*.{js,jsx,json,md}": [
124
124
  "prettier --write"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -34,12 +34,12 @@
34
34
  "@smithy/node-config-provider": "^2.3.0",
35
35
  "@smithy/protocol-http": "^3.3.0",
36
36
  "@smithy/service-error-classification": "^2.1.5",
37
- "@smithy/smithy-client": "^2.5.0",
37
+ "@smithy/smithy-client": "^2.5.1",
38
38
  "@smithy/types": "^2.12.0",
39
39
  "@smithy/util-middleware": "^2.2.0",
40
40
  "@smithy/util-retry": "^2.2.0",
41
41
  "tslib": "^2.6.2",
42
- "uuid": "^8.3.2"
42
+ "uuid": "^9.0.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@smithy/util-test": "^0.2.0",