@cdk8s/awscdk-resolver 0.0.269 → 0.0.271

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 (155) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +17 -18
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +2 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/EndpointParameters.js +2 -3
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeExtensions.js +2 -14
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  10. package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  11. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +17 -18
  12. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -1
  13. package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  14. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js +2 -3
  15. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js +2 -14
  16. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  17. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +13 -15
  18. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +3 -3
  19. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +82 -33
  20. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +4 -4
  21. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +4 -4
  22. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +70 -27
  23. package/node_modules/@aws-sdk/core/dist-types/api-extractor-type-index.d.ts +5 -0
  24. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +0 -3
  25. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +9 -0
  26. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  27. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +25 -3
  28. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +9 -0
  29. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/parseXmlBody.d.ts +9 -0
  30. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +5 -0
  31. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +11 -1
  32. package/node_modules/@aws-sdk/core/package.json +22 -22
  33. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +3 -3
  34. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  35. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  36. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  37. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  38. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
  39. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  40. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  41. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  42. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +7 -9
  43. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +15 -0
  44. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -4
  45. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +5 -5
  46. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  47. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  48. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +11 -11
  49. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +4 -4
  50. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -3
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +17 -18
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +2 -1
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +2 -5
  55. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +2 -3
  56. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +2 -14
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -1
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -3
  59. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js +2 -3
  60. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js +2 -14
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +2 -1
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +2 -5
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js +2 -3
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js +2 -14
  65. package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
  66. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +15 -26
  67. package/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js +2 -12
  68. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +2 -3
  69. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  70. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  71. package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -3
  72. package/node_modules/@aws-sdk/types/dist-es/function.js +1 -0
  73. package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
  74. package/node_modules/@aws-sdk/types/dist-types/function.d.ts +7 -0
  75. package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
  76. package/node_modules/@aws-sdk/types/dist-types/ts3.4/function.d.ts +7 -0
  77. package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
  78. package/node_modules/@aws-sdk/types/package.json +2 -2
  79. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +5 -7
  80. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  81. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  82. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +5 -5
  83. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  84. package/node_modules/@smithy/abort-controller/package.json +5 -5
  85. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +11 -14
  86. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js +5 -6
  87. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js +4 -5
  88. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +2 -3
  89. package/node_modules/@smithy/config-resolver/package.json +7 -7
  90. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +41 -0
  91. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  92. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +9 -0
  93. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  94. package/node_modules/@smithy/core/dist-types/submodules/serde/value/NumericValue.d.ts +31 -0
  95. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  96. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/value/NumericValue.d.ts +31 -0
  97. package/node_modules/@smithy/core/package.json +17 -8
  98. package/node_modules/@smithy/core/serde.d.ts +7 -0
  99. package/node_modules/@smithy/core/serde.js +6 -0
  100. package/node_modules/@smithy/credential-provider-imds/package.json +8 -8
  101. package/node_modules/@smithy/fetch-http-handler/package.json +8 -8
  102. package/node_modules/@smithy/hash-node/package.json +5 -5
  103. package/node_modules/@smithy/invalid-dependency/package.json +5 -5
  104. package/node_modules/@smithy/middleware-content-length/package.json +6 -6
  105. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +5 -6
  106. package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +5 -6
  107. package/node_modules/@smithy/middleware-endpoint/package.json +10 -10
  108. package/node_modules/@smithy/middleware-retry/README.md +1 -1
  109. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +5 -6
  110. package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +5 -6
  111. package/node_modules/@smithy/middleware-retry/package.json +10 -10
  112. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  113. package/node_modules/@smithy/middleware-stack/package.json +5 -5
  114. package/node_modules/@smithy/node-config-provider/package.json +7 -7
  115. package/node_modules/@smithy/node-http-handler/package.json +7 -7
  116. package/node_modules/@smithy/property-provider/package.json +5 -5
  117. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +4 -5
  118. package/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +4 -5
  119. package/node_modules/@smithy/protocol-http/package.json +5 -5
  120. package/node_modules/@smithy/querystring-builder/package.json +5 -5
  121. package/node_modules/@smithy/querystring-parser/package.json +5 -5
  122. package/node_modules/@smithy/service-error-classification/package.json +5 -5
  123. package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
  124. package/node_modules/@smithy/signature-v4/package.json +7 -7
  125. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +6 -14
  126. package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +2 -3
  127. package/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js +2 -8
  128. package/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js +2 -3
  129. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +8 -0
  130. package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +0 -1
  131. package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +6 -6
  132. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +8 -0
  133. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +0 -1
  134. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +6 -6
  135. package/node_modules/@smithy/smithy-client/package.json +9 -9
  136. package/node_modules/@smithy/types/dist-cjs/index.js +4 -9
  137. package/node_modules/@smithy/types/dist-es/extensions/checksum.js +2 -3
  138. package/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +2 -6
  139. package/node_modules/@smithy/types/package.json +4 -4
  140. package/node_modules/@smithy/url-parser/package.json +6 -6
  141. package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
  142. package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
  143. package/node_modules/@smithy/util-endpoints/package.json +6 -6
  144. package/node_modules/@smithy/util-middleware/package.json +5 -5
  145. package/node_modules/@smithy/util-retry/README.md +1 -1
  146. package/node_modules/@smithy/util-retry/package.json +6 -6
  147. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  148. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +3 -3
  149. package/node_modules/@smithy/util-stream/dist-es/createBufferedReadable.js +1 -1
  150. package/node_modules/@smithy/util-stream/dist-es/createBufferedReadableStream.js +3 -3
  151. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadableStream.d.ts +3 -2
  152. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadableStream.d.ts +3 -2
  153. package/node_modules/@smithy/util-stream/package.json +6 -6
  154. package/node_modules/@smithy/util-waiter/package.json +6 -6
  155. package/package.json +4 -4
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS,
25
25
  UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME,
