@cdk8s/awscdk-resolver 0.0.634 → 0.0.635

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 (26) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/package.json +1 -1
  5. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  6. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +28 -10
  7. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js +8 -1
  8. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js +2 -1
  9. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +11 -9
  10. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.js +8 -0
  11. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -0
  12. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
  13. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
  14. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
  15. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
  16. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
  17. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
  18. package/node_modules/@smithy/core/package.json +91 -91
  19. package/node_modules/@smithy/credential-provider-imds/package.json +34 -34
  20. package/node_modules/@smithy/fetch-http-handler/package.json +30 -30
  21. package/node_modules/@smithy/node-http-handler/package.json +33 -33
  22. package/node_modules/@smithy/signature-v4/package.json +29 -29
  23. package/package.json +4 -4
  24. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/getEndpointUrlConfig.js +0 -21
  25. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
  26. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
package/.jsii CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://aws.amazon.com"
8
8
  },
9
9
  "bundled": {
10
- "@aws-sdk/client-cloudformation": "^3.1090.0"
10
+ "@aws-sdk/client-cloudformation": "^3.1091.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "aws-cdk-lib": "^2.195.0",
@@ -4082,6 +4082,6 @@
4082
4082
  "symbolId": "src/resolve:AwsCdkResolver"
4083
4083
  }
4084
4084
  },
4085
- "version": "0.0.634",
4086
- "fingerprint": "7ygW7c7BB7hTsTXl1QgzEHoXPsqZiJuCGyrVqQuTWH8="
4085
+ "version": "0.0.635",
4086
+ "fingerprint": "Adzsbu4ML1plCH2CNeZUABm2yb8Fh3OHWfZU0J7mKJI="
4087
4087
  }
package/lib/resolve.js CHANGED
@@ -39,7 +39,7 @@ const child_process_1 = require("child_process");
39
39
  const path = __importStar(require("path"));
40
40
  const aws_cdk_lib_1 = require("aws-cdk-lib");
