@aws-sdk/client-s3 3.804.0 → 3.806.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.
@@ -28,29 +28,28 @@ const getRuntimeConfig = (config) => {
28
28
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
29
29
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
30
30
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
31
- const profileConfig = { profile: config?.profile };
31
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
32
32
  return {
33
33
  ...clientSharedValues,
34
34
  ...config,
35
35
  runtime: "node",
36
36
  defaultsMode,
37
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
37
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
38
38
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
39
39
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
40
40
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
41
41
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
42
- disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
43
- (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig),
42
+ disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig),
44
43
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
45
44
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
46
45
  md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
47
46
  region: config?.region ??
48
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
47
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
49
48
  requestChecksumCalculation: config?.requestChecksumCalculation ??
50
- (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig),
49
+ (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig),
51
50
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
52
51
  responseChecksumValidation: config?.responseChecksumValidation ??
53
- (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig),
52
+ (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, loaderConfig),
54
53
  retryMode: config?.retryMode ??
55
54
  (0, node_config_provider_1.loadConfig)({
56
55
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -58,13 +57,13 @@ const getRuntimeConfig = (config) => {
58
57
  }, config),
59
58
  sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
60
59
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
61
- sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig),
60
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
62
61
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
63
62
  streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
64
- useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig),
65
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
66
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
67
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
63
+ useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, loaderConfig),
64
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
65
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
66
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
68
67
  };
69
68
  };
70
69
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -24,29 +24,28 @@ export const getRuntimeConfig = (config) => {
24
24
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
25
25
  const clientSharedValues = getSharedRuntimeConfig(config);
26
26
  awsCheckVersion(process.version);
27
- const profileConfig = { profile: config?.profile };
27
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
28
28
  return {
29
29
  ...clientSharedValues,
30
30
  ...config,
31
31
  runtime: "node",
32
32
  defaultsMode,
33
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
33
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
34
34
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
35
35
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
36
36
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
37
37
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
38
- disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
39
- loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig),
38
+ disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig),
40
39
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
41
40
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
42
41
  md5: config?.md5 ?? Hash.bind(null, "md5"),
43
42
  region: config?.region ??
44
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
43
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
45
44
  requestChecksumCalculation: config?.requestChecksumCalculation ??
46
- loadNodeConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig),
45
+ loadNodeConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig),
47
46
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
48
47
  responseChecksumValidation: config?.responseChecksumValidation ??
49
- loadNodeConfig(NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig),
48
+ loadNodeConfig(NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, loaderConfig),
50
49
  retryMode: config?.retryMode ??
51
50
  loadNodeConfig({
52
51
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -54,12 +53,12 @@ export const getRuntimeConfig = (config) => {
54
53
  }, config),
55
54
  sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
56
55
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
57
- sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, profileConfig),
56
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
58
57
  streamCollector: config?.streamCollector ?? streamCollector,
59
58
  streamHasher: config?.streamHasher ?? streamHasher,
60
- useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig),
61
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
62
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
63
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
59
+ useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS, loaderConfig),
60
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
61
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
62
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
64
63
  };
65
64
  };
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.804.0",
4
+ "version": "3.806.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",
@@ -17,6 +17,8 @@
17
17
  "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts",
18
18
  "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser",
19
19
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts",
20
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
21
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts",
20
22
  "test:watch": "yarn g:vitest watch"
21
23
  },
22
24
  "main": "./dist-cjs/index.js",
@@ -27,26 +29,26 @@
27
29
  "@aws-crypto/sha1-browser": "5.2.0",
28
30
  "@aws-crypto/sha256-browser": "5.2.0",
29
31
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "3.804.0",
31
- "@aws-sdk/credential-provider-node": "3.804.0",
32
- "@aws-sdk/middleware-bucket-endpoint": "3.804.0",
32
+ "@aws-sdk/core": "3.806.0",
33
+ "@aws-sdk/credential-provider-node": "3.806.0",
34
+ "@aws-sdk/middleware-bucket-endpoint": "3.806.0",
33
35
  "@aws-sdk/middleware-expect-continue": "3.804.0",