26
26
  UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME,
@@ -28,7 +28,7 @@ __export(src_exports, {
28
28
  crtAvailability: () => crtAvailability,
29
29
  defaultUserAgent: () => defaultUserAgent
30
30
  });
31
- module.exports = __toCommonJS(src_exports);
31
+ module.exports = __toCommonJS(index_exports);
32
32
 
33
33
  // src/defaultUserAgent.ts
34
34
  var import_os = require("os");
@@ -85,8 +85,8 @@ var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
85
85
  var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
86
86
  var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
87
87
  var NODE_APP_ID_CONFIG_OPTIONS = {
88
- environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
89
- configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
88
+ environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2[UA_APP_ID_ENV_NAME], "environmentVariableSelector"),
89
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], "configFileSelector"),
90
90
  default: import_middleware_user_agent.DEFAULT_UA_APP_ID
91
91
  };
92
92
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.758.0",
3
+ "version": "3.775.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",
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.758.0",
25
- "@aws-sdk/types": "3.734.0",
26
- "@smithy/node-config-provider": "^4.0.1",
27
- "@smithy/types": "^4.1.0",
24
+ "@aws-sdk/middleware-user-agent": "3.775.0",
25
+ "@aws-sdk/types": "3.775.0",
26
+ "@smithy/node-config-provider": "^4.0.2",
27
+ "@smithy/types": "^4.2.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -14,7 +14,7 @@
14
14
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
15
15
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
16
16
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
17
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
17
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
18
18
  "extract:docs": "api-extractor run --local",
19
19
  "test": "yarn g:vitest run",
20
20
  "test:watch": "yarn g:vitest watch"
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@smithy/types": "^4.1.0",
28
+ "@smithy/types": "^4.2.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
@@ -41,10 +41,10 @@
41
41
  "files": [
42
42
  "dist-*/**"
43
43
  ],
