@jjrawlins/cdk-iam-policy-builder-helper 0.0.36 → 0.0.38

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 (181) hide show
  1. package/.jsii +4 -4
  2. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  3. package/cdk-iam-policy-builder-helper/version +1 -1
  4. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +90 -90
  5. package/node_modules/@aws-sdk/client-iam/dist-es/protocols/Aws_query.js +90 -90
  6. package/node_modules/@aws-sdk/client-iam/package.json +18 -18
  7. package/node_modules/@aws-sdk/client-sso/package.json +17 -17
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +30 -75
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +1 -8
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +0 -4
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +0 -6
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +10 -6
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +0 -6
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -13
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -9
  18. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +0 -2
  19. package/node_modules/@aws-sdk/core/package.json +5 -7
  20. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -3
  21. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -5
  22. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -9
  23. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -8
  24. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -3
  25. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -5
  26. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -4
  27. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -2
  28. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -2
  29. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -2
  30. package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -5
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +29 -2
  32. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +13 -0
  33. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +2 -0
  34. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
  35. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -1
  36. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -1
  37. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +36 -3
  38. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +15 -0
  39. package/node_modules/@aws-sdk/nested-clients/package.json +18 -17
  40. package/node_modules/@aws-sdk/region-config-resolver/package.json +3 -2
  41. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  42. package/node_modules/@aws-sdk/types/package.json +2 -1
  43. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -4
  44. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +4 -4
  45. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +4 -4
  46. package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
  47. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -1
  48. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -2
  49. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -3
  50. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +6 -1
  51. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
  52. package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
  53. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +54 -0
  54. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
  55. package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
  56. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
  57. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
  58. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
  59. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
  60. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
  61. package/node_modules/@aws-sdk/xml-builder/package.json +10 -1
  62. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +15 -5
  63. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1 -1
  64. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +15 -5
  65. package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +1 -1
  66. package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +1 -1
  67. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +1 -1
  68. package/node_modules/@smithy/core/package.json +3 -4
  69. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  70. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +1 -1
  71. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +1 -1
  72. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -1
  73. package/node_modules/@smithy/middleware-retry/package.json +4 -5
  74. package/node_modules/@smithy/smithy-client/package.json +3 -3
  75. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  76. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  77. package/node_modules/@smithy/uuid/LICENSE +201 -0
  78. package/node_modules/@smithy/uuid/README.md +10 -0
  79. package/node_modules/@smithy/uuid/dist-cjs/index.js +45 -0
  80. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +1 -0
  81. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
  82. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +4 -0
  83. package/node_modules/@smithy/uuid/dist-cjs/v4.js +1 -0
  84. package/node_modules/@smithy/uuid/dist-es/index.js +1 -0
  85. package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +1 -0
  86. package/node_modules/@smithy/uuid/dist-es/randomUUID.js +2 -0
  87. package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +1 -0
  88. package/node_modules/@smithy/uuid/dist-es/v4.js +31 -0
  89. package/node_modules/@smithy/uuid/dist-types/index.d.ts +1 -0
  90. package/node_modules/@smithy/uuid/dist-types/randomUUID.browser.d.ts +1 -0
  91. package/node_modules/@smithy/uuid/dist-types/randomUUID.d.ts +2 -0
  92. package/node_modules/@smithy/uuid/dist-types/randomUUID.native.d.ts +1 -0
  93. package/node_modules/@smithy/uuid/dist-types/ts3.4/index.d.ts +1 -0
  94. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.browser.d.ts +1 -0
  95. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.d.ts +2 -0
  96. package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.native.d.ts +1 -0
  97. package/node_modules/@smithy/uuid/dist-types/ts3.4/v4.d.ts +19 -0
  98. package/node_modules/@smithy/uuid/dist-types/v4.d.ts +19 -0
  99. package/node_modules/@smithy/uuid/package.json +66 -0
  100. package/package.json +4 -4
  101. package/node_modules/@types/uuid/LICENSE +0 -21
  102. package/node_modules/@types/uuid/README.md +0 -15
  103. package/node_modules/@types/uuid/index.d.mts +0 -12
  104. package/node_modules/@types/uuid/index.d.ts +0 -86
  105. package/node_modules/@types/uuid/package.json +0 -54
  106. package/node_modules/uuid/CHANGELOG.md +0 -274
  107. package/node_modules/uuid/CONTRIBUTING.md +0 -18
  108. package/node_modules/uuid/LICENSE.md +0 -9
  109. package/node_modules/uuid/README.md +0 -466
  110. package/node_modules/uuid/dist/bin/uuid +0 -2
  111. package/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  112. package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  113. package/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  114. package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  115. package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  116. package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  117. package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  118. package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  119. package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  120. package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  121. package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  122. package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  123. package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  124. package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  125. package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  126. package/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  127. package/node_modules/uuid/dist/esm-browser/index.js +0 -9
  128. package/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  129. package/node_modules/uuid/dist/esm-browser/native.js +0 -4
  130. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  131. package/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  132. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  133. package/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  134. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  135. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  136. package/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  137. package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  138. package/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  139. package/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  140. package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  141. package/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  142. package/node_modules/uuid/dist/esm-browser/version.js +0 -11
  143. package/node_modules/uuid/dist/esm-node/index.js +0 -9
  144. package/node_modules/uuid/dist/esm-node/md5.js +0 -13
  145. package/node_modules/uuid/dist/esm-node/native.js +0 -4
  146. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  147. package/node_modules/uuid/dist/esm-node/parse.js +0 -35
  148. package/node_modules/uuid/dist/esm-node/regex.js +0 -1
  149. package/node_modules/uuid/dist/esm-node/rng.js +0 -12
  150. package/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  151. package/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  152. package/node_modules/uuid/dist/esm-node/v1.js +0 -95
  153. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  154. package/node_modules/uuid/dist/esm-node/v35.js +0 -66
  155. package/node_modules/uuid/dist/esm-node/v4.js +0 -29
  156. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  157. package/node_modules/uuid/dist/esm-node/validate.js +0 -7
  158. package/node_modules/uuid/dist/esm-node/version.js +0 -11
  159. package/node_modules/uuid/dist/index.js +0 -79
  160. package/node_modules/uuid/dist/md5-browser.js +0 -223
  161. package/node_modules/uuid/dist/md5.js +0 -23
  162. package/node_modules/uuid/dist/native-browser.js +0 -11
  163. package/node_modules/uuid/dist/native.js +0 -15
  164. package/node_modules/uuid/dist/nil.js +0 -8
  165. package/node_modules/uuid/dist/parse.js +0 -45
  166. package/node_modules/uuid/dist/regex.js +0 -8
  167. package/node_modules/uuid/dist/rng-browser.js +0 -25
  168. package/node_modules/uuid/dist/rng.js +0 -24
  169. package/node_modules/uuid/dist/sha1-browser.js +0 -104
  170. package/node_modules/uuid/dist/sha1.js +0 -23
  171. package/node_modules/uuid/dist/stringify.js +0 -44
  172. package/node_modules/uuid/dist/uuid-bin.js +0 -85
  173. package/node_modules/uuid/dist/v1.js +0 -107
  174. package/node_modules/uuid/dist/v3.js +0 -16
  175. package/node_modules/uuid/dist/v35.js +0 -80
  176. package/node_modules/uuid/dist/v4.js +0 -43
  177. package/node_modules/uuid/dist/v5.js +0 -16
  178. package/node_modules/uuid/dist/validate.js +0 -17
  179. package/node_modules/uuid/dist/version.js +0 -21
  180. package/node_modules/uuid/package.json +0 -135
  181. package/node_modules/uuid/wrapper.mjs +0 -10
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iam",
3
3
  "description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
