@jjrawlins/cdk-diff-pr-github-action 1.9.1 → 1.9.3

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 (136) hide show
  1. package/.jsii +4 -4
  2. package/cdkdiffprgithubaction/go.mod +1 -1
  3. package/cdkdiffprgithubaction/jsii/jsii.go +2 -2
  4. package/cdkdiffprgithubaction/version +1 -1
  5. package/lib/CdkDiffIamTemplate.js +2 -2
  6. package/lib/CdkDiffIamTemplateStackSet.js +2 -2
  7. package/lib/CdkDiffStackWorkflow.js +1 -1
  8. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  9. package/lib/CdkDriftIamTemplate.js +2 -2
  10. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  11. package/node_modules/@aws-sdk/core/dist-cjs/index.js +7 -15
  12. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +7 -15
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
  15. package/node_modules/@aws-sdk/core/package.json +4 -4
  16. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  17. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  18. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  19. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  20. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  21. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  22. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  23. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  24. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  25. package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
  26. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  27. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +36 -19
  28. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
  29. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +17 -0
  30. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +17 -12
  31. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
  32. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPaths.d.ts +10 -0
  33. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
  34. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +3 -0
  35. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  36. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
  37. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
  38. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +23 -0
  39. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
  40. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
  41. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  42. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +15 -1
  43. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  44. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  45. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  46. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  47. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
  48. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
  49. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +3 -2
  50. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +16 -0
  51. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
  52. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +1 -26
  53. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +87 -87
  54. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
  55. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
  56. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
  57. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
  58. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
  59. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
  60. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
  61. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
  62. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
  63. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -1
  64. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +2 -0
  65. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +27 -5
  66. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -21
  67. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
  68. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
  69. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  70. package/node_modules/@smithy/abort-controller/package.json +2 -2
  71. package/node_modules/@smithy/config-resolver/package.json +6 -6
  72. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -8
  73. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
  74. package/node_modules/@smithy/core/package.json +11 -11
  75. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  76. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +18 -4
  77. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +18 -4
  78. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  79. package/node_modules/@smithy/hash-node/package.json +4 -4
  80. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  81. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  82. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  83. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  84. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  85. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  86. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  87. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  88. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +21 -8
  89. package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +16 -0
  90. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -4
  91. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +3 -4
  92. package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +9 -0
  93. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +9 -0
  94. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  95. package/node_modules/@smithy/property-provider/package.json +2 -2
  96. package/node_modules/@smithy/protocol-http/package.json +2 -2
  97. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  98. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  99. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  100. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  101. package/node_modules/@smithy/signature-v4/package.json +8 -8
  102. package/node_modules/@smithy/smithy-client/package.json +7 -7
  103. package/node_modules/@smithy/url-parser/package.json +3 -3
  104. package/node_modules/@smithy/util-base64/package.json +4 -4
  105. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  106. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  107. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  108. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  109. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  110. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  111. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  112. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  113. package/node_modules/@smithy/util-middleware/package.json +2 -2
  114. package/node_modules/@smithy/util-retry/package.json +3 -3
  115. package/node_modules/@smithy/util-stream/package.json +8 -8
  116. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  117. package/node_modules/@smithy/util-utf8/package.json +3 -3
  118. package/node_modules/@smithy/util-waiter/package.json +3 -3
  119. package/node_modules/@smithy/uuid/package.json +2 -2
  120. package/node_modules/fast-xml-builder/LICENSE +21 -0
  121. package/node_modules/fast-xml-builder/README.md +23 -0
  122. package/node_modules/fast-xml-builder/lib/builder.cjs +1 -0
  123. package/node_modules/fast-xml-builder/lib/builder.min.js +2 -0
  124. package/node_modules/fast-xml-builder/lib/builder.min.js.map +1 -0
  125. package/node_modules/fast-xml-builder/lib/fxb.d.cts +167 -0
  126. package/node_modules/fast-xml-builder/package.json +78 -0
  127. package/node_modules/fast-xml-builder/src/fxb.d.ts +156 -0
  128. package/node_modules/fast-xml-builder/src/fxb.js +285 -0
  129. package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
  130. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/orderedJs2Xml.js +14 -3
  131. package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
  132. package/package.json +2 -2
  133. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
  134. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
  135. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
  136. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js → fast-xml-builder/CHANGELOG.md} +0 -0