44
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/abort-controller",
44
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/abort-controller",
45
45
  "repository": {
46
46
  "type": "git",
47
- "url": "https://github.com/awslabs/smithy-typescript.git",
47
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
48
48
  "directory": "packages/abort-controller"
49
49
  },
50
50
  "devDependencies": {
@@ -64,14 +64,13 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
64
64
  // src/endpointsConfig/resolveCustomEndpointsConfig.ts
65
65
  var import_util_middleware = require("@smithy/util-middleware");
66
66
  var resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => {
67
- const { endpoint, urlParser } = input;
68
- return {
69
- ...input,
70
- tls: input.tls ?? true,
67
+ const { tls, endpoint, urlParser, useDualstackEndpoint } = input;
68
+ return Object.assign(input, {
69
+ tls: tls ?? true,
71
70
  endpoint: (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
72
71
  isCustomEndpoint: true,
73
- useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false)
74
- };
72
+ useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(useDualstackEndpoint ?? false)
73
+ });
75
74
  }, "resolveCustomEndpointsConfig");
76
75
 
77
76
  // src/endpointsConfig/resolveEndpointsConfig.ts
@@ -97,14 +96,13 @@ var getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => {
97
96
  // src/endpointsConfig/resolveEndpointsConfig.ts
98
97
  var resolveEndpointsConfig = /* @__PURE__ */ __name((input) => {
99
98
  const useDualstackEndpoint = (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false);
100
- const { endpoint, useFipsEndpoint, urlParser } = input;
101
- return {
102
- ...input,
103
- tls: input.tls ?? true,
99
+ const { endpoint, useFipsEndpoint, urlParser, tls } = input;
100
+ return Object.assign(input, {
101
+ tls: tls ?? true,
104
102
  endpoint: endpoint ? (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
105
103
  isCustomEndpoint: !!endpoint,
106
104
  useDualstackEndpoint
107
- };
105
+ });
108
106
  }, "resolveEndpointsConfig");
109
107
 
110
108
  // src/regionConfig/config.ts
@@ -133,8 +131,7 @@ var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
133
131
  if (!region) {
134
132
  throw new Error("Region is missing");
135
133
  }
136
- return {
137
- ...input,
134
+ return Object.assign(input, {
138
135
  region: async () => {
139
136
  if (typeof region === "string") {
140
137
  return getRealRegion(region);
@@ -149,7 +146,7 @@ var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
149
146
  }
150
147
  return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
151
148
  }
152
- };
149
+ });
153
150
  }, "resolveRegionConfig");
154
151
 
155
152
  // src/regionInfo/getHostnameFromVariants.ts
@@ -1,11 +1,10 @@
1
1
  import { normalizeProvider } from "@smithy/util-middleware";
2
2
  export const resolveCustomEndpointsConfig = (input) => {
3
- const { endpoint, urlParser } = input;
4
- return {
5
- ...input,
6
- tls: input.tls ?? true,
3
+ const { tls, endpoint, urlParser, useDualstackEndpoint } = input;
4
+ return Object.assign(input, {
5
+ tls: tls ?? true,
7
6
  endpoint: normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
8
7
  isCustomEndpoint: true,
9
- useDualstackEndpoint: normalizeProvider(input.useDualstackEndpoint ?? false),
10
- };
8
+ useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false),
9
+ });
11
10
  };
@@ -2,14 +2,13 @@ import { normalizeProvider } from "@smithy/util-middleware";
2
2
  import { getEndpointFromRegion } from "./utils/getEndpointFromRegion";
3
3
  export const resolveEndpointsConfig = (input) => {
4
4
  const useDualstackEndpoint = normalizeProvider(input.useDualstackEndpoint ?? false);
5
- const { endpoint, useFipsEndpoint, urlParser } = input;
6
- return {
7
- ...input,
8
- tls: input.tls ?? true,
5
+ const { endpoint, useFipsEndpoint, urlParser, tls } = input;
6
+ return Object.assign(input, {
7
+ tls: tls ?? true,
9
8
  endpoint: endpoint
10
9
  ? normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint)
11
10
  : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
12
11
  isCustomEndpoint: !!endpoint,
13
12
  useDualstackEndpoint,
14
- };
13
+ });
15
14
  };