4
- "version": "3.891.0",
4
+ "version": "3.896.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iam",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.890.0",
24
- "@aws-sdk/credential-provider-node": "3.891.0",
25
- "@aws-sdk/middleware-host-header": "3.891.0",
26
- "@aws-sdk/middleware-logger": "3.891.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.891.0",
28
- "@aws-sdk/middleware-user-agent": "3.891.0",
29
- "@aws-sdk/region-config-resolver": "3.890.0",
30
- "@aws-sdk/types": "3.887.0",
31
- "@aws-sdk/util-endpoints": "3.891.0",
32
- "@aws-sdk/util-user-agent-browser": "3.887.0",
33
- "@aws-sdk/util-user-agent-node": "3.891.0",
23
+ "@aws-sdk/core": "3.896.0",
24
+ "@aws-sdk/credential-provider-node": "3.896.0",
25
+ "@aws-sdk/middleware-host-header": "3.893.0",
26
+ "@aws-sdk/middleware-logger": "3.893.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.893.0",
28
+ "@aws-sdk/middleware-user-agent": "3.896.0",
29
+ "@aws-sdk/region-config-resolver": "3.893.0",
30
+ "@aws-sdk/types": "3.893.0",
31
+ "@aws-sdk/util-endpoints": "3.895.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.893.0",
33
+ "@aws-sdk/util-user-agent-node": "3.896.0",
34
34
  "@smithy/config-resolver": "^4.2.2",
35
- "@smithy/core": "^3.11.0",
35
+ "@smithy/core": "^3.12.0",
36
36
  "@smithy/fetch-http-handler": "^5.2.1",
