@cdk8s/awscdk-resolver 0.0.5 → 0.0.7

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 (85) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/package.json +32 -32
  5. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +2 -0
  6. package/node_modules/@aws-sdk/client-sso/package.json +28 -28
  7. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -0
  8. package/node_modules/@aws-sdk/client-sts/package.json +31 -31
  9. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  10. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
  11. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  12. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  14. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  15. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  16. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  17. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  18. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +4 -4
  19. package/node_modules/@aws-sdk/middleware-signing/package.json +5 -5
  20. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  21. package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
  22. package/node_modules/@aws-sdk/token-providers/package.json +27 -27
  23. package/node_modules/@aws-sdk/types/package.json +2 -2
  24. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/getEndpointUrlConfig.js +25 -0
  25. package/node_modules/@aws-sdk/util-endpoints/dist-es/getEndpointUrlConfig.js +21 -0
  26. package/node_modules/@aws-sdk/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +2 -0
  27. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts +4 -0
  28. package/node_modules/@aws-sdk/util-endpoints/package.json +3 -2
  29. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  30. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  31. package/node_modules/@smithy/abort-controller/package.json +2 -2
  32. package/node_modules/@smithy/config-resolver/package.json +4 -4
  33. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  34. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  35. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  36. package/node_modules/@smithy/hash-node/package.json +2 -2
  37. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  38. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  39. package/node_modules/@smithy/middleware-endpoint/package.json +5 -5
  40. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  41. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  42. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  43. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +2 -1
  44. package/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
  45. package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
  46. package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +2 -2
  47. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  48. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  49. package/node_modules/@smithy/property-provider/package.json +2 -2
  50. package/node_modules/@smithy/protocol-http/package.json +2 -2
  51. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  52. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  53. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  54. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +21 -0
  55. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +4 -3
  56. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +4 -3
  57. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +28 -9
  58. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +17 -0
  59. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +4 -3
  60. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -2
  61. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +28 -9
  62. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
  63. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -0
  64. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
  65. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -0
  66. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  67. package/node_modules/@smithy/signature-v4/package.json +5 -5
  68. package/node_modules/@smithy/smithy-client/package.json +4 -4
  69. package/node_modules/@smithy/types/dist-cjs/profile.js +7 -0
  70. package/node_modules/@smithy/types/dist-es/profile.js +6 -1
  71. package/node_modules/@smithy/types/dist-types/profile.d.ts +8 -0
  72. package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +8 -0
  73. package/node_modules/@smithy/types/package.json +1 -1
  74. package/node_modules/@smithy/url-parser/package.json +3 -3
  75. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  76. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  77. package/node_modules/@smithy/util-middleware/package.json +2 -2
  78. package/node_modules/@smithy/util-retry/package.json +3 -3
  79. package/node_modules/@smithy/util-stream/package.json +5 -5
  80. package/node_modules/@smithy/util-waiter/package.json +3 -3
  81. package/package.json +8 -8
  82. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js +0 -10
  83. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileData.js +0 -6
  84. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileData.d.ts +0 -7
  85. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileData.d.ts +0 -7
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.418.0",
3
+ "version": "3.427.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,37 +29,37 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "3.0.0",
31
31
  "@aws-crypto/sha256-js": "3.0.0",
32
- "@aws-sdk/middleware-host-header": "3.418.0",
33
- "@aws-sdk/middleware-logger": "3.418.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.418.0",
35
- "@aws-sdk/middleware-user-agent": "3.418.0",
36
- "@aws-sdk/types": "3.418.0",
37
- "@aws-sdk/util-endpoints": "3.418.0",
38
- "@aws-sdk/util-user-agent-browser": "3.418.0",
39
- "@aws-sdk/util-user-agent-node": "3.418.0",
40
- "@smithy/config-resolver": "^2.0.10",
41
- "@smithy/fetch-http-handler": "^2.1.5",
42
- "@smithy/hash-node": "^2.0.9",
43
- "@smithy/invalid-dependency": "^2.0.9",
44
- "@smithy/middleware-content-length": "^2.0.11",
45
- "@smithy/middleware-endpoint": "^2.0.9",
46
- "@smithy/middleware-retry": "^2.0.12",
47
- "@smithy/middleware-serde": "^2.0.9",
48
- "@smithy/middleware-stack": "^2.0.2",
49
- "@smithy/node-config-provider": "^2.0.12",
50
- "@smithy/node-http-handler": "^2.1.5",
32
+ "@aws-sdk/middleware-host-header": "3.425.0",
33
+ "@aws-sdk/middleware-logger": "3.425.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.425.0",
35
+ "@aws-sdk/middleware-user-agent": "3.427.0",
36
+ "@aws-sdk/types": "3.425.0",
37
+ "@aws-sdk/util-endpoints": "3.427.0",
38
+ "@aws-sdk/util-user-agent-browser": "3.425.0",
39
+ "@aws-sdk/util-user-agent-node": "3.425.0",
40
+ "@smithy/config-resolver": "^2.0.11",
41
+ "@smithy/fetch-http-handler": "^2.2.1",
42
+ "@smithy/hash-node": "^2.0.10",
43
+ "@smithy/invalid-dependency": "^2.0.10",
44
+ "@smithy/middleware-content-length": "^2.0.12",
45
+ "@smithy/middleware-endpoint": "^2.0.10",
46
+ "@smithy/middleware-retry": "^2.0.13",
47
+ "@smithy/middleware-serde": "^2.0.10",
48
+ "@smithy/middleware-stack": "^2.0.4",
49
+ "@smithy/node-config-provider": "^2.0.13",
50
+ "@smithy/node-http-handler": "^2.1.6",
51
51
  "@smithy/property-provider": "^2.0.0",