@@ -5,8 +5,7 @@ export const resolveRegionConfig = (input) => {
5
5
  if (!region) {
6
6
  throw new Error("Region is missing");
7
7
  }
8
- return {
9
- ...input,
8
+ return Object.assign(input, {
10
9
  region: async () => {
11
10
  if (typeof region === "string") {
12
11
  return getRealRegion(region);
@@ -21,5 +20,5 @@ export const resolveRegionConfig = (input) => {
21
20
  }
22
21
  return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
23
22
  },
24
- };
23
+ });
25
24
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.0.1",
3
+ "version": "4.1.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 config-resolver",
@@ -10,7 +10,7 @@
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
15
15
  "extract:docs": "api-extractor run --local",
16
16
  "test:watch": "yarn g:vitest watch"
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/node-config-provider": "^4.0.1",
28
- "@smithy/types": "^4.1.0",
27
+ "@smithy/node-config-provider": "^4.0.2",
28
+ "@smithy/types": "^4.2.0",
29
29
  "@smithy/util-config-provider": "^4.0.0",
30
- "@smithy/util-middleware": "^4.0.1",
30
+ "@smithy/util-middleware": "^4.0.2",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -49,10 +49,10 @@
49
49
  "files": [
50
50
  "dist-*/**"
51
51
  ],
52
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/config-resolver",
52
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/config-resolver",
53
53
  "repository": {
54
54
  "type": "git",
55
- "url": "https://github.com/awslabs/smithy-typescript.git",
55
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
56
56
  "directory": "packages/config-resolver"
57
57
  },
58
58
  "typedoc": {
@@ -0,0 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/submodules/serde/index.ts
20
+ var serde_exports = {};
21
+ __export(serde_exports, {
22
+ NumericValue: () => NumericValue,
23
+ nv: () => nv
24
+ });
25
+ module.exports = __toCommonJS(serde_exports);
26
+
27
+ // src/submodules/serde/value/NumericValue.ts
28
+ var NumericValue = class {
29
+ constructor(string, type) {
30
+ this.string = string;
31
+ this.type = type;
32
+ }
33
+ };
34
+ function nv(string) {
35
+ return new NumericValue(string, "bigDecimal");
36
+ }
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ NumericValue,
40
+ nv
41
+ });
@@ -0,0 +1 @@
1
+ export * from "./value/NumericValue";
@@ -0,0 +1,9 @@
1
+ export class NumericValue {
2
+ constructor(string, type) {
3
+ this.string = string;
4
+ this.type = type;
5
+ }
6
+ }
7
+ export function nv(string) {
8
+ return new NumericValue(string, "bigDecimal");
9
+ }
@@ -0,0 +1 @@
1
+ export * from "./value/NumericValue";
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Types which may be represented by {@link NumericValue}.
3
+ *
4
+ * There is currently only one option, because BigInteger and Long should
5
+ * use JS BigInt directly, and all other numeric types can be contained in JS Number.
6
+ *
7
+ * @public
8
+ */
9
+ export type NumericType = "bigDecimal";
10
+ /**
11
+ * Serialization container for Smithy simple types that do not have a
12
+ * direct JavaScript runtime representation.
13
+ *
14
+ * This container does not perform numeric mathematical operations.
15
+ * It is a container for discerning a value's true type.
16
+ *
17
+ * It allows storage of numeric types not representable in JS without
18
+ * making a decision on what numeric library to use.
19
+ *
20
+ * @public
21
+ */
22
+ export declare class NumericValue {
23
+ readonly string: string;
24
+ readonly type: NumericType;
25
+ constructor(string: string, type: NumericType);
26
+ }
27
+ /**
28
+ * Serde shortcut.
29
+ * @internal
30
+ */
31
+ export declare function nv(string: string): NumericValue;
@@ -0,0 +1 @@
1
+ export * from "./value/NumericValue";
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Types which may be represented by {@link NumericValue}.
3
+ *
4
+ * There is currently only one option, because BigInteger and Long should
5
+ * use JS BigInt directly, and all other numeric types can be contained in JS Number.
6
+ *
7
+ * @public
8
+ */
9
+ export type NumericType = "bigDecimal";
10
+ /**
11
+ * Serialization container for Smithy simple types that do not have a
12
+ * direct JavaScript runtime representation.
13
+ *
14
+ * This container does not perform numeric mathematical operations.
15
+ * It is a container for discerning a value's true type.
16
+ *
17
+ * It allows storage of numeric types not representable in JS without
18
+ * making a decision on what numeric library to use.
19
+ *
20
+ * @public
21
+ */
22
+ export declare class NumericValue {
23
+ readonly string: string;
24
+ readonly type: NumericType;
25
+ constructor(string: string, type: NumericType);
26
+ }
27
+ /**
28
+ * Serde shortcut.
29
+ * @internal
30
+ */
31
+ export declare function nv(string: string): NumericValue;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.1.5",
3
+ "version": "3.2.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",
@@ -45,6 +45,13 @@
45
45
  "import": "./dist-es/submodules/protocols/index.js",
46
46
  "require": "./dist-cjs/submodules/protocols/index.js",
47
47
  "types": "./dist-types/submodules/protocols/index.d.ts"
48
+ },
49
+ "./serde": {
50
+ "module": "./dist-es/submodules/serde/index.js",
51
+ "node": "./dist-cjs/submodules/serde/index.js",
52
+ "import": "./dist-es/submodules/serde/index.js",
53
+ "require": "./dist-cjs/submodules/serde/index.js",
54
+ "types": "./dist-types/submodules/serde/index.d.ts"
48
55
  }
