@aws-sdk/client-s3 3.772.0 → 3.775.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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/S3Client.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/package.json +50 -50
|
@@ -120,8 +120,6 @@ exports.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemePro
|
|
|
120
120
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
121
121
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
122
122
|
const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0);
|
|
123
|
-
return {
|
|
124
|
-
...config_1,
|
|
125
|
-
};
|
|
123
|
+
return Object.assign(config_1, {});
|
|
126
124
|
};
|
|
127
125
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -289,8 +289,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
289
289
|
|
|
290
290
|
// src/endpoint/EndpointParameters.ts
|
|
291
291
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
292
|
-
return {
|
|
293
|
-
...options,
|
|
292
|
+
return Object.assign(options, {
|
|
294
293
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
295
294
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
296
295
|
forcePathStyle: options.forcePathStyle ?? false,
|
|
@@ -298,7 +297,7 @@ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
|
298
297
|
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
299
298
|
disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false,
|
|
300
299
|
defaultSigningName: "s3"
|
|
301
|
-
};
|
|
300
|
+
});
|
|
302
301
|
}, "resolveClientEndpointParameters");
|
|
303
302
|
var commonParams = {
|
|
304
303
|
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
@@ -8777,22 +8776,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
8777
8776
|
}, "resolveHttpAuthRuntimeConfig");
|
|
8778
8777
|
|
|
8779
8778
|
// src/runtimeExtensions.ts
|
|
8780
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
8781
8779
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
8782
|
-
const extensionConfiguration =
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8780
|
+
const extensionConfiguration = Object.assign(
|
|
8781
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
8782
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
8783
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
8784
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
8785
|
+
);
|
|
8788
8786
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8789
|
-
return
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8787
|
+
return Object.assign(
|
|
8788
|
+
runtimeConfig,
|
|
8789
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
8790
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
8791
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
8792
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
8793
|
+
);
|
|
8796
8794
|
}, "resolveRuntimeExtensions");
|
|
8797
8795
|
|
|
8798
8796
|
// src/S3Client.ts
|
|
@@ -8806,6 +8804,8 @@ var S3Client = class extends import_smithy_client.Client {
|
|
|
8806
8804
|
config;
|
|
8807
8805
|
constructor(...[configuration]) {
|
|
8808
8806
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
8807
|
+
super(_config_0);
|
|
8808
|
+
this.initConfig = _config_0;
|
|
8809
8809
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
8810
8810
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
8811
8811
|
const _config_3 = (0, import_middleware_flexible_checksums.resolveFlexibleChecksumsConfig)(_config_2);
|
|
@@ -8817,7 +8817,6 @@ var S3Client = class extends import_smithy_client.Client {
|
|
|
8817
8817
|
const _config_9 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_8);
|
|
8818
8818
|
const _config_10 = (0, import_middleware_sdk_s32.resolveS3Config)(_config_9, { session: [() => this, CreateSessionCommand] });
|
|
8819
8819
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
8820
|
-
super(_config_11);
|
|
8821
8820
|
this.config = _config_11;
|
|
8822
8821
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
8823
8822
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
package/dist-es/S3Client.js
CHANGED
|
@@ -22,6 +22,8 @@ export class S3Client extends __Client {
|
|
|
22
22
|
config;
|
|
23
23
|
constructor(...[configuration]) {
|
|
24
24
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
25
|
+
super(_config_0);
|
|
26
|
+
this.initConfig = _config_0;
|
|
25
27
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
26
28
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
27
29
|
const _config_3 = resolveFlexibleChecksumsConfig(_config_2);
|
|
@@ -33,7 +35,6 @@ export class S3Client extends __Client {
|
|
|
33
35
|
const _config_9 = resolveHttpAuthSchemeConfig(_config_8);
|
|
34
36
|
const _config_10 = resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] });
|
|
35
37
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
36
|
-
super(_config_11);
|
|
37
38
|
this.config = _config_11;
|
|
38
39
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
39
40
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -117,7 +117,5 @@ export const defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSche
|
|
|
117
117
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
118
118
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
119
119
|
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
120
|
-
return {
|
|
121
|
-
...config_1,
|
|
122
|
-
};
|
|
120
|
+
return Object.assign(config_1, {});
|
|
123
121
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
5
4
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
6
5
|
forcePathStyle: options.forcePathStyle ?? false,
|
|
@@ -8,7 +7,7 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
8
7
|
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
9
8
|
disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false,
|
|
10
9
|
defaultSigningName: "s3",
|
|
11
|
-
};
|
|
10
|
+
});
|
|
12
11
|
};
|
|
13
12
|
export const commonParams = {
|
|
14
13
|
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.775.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -27,62 +27,62 @@
|
|
|
27
27
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
32
|
-
"@aws-sdk/middleware-bucket-endpoint": "3.
|
|
33
|
-
"@aws-sdk/middleware-expect-continue": "3.
|
|
34
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
35
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
36
|
-
"@aws-sdk/middleware-location-constraint": "3.
|
|
37
|
-
"@aws-sdk/middleware-logger": "3.
|
|
38
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
39
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
40
|
-
"@aws-sdk/middleware-ssec": "3.
|
|
41
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
42
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
43
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/util-endpoints": "3.
|
|
46
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
-
"@aws-sdk/xml-builder": "3.
|
|
49
|
-
"@smithy/config-resolver": "^4.0
|
|
50
|
-
"@smithy/core": "^3.
|
|
51
|
-
"@smithy/eventstream-serde-browser": "^4.0.
|
|
52
|
-
"@smithy/eventstream-serde-config-resolver": "^4.0
|
|
53
|
-
"@smithy/eventstream-serde-node": "^4.0.
|
|
54
|
-
"@smithy/fetch-http-handler": "^5.0.
|
|
55
|
-
"@smithy/hash-blob-browser": "^4.0.
|
|
56
|
-
"@smithy/hash-node": "^4.0.
|
|
57
|
-
"@smithy/hash-stream-node": "^4.0.
|
|
58
|
-
"@smithy/invalid-dependency": "^4.0.
|
|
59
|
-
"@smithy/md5-js": "^4.0.
|
|
60
|
-
"@smithy/middleware-content-length": "^4.0.
|
|
61
|
-
"@smithy/middleware-endpoint": "^4.0
|
|
62
|
-
"@smithy/middleware-retry": "^4.0
|
|
63
|
-
"@smithy/middleware-serde": "^4.0.
|
|
64
|
-
"@smithy/middleware-stack": "^4.0.
|
|
65
|
-
"@smithy/node-config-provider": "^4.0.
|
|
66
|
-
"@smithy/node-http-handler": "^4.0.
|
|
67
|
-
"@smithy/protocol-http": "^5.0
|
|
68
|
-
"@smithy/smithy-client": "^4.
|
|
69
|
-
"@smithy/types": "^4.
|
|
70
|
-
"@smithy/url-parser": "^4.0.
|
|
30
|
+
"@aws-sdk/core": "3.775.0",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "3.775.0",
|
|
32
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.775.0",
|
|
33
|
+
"@aws-sdk/middleware-expect-continue": "3.775.0",
|
|
34
|
+
"@aws-sdk/middleware-flexible-checksums": "3.775.0",
|
|
35
|
+
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
36
|
+
"@aws-sdk/middleware-location-constraint": "3.775.0",
|
|
37
|
+
"@aws-sdk/middleware-logger": "3.775.0",
|
|
38
|
+
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
39
|
+
"@aws-sdk/middleware-sdk-s3": "3.775.0",
|
|
40
|
+
"@aws-sdk/middleware-ssec": "3.775.0",
|
|
41
|
+
"@aws-sdk/middleware-user-agent": "3.775.0",
|
|
42
|
+
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
43
|
+
"@aws-sdk/signature-v4-multi-region": "3.775.0",
|
|
44
|
+
"@aws-sdk/types": "3.775.0",
|
|
45
|
+
"@aws-sdk/util-endpoints": "3.775.0",
|
|
46
|
+
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-node": "3.775.0",
|
|
48
|
+
"@aws-sdk/xml-builder": "3.775.0",
|
|
49
|
+
"@smithy/config-resolver": "^4.1.0",
|
|
50
|
+
"@smithy/core": "^3.2.0",
|
|
51
|
+
"@smithy/eventstream-serde-browser": "^4.0.2",
|
|
52
|
+
"@smithy/eventstream-serde-config-resolver": "^4.1.0",
|
|
53
|
+
"@smithy/eventstream-serde-node": "^4.0.2",
|
|
54
|
+
"@smithy/fetch-http-handler": "^5.0.2",
|
|
55
|
+
"@smithy/hash-blob-browser": "^4.0.2",
|
|
56
|
+
"@smithy/hash-node": "^4.0.2",
|
|
57
|
+
"@smithy/hash-stream-node": "^4.0.2",
|
|
58
|
+
"@smithy/invalid-dependency": "^4.0.2",
|
|
59
|
+
"@smithy/md5-js": "^4.0.2",
|
|
60
|
+
"@smithy/middleware-content-length": "^4.0.2",
|
|
61
|
+
"@smithy/middleware-endpoint": "^4.1.0",
|
|
62
|
+
"@smithy/middleware-retry": "^4.1.0",
|
|
63
|
+
"@smithy/middleware-serde": "^4.0.3",
|
|
64
|
+
"@smithy/middleware-stack": "^4.0.2",
|
|
65
|
+
"@smithy/node-config-provider": "^4.0.2",
|
|
66
|
+
"@smithy/node-http-handler": "^4.0.4",
|
|
67
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
68
|
+
"@smithy/smithy-client": "^4.2.0",
|
|
69
|
+
"@smithy/types": "^4.2.0",
|
|
70
|
+
"@smithy/url-parser": "^4.0.2",
|
|
71
71
|
"@smithy/util-base64": "^4.0.0",
|
|
72
72
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
73
73
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
74
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
75
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
76
|
-
"@smithy/util-endpoints": "^3.0.
|
|
77
|
-
"@smithy/util-middleware": "^4.0.
|
|
78
|
-
"@smithy/util-retry": "^4.0.
|
|
79
|
-
"@smithy/util-stream": "^4.
|
|
74
|
+
"@smithy/util-defaults-mode-browser": "^4.0.8",
|
|
75
|
+
"@smithy/util-defaults-mode-node": "^4.0.8",
|
|
76
|
+
"@smithy/util-endpoints": "^3.0.2",
|
|
77
|
+
"@smithy/util-middleware": "^4.0.2",
|
|
78
|
+
"@smithy/util-retry": "^4.0.2",
|
|
79
|
+
"@smithy/util-stream": "^4.2.0",
|
|
80
80
|
"@smithy/util-utf8": "^4.0.0",
|
|
81
|
-
"@smithy/util-waiter": "^4.0.
|
|
81
|
+
"@smithy/util-waiter": "^4.0.3",
|
|
82
82
|
"tslib": "^2.6.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
85
|
+
"@aws-sdk/signature-v4-crt": "3.775.0",
|
|
86
86
|
"@tsconfig/node18": "18.2.4",
|
|
87
87
|
"@types/node": "^18.19.69",
|
|
88
88
|
"concurrently": "7.0.0",
|