@aws-sdk/middleware-sdk-s3 3.972.26 → 3.972.28

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
@@ -8,8 +8,8 @@ var protocols = require('@aws-sdk/core/protocols');
8
8
  var schema = require('@smithy/core/schema');
9
9
  var signatureV4 = require('@smithy/signature-v4');
10
10
  var utilConfigProvider = require('@smithy/util-config-provider');
11
- var core = require('@aws-sdk/core');
12
- var core$1 = require('@smithy/core');
11
+ var client = require('@aws-sdk/core/client');
12
+ var core = require('@smithy/core');
13
13
  var utilMiddleware = require('@smithy/util-middleware');
14
14
 
15
15
  const CONTENT_LENGTH_HEADER = "content-length";
@@ -323,7 +323,7 @@ const s3ExpressMiddleware = (options) => {
323
323
  const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND ||
324
324
  endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE;
325
325
  if (isS3ExpressBucket) {
326
- core.setFeature(context, "S3_EXPRESS_BUCKET", "J");
326
+ client.setFeature(context, "S3_EXPRESS_BUCKET", "J");
327
327
  context.isS3ExpressBucket = true;
328
328
  }
329
329
  if (isS3ExpressAuth) {
@@ -366,7 +366,7 @@ const defaultErrorHandler = (signingProperties) => (error) => {
366
366
  throw error;
367
367
  };
368
368
  const defaultSuccessHandler = (httpResponse, signingProperties) => { };
369
- const s3ExpressHttpSigningMiddlewareOptions = core$1.httpSigningMiddlewareOptions;
369
+ const s3ExpressHttpSigningMiddlewareOptions = core.httpSigningMiddlewareOptions;
370
370
  const s3ExpressHttpSigningMiddleware = (config) => (next, context) => async (args) => {
371
371
  if (!protocolHttp.HttpRequest.isInstance(args.request)) {
372
372
  return next(args);
@@ -393,7 +393,7 @@ const s3ExpressHttpSigningMiddleware = (config) => (next, context) => async (arg
393
393
  };
394
394
  const getS3ExpressHttpSigningPlugin = (config) => ({
395
395
  applyToStack: (clientStack) => {
396
- clientStack.addRelativeTo(s3ExpressHttpSigningMiddleware(config), core$1.httpSigningMiddlewareOptions);
396
+ clientStack.addRelativeTo(s3ExpressHttpSigningMiddleware(config), core.httpSigningMiddlewareOptions);
397
397
  },
398
398
  });
399
399
 
@@ -1,4 +1,4 @@
1
- import { setFeature } from "@aws-sdk/core";
1
+ import { setFeature } from "@aws-sdk/core/client";
2
2
  import { HttpRequest } from "@smithy/protocol-http";
3
3
  import { S3_EXPRESS_AUTH_SCHEME, S3_EXPRESS_BACKEND, S3_EXPRESS_BUCKET_TYPE, SESSION_TOKEN_HEADER } from "../constants";
4
4
  export const s3ExpressMiddleware = (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.972.26",
3
+ "version": "3.972.28",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3",
@@ -28,18 +28,18 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "^3.973.25",
32
- "@aws-sdk/types": "^3.973.6",
31
+ "@aws-sdk/core": "^3.973.27",
32
+ "@aws-sdk/types": "^3.973.7",
33
33
  "@aws-sdk/util-arn-parser": "^3.972.3",
34
- "@smithy/core": "^3.23.12",
35
- "@smithy/node-config-provider": "^4.3.12",
36
- "@smithy/protocol-http": "^5.3.12",
37
- "@smithy/signature-v4": "^5.3.12",
38
- "@smithy/smithy-client": "^4.12.7",
39
- "@smithy/types": "^4.13.1",
34
+ "@smithy/core": "^3.23.14",
35
+ "@smithy/node-config-provider": "^4.3.13",
36
+ "@smithy/protocol-http": "^5.3.13",
37
+ "@smithy/signature-v4": "^5.3.13",
38
+ "@smithy/smithy-client": "^4.12.9",
39
+ "@smithy/types": "^4.14.0",
40
40
  "@smithy/util-config-provider": "^4.2.2",
41
- "@smithy/util-middleware": "^4.2.12",
42
- "@smithy/util-stream": "^4.5.20",
41
+ "@smithy/util-middleware": "^4.2.13",
42
+ "@smithy/util-stream": "^4.5.22",
43
43
  "@smithy/util-utf8": "^4.2.2",
44
44
  "tslib": "^2.6.2"
45
45
  },