52
- "@smithy/protocol-http": "^3.0.5",
52
+ "@smithy/protocol-http": "^3.0.6",
53
53
  "@smithy/shared-ini-file-loader": "^2.0.6",
54
- "@smithy/smithy-client": "^2.1.6",
55
- "@smithy/types": "^2.3.3",
56
- "@smithy/url-parser": "^2.0.9",
54
+ "@smithy/smithy-client": "^2.1.9",
55
+ "@smithy/types": "^2.3.4",
56
+ "@smithy/url-parser": "^2.0.10",
57
57
  "@smithy/util-base64": "^2.0.0",
58
58
  "@smithy/util-body-length-browser": "^2.0.0",
59
59
  "@smithy/util-body-length-node": "^2.1.0",
60
- "@smithy/util-defaults-mode-browser": "^2.0.10",
61
- "@smithy/util-defaults-mode-node": "^2.0.12",
62
- "@smithy/util-retry": "^2.0.2",
60
+ "@smithy/util-defaults-mode-browser": "^2.0.13",
61
+ "@smithy/util-defaults-mode-node": "^2.0.15",
62
+ "@smithy/util-retry": "^2.0.3",
63
63
  "@smithy/util-utf8": "^2.0.0",
64
64
  "tslib": "^2.5.0"
65
65
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.418.0",
3
+ "version": "3.425.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "directory": "packages/types"
42
42
  },
43
43
  "dependencies": {
44
- "@smithy/types": "^2.3.3",
44
+ "@smithy/types": "^2.3.4",
45
45
  "tslib": "^2.5.0"
46
46
  },