37
37
  "@smithy/hash-node": "^4.1.1",
38
38
  "@smithy/invalid-dependency": "^4.1.1",
39
39
  "@smithy/middleware-content-length": "^4.1.1",
40
- "@smithy/middleware-endpoint": "^4.2.2",
41
- "@smithy/middleware-retry": "^4.2.3",
40
+ "@smithy/middleware-endpoint": "^4.2.4",
41
+ "@smithy/middleware-retry": "^4.3.0",
42
42
  "@smithy/middleware-serde": "^4.1.1",
43
43
  "@smithy/middleware-stack": "^4.1.1",
44
44
  "@smithy/node-config-provider": "^4.2.2",
45
45
  "@smithy/node-http-handler": "^4.2.1",
46
46
  "@smithy/protocol-http": "^5.2.1",
47
- "@smithy/smithy-client": "^4.6.2",
47
+ "@smithy/smithy-client": "^4.6.4",
48
48
  "@smithy/types": "^4.5.0",
49
49
  "@smithy/url-parser": "^4.1.1",
50
50
  "@smithy/util-base64": "^4.1.0",
51
51
  "@smithy/util-body-length-browser": "^4.1.0",
52
52
  "@smithy/util-body-length-node": "^4.1.0",
53
- "@smithy/util-defaults-mode-browser": "^4.1.2",
54
- "@smithy/util-defaults-mode-node": "^4.1.2",
53
+ "@smithy/util-defaults-mode-browser": "^4.1.4",
54
+ "@smithy/util-defaults-mode-node": "^4.1.4",
55
55
  "@smithy/util-endpoints": "^3.1.2",
56
56
  "@smithy/util-middleware": "^4.1.1",
57
57
  "@smithy/util-retry": "^4.1.2",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.891.0",
4
+ "version": "3.896.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.890.0",
24
- "@aws-sdk/middleware-host-header": "3.891.0",
25
- "@aws-sdk/middleware-logger": "3.891.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.891.0",
27
- "@aws-sdk/middleware-user-agent": "3.891.0",
28
- "@aws-sdk/region-config-resolver": "3.890.0",
29
- "@aws-sdk/types": "3.887.0",
30
- "@aws-sdk/util-endpoints": "3.891.0",
31
- "@aws-sdk/util-user-agent-browser": "3.887.0",
32
- "@aws-sdk/util-user-agent-node": "3.891.0",
23
+ "@aws-sdk/core": "3.896.0",
24
+ "@aws-sdk/middleware-host-header": "3.893.0",
25
+ "@aws-sdk/middleware-logger": "3.893.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.893.0",
27
+ "@aws-sdk/middleware-user-agent": "3.896.0",
28
+ "@aws-sdk/region-config-resolver": "3.893.0",
29
+ "@aws-sdk/types": "3.893.0",
30
+ "@aws-sdk/util-endpoints": "3.895.0",
31
+ "@aws-sdk/util-user-agent-browser": "3.893.0",
32
+ "@aws-sdk/util-user-agent-node": "3.896.0",
33
33
  "@smithy/config-resolver": "^4.2.2",
34
- "@smithy/core": "^3.11.0",
34
+ "@smithy/core": "^3.12.0",
35
35
  "@smithy/fetch-http-handler": "^5.2.1",
36
36
  "@smithy/hash-node": "^4.1.1",
37
37
  "@smithy/invalid-dependency": "^4.1.1",
38
38
  "@smithy/middleware-content-length": "^4.1.1",
39
- "@smithy/middleware-endpoint": "^4.2.2",
40
- "@smithy/middleware-retry": "^4.2.3",
39
+ "@smithy/middleware-endpoint": "^4.2.4",
40
+ "@smithy/middleware-retry": "^4.3.0",
41
41
  "@smithy/middleware-serde": "^4.1.1",
42
42
  "@smithy/middleware-stack": "^4.1.1",
43
43
  "@smithy/node-config-provider": "^4.2.2",
44
44
  "@smithy/node-http-handler": "^4.2.1",
45
45
  "@smithy/protocol-http": "^5.2.1",
46
- "@smithy/smithy-client": "^4.6.2",
46
+ "@smithy/smithy-client": "^4.6.4",
47
47
  "@smithy/types": "^4.5.0",
48
48
  "@smithy/url-parser": "^4.1.1",
49
49
  "@smithy/util-base64": "^4.1.0",
50
50
  "@smithy/util-body-length-browser": "^4.1.0",
51
51
  "@smithy/util-body-length-node": "^4.1.0",