34
- "@aws-sdk/middleware-flexible-checksums": "3.804.0",
36
+ "@aws-sdk/middleware-flexible-checksums": "3.806.0",
35
37
  "@aws-sdk/middleware-host-header": "3.804.0",
36
38
  "@aws-sdk/middleware-location-constraint": "3.804.0",
37
39
  "@aws-sdk/middleware-logger": "3.804.0",
38
40
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
39
- "@aws-sdk/middleware-sdk-s3": "3.804.0",
41
+ "@aws-sdk/middleware-sdk-s3": "3.806.0",
40
42
  "@aws-sdk/middleware-ssec": "3.804.0",
41
- "@aws-sdk/middleware-user-agent": "3.804.0",
42
- "@aws-sdk/region-config-resolver": "3.804.0",
43
- "@aws-sdk/signature-v4-multi-region": "3.804.0",
43
+ "@aws-sdk/middleware-user-agent": "3.806.0",
44
+ "@aws-sdk/region-config-resolver": "3.806.0",
45
+ "@aws-sdk/signature-v4-multi-region": "3.806.0",
44
46
  "@aws-sdk/types": "3.804.0",
45
- "@aws-sdk/util-endpoints": "3.804.0",
47
+ "@aws-sdk/util-endpoints": "3.806.0",
46
48
  "@aws-sdk/util-user-agent-browser": "3.804.0",
47
- "@aws-sdk/util-user-agent-node": "3.804.0",
49
+ "@aws-sdk/util-user-agent-node": "3.806.0",
48
50
  "@aws-sdk/xml-builder": "3.804.0",
49
- "@smithy/config-resolver": "^4.1.0",
51
+ "@smithy/config-resolver": "^4.1.1",
50
52
  "@smithy/core": "^3.3.1",
51
53
  "@smithy/eventstream-serde-browser": "^4.0.2",
52
54
  "@smithy/eventstream-serde-config-resolver": "^4.1.0",
@@ -58,22 +60,22 @@
58
60
  "@smithy/invalid-dependency": "^4.0.2",
59
61
  "@smithy/md5-js": "^4.0.2",
60
62
  "@smithy/middleware-content-length": "^4.0.2",
61
- "@smithy/middleware-endpoint": "^4.1.2",
62
- "@smithy/middleware-retry": "^4.1.3",
63
+ "@smithy/middleware-endpoint": "^4.1.3",
64
+ "@smithy/middleware-retry": "^4.1.4",
63
65
  "@smithy/middleware-serde": "^4.0.3",
64
66
  "@smithy/middleware-stack": "^4.0.2",
65
- "@smithy/node-config-provider": "^4.0.2",
67
+ "@smithy/node-config-provider": "^4.1.0",
66
68
  "@smithy/node-http-handler": "^4.0.4",
67
69
  "@smithy/protocol-http": "^5.1.0",
68
- "@smithy/smithy-client": "^4.2.2",
70
+ "@smithy/smithy-client": "^4.2.3",
69
71
  "@smithy/types": "^4.2.0",
70
72
  "@smithy/url-parser": "^4.0.2",
71
73
  "@smithy/util-base64": "^4.0.0",
72
74
  "@smithy/util-body-length-browser": "^4.0.0",
73
75
  "@smithy/util-body-length-node": "^4.0.0",
74
- "@smithy/util-defaults-mode-browser": "^4.0.10",
75
- "@smithy/util-defaults-mode-node": "^4.0.10",
76
- "@smithy/util-endpoints": "^3.0.2",
76
+ "@smithy/util-defaults-mode-browser": "^4.0.11",
77
+ "@smithy/util-defaults-mode-node": "^4.0.11",
78
+ "@smithy/util-endpoints": "^3.0.3",
77
79
  "@smithy/util-middleware": "^4.0.2",
78
80
  "@smithy/util-retry": "^4.0.3",
79
81
  "@smithy/util-stream": "^4.2.0",
@@ -82,7 +84,7 @@
82
84
  "tslib": "^2.6.2"
83
85
  },
84
86
  "devDependencies": {
85
- "@aws-sdk/signature-v4-crt": "3.804.0",
87
+ "@aws-sdk/signature-v4-crt": "3.806.0",
86
88
  "@tsconfig/node18": "18.2.4",
87
89
  "@types/node": "^18.19.69",
88
90
  "concurrently": "7.0.0",