@aws-sdk/middleware-sdk-s3 3.665.0 → 3.666.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
@@ -391,6 +391,7 @@ function setSingleOverride(privateAccess, credentialsWithoutSessionToken) {
391
391
  __name(setSingleOverride, "setSingleOverride");
392
392
 
393
393
  // src/s3-express/functions/s3ExpressMiddleware.ts
394
+ var import_core = require("@aws-sdk/core");
394
395
 
395
396
  var s3ExpressMiddleware = /* @__PURE__ */ __name((options) => {
396
397
  return (next, context) => async (args) => {
@@ -400,6 +401,7 @@ var s3ExpressMiddleware = /* @__PURE__ */ __name((options) => {
400
401
  const isS3ExpressAuth = ((_c = (_b = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes) == null ? void 0 : _b[0]) == null ? void 0 : _c.name) === S3_EXPRESS_AUTH_SCHEME;
401
402
  const isS3ExpressBucket = ((_d = endpoint.properties) == null ? void 0 : _d.backend) === S3_EXPRESS_BACKEND || ((_e = endpoint.properties) == null ? void 0 : _e.bucketType) === S3_EXPRESS_BUCKET_TYPE;
402
403
  if (isS3ExpressBucket) {
404
+ (0, import_core.setFeature)(context, "S3_EXPRESS_BUCKET", "J");
403
405
  context.isS3ExpressBucket = true;
404
406
  }
405
407
  if (isS3ExpressAuth) {
@@ -434,7 +436,7 @@ var getS3ExpressPlugin = /* @__PURE__ */ __name((options) => ({
434
436
  }), "getS3ExpressPlugin");
435
437
 
436
438
  // src/s3-express/functions/s3ExpressHttpSigningMiddleware.ts
437
- var import_core = require("@smithy/core");
439
+ var import_core2 = require("@smithy/core");
438
440
 
439
441
  var import_util_middleware = require("@smithy/util-middleware");
440
442
 
@@ -453,7 +455,7 @@ var defaultErrorHandler = /* @__PURE__ */ __name((signingProperties) => (error)
453
455
  }, "defaultErrorHandler");
454
456
  var defaultSuccessHandler = /* @__PURE__ */ __name((httpResponse, signingProperties) => {
455
457
  }, "defaultSuccessHandler");
456
- var s3ExpressHttpSigningMiddlewareOptions = import_core.httpSigningMiddlewareOptions;
458
+ var s3ExpressHttpSigningMiddlewareOptions = import_core2.httpSigningMiddlewareOptions;
457
459
  var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
458
460
  if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
459
461
  return next(args);
@@ -490,7 +492,7 @@ var getS3ExpressHttpSigningPlugin = /* @__PURE__ */ __name((config) => ({
490
492
  applyToStack: (clientStack) => {
491
493
  clientStack.addRelativeTo(
492
494
  s3ExpressHttpSigningMiddleware(config),
493
- import_core.httpSigningMiddlewareOptions
495
+ import_core2.httpSigningMiddlewareOptions
494
496
  );
495
497
  }
496
498
  }), "getS3ExpressHttpSigningPlugin");
@@ -1,3 +1,4 @@
1
+ import { setFeature } from "@aws-sdk/core";
1
2
  import { HttpRequest } from "@smithy/protocol-http";
2
3
  import { S3_EXPRESS_AUTH_SCHEME, S3_EXPRESS_BACKEND, S3_EXPRESS_BUCKET_TYPE, SESSION_TOKEN_HEADER } from "../constants";
3
4
  export const s3ExpressMiddleware = (options) => {
@@ -8,6 +9,7 @@ export const s3ExpressMiddleware = (options) => {
8
9
  const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND ||
9
10
  endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE;
10
11
  if (isS3ExpressBucket) {
12
+ setFeature(context, "S3_EXPRESS_BUCKET", "J");
11
13
  context.isS3ExpressBucket = true;
12
14
  }
13
15
  if (isS3ExpressAuth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.665.0",
3
+ "version": "3.666.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",
@@ -23,14 +23,14 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/core": "3.665.0",
26
+ "@aws-sdk/core": "3.666.0",
27
27
  "@aws-sdk/types": "3.664.0",
28
28
  "@aws-sdk/util-arn-parser": "3.568.0",
29
- "@smithy/core": "^2.4.7",
29
+ "@smithy/core": "^2.4.8",
30
30
  "@smithy/node-config-provider": "^3.1.8",
31
31
  "@smithy/protocol-http": "^4.1.4",
32
32
  "@smithy/signature-v4": "^4.2.0",
33
- "@smithy/smithy-client": "^3.3.6",
33
+ "@smithy/smithy-client": "^3.4.0",
34
34
  "@smithy/types": "^3.5.0",
35
35
  "@smithy/util-config-provider": "^3.0.0",
36
36
  "@smithy/util-middleware": "^3.0.7",