52
- "@smithy/util-defaults-mode-browser": "^4.1.2",
53
- "@smithy/util-defaults-mode-node": "^4.1.2",
52
+ "@smithy/util-defaults-mode-browser": "^4.1.4",
53
+ "@smithy/util-defaults-mode-node": "^4.1.4",
54
54
  "@smithy/util-endpoints": "^3.1.2",
55
55
  "@smithy/util-middleware": "^4.1.1",
56
56
  "@smithy/util-retry": "^4.1.2",
@@ -54,22 +54,10 @@ var import_schema2 = require("@smithy/core/schema");
54
54
 
55
55
  // src/submodules/protocols/ProtocolLib.ts
56
56
  var import_schema = require("@smithy/core/schema");
57
- var import_util_body_length_browser = require("@smithy/util-body-length-browser");
58
57
  var ProtocolLib = class {
59
58
  static {
60
59
  __name(this, "ProtocolLib");
61
60
  }
62
- /**
63
- * @param body - to be inspected.
64
- * @param serdeContext - this is a subset type but in practice is the client.config having a property called bodyLengthChecker.
65
- *
66
- * @returns content-length value for the body if possible.
67
- * @throws Error and should be caught and handled if not possible to determine length.
68
- */
69
- calculateContentLength(body, serdeContext) {
70
- const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? import_util_body_length_browser.calculateBodyLength;
71
- return String(bodyLengthCalculator(body));
72
- }
73
61
  /**
74
62
  * This is only for REST protocols.
75
63
  *
@@ -127,9 +115,7 @@ var ProtocolLib = class {
127
115
  const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
128
116
  return { errorSchema, errorMetadata };
129
117
  } catch (e) {
130
- if (dataObject.Message) {
131
- dataObject.message = dataObject.Message;
132
- }
118
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
133
119
  const baseExceptionSchema = import_schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
134
120
  if (baseExceptionSchema) {
135
121
  const ErrorCtor = baseExceptionSchema.ctor;
@@ -683,7 +669,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
683
669
  return (0, import_serde4.generateIdempotencyToken)();
684
670
  }
685
671
  const mediaType = ns.getMergedTraits().mediaType;
686
- if (typeof value === "string" && mediaType) {
672
+ if (value != null && mediaType) {
687
673
  const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
688
674
  if (isJson) {
689
675
  return import_serde4.LazyJsonString.from(value);
@@ -776,10 +762,6 @@ var AwsJsonRpcProtocol = class extends import_protocols3.RpcProtocol {
776
762
  if ((0, import_schema5.deref)(operationSchema.input) === "unit" || !request.body) {
777
763
  request.body = "{}";
778
764
  }
779
- try {
780
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
781
- } catch (e) {
782
- }
783
765
  return request;
784
766
  }
785
767
  getPayloadCodec() {
@@ -929,12 +911,6 @@ var AwsRestJsonProtocol = class extends import_protocols4.HttpBindingProtocol {
929
911
  if (request.headers["content-type"] && !request.body) {
930
912
  request.body = "{}";
931
913
  }
932
- if (request.body) {
933
- try {
934
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
935
- } catch (e) {
936
- }
937
- }
938
914
  return request;
939
915
  }
940
916
  async handleError(operationSchema, context, response, dataObject, metadata) {
@@ -990,11 +966,11 @@ var import_protocols7 = require("@smithy/core/protocols");
990
966
  var import_schema9 = require("@smithy/core/schema");
991
967
 
992
968
  // src/submodules/protocols/xml/XmlShapeDeserializer.ts
969
+ var import_xml_builder = require("@aws-sdk/xml-builder");
993
970
  var import_protocols5 = require("@smithy/core/protocols");
994
971
  var import_schema7 = require("@smithy/core/schema");
995
972
  var import_smithy_client3 = require("@smithy/smithy-client");
996
973
  var import_util_utf82 = require("@smithy/util-utf8");
997
- var import_fast_xml_parser = require("fast-xml-parser");
998
974
  var XmlShapeDeserializer = class extends SerdeContextConfig {
999
975
  constructor(settings) {
1000
976
  super();
@@ -1037,6 +1013,9 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
1037
1013
  }
1038
1014
  readSchema(_schema, value) {
1039
1015
  const ns = import_schema7.NormalizedSchema.of(_schema);
1016
+ if (ns.isUnitSchema()) {
1017
+ return;
1018
+ }
1040
1019
  const traits = ns.getMergedTraits();
1041
1020
  if (ns.isListSchema() && !Array.isArray(value)) {
1042
1021
  return this.readSchema(ns, [value]);
@@ -1106,20 +1085,9 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
1106
1085
  }
1107
1086
  parseXml(xml) {
1108
1087
  if (xml.length) {
1109
- const parser = new import_fast_xml_parser.XMLParser({
1110
- attributeNamePrefix: "",
1111
- htmlEntities: true,
1112
- ignoreAttributes: false,
1113
- ignoreDeclaration: true,
1114
- parseTagValue: false,
1115
- trimValues: false,
1116
- tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
1117
- });
1118
- parser.addEntity("#xD", "\r");
1119
- parser.addEntity("#10", "\n");
1120
1088
  let parsedObj;
1121
1089
  try {
1122
- parsedObj = parser.parse(xml, true);
1090
+ parsedObj = (0, import_xml_builder.parseXML)(xml);
1123
1091
  } catch (e) {
1124
1092
  if (e && typeof e === "object") {
1125
1093
  Object.defineProperty(e, "$responseBodyText", {
@@ -1340,10 +1308,6 @@ var AwsQueryProtocol = class extends import_protocols7.RpcProtocol {
1340
1308
  if (request.body.endsWith("&")) {
1341
1309
  request.body = request.body.slice(-1);
1342
1310
  }
1343
- try {
1344
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
1345
- } catch (e) {
1346
- }
1347
1311
  return request;
1348
1312
  }
1349
1313
  async deserializeResponse(operationSchema, context, response) {
@@ -1383,6 +1347,13 @@ var AwsQueryProtocol = class extends import_protocols7.RpcProtocol {
1383
1347
  async handleError(operationSchema, context, response, dataObject, metadata) {
1384
1348
  const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1385
1349
  const errorData = this.loadQueryError(dataObject);
1350
+ const message = this.loadQueryErrorMessage(dataObject);
1351
+ errorData.message = message;
1352
+ errorData.Error = {
1353
+ Type: errorData.Type,
1354
+ Code: errorData.Code,
1355
+ Message: message
1356
+ };
1386
1357
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
1387
1358
  errorIdentifier,
1388
1359
  this.options.defaultNamespace,
@@ -1394,9 +1365,10 @@ var AwsQueryProtocol = class extends import_protocols7.RpcProtocol {
1394
1365
  )
1395
1366
  );
1396
1367
  const ns = import_schema9.NormalizedSchema.of(errorSchema);
1397
- const message = this.loadQueryErrorMessage(dataObject);
1398
1368
  const exception = new errorSchema.ctor(message);
1399
- const output = {};
1369
+ const output = {
1370
+ Error: errorData.Error
1371
+ };
1400
1372
  for (const [name, member] of ns.structIterator()) {
1401
1373
  const target = member.getMergedTraits().xmlName ?? name;
1402
1374
  const value = errorData[target] ?? dataObject[target];
@@ -1468,24 +1440,13 @@ var import_protocols9 = require("@smithy/core/protocols");
1468
1440
  var import_schema11 = require("@smithy/core/schema");
1469
1441
 
1470
1442
  // src/submodules/protocols/xml/parseXmlBody.ts
1443
+ var import_xml_builder2 = require("@aws-sdk/xml-builder");
1471
1444
  var import_smithy_client5 = require("@smithy/smithy-client");
1472
- var import_fast_xml_parser2 = require("fast-xml-parser");
1473
1445
  var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1474
1446
  if (encoded.length) {
1475
- const parser = new import_fast_xml_parser2.XMLParser({
1476
- attributeNamePrefix: "",
1477
- htmlEntities: true,
1478
- ignoreAttributes: false,
1479
- ignoreDeclaration: true,
1480
- parseTagValue: false,
1481
- trimValues: false,
1482
- tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
1483
- });
1484
- parser.addEntity("#xD", "\r");
1485
- parser.addEntity("#10", "\n");
1486
1447
  let parsedObj;
1487
1448
  try {
1488
- parsedObj = parser.parse(encoded, true);
1449
+ parsedObj = (0, import_xml_builder2.parseXML)(encoded);
1489
1450
  } catch (e) {
1490
1451
  if (e && typeof e === "object") {
1491
1452
  Object.defineProperty(e, "$responseBodyText", {
@@ -1525,7 +1486,7 @@ var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
1525
1486
  }, "loadRestXmlErrorCode");
1526
1487
 
1527
1488
  // src/submodules/protocols/xml/XmlShapeSerializer.ts
1528
- var import_xml_builder = require("@aws-sdk/xml-builder");
1489
+ var import_xml_builder3 = require("@aws-sdk/xml-builder");
1529
1490
  var import_protocols8 = require("@smithy/core/protocols");
1530
1491
  var import_schema10 = require("@smithy/core/schema");
1531
1492
  var import_serde6 = require("@smithy/core/serde");
@@ -1586,7 +1547,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1586
1547
  )}.`
1587
1548
  );
1588
1549
  }
1589
- const structXmlNode = import_xml_builder.XmlNode.of(name);
1550
+ const structXmlNode = import_xml_builder3.XmlNode.of(name);
1590
1551
  const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1591
1552
  for (const [memberName, memberSchema] of ns.structIterator()) {
1592
1553
  const val = value[memberName];
@@ -1605,7 +1566,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1605
1566
  } else if (memberSchema.isStructSchema()) {
1606
1567
  structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
1607
1568
  } else {
1608
- const memberNode = import_xml_builder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1569
+ const memberNode = import_xml_builder3.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1609
1570
  this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
1610
1571
  structXmlNode.addChildNode(memberNode);
1611
1572
  }
@@ -1639,7 +1600,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1639
1600
  struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")
1640
1601
  );
1641
1602
  } else {
1642
- const listItemNode = import_xml_builder.XmlNode.of(
1603
+ const listItemNode = import_xml_builder3.XmlNode.of(
1643
1604
  flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"
1644
1605
  );
1645
1606
  this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
@@ -1653,7 +1614,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1653
1614
  }
1654
1615
  }
1655
1616
  } else {
1656
- const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1617
+ const listNode = import_xml_builder3.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1657
1618
  if (xmlns) {
1658
1619
  listNode.addAttribute(xmlnsAttr, xmlns);
1659
1620
  }
@@ -1682,13 +1643,13 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1682
1643
  const flat = !!mapTraits.xmlFlattened;
1683
1644
  const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
1684
1645
  const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => {
1685
- const keyNode = import_xml_builder.XmlNode.of(keyTag, key);
1646
+ const keyNode = import_xml_builder3.XmlNode.of(keyTag, key);
1686
1647
  const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
1687
1648
  if (keyXmlns) {
1688
1649
  keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
1689
1650
  }
1690
1651
  entry.addChildNode(keyNode);
1691
- let valueNode = import_xml_builder.XmlNode.of(valueTag);
1652
+ let valueNode = import_xml_builder3.XmlNode.of(valueTag);
1692
1653
  if (mapValueSchema.isListSchema()) {
1693
1654
  this.writeList(mapValueSchema, val, valueNode, xmlns);
1694
1655
  } else if (mapValueSchema.isMapSchema()) {
@@ -1703,7 +1664,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1703
1664
  if (flat) {
1704
1665
  for (const [key, val] of Object.entries(map)) {
1705
1666
  if (sparse || val != null) {
1706
- const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1667
+ const entry = import_xml_builder3.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1707
1668
  addKeyValue(entry, key, val);
1708
1669
  container.addChildNode(entry);
1709
1670
  }
@@ -1711,7 +1672,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1711
1672
  } else {
1712
1673
  let mapNode;
1713
1674
  if (!containerIsMap) {
1714
- mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1675
+ mapNode = import_xml_builder3.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
1715
1676
  if (xmlns) {
1716
1677
  mapNode.addAttribute(xmlnsAttr, xmlns);
1717
1678
  }
@@ -1719,7 +1680,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1719
1680
  }
1720
1681
  for (const [key, val] of Object.entries(map)) {
1721
1682
  if (sparse || val != null) {
1722
- const entry = import_xml_builder.XmlNode.of("entry");
1683
+ const entry = import_xml_builder3.XmlNode.of("entry");
1723
1684
  addKeyValue(entry, key, val);
1724
1685
  (containerIsMap ? container : mapNode).addChildNode(entry);
1725
1686
  }
@@ -1787,7 +1748,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
1787
1748
  writeSimpleInto(_schema, value, into, parentXmlns) {
1788
1749
  const nodeContents = this.writeSimple(_schema, value);
1789
1750
  const ns = import_schema10.NormalizedSchema.of(_schema);
1790
- const content = new import_xml_builder.XmlText(nodeContents);
1751
+ const content = new import_xml_builder3.XmlText(nodeContents);
1791
1752
  const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1792
1753
  if (xmlns) {
1793
1754
  into.addAttribute(xmlnsAttr, xmlns);
@@ -1869,12 +1830,6 @@ var AwsRestXmlProtocol = class extends import_protocols9.HttpBindingProtocol {
1869
1830
  request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
1870
1831
  }
1871
1832
  }
1872
- if (request.body) {
1873
- try {
1874
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
1875
- } catch (e) {
1876
- }
1877
- }
1878
1833
  return request;
1879
1834
  }
1880
1835
  async deserializeResponse(operationSchema, context, response) {
@@ -1,10 +1,5 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
- import { calculateBodyLength } from "@smithy/util-body-length-browser";
3
2
  export class ProtocolLib {
4
- calculateContentLength(body, serdeContext) {
5
- const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? calculateBodyLength;
6
- return String(bodyLengthCalculator(body));
7
- }
8
3
  resolveRestContentType(defaultContentType, inputSchema) {
9
4
  const members = inputSchema.getMemberSchemas();
10
5
  const httpPayloadMember = Object.values(members).find((m) => {
@@ -53,9 +48,7 @@ export class ProtocolLib {
53
48
  return { errorSchema, errorMetadata };
54
49
  }
55
50
  catch (e) {
56
- if (dataObject.Message) {
57
- dataObject.message = dataObject.Message;
58
- }
51
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
59
52
  const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
60
53
  if (baseExceptionSchema) {
61
54
  const ErrorCtor = baseExceptionSchema.ctor;
@@ -41,10 +41,6 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
41
41
  if (deref(operationSchema.input) === "unit" || !request.body) {
42
42
  request.body = "{}";
43
43
  }
44
- try {
45
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
46
- }
47
- catch (e) { }
48
44
  return request;
49
45
  }
50
46
  getPayloadCodec() {
@@ -46,12 +46,6 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
46
46
  if (request.headers["content-type"] && !request.body) {
47
47
  request.body = "{}";
48
48
  }
49
- if (request.body) {
50
- try {
51
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
52
- }
53
- catch (e) { }
54
- }
55
49
  return request;
56
50
  }
57
51
  async handleError(operationSchema, context, response, dataObject, metadata) {
@@ -104,7 +104,7 @@ export class JsonShapeSerializer extends SerdeContextConfig {
104
104
  return generateIdempotencyToken();
105
105
  }
106
106
  const mediaType = ns.getMergedTraits().mediaType;
107
- if (typeof value === "string" && mediaType) {
107
+ if (value != null && mediaType) {
108
108
  const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
109
109
  if (isJson) {
110
110
  return LazyJsonString.from(value);
@@ -52,10 +52,6 @@ export class AwsQueryProtocol extends RpcProtocol {
52
52
  if (request.body.endsWith("&")) {
53
53
  request.body = request.body.slice(-1);
54
54
  }
55
- try {
56
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
57
- }
58
- catch (e) { }
59
55
  return request;
60
56
  }
61
57
  async deserializeResponse(operationSchema, context, response) {
@@ -92,11 +88,19 @@ export class AwsQueryProtocol extends RpcProtocol {
92
88
  async handleError(operationSchema, context, response, dataObject, metadata) {
93
89
  const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
94
90
  const errorData = this.loadQueryError(dataObject);
91
+ const message = this.loadQueryErrorMessage(dataObject);
92
+ errorData.message = message;
93
+ errorData.Error = {
94
+ Type: errorData.Type,
95
+ Code: errorData.Code,
96
+ Message: message,
97
+ };
95
98
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
96
99
  const ns = NormalizedSchema.of(errorSchema);
97
- const message = this.loadQueryErrorMessage(dataObject);
98
100
  const exception = new errorSchema.ctor(message);
99
- const output = {};
101
+ const output = {
102
+ Error: errorData.Error,
103
+ };
100
104
  for (const [name, member] of ns.structIterator()) {
101
105
  const target = member.getMergedTraits().xmlName ?? name;
102
106
  const value = errorData[target] ?? dataObject[target];
@@ -43,12 +43,6 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
43
43
  request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
44
44
  }
45
45
  }
46
- if (request.body) {
47
- try {
48
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
49
- }
50
- catch (e) { }
51
- }
52
46
  return request;
53
47
  }
54
48
  async deserializeResponse(operationSchema, context, response) {
@@ -1,8 +1,8 @@
1
+ import { parseXML } from "@aws-sdk/xml-builder";
1
2
  import { FromStringShapeDeserializer } from "@smithy/core/protocols";
2
3
  import { NormalizedSchema } from "@smithy/core/schema";
3
4
  import { getValueFromTextNode } from "@smithy/smithy-client";
4
5
  import { toUtf8 } from "@smithy/util-utf8";
5
- import { XMLParser } from "fast-xml-parser";
6
6
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
7
7
  export class XmlShapeDeserializer extends SerdeContextConfig {
8
8
  settings;
@@ -42,6 +42,9 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
42
42
  }
43
43
  readSchema(_schema, value) {
44
44
  const ns = NormalizedSchema.of(_schema);
45
+ if (ns.isUnitSchema()) {
46
+ return;
47
+ }
45
48
  const traits = ns.getMergedTraits();
46
49
  if (ns.isListSchema() && !Array.isArray(value)) {
47
50
  return this.readSchema(ns, [value]);
@@ -114,20 +117,9 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
114
117
  }
115
118
  parseXml(xml) {
116
119
  if (xml.length) {
117
- const parser = new XMLParser({
118
- attributeNamePrefix: "",
119
- htmlEntities: true,
120
- ignoreAttributes: false,
121
- ignoreDeclaration: true,
122
- parseTagValue: false,
123
- trimValues: false,
124
- tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
125
- });
126
- parser.addEntity("#xD", "\r");
127
- parser.addEntity("#10", "\n");
128
120
  let parsedObj;
129
121
  try {
130
- parsedObj = parser.parse(xml, true);
122
+ parsedObj = parseXML(xml);
131
123
  }
132
124
  catch (e) {
133
125
  if (e && typeof e === "object") {
@@ -1,22 +1,11 @@
1
+ import { parseXML } from "@aws-sdk/xml-builder";
1
2
  import { getValueFromTextNode } from "@smithy/smithy-client";
2
- import { XMLParser } from "fast-xml-parser";
3
3
  import { collectBodyString } from "../common";
4
4
  export const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5
5
  if (encoded.length) {
6
- const parser = new XMLParser({
7
- attributeNamePrefix: "",
8
- htmlEntities: true,
9
- ignoreAttributes: false,
10
- ignoreDeclaration: true,
11
- parseTagValue: false,
12
- trimValues: false,
13
- tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
14
- });
15
- parser.addEntity("#xD", "\r");
16
- parser.addEntity("#10", "\n");
17
6
  let parsedObj;
18
7
  try {
19
- parsedObj = parser.parse(encoded, true);
8
+ parsedObj = parseXML(encoded);
20
9
  }
21
10
  catch (e) {
22
11
  if (e && typeof e === "object") {
@@ -1,5 +1,5 @@
1
1
  import { ErrorSchema, NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
- import type { HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, SerdeFunctions } from "@smithy/types";
2
+ import type { HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata } from "@smithy/types";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -13,14 +13,6 @@ type ErrorMetadataBearer = MetadataBearer & {
13
13
  * @internal
14
14
  */
15
15
  export declare class ProtocolLib {
16
- /**
17
- * @param body - to be inspected.
18
- * @param serdeContext - this is a subset type but in practice is the client.config having a property called bodyLengthChecker.
19
- *
20
- * @returns content-length value for the body if possible.
21
- * @throws Error and should be caught and handled if not possible to determine length.
22
- */
23
- calculateContentLength(body: any, serdeContext?: SerdeFunctions): string;
24
16
  /**
25
17
  * This is only for REST protocols.
26
18
  *
@@ -7,14 +7,12 @@ import {
7
7
  HttpResponse as IHttpResponse,
8
8
  MetadataBearer,
9
9
  ResponseMetadata,
10
- SerdeFunctions,
11
10
  } from "@smithy/types";
12
11
  type ErrorMetadataBearer = MetadataBearer & {
13
12
  $response: IHttpResponse;
14
13
  $fault: "client" | "server";
15
14
  };
16
15
  export declare class ProtocolLib {
17
- calculateContentLength(body: any, serdeContext?: SerdeFunctions): string;
18
16
  resolveRestContentType(
19
17
  defaultContentType: string,
20
18
  inputSchema: NormalizedSchema
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.890.0",
3
+ "version": "3.896.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -81,20 +81,18 @@
81
81
  },
82
82
  "license": "Apache-2.0",
83
83
  "dependencies": {
84
- "@aws-sdk/types": "3.887.0",
85
- "@aws-sdk/xml-builder": "3.887.0",
86
- "@smithy/core": "^3.11.0",
84
+ "@aws-sdk/types": "3.893.0",
85
+ "@aws-sdk/xml-builder": "3.894.0",
86
+ "@smithy/core": "^3.12.0",
87
87
  "@smithy/node-config-provider": "^4.2.2",
88
88
  "@smithy/property-provider": "^4.1.1",
89
89
  "@smithy/protocol-http": "^5.2.1",
90
90
  "@smithy/signature-v4": "^5.2.1",
91
- "@smithy/smithy-client": "^4.6.2",
91
+ "@smithy/smithy-client": "^4.6.4",
92
92
  "@smithy/types": "^4.5.0",
93
93
  "@smithy/util-base64": "^4.1.0",
94
- "@smithy/util-body-length-browser": "^4.1.0",
95
94
  "@smithy/util-middleware": "^4.1.1",
96
95
  "@smithy/util-utf8": "^4.1.0",
97
- "fast-xml-parser": "5.2.5",
98
96
  "tslib": "^2.6.2"
99
97
  },
100
98
  "devDependencies": {