@jjrawlins/cdk-ami-builder 0.0.33 → 0.0.34

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 (128) hide show
  1. package/.jsii +12 -12
  2. package/cdk-ami-builder/jsii/jsii.go +2 -2
  3. package/cdk-ami-builder/version +1 -1
  4. package/lib/ImagePipeline/ImagePipeline.js +1 -1
  5. package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
  6. package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
  7. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +722 -710
  8. package/node_modules/@aws-sdk/client-ec2/dist-es/models/models_1.js +12 -0
  9. package/node_modules/@aws-sdk/client-ec2/dist-es/protocols/Aws_ec2.js +710 -710
  10. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  11. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFleetCommand.d.ts +4 -4
  12. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  13. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  14. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  15. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  16. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +1 -1
  17. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  18. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  19. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  20. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  21. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  24. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  25. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  26. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  27. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  28. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  29. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
  30. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  31. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  32. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  33. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotInstancesCommand.d.ts +2 -2
  34. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  35. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +12 -0
  36. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +12 -0
  37. package/node_modules/@aws-sdk/client-ec2/package.json +6 -6
  38. package/node_modules/@aws-sdk/client-ecs/package.json +6 -6
  39. package/node_modules/@aws-sdk/client-kms/package.json +6 -6
  40. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +54 -54
  41. package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +54 -54
  42. package/node_modules/@aws-sdk/client-s3/package.json +11 -11
  43. package/node_modules/@aws-sdk/client-secrets-manager/package.json +6 -6
  44. package/node_modules/@aws-sdk/client-sfn/package.json +6 -6
  45. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +19 -19
  46. package/node_modules/@aws-sdk/client-sns/dist-es/protocols/Aws_query.js +19 -19
  47. package/node_modules/@aws-sdk/client-sns/package.json +6 -6
  48. package/node_modules/@aws-sdk/client-sqs/package.json +6 -6
  49. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +1 -0
  50. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +24 -5
  51. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +9 -0
  52. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +18 -3
  53. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +1 -0
  54. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  55. package/node_modules/@aws-sdk/client-sso/package.json +5 -5
  56. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -37
  57. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -13
  58. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
  59. package/node_modules/@aws-sdk/core/package.json +2 -3
  60. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  61. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  62. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  63. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  64. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  65. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  66. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  67. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  68. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  69. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  70. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  71. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  72. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  73. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -4
  74. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +4 -4
  75. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +4 -4
  76. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  77. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  78. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +6 -1
  79. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
  80. package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
  81. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +54 -0
  82. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
  83. package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
  84. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
  85. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
  86. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
  87. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
  88. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
  89. package/node_modules/@aws-sdk/xml-builder/package.json +9 -1
  90. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +15 -5
  91. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1 -1
  92. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +15 -5
  93. package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +1 -1
  94. package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +1 -1
  95. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +1 -1
  96. package/node_modules/@smithy/core/package.json +3 -4
  97. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  98. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +1 -1
  99. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +1 -1
  100. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -1
  101. package/node_modules/@smithy/middleware-retry/package.json +4 -5
  102. package/node_modules/@smithy/smithy-client/package.json +3 -3
  103. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  104. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  105. package/node_modules/@smithy/uuid/LICENSE +201 -0
  106. package/node_modules/@smithy/uuid/README.md +10 -0
  107. package/node_modules/@smithy/uuid/dist-cjs/index.js +45 -0
  108. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +1 -0
  109. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
  110. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +4 -0
  111. package/node_modules/@smithy/uuid/dist-cjs/v4.js +1 -0
  112. package/node_modules/@smithy/uuid/dist-es/index.js +1 -0
  113. package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +1 -0
  114. package/node_modules/@smithy/uuid/dist-es/randomUUID.js +2 -0
  115. package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +1 -0
  116. package/node_modules/@smithy/uuid/dist-es/v4.js +31 -0
  117. package/node_modules/@smithy/uuid/dist-types/index.d.ts +1 -0
  118. package/node_modules/@smithy/uuid/dist-types/randomUUID.browser.d.ts +1 -0
  119. package/node_modules/@smithy/uuid/dist-types/randomUUID.d.ts +2 -0
  120. package/node_modules/@smithy/uuid/dist-types/randomUUID.native.d.ts +1 -0
  121. package/node_modules/@smithy/uuid/dist-types/ts3.4/index.d.ts +1 -0
  122. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.browser.d.ts +1 -0
  123. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.d.ts +2 -0
  124. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.native.d.ts +1 -0
  125. package/node_modules/@smithy/uuid/dist-types/ts3.4/v4.d.ts +19 -0
  126. package/node_modules/@smithy/uuid/dist-types/v4.d.ts +19 -0
  127. package/node_modules/@smithy/uuid/package.json +66 -0
  128. package/package.json +11 -11
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.893.0",
3
+ "version": "3.895.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/middleware-user-agent": "3.893.0",
25
+ "@aws-sdk/middleware-user-agent": "3.895.0",
26
26
  "@aws-sdk/types": "3.893.0",