49
56
  },
50
57
  "author": {
@@ -54,12 +61,12 @@
54
61
  },
55
62
  "license": "Apache-2.0",
56
63
  "dependencies": {
57
- "@smithy/middleware-serde": "^4.0.2",
58
- "@smithy/protocol-http": "^5.0.1",
59
- "@smithy/types": "^4.1.0",
64
+ "@smithy/middleware-serde": "^4.0.3",
65
+ "@smithy/protocol-http": "^5.1.0",
66
+ "@smithy/types": "^4.2.0",
60
67
  "@smithy/util-body-length-browser": "^4.0.0",
61
- "@smithy/util-middleware": "^4.0.1",
62
- "@smithy/util-stream": "^4.1.2",
68
+ "@smithy/util-middleware": "^4.0.2",
69
+ "@smithy/util-stream": "^4.2.0",
63
70
  "@smithy/util-utf8": "^4.0.0",
64
71
  "tslib": "^2.6.2"
65
72
  },
@@ -78,12 +85,14 @@
78
85
  "./cbor.js",
79
86
  "./protocols.d.ts",
80
87
  "./protocols.js",
88
+ "./serde.d.ts",
89
+ "./serde.js",
81
90
  "dist-*/**"
82
91
  ],
83
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/core",
92
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
84
93
  "repository": {
85
94
  "type": "git",
86
- "url": "https://github.com/awslabs/smithy-typescript.git",
95
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
87
96
  "directory": "packages/core"
88
97
  },
