@aws-sdk/client-s3 3.386.0 → 3.388.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.
@@ -18,8 +18,8 @@ Object.defineProperty(exports, "__Client", { enumerable: true, get: function ()
18
18
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
19
19
  const runtimeConfig_1 = require("./runtimeConfig");
20
20
  class S3Client extends smithy_client_1.Client {
21
- constructor(configuration) {
22
- const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
21
+ constructor(...[configuration]) {
22
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
23
23
  const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
24
24
  const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
25
25
  const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
@@ -15,8 +15,8 @@ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"
15
15
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
16
16
  export { __Client };
17
17
  export class S3Client extends __Client {
18
- constructor(configuration) {
19
- const _config_0 = __getRuntimeConfig(configuration);
18
+ constructor(...[configuration]) {
19
+ const _config_0 = __getRuntimeConfig(configuration || {});
20
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
21
  const _config_2 = resolveRegionConfig(_config_1);
22
22
  const _config_3 = resolveEndpointConfig(_config_2);
@@ -10,7 +10,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
10
10
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
11
11
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
12
12
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
13
- import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
13
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
14
14
  import { Readable } from "stream";
15
15
  import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
16
16
  import { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from "./commands/CompleteMultipartUploadCommand";
@@ -289,7 +289,7 @@ export declare class S3Client extends __Client<__HttpHandlerOptions, ServiceInpu
289
289
  * The resolved configuration of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}.
290
290
  */
291
291
  readonly config: S3ClientResolvedConfig;
292
- constructor(configuration: S3ClientConfig);
292
+ constructor(...[configuration]: __CheckOptionalClientConfig<S3ClientConfig>);
293
293
  /**
294
294
  * Destroy underlying resources, like sockets. It's usually not necessary to do this.
295
295
  * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
@@ -40,6 +40,7 @@ import {
40
40
  } from "@smithy/smithy-client";
41
41
  import {
42
42
  BodyLengthCalculator as __BodyLengthCalculator,
43
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
43
44
  ChecksumConstructor as __ChecksumConstructor,
44
45
  Decoder as __Decoder,
45
46
  Encoder as __Encoder,
@@ -688,6 +689,6 @@ export declare class S3Client extends __Client<
688
689
  S3ClientResolvedConfig
689
690
  > {
690
691
  readonly config: S3ClientResolvedConfig;
691
- constructor(configuration: S3ClientConfig);
692
+ constructor(...[configuration]: __CheckOptionalClientConfig<S3ClientConfig>);
692
693
  destroy(): void;
693
694
  }
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.386.0",
4
+ "version": "3.388.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -25,55 +25,55 @@
25
25
  "@aws-crypto/sha1-browser": "3.0.0",
26
26
  "@aws-crypto/sha256-browser": "3.0.0",
27
27
  "@aws-crypto/sha256-js": "3.0.0",
28
- "@aws-sdk/client-sts": "3.386.0",
29
- "@aws-sdk/credential-provider-node": "3.386.0",
30
- "@aws-sdk/middleware-bucket-endpoint": "3.378.0",
31
- "@aws-sdk/middleware-expect-continue": "3.378.0",
32
- "@aws-sdk/middleware-flexible-checksums": "3.383.0",
33
- "@aws-sdk/middleware-host-header": "3.379.1",
34
- "@aws-sdk/middleware-location-constraint": "3.379.1",
35
- "@aws-sdk/middleware-logger": "3.378.0",
36
- "@aws-sdk/middleware-recursion-detection": "3.378.0",
37
- "@aws-sdk/middleware-sdk-s3": "3.379.1",
38
- "@aws-sdk/middleware-signing": "3.379.1",
39
- "@aws-sdk/middleware-ssec": "3.378.0",
40
- "@aws-sdk/middleware-user-agent": "3.386.0",
41
- "@aws-sdk/signature-v4-multi-region": "3.378.0",
42
- "@aws-sdk/types": "3.378.0",
43
- "@aws-sdk/util-endpoints": "3.386.0",
44
- "@aws-sdk/util-user-agent-browser": "3.378.0",
45
- "@aws-sdk/util-user-agent-node": "3.378.0",
28
+ "@aws-sdk/client-sts": "3.388.0",
29
+ "@aws-sdk/credential-provider-node": "3.388.0",
30
+ "@aws-sdk/middleware-bucket-endpoint": "3.387.0",
31
+ "@aws-sdk/middleware-expect-continue": "3.387.0",
32
+ "@aws-sdk/middleware-flexible-checksums": "3.387.0",
33
+ "@aws-sdk/middleware-host-header": "3.387.0",
34
+ "@aws-sdk/middleware-location-constraint": "3.387.0",
35
+ "@aws-sdk/middleware-logger": "3.387.0",
36
+ "@aws-sdk/middleware-recursion-detection": "3.387.0",
37
+ "@aws-sdk/middleware-sdk-s3": "3.387.0",
38
+ "@aws-sdk/middleware-signing": "3.387.0",
39
+ "@aws-sdk/middleware-ssec": "3.387.0",
40
+ "@aws-sdk/middleware-user-agent": "3.387.0",
41
+ "@aws-sdk/signature-v4-multi-region": "3.387.0",
42
+ "@aws-sdk/types": "3.387.0",
43
+ "@aws-sdk/util-endpoints": "3.387.0",
44
+ "@aws-sdk/util-user-agent-browser": "3.387.0",
45
+ "@aws-sdk/util-user-agent-node": "3.387.0",
46
46
  "@aws-sdk/xml-builder": "3.310.0",
47
- "@smithy/config-resolver": "^2.0.1",
48
- "@smithy/eventstream-serde-browser": "^2.0.1",
49
- "@smithy/eventstream-serde-config-resolver": "^2.0.1",
50
- "@smithy/eventstream-serde-node": "^2.0.1",
51
- "@smithy/fetch-http-handler": "^2.0.1",
52
- "@smithy/hash-blob-browser": "^2.0.1",
53
- "@smithy/hash-node": "^2.0.1",
54
- "@smithy/hash-stream-node": "^2.0.1",
55
- "@smithy/invalid-dependency": "^2.0.1",
56
- "@smithy/md5-js": "^2.0.1",
57
- "@smithy/middleware-content-length": "^2.0.1",
58
- "@smithy/middleware-endpoint": "^2.0.1",
59
- "@smithy/middleware-retry": "^2.0.1",
60
- "@smithy/middleware-serde": "^2.0.1",
47
+ "@smithy/config-resolver": "^2.0.2",
48
+ "@smithy/eventstream-serde-browser": "^2.0.2",
49
+ "@smithy/eventstream-serde-config-resolver": "^2.0.2",
50
+ "@smithy/eventstream-serde-node": "^2.0.2",
51
+ "@smithy/fetch-http-handler": "^2.0.2",
52
+ "@smithy/hash-blob-browser": "^2.0.2",
53
+ "@smithy/hash-node": "^2.0.2",
54
+ "@smithy/hash-stream-node": "^2.0.2",
55
+ "@smithy/invalid-dependency": "^2.0.2",
56
+ "@smithy/md5-js": "^2.0.2",
57
+ "@smithy/middleware-content-length": "^2.0.2",
58
+ "@smithy/middleware-endpoint": "^2.0.2",
59
+ "@smithy/middleware-retry": "^2.0.2",
60
+ "@smithy/middleware-serde": "^2.0.2",
61
61
  "@smithy/middleware-stack": "^2.0.0",
62
- "@smithy/node-config-provider": "^2.0.1",
63
- "@smithy/node-http-handler": "^2.0.1",
64
- "@smithy/protocol-http": "^2.0.1",
65
- "@smithy/smithy-client": "^2.0.1",
66
- "@smithy/types": "^2.0.2",
67
- "@smithy/url-parser": "^2.0.1",
62
+ "@smithy/node-config-provider": "^2.0.2",
63
+ "@smithy/node-http-handler": "^2.0.2",
64
+ "@smithy/protocol-http": "^2.0.2",
65
+ "@smithy/smithy-client": "^2.0.2",
66
+ "@smithy/types": "^2.1.0",
67
+ "@smithy/url-parser": "^2.0.2",
68
68
  "@smithy/util-base64": "^2.0.0",
69
69
  "@smithy/util-body-length-browser": "^2.0.0",
70
70
  "@smithy/util-body-length-node": "^2.0.0",
71
- "@smithy/util-defaults-mode-browser": "^2.0.1",
72
- "@smithy/util-defaults-mode-node": "^2.0.1",
71
+ "@smithy/util-defaults-mode-browser": "^2.0.2",
72
+ "@smithy/util-defaults-mode-node": "^2.0.2",
73
73
  "@smithy/util-retry": "^2.0.0",
74
- "@smithy/util-stream": "^2.0.1",
74
+ "@smithy/util-stream": "^2.0.2",
75
75
  "@smithy/util-utf8": "^2.0.0",
76
- "@smithy/util-waiter": "^2.0.1",
76
+ "@smithy/util-waiter": "^2.0.2",
77
77
  "fast-xml-parser": "4.2.5",
78
78
  "tslib": "^2.5.0"
79
79
  },