27
27
  "@smithy/node-config-provider": "^4.2.2",
28
28
  "@smithy/types": "^4.5.0",
@@ -22,7 +22,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
24
  XmlNode: () => XmlNode,
25
- XmlText: () => XmlText
25
+ XmlText: () => XmlText,
26
+ parseXML: () => import_xml_parser.parseXML
26
27
  });
27
28
  module.exports = __toCommonJS(index_exports);
28
29
 
@@ -164,9 +165,13 @@ var XmlNode = class _XmlNode {
164
165
  return xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}</${this.name}>`;
165
166
  }
166
167
  };
168
+
169
+ // src/index.ts
170
+ var import_xml_parser = require("././xml-parser");
167
171
  // Annotate the CommonJS export names for ESM import in node:
168
172
 
169
173
  0 && (module.exports = {
174
+ parseXML,
170
175
  XmlNode,
171
176
  XmlText
172
177
  });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseXML = parseXML;
4
+ const fast_xml_parser_1 = require("fast-xml-parser");
5
+ const parser = new fast_xml_parser_1.XMLParser({
6
+ attributeNamePrefix: "",
7
+ htmlEntities: true,
8
+ ignoreAttributes: false,
9
+ ignoreDeclaration: true,
10
+ parseTagValue: false,
11
+ trimValues: false,
12
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
13
+ });
14
+ parser.addEntity("#xD", "\r");
15
+ parser.addEntity("#10", "\n");
16
+ function parseXML(xmlString) {
17
+ return parser.parse(xmlString, true);
18
+ }
@@ -1,2 +1,3 @@
1
1
  export * from "./XmlNode";
2
2
  export * from "./XmlText";
3
+ export { parseXML } from "./xml-parser";
@@ -0,0 +1,54 @@
1
+ const parser = new DOMParser();
2
+ export function parseXML(xmlString) {
3
+ const xmlDocument = parser.parseFromString(xmlString, "application/xml");
4
+ if (xmlDocument.getElementsByTagName("parsererror").length > 0) {
5
+ throw new Error("DOMParser XML parsing error.");
6
+ }
7
+ const xmlToObj = (node) => {
8
+ if (node.nodeType === Node.TEXT_NODE) {
9
+ if (node.textContent?.trim()) {
10
+ return node.textContent;
11
+ }
12
+ }
13
+ if (node.nodeType === Node.ELEMENT_NODE) {
14
+ const element = node;
15
+ if (element.attributes.length === 0 && element.childNodes.length === 0) {
16
+ return "";
17
+ }
18
+ const obj = {};
19
+ const attributes = Array.from(element.attributes);
20
+ for (const attr of attributes) {
21
+ obj[`${attr.name}`] = attr.value;
22
+ }
23
+ const childNodes = Array.from(element.childNodes);
24
+ for (const child of childNodes) {
25
+ const childResult = xmlToObj(child);
26
+ if (childResult != null) {
27
+ const childName = child.nodeName;
28
+ if (childNodes.length === 1 && attributes.length === 0 && childName === "#text") {
29
+ return childResult;
30
+ }
31
+ if (obj[childName]) {
32
+ if (Array.isArray(obj[childName])) {
33
+ obj[childName].push(childResult);
34
+ }
35
+ else {
36
+ obj[childName] = [obj[childName], childResult];
37
+ }
38
+ }
39
+ else {
40
+ obj[childName] = childResult;
41
+ }
42
+ }
43
+ else if (childNodes.length === 1 && attributes.length === 0) {
44
+ return element.textContent;
45
+ }
46
+ }
47
+ return obj;
48
+ }
49
+ return null;
50
+ };
51
+ return {
52
+ [xmlDocument.documentElement.nodeName]: xmlToObj(xmlDocument.documentElement),
53
+ };
54
+ }
@@ -0,0 +1,15 @@
1
+ import { XMLParser } from "fast-xml-parser";
2
+ const parser = new XMLParser({
3
+ attributeNamePrefix: "",
4
+ htmlEntities: true,
5
+ ignoreAttributes: false,
6
+ ignoreDeclaration: true,
7
+ parseTagValue: false,
8
+ trimValues: false,
9
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
10
+ });
11
+ parser.addEntity("#xD", "\r");
12
+ parser.addEntity("#10", "\n");
13
+ export function parseXML(xmlString) {
14
+ return parser.parse(xmlString, true);
15
+ }
@@ -6,3 +6,7 @@ export * from "./XmlNode";
6
6
  * @internal
7
7
  */
8
8
  export * from "./XmlText";
9
+ /**
10
+ * @internal
11
+ */
12
+ export { parseXML } from "./xml-parser";
@@ -1,2 +1,3 @@
1
1
  export * from "./XmlNode";
2
2
  export * from "./XmlText";
3
+ export { parseXML } from "./xml-parser";
@@ -0,0 +1 @@
1
+ export declare function parseXML(xmlString: string): any;
@@ -0,0 +1 @@
1
+ export declare function parseXML(xmlString: string): any;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Cases where this differs from fast-xml-parser:
3
+ *
4
+ * 1. Mixing text with nested tags (does not occur in AWS REST XML).
5
+ * <mixed-text> hello, <bold>world</bold>, how are you?</mixed-text>
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function parseXML(xmlString: string): any;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function parseXML(xmlString: string): any;
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.893.0",
3
+ "version": "3.894.0",
4
4
  "description": "XML builder for the AWS SDK",
5
5
  "dependencies": {
6
6
  "@smithy/types": "^4.5.0",
7
+ "fast-xml-parser": "5.2.5",
7
8
  "tslib": "^2.6.2"
8
9
  },
9
10
  "scripts": {
@@ -39,6 +40,13 @@
39
40
  "files": [
40
41
  "dist-*/**"
41
42
  ],
43
+ "browser": {
44
+ "./dist-es/xml-parser": "./dist-es/xml-parser.browser"
45
+ },
46
+ "react-native": {
47
+ "./dist-es/xml-parser": "./dist-es/xml-parser",
48
+ "./dist-cjs/xml-parser": "./dist-cjs/xml-parser"
49
+ },
42
50
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/xml-builder",
43
51
  "repository": {
44
52
  "type": "git",
@@ -427,8 +427,9 @@ var NormalizedSchema = class _NormalizedSchema {
427
427
  this.memberTraits = 0;
428
428
  }
429
429
  if (schema instanceof _NormalizedSchema) {
430
+ const computedMemberTraits = this.memberTraits;
430
431
  Object.assign(this, schema);
431
- this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
432
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
432
433
  this.normalizedTraits = void 0;
433
434
  this.memberName = memberName ?? schema.memberName;
434
435
  return;
@@ -592,10 +593,19 @@ var NormalizedSchema = class _NormalizedSchema {
592
593
  * @returns whether the schema has the idempotencyToken trait.
593
594
  */
594
595
  isIdempotencyToken() {
595
- if (typeof this.traits === "number") {
596
- return (this.traits & 4) === 4;
597
- } else if (typeof this.traits === "object") {
598
- return !!this.traits.idempotencyToken;
596
+ if (this.normalizedTraits) {
597
+ return !!this.normalizedTraits.idempotencyToken;
598
+ }
599
+ for (const traits of [this.traits, this.memberTraits]) {
600
+ if (typeof traits === "number") {
601
+ if ((traits & 4) === 4) {
602
+ return true;
603
+ }
604
+ } else if (typeof traits === "object") {
605
+ if (!!traits.idempotencyToken) {
606
+ return true;
607
+ }
608
+ }
599
609
  }
600
610
  return false;
601
611
  }
@@ -518,7 +518,7 @@ var stripLeadingZeroes = (value) => {
518
518
  };
519
519
 
520
520
  // src/submodules/serde/generateIdempotencyToken.ts
521
- var import_uuid = require("uuid");
521
+ var import_uuid = require("@smithy/uuid");
522
522
 
523
523
  // src/submodules/serde/lazy-json.ts
524
524
  var LazyJsonString = function LazyJsonString2(val) {
@@ -31,8 +31,9 @@ export class NormalizedSchema {
31
31
  this.memberTraits = 0;
32
32
  }
33
33
  if (schema instanceof NormalizedSchema) {
34
+ const computedMemberTraits = this.memberTraits;
34
35
  Object.assign(this, schema);
35
- this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
36
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
36
37
  this.normalizedTraits = void 0;
37
38
  this.memberName = memberName ?? schema.memberName;
38
39
  return;
@@ -170,11 +171,20 @@ export class NormalizedSchema {
170
171
  return this.getSchema() === SCHEMA.STREAMING_BLOB;
171
172
  }
172
173
  isIdempotencyToken() {
173
- if (typeof this.traits === "number") {
174
- return (this.traits & 0b0100) === 0b0100;
174
+ if (this.normalizedTraits) {
175
+ return !!this.normalizedTraits.idempotencyToken;
175
176
  }
176
- else if (typeof this.traits === "object") {
177
- return !!this.traits.idempotencyToken;
177
+ for (const traits of [this.traits, this.memberTraits]) {
178
+ if (typeof traits === "number") {
179
+ if ((traits & 0b0100) === 0b0100) {
180
+ return true;
181
+ }
182
+ }
183
+ else if (typeof traits === "object") {
184
+ if (!!traits.idempotencyToken) {
185
+ return true;
186
+ }
187
+ }
178
188
  }
179
189
  return false;
180
190
  }
@@ -1,2 +1,2 @@
1
- import { v4 as generateIdempotencyToken } from "uuid";
1
+ import { v4 as generateIdempotencyToken } from "@smithy/uuid";
2
2
  export { generateIdempotencyToken };
@@ -1,2 +1,2 @@
1
- import { v4 as generateIdempotencyToken } from "uuid";
1
+ import { v4 as generateIdempotencyToken } from "@smithy/uuid";
2
2
  export { generateIdempotencyToken };
@@ -1,2 +1,2 @@
1
- import { v4 as generateIdempotencyToken } from "uuid";
1
+ import { v4 as generateIdempotencyToken } from "@smithy/uuid";
2
2
  export { generateIdempotencyToken };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -85,9 +85,8 @@
85
85
  "@smithy/util-middleware": "^4.1.1",
86
86
  "@smithy/util-stream": "^4.3.2",
87
87
  "@smithy/util-utf8": "^4.1.0",
88
- "@types/uuid": "^9.0.1",
89
- "tslib": "^2.6.2",
90
- "uuid": "^9.0.1"
88
+ "@smithy/uuid": "^1.0.0",
89
+ "tslib": "^2.6.2"
91
90
  },
92
91
  "engines": {
93
92
  "node": ">=18.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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-endpoint",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.11.1",
28
+ "@smithy/core": "^3.12.0",
29
29
  "@smithy/middleware-serde": "^4.1.1",
30
30
  "@smithy/node-config-provider": "^4.2.2",
31
31
  "@smithy/shared-ini-file-loader": "^4.2.0",
@@ -48,7 +48,7 @@ module.exports = __toCommonJS(index_exports);
48
48
  var import_protocol_http = require("@smithy/protocol-http");
49
49
 
50
50
 
51
- var import_uuid = require("uuid");
51
+ var import_uuid = require("@smithy/uuid");
52
52
 
53
53
  // src/defaultRetryQuota.ts
54
54
  var import_util_retry = require("@smithy/util-retry");
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
2
  import { isThrottlingError } from "@smithy/service-error-classification";
3
3
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER, REQUEST_HEADER, RETRY_MODES, THROTTLING_RETRY_DELAY_BASE, } from "@smithy/util-retry";
4
- import { v4 } from "uuid";
4
+ import { v4 } from "@smithy/uuid";
5
5
  import { getDefaultRetryQuota } from "./defaultRetryQuota";
6
6
  import { defaultDelayDecider } from "./delayDecider";
7
7
  import { defaultRetryDecider } from "./retryDecider";
@@ -2,7 +2,7 @@ import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
2
  import { isServerError, isThrottlingError, isTransientError } from "@smithy/service-error-classification";
3
3
  import { NoOpLogger } from "@smithy/smithy-client";
4
4
  import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "@smithy/util-retry";
5
- import { v4 } from "uuid";
5
+ import { v4 } from "@smithy/uuid";
6
6
  import { isStreamingPayload } from "./isStreamingPayload/isStreamingPayload";
7
7
  import { asSdkError } from "./util";
8
8
  export const retryMiddleware = (options) => (next, context) => async (args) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.2.4",
3
+ "version": "4.3.0",
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",
@@ -37,13 +37,12 @@
37
37
  "@smithy/node-config-provider": "^4.2.2",
38
38
  "@smithy/protocol-http": "^5.2.1",
39
39
  "@smithy/service-error-classification": "^4.1.2",
40
- "@smithy/smithy-client": "^4.6.3",
40
+ "@smithy/smithy-client": "^4.6.4",
41
41
  "@smithy/types": "^4.5.0",
42
42
  "@smithy/util-middleware": "^4.1.1",
43
43
  "@smithy/util-retry": "^4.1.2",
44
- "@types/uuid": "^9.0.1",
45
- "tslib": "^2.6.2",
46
- "uuid": "^9.0.1"
44
+ "@smithy/uuid": "^1.0.0",
45
+ "tslib": "^2.6.2"
47
46
  },
48
47
  "devDependencies": {
49
48
  "@smithy/util-test": "^0.2.8",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.6.3",
3
+ "version": "4.6.4",
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 smithy-client",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.11.1",
29
- "@smithy/middleware-endpoint": "^4.2.3",
28
+ "@smithy/core": "^3.12.0",
29
+ "@smithy/middleware-endpoint": "^4.2.4",
30
30
  "@smithy/middleware-stack": "^4.1.1",
31
31
  "@smithy/protocol-http": "^5.2.1",
32
32
  "@smithy/types": "^4.5.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
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 util-defaults-mode-browser",
@@ -25,7 +25,7 @@
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
27
  "@smithy/property-provider": "^4.1.1",
28
- "@smithy/smithy-client": "^4.6.3",
28
+ "@smithy/smithy-client": "^4.6.4",
29
29
  "@smithy/types": "^4.5.0",
30
30
  "bowser": "^2.11.0",
31
31
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
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 util-defaults-mode-node",
@@ -28,7 +28,7 @@
28
28
  "@smithy/credential-provider-imds": "^4.1.2",
29
29
  "@smithy/node-config-provider": "^4.2.2",
30
30
  "@smithy/property-provider": "^4.1.1",
31
- "@smithy/smithy-client": "^4.6.3",
31
+ "@smithy/smithy-client": "^4.6.4",
32
32
  "@smithy/types": "^4.5.0",
33
33
  "tslib": "^2.6.2"
34
34
  },