@aws-sdk/middleware-bucket-endpoint 3.734.0 → 3.804.0
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.
- package/dist-cjs/index.js +14 -18
- package/dist-es/configurations.js +2 -3
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -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
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS,
|
|
25
25
|
NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,
|
|
26
26
|
NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,
|
|
@@ -42,15 +42,15 @@ __export(src_exports, {
|
|
|
42
42
|
validatePartition: () => validatePartition,
|
|
43
43
|
validateRegion: () => validateRegion
|
|
44
44
|
});
|
|
45
|
-
module.exports = __toCommonJS(
|
|
45
|
+
module.exports = __toCommonJS(index_exports);
|
|
46
46
|
|
|
47
47
|
// src/NodeDisableMultiregionAccessPointConfigOptions.ts
|
|
48
48
|
var import_util_config_provider = require("@smithy/util-config-provider");
|
|
49
49
|
var NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
|
|
50
50
|
var NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
|
|
51
51
|
var NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = {
|
|
52
|
-
environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, import_util_config_provider.SelectorType.ENV),
|
|
53
|
-
configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, import_util_config_provider.SelectorType.CONFIG),
|
|
52
|
+
environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
|
|
53
|
+
configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
|
|
54
54
|
default: false
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -59,8 +59,8 @@ var NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = {
|
|
|
59
59
|
var NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
|
|
60
60
|
var NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
|
|
61
61
|
var NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
|
|
62
|
-
environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, NODE_USE_ARN_REGION_ENV_NAME, import_util_config_provider.SelectorType.ENV),
|
|
63
|
-
configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_USE_ARN_REGION_INI_NAME, import_util_config_provider.SelectorType.CONFIG),
|
|
62
|
+
environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, NODE_USE_ARN_REGION_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
|
|
63
|
+
configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_USE_ARN_REGION_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
|
|
64
64
|
default: false
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -148,10 +148,8 @@ var validateDNSHostLabel = /* @__PURE__ */ __name((label, options = { tlsCompati
|
|
|
148
148
|
}, "validateDNSHostLabel");
|
|
149
149
|
var validateCustomEndpoint = /* @__PURE__ */ __name((options) => {
|
|
150
150
|
if (options.isCustomEndpoint) {
|
|
151
|
-
if (options.dualstackEndpoint)
|
|
152
|
-
|
|
153
|
-
if (options.accelerateEndpoint)
|
|
154
|
-
throw new Error("Accelerate endpoint is not supported with custom endpoint");
|
|
151
|
+
if (options.dualstackEndpoint) throw new Error("Dualstack endpoint is not supported with custom endpoint");
|
|
152
|
+
if (options.accelerateEndpoint) throw new Error("Accelerate endpoint is not supported with custom endpoint");
|
|
155
153
|
}
|
|
156
154
|
}, "validateCustomEndpoint");
|
|
157
155
|
var getArnResources = /* @__PURE__ */ __name((resource) => {
|
|
@@ -179,8 +177,7 @@ var validateNoDualstack = /* @__PURE__ */ __name((dualstackEndpoint) => {
|
|
|
179
177
|
throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.");
|
|
180
178
|
}, "validateNoDualstack");
|
|
181
179
|
var validateNoFIPS = /* @__PURE__ */ __name((useFipsEndpoint) => {
|
|
182
|
-
if (useFipsEndpoint)
|
|
183
|
-
throw new Error(`FIPS region is not supported with Outpost.`);
|
|
180
|
+
if (useFipsEndpoint) throw new Error(`FIPS region is not supported with Outpost.`);
|
|
184
181
|
}, "validateNoFIPS");
|
|
185
182
|
var validateMrapAlias = /* @__PURE__ */ __name((name) => {
|
|
186
183
|
try {
|
|
@@ -450,9 +447,9 @@ var bucketEndpointMiddlewareOptions = {
|
|
|
450
447
|
override: true
|
|
451
448
|
};
|
|
452
449
|
var getBucketEndpointPlugin = /* @__PURE__ */ __name((options) => ({
|
|
453
|
-
applyToStack: (clientStack) => {
|
|
450
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
454
451
|
clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);
|
|
455
|
-
}
|
|
452
|
+
}, "applyToStack")
|
|
456
453
|
}), "getBucketEndpointPlugin");
|
|
457
454
|
|
|
458
455
|
// src/configurations.ts
|
|
@@ -464,14 +461,13 @@ function resolveBucketEndpointConfig(input) {
|
|
|
464
461
|
useArnRegion = false,
|
|
465
462
|
disableMultiregionAccessPoints = false
|
|
466
463
|
} = input;
|
|
467
|
-
return {
|
|
468
|
-
...input,
|
|
464
|
+
return Object.assign(input, {
|
|
469
465
|
bucketEndpoint,
|
|
470
466
|
forcePathStyle,
|
|
471
467
|
useAccelerateEndpoint,
|
|
472
468
|
useArnRegion: typeof useArnRegion === "function" ? useArnRegion : () => Promise.resolve(useArnRegion),
|
|
473
469
|
disableMultiregionAccessPoints: typeof disableMultiregionAccessPoints === "function" ? disableMultiregionAccessPoints : () => Promise.resolve(disableMultiregionAccessPoints)
|
|
474
|
-
};
|
|
470
|
+
});
|
|
475
471
|
}
|
|
476
472
|
__name(resolveBucketEndpointConfig, "resolveBucketEndpointConfig");
|
|
477
473
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export function resolveBucketEndpointConfig(input) {
|
|
2
2
|
const { bucketEndpoint = false, forcePathStyle = false, useAccelerateEndpoint = false, useArnRegion = false, disableMultiregionAccessPoints = false, } = input;
|
|
3
|
-
return {
|
|
4
|
-
...input,
|
|
3
|
+
return Object.assign(input, {
|
|
5
4
|
bucketEndpoint,
|
|
6
5
|
forcePathStyle,
|
|
7
6
|
useAccelerateEndpoint,
|
|
@@ -9,5 +8,5 @@ export function resolveBucketEndpointConfig(input) {
|
|
|
9
8
|
disableMultiregionAccessPoints: typeof disableMultiregionAccessPoints === "function"
|
|
10
9
|
? disableMultiregionAccessPoints
|
|
11
10
|
: () => Promise.resolve(disableMultiregionAccessPoints),
|
|
12
|
-
};
|
|
11
|
+
});
|
|
13
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-bucket-endpoint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.804.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 middleware-bucket-endpoint",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@aws-sdk/util-arn-parser": "3.
|
|
27
|
-
"@smithy/node-config-provider": "^4.0.
|
|
28
|
-
"@smithy/protocol-http": "^5.0
|
|
29
|
-
"@smithy/types": "^4.
|
|
25
|
+
"@aws-sdk/types": "3.804.0",
|
|
26
|
+
"@aws-sdk/util-arn-parser": "3.804.0",
|
|
27
|
+
"@smithy/node-config-provider": "^4.0.2",
|
|
28
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
29
|
+
"@smithy/types": "^4.2.0",
|
|
30
30
|
"@smithy/util-config-provider": "^4.0.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"concurrently": "7.0.0",
|
|
36
36
|
"downlevel-dts": "0.10.1",
|
|
37
37
|
"rimraf": "3.0.2",
|
|
38
|
-
"typescript": "~5.
|
|
38
|
+
"typescript": "~5.8.3"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18.0.0"
|