47
47
  "devDependencies": {
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getEndpointUrlConfig = void 0;
4
+ const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
5
+ const CONFIG_ENDPOINT_URL = "endpoint_url";
6
+ const getEndpointUrlConfig = (serviceId) => ({
7
+ environmentVariableSelector: (env) => {
8
+ const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
9
+ const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
10
+ if (serviceEndpointUrl)
11
+ return serviceEndpointUrl;
12
+ const endpointUrl = env[ENV_ENDPOINT_URL];
13
+ if (endpointUrl)
14
+ return endpointUrl;
15
+ return undefined;
16
+ },
17
+ configFileSelector: (profile) => {
18
+ const endpointUrl = profile[CONFIG_ENDPOINT_URL];
19
+ if (endpointUrl)
20
+ return endpointUrl;
21
+ return undefined;
22
+ },
23
+ default: undefined,
24
+ });
25
+ exports.getEndpointUrlConfig = getEndpointUrlConfig;
@@ -0,0 +1,21 @@
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
+ });
@@ -0,0 +1,2 @@
1
+ import { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
+ export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
@@ -0,0 +1,4 @@
1
+ import { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
+ export declare const getEndpointUrlConfig: (
3
+ serviceId: string
4
+ ) => LoadedConfigSelectors<string | undefined>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.418.0",
3
+ "version": "3.427.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,7 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.418.0",
25
+ "@aws-sdk/types": "3.425.0",
26
+ "@smithy/node-config-provider": "^2.0.13",
26
27
  "tslib": "^2.5.0"
27
28
  },
28
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.418.0",
3
+ "version": "3.425.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "react-native": "dist-es/index.native.js",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.418.0",
25
- "@smithy/types": "^2.3.3",
24
+ "@aws-sdk/types": "3.425.0",
25
+ "@smithy/types": "^2.3.4",
26
26
  "bowser": "^2.11.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.418.0",
3
+ "version": "3.425.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.418.0",
24
- "@smithy/node-config-provider": "^2.0.12",
25
- "@smithy/types": "^2.3.3",
23
+ "@aws-sdk/types": "3.425.0",
24
+ "@smithy/node-config-provider": "^2.0.13",
25
+ "@smithy/types": "^2.3.4",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/types": "^2.3.4",
27
+ "@smithy/types": "^2.3.5",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "2.0.11",
3
+ "version": "2.0.14",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/node-config-provider": "^2.0.13",
27
- "@smithy/types": "^2.3.4",
26
+ "@smithy/node-config-provider": "^2.1.1",
27
+ "@smithy/types": "^2.3.5",
28
28
  "@smithy/util-config-provider": "^2.0.0",
29
- "@smithy/util-middleware": "^2.0.3",
29
+ "@smithy/util-middleware": "^2.0.4",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "2.0.13",
3
+ "version": "2.0.16",
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",
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@smithy/node-config-provider": "^2.0.13",
30
- "@smithy/property-provider": "^2.0.11",
31
- "@smithy/types": "^2.3.4",
32
- "@smithy/url-parser": "^2.0.10",
29
+ "@smithy/node-config-provider": "^2.1.1",
30
+ "@smithy/property-provider": "^2.0.12",
31
+ "@smithy/types": "^2.3.5",
32
+ "@smithy/url-parser": "^2.0.11",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/eventstream-codec",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
25
  "@aws-crypto/crc32": "3.0.0",
26
- "@smithy/types": "^2.3.4",
26
+ "@smithy/types": "^2.3.5",
27
27
  "@smithy/util-hex-encoding": "^2.0.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "2.2.1",
3
+ "version": "2.2.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'",
@@ -24,14 +24,14 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@smithy/protocol-http": "^3.0.6",
28
- "@smithy/querystring-builder": "^2.0.10",
29
- "@smithy/types": "^2.3.4",
27
+ "@smithy/protocol-http": "^3.0.7",
28
+ "@smithy/querystring-builder": "^2.0.11",
29
+ "@smithy/types": "^2.3.5",
30
30
  "@smithy/util-base64": "^2.0.0",
31
31
  "tslib": "^2.5.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@smithy/abort-controller": "^2.0.10",
34
+ "@smithy/abort-controller": "^2.0.11",
35
35
  "@tsconfig/recommended": "1.0.1",
36
36
  "@types/chai-as-promised": "^7.1.2",
37
37
  "chai": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -31,7 +31,7 @@
31
31
  "typedoc": "0.23.23"
32
32
  },