41
41
  class AwsCdkResolver {
42
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.634" };
42
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.635" };
43
43
  resolve(context) {
44
44
  if (!aws_cdk_lib_1.Token.isUnresolved(context.value)) {
45
45
  return;
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1089.0";
72
+ var version = "3.1090.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
- "version": "3.1090.0",
3
+ "version": "3.1091.0",
4
4
  "description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudformation",
6
6
  "license": "Apache-2.0",
@@ -95,7 +95,7 @@ const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config,
95
95
 
96
96
  function bindGetEndpointFromInstructions(getEndpointFromConfig) {
97
97
  return async (commandInput, instructionsSupplier, clientConfig, context) => {
98
- if (!clientConfig.isCustomEndpoint) {
98
+ if (!clientConfig.isCustomEndpoint && !clientConfig.ignoreConfiguredEndpointUrls) {
99
99
  let endpointFromConfig;
100
100
  if (clientConfig.serviceConfiguredEndpoint) {
101
101
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -106,6 +106,7 @@ function bindGetEndpointFromInstructions(getEndpointFromConfig) {
106
106
  if (endpointFromConfig) {
107
107
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
108
108
  clientConfig.isCustomEndpoint = true;
109
+ context?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${endpointFromConfig}`);
109
110
  }
110
111
  }
111
112
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -236,6 +237,7 @@ function bindResolveEndpointConfig(getEndpointFromConfig) {
236
237
  isCustomEndpoint,
237
238
  useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false),
238
239
  useFipsEndpoint: normalizeProvider(useFipsEndpoint ?? false),
240
+ ignoreConfiguredEndpointUrls: !!input.ignoreConfiguredEndpointUrls,
239
241
  });
240
242
  let configuredEndpointPromise = undefined;
241
243
  resolvedConfig.serviceConfiguredEndpoint = async () => {
@@ -1,4 +1,4 @@
1
- const { CONFIG_PREFIX_SEPARATOR, loadConfig } = require("@smithy/core/config");
1
+ const { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require("@smithy/core/config");
2
2
  const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
3
3
  exports.isValidHostLabel = isValidHostLabel;
4
4
  exports.middlewareEndpointToEndpointV1 = toEndpointV1;
@@ -19,14 +19,16 @@ const getEndpointUrlConfig = (serviceId) => ({
19
19
  return undefined;
20
20
  },
21
21
  configFileSelector: (profile, config) => {
22
- if (config && profile.services) {
23
- const servicesSection = config[["services", profile.services].join(CONFIG_PREFIX_SEPARATOR)];
24
- if (servicesSection) {
25
- const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
26
- const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)];
27
- if (endpointUrl)
28
- return endpointUrl;
22
+ if (profile.services) {
23
+ const servicesSectionKey = ["services", profile.services].join(CONFIG_PREFIX_SEPARATOR);
24
+ if (!config || !config[servicesSectionKey]) {
25
+ throw new Error(`The services section "${profile.services}" specified in the profile is not present in the shared configuration file.`);
29
26
  }
27
+ const servicesSection = config[servicesSectionKey];
28
+ const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
29
+ const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)];
30
+ if (endpointUrl)
31
+ return endpointUrl;
30
32
  }
31
33
  const endpointUrl = profile[CONFIG_ENDPOINT_URL];
32
34
  if (endpointUrl)
@@ -36,7 +38,21 @@ const getEndpointUrlConfig = (serviceId) => ({
36
38
  default: undefined,
37
39
  });
38
40
 
39
- const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
41
+ const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
42
+ const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
43
+ const ignoreConfiguredEndpointUrlsConfigSelectors = {
44
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_IGNORE_CONFIGURED_ENDPOINT_URLS, SelectorType.ENV),
45
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS, SelectorType.CONFIG),
46
+ default: false,
47
+ };
48
+
49
+ const getEndpointFromConfig = async (serviceId) => {
50
+ const ignore = await loadConfig(ignoreConfiguredEndpointUrlsConfigSelectors)();
51
+ if (ignore) {
52
+ return undefined;
53
+ }
54
+ return loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
55
+ };
40
56
 
41
57
  const resolveParamsForS3 = async (endpointParams) => {
42
58
  const bucket = endpointParams?.Bucket || "";
@@ -127,7 +143,7 @@ const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config,
127
143
 
128
144
  function bindGetEndpointFromInstructions(getEndpointFromConfig) {
129
145
  return async (commandInput, instructionsSupplier, clientConfig, context) => {
130
- if (!clientConfig.isCustomEndpoint) {
146
+ if (!clientConfig.isCustomEndpoint && !clientConfig.ignoreConfiguredEndpointUrls) {
131
147
  let endpointFromConfig;
132
148
  if (clientConfig.serviceConfiguredEndpoint) {
133
149
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -138,6 +154,7 @@ function bindGetEndpointFromInstructions(getEndpointFromConfig) {
138
154
  if (endpointFromConfig) {
139
155
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
140
156
  clientConfig.isCustomEndpoint = true;
157
+ context?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${endpointFromConfig}`);
141
158
  }
142
159
  }
143
160
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -268,6 +285,7 @@ function bindResolveEndpointConfig(getEndpointFromConfig) {
268
285
  isCustomEndpoint,
269
286
  useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false),
270
287
  useFipsEndpoint: normalizeProvider(useFipsEndpoint ?? false),
288
+ ignoreConfiguredEndpointUrls: !!input.ignoreConfiguredEndpointUrls,
271
289
  });
272
290
  let configuredEndpointPromise = undefined;
273
291
  resolvedConfig.serviceConfiguredEndpoint = async () => {
@@ -1,3 +1,10 @@
1
1
  import { loadConfig } from "@smithy/core/config";
2
2
  import { getEndpointUrlConfig } from "./getEndpointUrlConfig";
3
- export const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
3
+ import { ignoreConfiguredEndpointUrlsConfigSelectors } from "./getIgnoreConfiguredEndpointUrls";
4
+ export const getEndpointFromConfig = async (serviceId) => {
5
+ const ignore = await loadConfig(ignoreConfiguredEndpointUrlsConfigSelectors)();
6
+ if (ignore) {
7
+ return undefined;
8
+ }
9
+ return loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
10
+ };
@@ -3,7 +3,7 @@ import { createConfigValueProvider } from "./createConfigValueProvider";
3
3
  import { toEndpointV1 } from "./toEndpointV1";
4
4
  export function bindGetEndpointFromInstructions(getEndpointFromConfig) {
5
5
  return async (commandInput, instructionsSupplier, clientConfig, context) => {
6
- if (!clientConfig.isCustomEndpoint) {
6
+ if (!clientConfig.isCustomEndpoint && !clientConfig.ignoreConfiguredEndpointUrls) {
7
7
  let endpointFromConfig;
8
8
  if (clientConfig.serviceConfiguredEndpoint) {
9
9
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -14,6 +14,7 @@ export function bindGetEndpointFromInstructions(getEndpointFromConfig) {
14
14
  if (endpointFromConfig) {
15
15
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
16
16
  clientConfig.isCustomEndpoint = true;
17
+ context?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${endpointFromConfig}`);
17
18
  }
18
19
  }
19
20
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -1,6 +1,6 @@
1
1
  import { CONFIG_PREFIX_SEPARATOR } from "@smithy/core/config";
2
- const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
3
- const CONFIG_ENDPOINT_URL = "endpoint_url";
2
+ export const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
3
+ export const CONFIG_ENDPOINT_URL = "endpoint_url";
4
4
  export const getEndpointUrlConfig = (serviceId) => ({
5
5
  environmentVariableSelector: (env) => {
6
6
  const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase());
@@ -13,14 +13,16 @@ export const getEndpointUrlConfig = (serviceId) => ({
13
13
  return undefined;
14
14
  },
15
15
  configFileSelector: (profile, config) => {
16
- if (config && profile.services) {
17
- const servicesSection = config[["services", profile.services].join(CONFIG_PREFIX_SEPARATOR)];
18
- if (servicesSection) {
19
- const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
20
- const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)];
21
- if (endpointUrl)
22
- return endpointUrl;
16
+ if (profile.services) {
17
+ const servicesSectionKey = ["services", profile.services].join(CONFIG_PREFIX_SEPARATOR);
18
+ if (!config || !config[servicesSectionKey]) {
19
+ throw new Error(`The services section "${profile.services}" specified in the profile is not present in the shared configuration file.`);
23
20
  }
21
+ const servicesSection = config[servicesSectionKey];
22
+ const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
23
+ const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)];
24
+ if (endpointUrl)
25
+ return endpointUrl;
24
26
  }
25
27
  const endpointUrl = profile[CONFIG_ENDPOINT_URL];
26
28
  if (endpointUrl)
@@ -0,0 +1,8 @@
1
+ import { booleanSelector, SelectorType } from "@smithy/core/config";
2
+ export const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
3
+ export const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
4
+ export const ignoreConfiguredEndpointUrlsConfigSelectors = {
5
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_IGNORE_CONFIGURED_ENDPOINT_URLS, SelectorType.ENV),
6
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS, SelectorType.CONFIG),
7
+ default: false,
8
+ };
@@ -12,6 +12,7 @@ export function bindResolveEndpointConfig(getEndpointFromConfig) {
12
12
  isCustomEndpoint,
13
13
  useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false),
14
14
  useFipsEndpoint: normalizeProvider(useFipsEndpoint ?? false),
15
+ ignoreConfiguredEndpointUrls: !!input.ignoreConfiguredEndpointUrls,
15
16
  });
16
17
  let configuredEndpointPromise = undefined;
17
18
  resolvedConfig.serviceConfiguredEndpoint = async () => {
@@ -1,2 +1,13 @@
1
1
  import { type LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_ENDPOINT_URL = "endpoint_url";
10
+ /**
11
+ * @internal
12
+ */
2
13
  export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
@@ -0,0 +1,17 @@
1
+ import { type LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
10
+ /**
11
+ * Config selectors for the ignore_configured_endpoint_urls option.
12
+ * When true, configured endpoint URLs from environment variables
13
+ * and the shared configuration file are not used.
14
+ *
15
+ * @internal
16
+ */
17
+ export declare const ignoreConfiguredEndpointUrlsConfigSelectors: LoadedConfigSelectors<boolean | undefined>;
@@ -37,6 +37,14 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
37
37
  * Enables FIPS compatible endpoints.
38
38
  */
39
39
  useFipsEndpoint?: boolean | Provider<boolean | undefined>;
40
+ /**
41
+ * When true, endpoint URLs from environment variables and the shared
42
+ * configuration file are not used. Does not affect endpoints set
43
+ * via code (e.g. client constructor endpoint option).
44
+ *
45
+ * Default false.
46
+ */
47
+ ignoreConfiguredEndpointUrls?: boolean;
40
48
  /**
41
49
  * This field is used internally so you should not fill any value to this field.
42
50
  *
@@ -98,6 +106,10 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
98
106
  * @internal
99
107
  */
100
108
  serviceId?: string;
109
+ /**
110
+ * Whether configured endpoint URLs should be ignored.
111
+ */
112
+ ignoreConfiguredEndpointUrls: boolean;
101
113
  /**
102
114
  * A configured endpoint global or specific to the service from ENV or AWS SDK configuration files.
103
115
  * @internal
@@ -1,2 +1,13 @@
1
1
  import { LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_ENDPOINT_URL = "endpoint_url";
10
+ /**
11
+ * @internal
12
+ */
2
13
  export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
@@ -0,0 +1,17 @@
1
+ import { LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
10
+ /**
11
+ * Config selectors for the ignore_configured_endpoint_urls option.
12
+ * When true, configured endpoint URLs from environment variables
13
+ * and the shared configuration file are not used.
14
+ *
15
+ * @internal
16
+ */
17
+ export declare const ignoreConfiguredEndpointUrlsConfigSelectors: LoadedConfigSelectors<boolean | undefined>;
@@ -37,6 +37,14 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
37
37
  * Enables FIPS compatible endpoints.
38
38
  */
39
39
  useFipsEndpoint?: boolean | Provider<boolean | undefined>;
40
+ /**
41
+ * When true, endpoint URLs from environment variables and the shared
42
+ * configuration file are not used. Does not affect endpoints set
43
+ * via code (e.g. client constructor endpoint option).
44
+ *
45
+ * Default false.
46
+ */
47
+ ignoreConfiguredEndpointUrls?: boolean;
40
48
  /**
41
49
  * This field is used internally so you should not fill any value to this field.
42
50
  *
@@ -98,6 +106,10 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
98
106
  * @internal
99
107
  */
100
108
  serviceId?: string;
109
+ /**
110
+ * Whether configured endpoint URLs should be ignored.
111
+ */
112
+ ignoreConfiguredEndpointUrls: boolean;
101
113
  /**
102
114
  * A configured endpoint global or specific to the service from ENV or AWS SDK configuration files.
103
115
  * @internal
@@ -1,26 +1,79 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.29.5",
4
- "scripts": {
5
- "benchmark:cbor": "node ./scripts/cbor-perf.mjs",
6
- "benchmark:checksum": "node ./scripts/checksum-perf.mjs",
7
- "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
8
- "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
9
- "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
10
- "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types",
12
- "extract:docs": "api-extractor run --local",
13
- "lint": "node ../../scripts/validation/submodules-linter.js",
14
- "prebuild": "yarn lint",
15
- "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
16
- "test": "yarn g:vitest run",
17
- "test:watch": "yarn g:vitest watch",
18
- "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
19
- "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
3
+ "version": "3.29.6",
4
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
+ "license": "Apache-2.0",
6
+ "author": {
7
+ "name": "AWS Smithy Team",
8
+ "email": "",
9
+ "url": "https://smithy.io"
20
10
  },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
14
+ "directory": "packages/core"
15
+ },
16
+ "files": [
17
+ "./cbor.d.ts",
18
+ "./cbor.js",
19
+ "./checksum.d.ts",
20
+ "./checksum.js",
21
+ "./client.d.ts",
22
+ "./client.js",
23
+ "./config.d.ts",
24
+ "./config.js",
25
+ "./endpoints.d.ts",
26
+ "./endpoints.js",
27
+ "./event-streams.d.ts",
28
+ "./event-streams.js",
29
+ "./protocols.d.ts",
30
+ "./protocols.js",
31
+ "./retry.d.ts",
32
+ "./retry.js",
33
+ "./schema.d.ts",
34
+ "./schema.js",
35
+ "./serde.d.ts",
36
+ "./serde.js",
37
+ "./transport.d.ts",
38
+ "./transport.js",
39
+ "dist-*/**"
40
+ ],
41
+ "sideEffects": false,
21
42
  "main": "./dist-cjs/index.js",
22
43
  "module": "./dist-es/index.js",
44
+ "browser": {
45
+ "./dist-es/submodules/checksum/index.js": "./dist-es/submodules/checksum/index.browser.js",
46
+ "./dist-es/submodules/config/index.js": "./dist-es/submodules/config/index.browser.js",
47
+ "./dist-es/submodules/endpoints/index.js": "./dist-es/submodules/endpoints/index.browser.js",
48
+ "./dist-es/submodules/event-streams/index.js": "./dist-es/submodules/event-streams/index.browser.js",
49
+ "./dist-es/submodules/retry/index.js": "./dist-es/submodules/retry/index.browser.js",
50
+ "./dist-es/submodules/serde/index.js": "./dist-es/submodules/serde/index.browser.js"
51
+ },
23
52
  "types": "./dist-types/index.d.ts",
53
+ "typesVersions": {
54
+ "<4.5": {
55
+ "dist-types/*": [
56
+ "dist-types/ts3.4/*"
57
+ ],
58
+ "*": [
59
+ "dist-types/ts3.4/submodules/*/index.d.ts"
60
+ ]
61
+ }
62
+ },
63
+ "react-native": {
64
+ "./dist-es/submodules/checksum/index.js": "./dist-es/submodules/checksum/index.native.js",
65
+ "./dist-cjs/submodules/checksum/index.js": "./dist-cjs/submodules/checksum/index.native.js",
66
+ "./dist-es/submodules/config/index.js": "./dist-es/submodules/config/index.native.js",
67
+ "./dist-cjs/submodules/config/index.js": "./dist-cjs/submodules/config/index.native.js",
68
+ "./dist-es/submodules/serde/index.js": "./dist-es/submodules/serde/index.native.js",
69
+ "./dist-cjs/submodules/serde/index.js": "./dist-cjs/submodules/serde/index.native.js",
70
+ "./dist-es/submodules/endpoints/index.js": "./dist-es/submodules/endpoints/index.browser.js",
71
+ "./dist-cjs/submodules/endpoints/index.js": "./dist-cjs/submodules/endpoints/index.browser.js",
72
+ "./dist-es/submodules/event-streams/index.js": "./dist-es/submodules/event-streams/index.browser.js",
73
+ "./dist-cjs/submodules/event-streams/index.js": "./dist-cjs/submodules/event-streams/index.browser.js",
74
+ "./dist-es/submodules/retry/index.js": "./dist-es/submodules/retry/index.browser.js",
75
+ "./dist-cjs/submodules/retry/index.js": "./dist-cjs/submodules/retry/index.browser.js"
76
+ },
24
77
  "exports": {
25
78
  ".": {
26
79
  "types": "./dist-types/index.d.ts",
@@ -161,13 +214,26 @@
161
214
  "require": "./dist-cjs/submodules/transport/index.js"
162
215
  }
163
216
  },
164
- "author": {
165
- "name": "AWS Smithy Team",
166
- "email": "",
167
- "url": "https://smithy.io"
217
+ "publishConfig": {
218
+ "directory": ".release/package"
219
+ },
220
+ "scripts": {
221
+ "benchmark:cbor": "node ./scripts/cbor-perf.mjs",
222
+ "benchmark:checksum": "node ./scripts/checksum-perf.mjs",
223
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
224
+ "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
225
+ "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
226
+ "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
227
+ "clean": "premove dist-cjs dist-es dist-types",
228
+ "extract:docs": "api-extractor run --local",
229
+ "lint": "node ../../scripts/validation/submodules-linter.js",
230
+ "prebuild": "yarn lint",
231
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
232
+ "test": "yarn g:vitest run",
233
+ "test:watch": "yarn g:vitest watch",
234
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
235
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
168
236
  },
169
- "license": "Apache-2.0",
170
- "sideEffects": false,
171
237
  "dependencies": {
172
238
  "@smithy/types": "^4.16.1",
173
239
  "tslib": "^2.6.2"
@@ -181,76 +247,10 @@
181
247
  "premove": "4.0.0",
182
248
  "typedoc": "0.23.23"
183
249
  },
184
- "engines": {
185
- "node": ">=18.0.0"
186
- },
187
- "typesVersions": {
188
- "<4.5": {
189
- "dist-types/*": [
190
- "dist-types/ts3.4/*"
191
- ],
192
- "*": [
193
- "dist-types/ts3.4/submodules/*/index.d.ts"
194
- ]
195
- }
196
- },
197
- "files": [
198
- "./cbor.d.ts",
199
- "./cbor.js",
200
- "./checksum.d.ts",
201
- "./checksum.js",
202
- "./client.d.ts",
203
- "./client.js",
204
- "./config.d.ts",
205
- "./config.js",
206
- "./endpoints.d.ts",
207
- "./endpoints.js",
208
- "./event-streams.d.ts",
209
- "./event-streams.js",
210
- "./protocols.d.ts",
211
- "./protocols.js",
212
- "./retry.d.ts",
213
- "./retry.js",
214
- "./schema.d.ts",
215
- "./schema.js",
216
- "./serde.d.ts",
217
- "./serde.js",
218
- "./transport.d.ts",
219
- "./transport.js",
220
- "dist-*/**"
221
- ],
222
- "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
223
- "repository": {
224
- "type": "git",
225
- "url": "https://github.com/smithy-lang/smithy-typescript.git",
226
- "directory": "packages/core"
227
- },
228
250
  "typedoc": {
229
251
  "entryPoint": "src/index.ts"
230
252
  },
231
- "publishConfig": {
232
- "directory": ".release/package"
233
- },
234
- "browser": {
235
- "./dist-es/submodules/checksum/index.js": "./dist-es/submodules/checksum/index.browser.js",
236
- "./dist-es/submodules/config/index.js": "./dist-es/submodules/config/index.browser.js",
237
- "./dist-es/submodules/endpoints/index.js": "./dist-es/submodules/endpoints/index.browser.js",
238
- "./dist-es/submodules/event-streams/index.js": "./dist-es/submodules/event-streams/index.browser.js",
239
- "./dist-es/submodules/retry/index.js": "./dist-es/submodules/retry/index.browser.js",
240
- "./dist-es/submodules/serde/index.js": "./dist-es/submodules/serde/index.browser.js"
241
- },
242
- "react-native": {
243
- "./dist-es/submodules/checksum/index.js": "./dist-es/submodules/checksum/index.native.js",
244
- "./dist-cjs/submodules/checksum/index.js": "./dist-cjs/submodules/checksum/index.native.js",
245
- "./dist-es/submodules/config/index.js": "./dist-es/submodules/config/index.native.js",
246
- "./dist-cjs/submodules/config/index.js": "./dist-cjs/submodules/config/index.native.js",
247
- "./dist-es/submodules/serde/index.js": "./dist-es/submodules/serde/index.native.js",
248
- "./dist-cjs/submodules/serde/index.js": "./dist-cjs/submodules/serde/index.native.js",
249
- "./dist-es/submodules/endpoints/index.js": "./dist-es/submodules/endpoints/index.browser.js",
250
- "./dist-cjs/submodules/endpoints/index.js": "./dist-cjs/submodules/endpoints/index.browser.js",
251
- "./dist-es/submodules/event-streams/index.js": "./dist-es/submodules/event-streams/index.browser.js",
252
- "./dist-cjs/submodules/event-streams/index.js": "./dist-cjs/submodules/event-streams/index.browser.js",
253
- "./dist-es/submodules/retry/index.js": "./dist-es/submodules/retry/index.browser.js",
254
- "./dist-cjs/submodules/retry/index.js": "./dist-cjs/submodules/retry/index.browser.js"
253
+ "engines": {
254
+ "node": ">=18.0.0"
255
255
  }
256
256
  }
@@ -1,9 +1,39 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.4.10",
3
+ "version": "4.4.11",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
+ "keywords": [
6
+ "aws",
7
+ "credentials"
8
+ ],
9
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/credential-provider-imds",
10
+ "license": "Apache-2.0",
11
+ "author": {
12
+ "name": "AWS SDK for JavaScript Team",
13
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
18
+ "directory": "packages/credential-provider-imds"
19
+ },
20
+ "files": [
21
+ "dist-*/**"
22
+ ],
23
+ "sideEffects": false,
5
24
  "main": "./dist-cjs/index.js",
6
25
  "module": "./dist-es/index.js",
26
+ "types": "./dist-types/index.d.ts",
27
+ "typesVersions": {
28
+ "<4.5": {
29
+ "dist-types/*": [
30
+ "dist-types/ts3.4/*"
31
+ ]
32
+ }
33
+ },
34
+ "publishConfig": {
35
+ "directory": ".release/package"
36
+ },
7
37
  "scripts": {
8
38
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
9
39
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
@@ -14,18 +44,8 @@
14
44
  "test": "yarn g:vitest run",
15
45
  "test:watch": "yarn g:vitest watch"
16
46
  },
17
- "keywords": [
18
- "aws",
19
- "credentials"
20
- ],
21
- "author": {
22
- "name": "AWS SDK for JavaScript Team",
23
- "url": "https://aws.amazon.com/sdk-for-javascript/"
24
- },
25
- "license": "Apache-2.0",
26
- "sideEffects": false,
27
47
  "dependencies": {
28
- "@smithy/core": "^3.29.5",
48
+ "@smithy/core": "^3.29.6",
29
49
  "@smithy/types": "^4.16.1",
30
50
  "tslib": "^2.6.2"
31
51
  },
@@ -36,30 +56,10 @@
36
56
  "premove": "4.0.0",
37
57
  "typedoc": "0.23.23"
38
58
  },
39
- "types": "./dist-types/index.d.ts",
40
- "engines": {
41
- "node": ">=18.0.0"
42
- },
43
- "typesVersions": {
44
- "<4.5": {
45
- "dist-types/*": [
46
- "dist-types/ts3.4/*"
47
- ]
48
- }
49
- },
50
- "files": [
51
- "dist-*/**"
52
- ],
53
- "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/credential-provider-imds",
54
- "repository": {
55
- "type": "git",
56
- "url": "https://github.com/smithy-lang/smithy-typescript.git",
57
- "directory": "packages/credential-provider-imds"
58
- },
59
59
  "typedoc": {
60
60
  "entryPoint": "src/index.ts"
61
61
  },
62
- "publishConfig": {
63
- "directory": ".release/package"
62
+ "engines": {
63
+ "node": ">=18.0.0"
64
64
  }
65
65
  }
@@ -1,7 +1,35 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.6.7",
3
+ "version": "5.6.8",
4
4
  "description": "Provides a way to make requests",
5
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "AWS SDK for JavaScript Team",
9
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
14
+ "directory": "packages/fetch-http-handler"
15
+ },
16
+ "files": [
17
+ "dist-*/**"
18
+ ],
19
+ "sideEffects": false,
20
+ "main": "./dist-cjs/index.js",
21
+ "module": "./dist-es/index.js",
22
+ "types": "./dist-types/index.d.ts",
23
+ "typesVersions": {
24
+ "<4.5": {
25
+ "dist-types/*": [
26
+ "dist-types/ts3.4/*"
27
+ ]
28
+ }
29
+ },
30
+ "publishConfig": {
31
+ "directory": ".release/package"
32
+ },
5
33
  "scripts": {
6
34
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
7
35
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
@@ -15,17 +43,8 @@
15
43
  "test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
16
44
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
17
45
  },
18
- "author": {
19
- "name": "AWS SDK for JavaScript Team",
20
- "url": "https://aws.amazon.com/sdk-for-javascript/"
21
- },
22
- "license": "Apache-2.0",
23
- "sideEffects": false,
24
- "main": "./dist-cjs/index.js",
25
- "module": "./dist-es/index.js",
26
- "types": "./dist-types/index.d.ts",
27
46
  "dependencies": {
28
- "@smithy/core": "^3.29.5",
47
+ "@smithy/core": "^3.29.6",
29
48
  "@smithy/types": "^4.16.1",
30
49
  "tslib": "^2.6.2"
31
50
  },
@@ -36,28 +55,9 @@
36
55
  "premove": "4.0.0",
37
56
  "typedoc": "0.23.23"
38
57
  },
39
- "typesVersions": {
40
- "<4.5": {
41
- "dist-types/*": [
42
- "dist-types/ts3.4/*"
43
- ]
44
- }
45
- },
46
- "files": [
47
- "dist-*/**"
48
- ],
49
- "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
50
- "repository": {
51
- "type": "git",
52
- "url": "https://github.com/smithy-lang/smithy-typescript.git",
53
- "directory": "packages/fetch-http-handler"
54
- },
55
58
  "typedoc": {
56
59
  "entryPoint": "src/index.ts"
57
60
  },
58
- "publishConfig": {
59
- "directory": ".release/package"
60
- },
61
61
  "engines": {
62
62
  "node": ">=18.0.0"
63
63
  }
@@ -1,7 +1,36 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.9.7",
3
+ "version": "4.9.8",
4
4
  "description": "Provides a way to make requests",
5
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "AWS SDK for JavaScript Team",
9
+ "email": "",
10
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
15
+ "directory": "packages/node-http-handler"
16
+ },
17
+ "files": [
18
+ "dist-*/**"
19
+ ],
20
+ "sideEffects": false,
21
+ "main": "./dist-cjs/index.js",
22
+ "module": "./dist-es/index.js",
23
+ "types": "./dist-types/index.d.ts",
24
+ "typesVersions": {
25
+ "<4.5": {
26
+ "dist-types/*": [
27
+ "dist-types/ts3.4/*"
28
+ ]
29
+ }
30
+ },
31
+ "publishConfig": {
32
+ "directory": ".release/package"
33
+ },
5
34
  "scripts": {
6
35
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
7
36
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
@@ -13,18 +42,8 @@
13
42
  "test": "yarn g:vitest run",
14
43
  "test:watch": "yarn g:vitest watch"
15
44
  },
16
- "author": {
17
- "name": "AWS SDK for JavaScript Team",
18
- "email": "",
19
- "url": "https://aws.amazon.com/sdk-for-javascript/"
20
- },
21
- "license": "Apache-2.0",
22
- "sideEffects": false,
23
- "main": "./dist-cjs/index.js",
24
- "module": "./dist-es/index.js",
25
- "types": "./dist-types/index.d.ts",
26
45
  "dependencies": {
27
- "@smithy/core": "^3.29.5",
46
+ "@smithy/core": "^3.29.6",
28
47
  "@smithy/types": "^4.16.1",
29
48
  "tslib": "^2.6.2"
30
49
  },
@@ -36,29 +55,10 @@
36
55
  "premove": "4.0.0",
37
56
  "typedoc": "0.23.23"
38
57
  },
39
- "engines": {
40
- "node": ">=18.0.0"
41
- },
42
- "typesVersions": {
43
- "<4.5": {
44
- "dist-types/*": [
45
- "dist-types/ts3.4/*"
46
- ]
47
- }
48
- },
49
- "files": [
50
- "dist-*/**"
51
- ],
52
- "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
53
- "repository": {
54
- "type": "git",
55
- "url": "https://github.com/smithy-lang/smithy-typescript.git",
56
- "directory": "packages/node-http-handler"
57
- },
58
58
  "typedoc": {
59
59
  "entryPoint": "src/index.ts"
60
60
  },
61
- "publishConfig": {
62
- "directory": ".release/package"
61
+ "engines": {
62
+ "node": ">=18.0.0"
63
63
  }
64
64
  }
@@ -1,10 +1,35 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.6.6",
3
+ "version": "5.6.7",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "AWS SDK for JavaScript Team",
9
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
14
+ "directory": "packages/signature-v4"
15
+ },
16
+ "files": [
17
+ "dist-*/**"
18
+ ],
19
+ "sideEffects": false,
5
20
  "main": "./dist-cjs/index.js",
6
21
  "module": "./dist-es/index.js",
7
22
  "types": "./dist-types/index.d.ts",
23
+ "typesVersions": {
24
+ "<4.5": {
25
+ "dist-types/*": [
26
+ "dist-types/ts3.4/*"
27
+ ]
28
+ }
29
+ },
30
+ "publishConfig": {
31
+ "directory": ".release/package"
32
+ },
8
33
  "scripts": {
9
34
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
10
35
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
@@ -16,14 +41,8 @@
16
41
  "test": "yarn g:vitest run",
17
42
  "test:watch": "yarn g:vitest watch"
18
43
  },
19
- "author": {
20
- "name": "AWS SDK for JavaScript Team",
21
- "url": "https://aws.amazon.com/sdk-for-javascript/"
22
- },
23
- "license": "Apache-2.0",
24
- "sideEffects": false,
25
44
  "dependencies": {
26
- "@smithy/core": "^3.29.5",
45
+ "@smithy/core": "^3.29.6",
27
46
  "@smithy/types": "^4.16.1",
28
47
  "tslib": "^2.6.2"
29
48
  },
@@ -33,29 +52,10 @@
33
52
  "premove": "4.0.0",
34
53
  "typedoc": "0.23.23"
35
54
  },
36
- "engines": {
37
- "node": ">=18.0.0"
38
- },
39
- "typesVersions": {
40
- "<4.5": {
41
- "dist-types/*": [
42
- "dist-types/ts3.4/*"
43
- ]
44
- }
45
- },
46
- "files": [
47
- "dist-*/**"
48
- ],
49
- "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
50
- "repository": {
51
- "type": "git",
52
- "url": "https://github.com/smithy-lang/smithy-typescript.git",
53
- "directory": "packages/signature-v4"
54
- },
55
55
  "typedoc": {
56
56
  "entryPoint": "src/index.ts"
57
57
  },
58
- "publishConfig": {
59
- "directory": ".release/package"
58
+ "engines": {
59
+ "node": ">=18.0.0"
60
60
  }
61
61
  }
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "organization": false
44
44
  },
45
45
  "devDependencies": {
46
- "@cdk8s/projen-common": "0.1.7",
46
+ "@cdk8s/projen-common": "0.1.8",
47
47
  "@stylistic/eslint-plugin": "^2",
48
48
  "@types/fs-extra": "^11.0.4",
49
49
  "@types/jest": "^27",
@@ -67,7 +67,7 @@
67
67
  "jsii-docgen": "^10.5.0",
68
68
  "jsii-pacmak": "^1.139.0",
69
69
  "jsii-rosetta": "^5",
70
- "projen": "^0.101.16",
70
+ "projen": "^0.101.17",
71
71
  "ts-jest": "^27",
72
72
  "ts-node": "^10.9.2",
73
73
  "typescript": "^5.9.3"
@@ -78,7 +78,7 @@
78
78
  "constructs": "^10.3.0"
79
79
  },
80
80
  "dependencies": {
81
- "@aws-sdk/client-cloudformation": "^3.1090.0"
81
+ "@aws-sdk/client-cloudformation": "^3.1091.0"
82
82
  },
83
83
  "bundledDependencies": [
84
84
  "@aws-sdk/client-cloudformation"
@@ -95,7 +95,7 @@
95
95
  "publishConfig": {
96
96
  "access": "public"
97
97
  },
98
- "version": "0.0.634",
98
+ "version": "0.0.635",
99
99
  "jest": {
100
100
  "coverageProvider": "v8",
101
101
  "testMatch": [
@@ -1,21 +0,0 @@
1
- const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
2
- const CONFIG_ENDPOINT_URL = "endpoint_url";
3
- export const getEndpointUrlConfig = (serviceId) => ({
4
- environmentVariableSelector: (env) => {
5
- const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
6
- const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
7
- if (serviceEndpointUrl)
8
- return serviceEndpointUrl;
9
- const endpointUrl = env[ENV_ENDPOINT_URL];
10
- if (endpointUrl)
11
- return endpointUrl;
12
- return undefined;
13
- },
14
- configFileSelector: (profile) => {
15
- const endpointUrl = profile[CONFIG_ENDPOINT_URL];
16
- if (endpointUrl)
17
- return endpointUrl;
18
- return undefined;
19
- },
20
- default: undefined,
21
- });
@@ -1,12 +0,0 @@
1
- /**
2
- * Inlined from @smithy/core/config to avoid circular dependency.
3
- *
4
- * @internal
5
- */
6
- type LoadedConfigSelectors<T> = {
7
- environmentVariableSelector: (env: Record<string, string | undefined>) => T | undefined;
8
- configFileSelector: (profile: Record<string, string | undefined>, configFile?: Record<string, Record<string, string | undefined>>) => T | undefined;
9
- default: T | (() => T);
10
- };
11
- export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
12
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Inlined from @smithy/core/config to avoid circular dependency.
3
- *
4
- * @internal
5
- */
6
- type LoadedConfigSelectors<T> = {
7
- environmentVariableSelector: (env: Record<string, string | undefined>) => T | undefined;
8
- configFileSelector: (profile: Record<string, string | undefined>, configFile?: Record<string, Record<string, string | undefined>>) => T | undefined;
9
- default: T | (() => T);
10
- };
11
- export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
12
- export {};