@aws-sdk/middleware-sdk-s3 3.799.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 CHANGED
@@ -663,14 +663,14 @@ var getValidateBucketNamePlugin = /* @__PURE__ */ __name((options) => ({
663
663
  // Annotate the CommonJS export names for ESM import in node:
664
664
 
665
665
  0 && (module.exports = {
666
- checkContentLengthHeader,
667
666
  checkContentLengthHeaderMiddlewareOptions,
668
667
  getCheckContentLengthHeaderPlugin,
668
+ checkContentLengthHeader,
669
669
  regionRedirectEndpointMiddleware,
670
670
  regionRedirectEndpointMiddlewareOptions,
671
- regionRedirectMiddleware,
672
671
  regionRedirectMiddlewareOptions,
673
672
  getRegionRedirectMiddlewarePlugin,
673
+ regionRedirectMiddleware,
674
674
  s3ExpiresMiddleware,
675
675
  s3ExpiresMiddlewareOptions,
676
676
  getS3ExpiresMiddlewarePlugin,
@@ -689,8 +689,8 @@ var getValidateBucketNamePlugin = /* @__PURE__ */ __name((options) => ({
689
689
  throw200ExceptionsMiddleware,
690
690
  throw200ExceptionsMiddlewareOptions,
691
691
  getThrow200ExceptionsPlugin,
692
- validateBucketNameMiddleware,
693
692
  validateBucketNameMiddlewareOptions,
694
- getValidateBucketNamePlugin
693
+ getValidateBucketNamePlugin,
694
+ validateBucketNameMiddleware
695
695
  });
696
696
 
@@ -1,7 +1,7 @@
1
1
  export class S3ExpressIdentityCache {
2
2
  data;
3
3
  lastPurgeTime = Date.now();
4
- static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 30000;
4
+ static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 30_000;
5
5
  constructor(data = {}) {
6
6
  this.data = data;
7
7
  }
@@ -3,7 +3,7 @@ import { S3ExpressIdentityCacheEntry } from "./S3ExpressIdentityCacheEntry";
3
3
  export class S3ExpressIdentityProviderImpl {
4
4
  createSessionFn;
5
5
  cache;
6
- static REFRESH_WINDOW_MS = 60000;
6
+ static REFRESH_WINDOW_MS = 60_000;
7
7
  constructor(createSessionFn, cache = new S3ExpressIdentityCache()) {
8
8
  this.createSessionFn = createSessionFn;
9
9
  this.cache = cache;
@@ -5,9 +5,5 @@ export declare const signS3Express: (s3ExpressIdentity: S3ExpressIdentity, signi
5
5
  signingRegion: string;
6
6
  signingService: string;
7
7
  }, request: IHttpRequest, sigV4MultiRegionSigner: {
8
- signWithCredentials(req: IHttpRequest, identity: AwsCredentialIdentity, opts?: Partial<{
9
- signingDate: Date;
10
- signingRegion: string;
11
- signingService: string;
12
- }> | undefined): Promise<IHttpRequest>;
8
+ signWithCredentials(req: IHttpRequest, identity: AwsCredentialIdentity, opts?: Partial<typeof signingOptions>): Promise<IHttpRequest>;
13
9
  }) => Promise<IHttpRequest>;
@@ -15,13 +15,7 @@ export declare const signS3Express: (
15
15
  signWithCredentials(
16
16
  req: IHttpRequest,
17
17
  identity: AwsCredentialIdentity,
18
- opts?:
19
- | Partial<{
20
- signingDate: Date;
21
- signingRegion: string;
22
- signingService: string;
23
- }>
24
- | undefined
18
+ opts?: Partial<typeof signingOptions>
25
19
  ): Promise<IHttpRequest>;
26
20
  }
27
21
  ) => Promise<IHttpRequest>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.799.0",
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-sdk-s3",
@@ -27,14 +27,14 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.799.0",
31
- "@aws-sdk/types": "3.775.0",
32
- "@aws-sdk/util-arn-parser": "3.723.0",
33
- "@smithy/core": "^3.3.0",
30
+ "@aws-sdk/core": "3.804.0",
31
+ "@aws-sdk/types": "3.804.0",
32
+ "@aws-sdk/util-arn-parser": "3.804.0",
33
+ "@smithy/core": "^3.3.1",
34
34
  "@smithy/node-config-provider": "^4.0.2",
35
35
  "@smithy/protocol-http": "^5.1.0",
36
36
  "@smithy/signature-v4": "^5.1.0",
37
- "@smithy/smithy-client": "^4.2.1",
37
+ "@smithy/smithy-client": "^4.2.2",
38
38
  "@smithy/types": "^4.2.0",
39
39
  "@smithy/util-config-provider": "^4.0.0",
40
40
  "@smithy/util-middleware": "^4.0.2",
@@ -47,7 +47,7 @@
47
47
  "concurrently": "7.0.0",
48
48
  "downlevel-dts": "0.10.1",
49
49
  "rimraf": "3.0.2",
50
- "typescript": "~5.2.2"
50
+ "typescript": "~5.8.3"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=18.0.0"