33
33
  "dependencies": {
34
- "@smithy/types": "^2.3.4",
34
+ "@smithy/types": "^2.3.5",
35
35
  "@smithy/util-buffer-from": "^2.0.0",
36
36
  "@smithy/util-utf8": "^2.0.0",
37
37
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.3.4",
25
+ "@smithy/types": "^2.3.5",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/protocol-http": "^3.0.6",
27
- "@smithy/types": "^2.3.4",
26
+ "@smithy/protocol-http": "^3.0.7",
27
+ "@smithy/types": "^2.3.5",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "engines": {
@@ -47,7 +47,7 @@
47
47
  "directory": "packages/middleware-content-length"
48
48
  },
49
49
  "devDependencies": {
50
- "@smithy/util-test": "^0.1.6",
50
+ "@smithy/util-test": "^0.1.7",
51
51
  "@tsconfig/recommended": "1.0.1",
52
52
  "concurrently": "7.0.0",
53
53
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/middleware-serde": "^2.0.10",
27
- "@smithy/types": "^2.3.4",
28
- "@smithy/url-parser": "^2.0.10",
29
- "@smithy/util-middleware": "^2.0.3",
26
+ "@smithy/middleware-serde": "^2.0.11",
27
+ "@smithy/types": "^2.3.5",
28
+ "@smithy/url-parser": "^2.0.11",
29
+ "@smithy/util-middleware": "^2.0.4",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "2.0.13",
3
+ "version": "2.0.16",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/node-config-provider": "^2.0.13",
28
- "@smithy/protocol-http": "^3.0.6",
29
- "@smithy/service-error-classification": "^2.0.3",
30
- "@smithy/types": "^2.3.4",
31
- "@smithy/util-middleware": "^2.0.3",
32
- "@smithy/util-retry": "^2.0.3",
27
+ "@smithy/node-config-provider": "^2.1.1",
28
+ "@smithy/protocol-http": "^3.0.7",
29
+ "@smithy/service-error-classification": "^2.0.4",
30
+ "@smithy/types": "^2.3.5",
31
+ "@smithy/util-middleware": "^2.0.4",
32
+ "@smithy/util-retry": "^2.0.4",
33
33
  "tslib": "^2.5.0",
34
34
  "uuid": "^8.3.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@smithy/util-test": "^0.1.6",
37
+ "@smithy/util-test": "^0.1.7",
38
38
  "@tsconfig/recommended": "1.0.1",
39
39
  "@types/uuid": "^8.3.0",
40
40
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^2.3.4",
26
+ "@smithy/types": "^2.3.5",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -46,7 +46,7 @@
46
46
  "directory": "packages/middleware-serde"
47
47
  },
48
48
  "devDependencies": {
49
- "@smithy/util-test": "^0.1.6",
49
+ "@smithy/util-test": "^0.1.7",
50
50
  "@tsconfig/recommended": "1.0.1",
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-stack",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -25,7 +25,7 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@smithy/types": "^2.3.4",
28
+ "@smithy/types": "^2.3.5",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "devDependencies": {
@@ -12,7 +12,8 @@ const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...in
12
12
  ? { ...profileFromCredentials, ...profileFromConfig }
13
13
  : { ...profileFromConfig, ...profileFromCredentials };
14
14
  try {
15
- const configValue = configSelector(mergedProfile);
15
+ const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
16
+ const configValue = configSelector(mergedProfile, cfgFile);
16
17
  if (configValue === undefined) {
17
18
  throw new Error();
18
19
  }
@@ -9,7 +9,8 @@ export const fromSharedConfigFiles = (configSelector, { preferredFile = "config"
9
9
  ? { ...profileFromCredentials, ...profileFromConfig }
10
10
  : { ...profileFromConfig, ...profileFromCredentials };
11
11
  try {
12
- const configValue = configSelector(mergedProfile);
12
+ const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
13
+ const configValue = configSelector(mergedProfile, cfgFile);
13
14
  if (configValue === undefined) {
14
15
  throw new Error();
15
16
  }
@@ -1,5 +1,5 @@
1
1
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
2
- import { Profile, Provider } from "@smithy/types";
2
+ import { ParsedIniData, Profile, Provider } from "@smithy/types";
3
3
  export interface SharedConfigInit extends SourceProfileInit {
4
4
  /**
5
5
  * The preferred shared ini file to load the config. "config" option refers to
@@ -8,7 +8,7 @@ export interface SharedConfigInit extends SourceProfileInit {
8
8
  */
9
9
  preferredFile?: "config" | "credentials";
10
10
  }
11
- export type GetterFromConfig<T> = (profile: Profile) => T | undefined;
11
+ export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
12
12
  /**
13
13
  * Get config value from the shared config files with inferred profile name.
14
14
  */
@@ -1,5 +1,5 @@
1
1
  import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
2
- import { Profile, Provider } from "@smithy/types";
2
+ import { ParsedIniData, Profile, Provider } from "@smithy/types";
3
3
  export interface SharedConfigInit extends SourceProfileInit {
4
4
  /**
5
5
  * The preferred shared ini file to load the config. "config" option refers to
@@ -8,7 +8,7 @@ export interface SharedConfigInit extends SourceProfileInit {
8
8
  */
9
9
  preferredFile?: "config" | "credentials";
10
10
  }
11
- export type GetterFromConfig<T> = (profile: Profile) => T | undefined;
11
+ export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
12
12
  /**
13
13
  * Get config value from the shared config files with inferred profile name.
14
14
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "2.0.13",
3
+ "version": "2.1.1",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -24,9 +24,9 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^2.0.11",
28
- "@smithy/shared-ini-file-loader": "^2.0.12",
29
- "@smithy/types": "^2.3.4",
27
+ "@smithy/property-provider": "^2.0.12",
28
+ "@smithy/shared-ini-file-loader": "^2.2.0",
29
+ "@smithy/types": "^2.3.5",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
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'",
@@ -25,10 +25,10 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@smithy/abort-controller": "^2.0.10",
29
- "@smithy/protocol-http": "^3.0.6",
30
- "@smithy/querystring-builder": "^2.0.10",
31
- "@smithy/types": "^2.3.4",
28
+ "@smithy/abort-controller": "^2.0.11",
29
+ "@smithy/protocol-http": "^3.0.7",
30
+ "@smithy/querystring-builder": "^2.0.11",
31
+ "@smithy/types": "^2.3.5",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.3.4",
25
+ "@smithy/types": "^2.3.5",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^2.3.4",
26
+ "@smithy/types": "^2.3.5",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.3.4",
25
+ "@smithy/types": "^2.3.5",
26
26
  "@smithy/util-uri-escape": "^2.0.0",
27
27
  "tslib": "^2.5.0"
28
28
  },