@@ -10,8 +10,8 @@ const METADATA_SYMBOL = XmlNode.getMetaDataSymbol();
10
10
  * @param {any} options
11
11
  * @returns
12
12
  */
13
- export default function prettify(node, options){
14
- return compress( node, options);
13
+ export default function prettify(node, options) {
14
+ return compress(node, options);
15
15
  }
16
16
 
17
17
  /**
@@ -21,78 +21,82 @@ export default function prettify(node, options){
21
21
  * @param {string} jPath
22
22
  * @returns object
23
23
  */
24
- function compress(arr, options, jPath){
24
+ function compress(arr, options, jPath) {
25
25
  let text;
26
- const compressedObj = {};
26
+ const compressedObj = {}; //This is intended to be a plain object
27
27
  for (let i = 0; i < arr.length; i++) {
28
28
  const tagObj = arr[i];
29
29
  const property = propName(tagObj);
30
30
  let newJpath = "";
31
- if(jPath === undefined) newJpath = property;
31
+ if (jPath === undefined) newJpath = property;
32
32
  else newJpath = jPath + "." + property;
33
33
 
34
- if(property === options.textNodeName){
35
- if(text === undefined) text = tagObj[property];
34
+ if (property === options.textNodeName) {
35
+ if (text === undefined) text = tagObj[property];
36
36
  else text += "" + tagObj[property];
37
- }else if(property === undefined){
37
+ } else if (property === undefined) {
38
38
  continue;
39
- }else if(tagObj[property]){
40
-
39
+ } else if (tagObj[property]) {
40
+
41
41
  let val = compress(tagObj[property], options, newJpath);
42
42
  const isLeaf = isLeafTag(val, options);
43
- if (tagObj[METADATA_SYMBOL] !== undefined) {
44
- val[METADATA_SYMBOL] = tagObj[METADATA_SYMBOL]; // copy over metadata
45
- }
46
43
 
47
- if(tagObj[":@"]){
48
- assignAttributes( val, tagObj[":@"], newJpath, options);
49
- }else if(Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode){
44
+ if (tagObj[":@"]) {
45
+ assignAttributes(val, tagObj[":@"], newJpath, options);
46
+ } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode) {
50
47
  val = val[options.textNodeName];
51
- }else if(Object.keys(val).length === 0){
52
- if(options.alwaysCreateTextNode) val[options.textNodeName] = "";
48
+ } else if (Object.keys(val).length === 0) {
49
+ if (options.alwaysCreateTextNode) val[options.textNodeName] = "";
53
50
  else val = "";
54
51
  }
55
52
 
56
- if(compressedObj[property] !== undefined && compressedObj.hasOwnProperty(property)) {
57
- if(!Array.isArray(compressedObj[property])) {
58
- compressedObj[property] = [ compressedObj[property] ];
53
+ if (tagObj[METADATA_SYMBOL] !== undefined && typeof val === "object" && val !== null) {
54
+ val[METADATA_SYMBOL] = tagObj[METADATA_SYMBOL]; // copy over metadata
55
+ }
56
+
57
+
58
+ if (compressedObj[property] !== undefined && Object.prototype.hasOwnProperty.call(compressedObj, property)) {
59
+ if (!Array.isArray(compressedObj[property])) {
60
+ compressedObj[property] = [compressedObj[property]];
59
61
  }
60
62
  compressedObj[property].push(val);
61
- }else{
63
+ } else {
62
64
  //TODO: if a node is not an array, then check if it should be an array
63
65
  //also determine if it is a leaf node
64
- if (options.isArray(property, newJpath, isLeaf )) {
66
+ if (options.isArray(property, newJpath, isLeaf)) {
65
67
  compressedObj[property] = [val];
66
- }else{
68
+ } else {
67
69
  compressedObj[property] = val;
68
70
  }
69
71
  }
70
72
  }
71
-
73
+
72
74
  }
73
75
  // if(text && text.length > 0) compressedObj[options.textNodeName] = text;
74
- if(typeof text === "string"){
75
- if(text.length > 0) compressedObj[options.textNodeName] = text;
76
- }else if(text !== undefined) compressedObj[options.textNodeName] = text;
76
+ if (typeof text === "string") {
77
+ if (text.length > 0) compressedObj[options.textNodeName] = text;
78
+ } else if (text !== undefined) compressedObj[options.textNodeName] = text;
79
+
80
+
77
81
  return compressedObj;
78
82
  }
79
83
 
80
- function propName(obj){
84
+ function propName(obj) {
81
85
  const keys = Object.keys(obj);
82
86
  for (let i = 0; i < keys.length; i++) {
83
87
  const key = keys[i];
84
- if(key !== ":@") return key;
88
+ if (key !== ":@") return key;
85
89
  }
86
90
  }
87
91
 
88
- function assignAttributes(obj, attrMap, jpath, options){
92
+ function assignAttributes(obj, attrMap, jpath, options) {
89
93
  if (attrMap) {
90
94
  const keys = Object.keys(attrMap);
91
95
  const len = keys.length; //don't make it inline
92
96
  for (let i = 0; i < len; i++) {
93
97
  const atrrName = keys[i];
94
98
  if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) {
95
- obj[atrrName] = [ attrMap[atrrName] ];
99
+ obj[atrrName] = [attrMap[atrrName]];
96
100
  } else {
97
101
  obj[atrrName] = attrMap[atrrName];
98
102
  }
@@ -100,10 +104,10 @@ function assignAttributes(obj, attrMap, jpath, options){
100
104
  }
101
105
  }
102
106
 
103
- function isLeafTag(obj, options){
107
+ function isLeafTag(obj, options) {
104
108
  const { textNodeName } = options;
105
109
  const propCount = Object.keys(obj).length;
106
-
110
+
107
111
  if (propCount === 0) {
108
112
  return true;
109
113
  }
@@ -8,23 +8,23 @@ if (typeof Symbol !== "function") {
8
8
  METADATA_SYMBOL = Symbol("XML Node Metadata");
9
9
  }
10
10
 
11
- export default class XmlNode{
11
+ export default class XmlNode {
12
12
  constructor(tagname) {
13
13
  this.tagname = tagname;
14
14
  this.child = []; //nested tags, text, cdata, comments in order
15
- this[":@"] = {}; //attributes map
15
+ this[":@"] = Object.create(null); //attributes map
16
16
  }
17
- add(key,val){
17
+ add(key, val) {
18
18
  // this.child.push( {name : key, val: val, isCdata: isCdata });
19
- if(key === "__proto__") key = "#__proto__";
20
- this.child.push( {[key]: val });
19
+ if (key === "__proto__") key = "#__proto__";
20
+ this.child.push({ [key]: val });
21
21
  }
22
22
  addChild(node, startIndex) {
23
- if(node.tagname === "__proto__") node.tagname = "#__proto__";
24
- if(node[":@"] && Object.keys(node[":@"]).length > 0){
25
- this.child.push( { [node.tagname]: node.child, [":@"]: node[":@"] });
26
- }else{
27
- this.child.push( { [node.tagname]: node.child });
23
+ if (node.tagname === "__proto__") node.tagname = "#__proto__";
24
+ if (node[":@"] && Object.keys(node[":@"]).length > 0) {
25
+ this.child.push({ [node.tagname]: node.child, [":@"]: node[":@"] });
26
+ } else {
27
+ this.child.push({ [node.tagname]: node.child });
28
28
  }
29
29
  // if requested, add the startIndex
30
30
  if (startIndex !== undefined) {
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.8",
3
+ "version": "3.972.9",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "dependencies": {
6
6
  "@smithy/types": "^4.13.0",
7
- "fast-xml-parser": "5.3.6",
7
+ "fast-xml-parser": "5.4.1",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -33,7 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "typesVersions": {
36
- "<4.0": {
36
+ "<4.5": {
37
37
  "dist-types/*": [
38
38
  "dist-types/ts3.4/*"
39
39
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.4.9",
3
+ "version": "4.4.10",
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 config-resolver",
@@ -25,11 +25,11 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/node-config-provider": "^4.3.10",
28
+ "@smithy/node-config-provider": "^4.3.11",
29
29
  "@smithy/types": "^4.13.0",
30
- "@smithy/util-config-provider": "^4.2.1",
31
- "@smithy/util-endpoints": "^3.3.1",
32
- "@smithy/util-middleware": "^4.2.10",
30
+ "@smithy/util-config-provider": "^4.2.2",
31
+ "@smithy/util-endpoints": "^3.3.2",
32
+ "@smithy/util-middleware": "^4.2.11",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -42,7 +42,7 @@
42
42
  "node": ">=18.0.0"
43
43
  },
44
44
  "typesVersions": {
45
- "<4.0": {
45
+ "<4.5": {
46
46
  "dist-types/*": [
47
47
  "dist-types/ts3.4/*"
48
48
  ]
@@ -929,24 +929,18 @@ class CborShapeDeserializer extends protocols.SerdeContext {
929
929
  if (ns.isListSchema()) {
930
930
  const newArray = [];
931
931
  const memberSchema = ns.getValueSchema();
932
- const sparse = !!ns.getMergedTraits().sparse;
933
932
  for (const item of value) {
934
933
  const itemValue = this.readValue(memberSchema, item);
935
- if (itemValue != null || sparse) {
936
- newArray.push(itemValue);
937
- }
934
+ newArray.push(itemValue);
938
935
  }
939
936
  return newArray;
940
937
  }
941
938
  const newObject = {};
942
939
  if (ns.isMapSchema()) {
943
- const sparse = !!ns.getMergedTraits().sparse;
944
940
  const targetSchema = ns.getValueSchema();
945
941
  for (const key of Object.keys(value)) {
946
942
  const itemValue = this.readValue(targetSchema, value[key]);
947
- if (itemValue != null || sparse) {
948
- newObject[key] = itemValue;
949
- }
943
+ newObject[key] = itemValue;
950
944
  }
951
945
  }
952
946
  else if (ns.isStructSchema()) {
@@ -154,24 +154,18 @@ export class CborShapeDeserializer extends SerdeContext {
154
154
  if (ns.isListSchema()) {
155
155
  const newArray = [];
156
156
  const memberSchema = ns.getValueSchema();
157
- const sparse = !!ns.getMergedTraits().sparse;
158
157
  for (const item of value) {
159
158
  const itemValue = this.readValue(memberSchema, item);
160
- if (itemValue != null || sparse) {
161
- newArray.push(itemValue);
162
- }
159
+ newArray.push(itemValue);
163
160
  }
164
161
  return newArray;
165
162
  }
166
163
  const newObject = {};
167
164
  if (ns.isMapSchema()) {
168
- const sparse = !!ns.getMergedTraits().sparse;
169
165
  const targetSchema = ns.getValueSchema();
170
166
  for (const key of Object.keys(value)) {
171
167
  const itemValue = this.readValue(targetSchema, value[key]);
172
- if (itemValue != null || sparse) {
173
- newObject[key] = itemValue;
174
- }
168
+ newObject[key] = itemValue;
175
169
  }
176
170
  }
177
171
  else if (ns.isStructSchema()) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.23.6",
3
+ "version": "3.23.8",
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",
@@ -79,22 +79,22 @@
79
79
  "license": "Apache-2.0",
80
80
  "sideEffects": false,
81
81
  "dependencies": {
82
- "@smithy/middleware-serde": "^4.2.11",
83
- "@smithy/protocol-http": "^5.3.10",
82
+ "@smithy/middleware-serde": "^4.2.12",
83
+ "@smithy/protocol-http": "^5.3.11",
84
84
  "@smithy/types": "^4.13.0",
85
- "@smithy/util-base64": "^4.3.1",
86
- "@smithy/util-body-length-browser": "^4.2.1",
87
- "@smithy/util-middleware": "^4.2.10",
88
- "@smithy/util-stream": "^4.5.15",
89
- "@smithy/util-utf8": "^4.2.1",
90
- "@smithy/uuid": "^1.1.1",
85
+ "@smithy/util-base64": "^4.3.2",
86
+ "@smithy/util-body-length-browser": "^4.2.2",
87
+ "@smithy/util-middleware": "^4.2.11",
88
+ "@smithy/util-stream": "^4.5.17",
89
+ "@smithy/util-utf8": "^4.2.2",
90
+ "@smithy/uuid": "^1.1.2",
91
91
  "tslib": "^2.6.2"
92
92
  },
93
93
  "engines": {
94
94
  "node": ">=18.0.0"
95
95
  },
96
96
  "typesVersions": {
97
- "<4.0": {
97
+ "<4.5": {
98
98
  "dist-types/*": [
99
99
  "dist-types/ts3.4/*"
100
100
  ]
@@ -120,7 +120,7 @@
120
120
  "directory": "packages/core"
121
121
  },
122
122
  "devDependencies": {
123
- "@smithy/eventstream-serde-node": "^4.2.10",
123
+ "@smithy/eventstream-serde-node": "^4.2.11",
124
124
  "@types/node": "^18.11.9",
125
125
  "concurrently": "7.0.0",
126
126
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,10 +28,10 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.3.10",
32
- "@smithy/property-provider": "^4.2.10",
31
+ "@smithy/node-config-provider": "^4.3.11",
32
+ "@smithy/property-provider": "^4.2.11",
33
33
  "@smithy/types": "^4.13.0",
34
- "@smithy/url-parser": "^4.2.10",
34
+ "@smithy/url-parser": "^4.2.11",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -46,7 +46,7 @@
46
46
  "node": ">=18.0.0"
47
47
  },
48
48
  "typesVersions": {
49
- "<4.0": {
49
+ "<4.5": {
50
50
  "dist-types/*": [
51
51
  "dist-types/ts3.4/*"
52
52
  ]
@@ -54,8 +54,7 @@ class FetchHttpHandler {
54
54
  const keepAlive = this.config.keepAlive === true;
55
55
  const credentials = this.config.credentials;
56
56
  if (abortSignal?.aborted) {
57
- const abortError = new Error("Request aborted");
58
- abortError.name = "AbortError";
57
+ const abortError = buildAbortError(abortSignal);
59
58
  return Promise.reject(abortError);
60
59
  }
61
60
  let path = request.path;
@@ -130,8 +129,7 @@ class FetchHttpHandler {
130
129
  if (abortSignal) {
131
130
  raceOfPromises.push(new Promise((resolve, reject) => {
132
131
  const onAbort = () => {
133
- const abortError = new Error("Request aborted");
134
- abortError.name = "AbortError";
132
+ const abortError = buildAbortError(abortSignal);
135
133
  reject(abortError);
136
134
  };
137
135
  if (typeof abortSignal.addEventListener === "function") {
@@ -157,6 +155,22 @@ class FetchHttpHandler {
157
155
  return this.config ?? {};
158
156
  }
159
157
  }
158
+ function buildAbortError(abortSignal) {
159
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
160
+ ? abortSignal.reason
161
+ : undefined;
162
+ if (reason) {
163
+ if (reason instanceof Error) {
164
+ return reason;
165
+ }
166
+ const abortError = new Error(String(reason));
167
+ abortError.name = "AbortError";
168
+ return abortError;
169
+ }
170
+ const abortError = new Error("Request aborted");
171
+ abortError.name = "AbortError";
172
+ return abortError;
173
+ }
160
174
 
161
175
  const streamCollector = async (stream) => {
162
176
  if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
@@ -36,8 +36,7 @@ export class FetchHttpHandler {
36
36
  const keepAlive = this.config.keepAlive === true;
37
37
  const credentials = this.config.credentials;
38
38
  if (abortSignal?.aborted) {
39
- const abortError = new Error("Request aborted");
40
- abortError.name = "AbortError";
39
+ const abortError = buildAbortError(abortSignal);
41
40
  return Promise.reject(abortError);
42
41
  }
43
42
  let path = request.path;
@@ -112,8 +111,7 @@ export class FetchHttpHandler {
112
111
  if (abortSignal) {
113
112
  raceOfPromises.push(new Promise((resolve, reject) => {
114
113
  const onAbort = () => {
115
- const abortError = new Error("Request aborted");
116
- abortError.name = "AbortError";
114
+ const abortError = buildAbortError(abortSignal);
117
115
  reject(abortError);
118
116
  };
119
117
  if (typeof abortSignal.addEventListener === "function") {
@@ -139,3 +137,19 @@ export class FetchHttpHandler {
139
137
  return this.config ?? {};
140
138
  }
141
139
  }
140
+ function buildAbortError(abortSignal) {
141
+ const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
142
+ ? abortSignal.reason
143
+ : undefined;
144
+ if (reason) {
145
+ if (reason instanceof Error) {
146
+ return reason;
147
+ }
148
+ const abortError = new Error(String(reason));
149
+ abortError.name = "AbortError";
150
+ return abortError;
151
+ }
152
+ const abortError = new Error("Request aborted");
153
+ abortError.name = "AbortError";
154
+ return abortError;
155
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.3.11",
3
+ "version": "5.3.13",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -28,21 +28,21 @@
28
28
  "module": "./dist-es/index.js",
29
29
  "types": "./dist-types/index.d.ts",
30
30
  "dependencies": {
31
- "@smithy/protocol-http": "^5.3.10",
32
- "@smithy/querystring-builder": "^4.2.10",
31
+ "@smithy/protocol-http": "^5.3.11",
32
+ "@smithy/querystring-builder": "^4.2.11",
33
33
  "@smithy/types": "^4.13.0",
34
- "@smithy/util-base64": "^4.3.1",
34
+ "@smithy/util-base64": "^4.3.2",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@smithy/abort-controller": "^4.2.10",
38
+ "@smithy/abort-controller": "^4.2.11",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "premove": "4.0.0",
42
42
  "typedoc": "0.23.23"
43
43
  },
44
44
  "typesVersions": {
45
- "<4.0": {
45
+ "<4.5": {
46
46
  "dist-types/*": [
47
47
  "dist-types/ts3.4/*"
48
48
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
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 hash-node",
@@ -33,15 +33,15 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@smithy/types": "^4.13.0",
36
- "@smithy/util-buffer-from": "^4.2.1",
37
- "@smithy/util-utf8": "^4.2.1",
36
+ "@smithy/util-buffer-from": "^4.2.2",
37
+ "@smithy/util-utf8": "^4.2.2",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=18.0.0"
42
42
  },
43
43
  "typesVersions": {
44
- "<4.0": {
44
+ "<4.5": {
45
45
  "dist-types/*": [
46
46
  "dist-types/ts3.4/*"
47
47
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
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 invalid-dependency",
@@ -28,7 +28,7 @@
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
31
- "<4.0": {
31
+ "<4.5": {
32
32
  "dist-types/*": [
33
33
  "dist-types/ts3.4/*"
34
34
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/is-array-buffer",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Provides a function for detecting if an argument is an ArrayBuffer",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
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-content-length",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/protocol-http": "^5.3.10",
28
+ "@smithy/protocol-http": "^5.3.11",
29
29
  "@smithy/types": "^4.13.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -33,7 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "typesVersions": {
36
- "<4.0": {
36
+ "<4.5": {
37
37
  "dist-types/*": [
38
38
  "dist-types/ts3.4/*"
39
39
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.4.20",
3
+ "version": "4.4.22",
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,13 +25,13 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.23.6",
29
- "@smithy/middleware-serde": "^4.2.11",
30
- "@smithy/node-config-provider": "^4.3.10",
31
- "@smithy/shared-ini-file-loader": "^4.4.5",
28
+ "@smithy/core": "^3.23.8",
29
+ "@smithy/middleware-serde": "^4.2.12",
30
+ "@smithy/node-config-provider": "^4.3.11",
31
+ "@smithy/shared-ini-file-loader": "^4.4.6",
32
32
  "@smithy/types": "^4.13.0",
33
- "@smithy/url-parser": "^4.2.10",
34
- "@smithy/util-middleware": "^4.2.10",
33
+ "@smithy/url-parser": "^4.2.11",
34
+ "@smithy/util-middleware": "^4.2.11",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -44,7 +44,7 @@
44
44
  "node": ">=18.0.0"
45
45
  },
46
46
  "typesVersions": {
47
- "<4.0": {
47
+ "<4.5": {
48
48
  "dist-types/*": [
49
49
  "dist-types/ts3.4/*"
50
50
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.4.37",
3
+ "version": "4.4.39",
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,14 +34,14 @@
34
34
  "license": "Apache-2.0",
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@smithy/node-config-provider": "^4.3.10",
38
- "@smithy/protocol-http": "^5.3.10",
39
- "@smithy/service-error-classification": "^4.2.10",
40
- "@smithy/smithy-client": "^4.12.0",
37
+ "@smithy/node-config-provider": "^4.3.11",
38
+ "@smithy/protocol-http": "^5.3.11",
39
+ "@smithy/service-error-classification": "^4.2.11",
40
+ "@smithy/smithy-client": "^4.12.2",
41
41
  "@smithy/types": "^4.13.0",
42
- "@smithy/util-middleware": "^4.2.10",
43
- "@smithy/util-retry": "^4.2.10",
44
- "@smithy/uuid": "^1.1.1",
42
+ "@smithy/util-middleware": "^4.2.11",
43
+ "@smithy/util-retry": "^4.2.11",
44
+ "@smithy/uuid": "^1.1.2",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -55,7 +55,7 @@
55
55
  "node": ">=18.0.0"
56
56
  },
57
57
  "typesVersions": {
58
- "<4.0": {
58
+ "<4.5": {
59
59
  "dist-types/*": [
60
60
  "dist-types/ts3.4/*"
61
61
  ]