89
98
  "devDependencies": {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ declare module "@smithy/core/serde" {
6
+ export * from "@smithy/core/dist-types/submodules/serde/index.d";
7
+ }
@@ -0,0 +1,6 @@
1
+
2
+ /**
3
+ * Do not edit:
4
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
5
+ */
6
+ module.exports = require("./dist-cjs/submodules/serde/index.js");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -13,7 +13,7 @@
13
13
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
14
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
15
15
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
16
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
16
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
17
17
  "test": "yarn g:vitest run",
18
18
  "test:watch": "yarn g:vitest watch"
19
19
  },
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/node-config-provider": "^4.0.1",
31
- "@smithy/property-provider": "^4.0.1",
32
- "@smithy/types": "^4.1.0",
33
- "@smithy/url-parser": "^4.0.1",
30
+ "@smithy/node-config-provider": "^4.0.2",
31
+ "@smithy/property-provider": "^4.0.2",
32
+ "@smithy/types": "^4.2.0",
33
+ "@smithy/url-parser": "^4.0.2",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -54,10 +54,10 @@
54
54
  "files": [
55
55
  "dist-*/**"
56
56
  ],
57
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/credential-provider-imds",
57
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/credential-provider-imds",
58
58
  "repository": {
59
59
  "type": "git",
60
- "url": "https://github.com/awslabs/smithy-typescript.git",
60
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
61
61
  "directory": "packages/credential-provider-imds"
62
62
  },
63
63
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
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'",
@@ -11,7 +11,7 @@
11
11
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
14
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
15
15
  "extract:docs": "api-extractor run --local",
16
16
  "test": "yarn g:vitest run && yarn test:browser",
17
17
  "test:watch": "yarn g:vitest watch",
@@ -27,14 +27,14 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/protocol-http": "^5.0.1",
31
- "@smithy/querystring-builder": "^4.0.1",
32
- "@smithy/types": "^4.1.0",
30
+ "@smithy/protocol-http": "^5.1.0",
31
+ "@smithy/querystring-builder": "^4.0.2",
32
+ "@smithy/types": "^4.2.0",
33
33
  "@smithy/util-base64": "^4.0.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@smithy/abort-controller": "^4.0.1",
37
+ "@smithy/abort-controller": "^4.0.2",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
40
  "rimraf": "3.0.2",
@@ -50,10 +50,10 @@
50
50
  "files": [
51
51
  "dist-*/**"
52
52
  ],
53
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/fetch-http-handler",
53
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
54
54
  "repository": {
55
55
  "type": "git",
56
- "url": "https://github.com/awslabs/smithy-typescript.git",
56
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
57
57
  "directory": "packages/fetch-http-handler"
58
58
  },
59
59
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -10,7 +10,7 @@
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
15
15
  "test:watch": "yarn g:vitest watch"
16
16
  },
@@ -31,7 +31,7 @@
31
31
  "typedoc": "0.23.23"
32
32
  },
33
33
  "dependencies": {
34
- "@smithy/types": "^4.1.0",
34
+ "@smithy/types": "^4.2.0",
35
35
  "@smithy/util-buffer-from": "^4.0.0",
36
36
  "@smithy/util-utf8": "^4.0.0",
37
37
  "tslib": "^2.6.2"
@@ -49,10 +49,10 @@
49
49
  "files": [
50
50
  "dist-*/**"
51
51
  ],
52
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/hash-node",
52
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/hash-node",
53
53
  "repository": {
54
54
  "type": "git",
55
- "url": "https://github.com/awslabs/smithy-typescript.git",
55
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
56
56
  "directory": "packages/hash-node"
57
57
  },
58
58
  "typedoc": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -10,7 +10,7 @@
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
15
15
  "test:watch": "yarn g:vitest watch"
16
16
  },
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^4.1.0",
26
+ "@smithy/types": "^4.2.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
29
29
  "typesVersions": {
@@ -36,10 +36,10 @@
36
36
  "files": [
37
37
  "dist-*/**"
38
38
  ],
39
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/invalid-dependency",
39
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/invalid-dependency",
40
40
  "repository": {
41
41
  "type": "git",
42
- "url": "https://github.com/awslabs/smithy-typescript.git",
42
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
43
43
  "directory": "packages/invalid-dependency"
44
44
  },
45
45
  "devDependencies": {