@aws-sdk/middleware-sdk-s3-control 3.972.10 → 3.972.12

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
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var middlewareBucketEndpoint = require('@aws-sdk/middleware-bucket-endpoint');
4
- var protocolHttp = require('@smithy/protocol-http');
5
- var utilArnParser = require('@aws-sdk/util-arn-parser');
4
+ var protocols = require('@smithy/core/protocols');
5
+ var util = require('@aws-sdk/core/util');
6
6
  var utilEndpoints = require('@aws-sdk/util-endpoints');
7
7
 
8
8
  function resolveS3ControlConfig(input) {
@@ -20,7 +20,7 @@ const CONTEXT_SIGNING_REGION = "signing_region";
20
20
 
21
21
  const parseOutpostArnablesMiddleaware = (options) => (next, context) => async (args) => {
22
22
  const { input } = args;
23
- const parameter = input.Name && utilArnParser.validate(input.Name) ? "Name" : input.Bucket && utilArnParser.validate(input.Bucket) ? "Bucket" : undefined;
23
+ const parameter = input.Name && util.validate(input.Name) ? "Name" : input.Bucket && util.validate(input.Bucket) ? "Bucket" : undefined;
24
24
  if (!parameter)
25
25
  return next(args);
26
26
  const clientRegion = await options.region();
@@ -44,14 +44,14 @@ const parseOutpostArnablesMiddleaware = (options) => (next, context) => async (a
44
44
  clientPartition};
45
45
  let arn;
46
46
  if (parameter === "Name") {
47
- arn = utilArnParser.parse(input.Name);
47
+ arn = util.parse(input.Name);
48
48
  validateOutpostsArn(arn, validatorOptions);
49
49
  const { outpostId, accesspointName } = parseOutpostsAccessPointArnResource(arn.resource);
50
50
  input.Name = accesspointName;
51
51
  context[CONTEXT_OUTPOST_ID] = outpostId;
52
52
  }
53
53
  else {
54
- arn = utilArnParser.parse(input.Bucket);
54
+ arn = util.parse(input.Bucket);
55
55
  validateOutpostsArn(arn, validatorOptions);
56
56
  const { outpostId, bucketName } = parseOutpostBucketArnResource(arn.resource);
57
57
  input.Bucket = bucketName;
@@ -126,7 +126,7 @@ const ACCOUNT_ID_HEADER = "x-amz-account-id";
126
126
  const OUTPOST_ID_HEADER = "x-amz-outpost-id";
127
127
  const updateArnablesRequestMiddleware = (config) => (next, context) => async (args) => {
128
128
  const { request } = args;
129
- if (!protocolHttp.HttpRequest.isInstance(request)) {
129
+ if (!protocols.HttpRequest.isInstance(request)) {
130
130
  return next(args);
131
131
  }
132
132
  if (context[CONTEXT_ACCOUNT_ID]) {
@@ -178,7 +178,7 @@ const getHostPrefixDeduplicationPlugin = (config) => ({
178
178
 
179
179
  const redirectFromPostIdMiddleware = (config) => (next, context) => async (args) => {
180
180
  const { input, request } = args;
181
- if (!protocolHttp.HttpRequest.isInstance(request))
181
+ if (!protocols.HttpRequest.isInstance(request))
182
182
  return next(args);
183
183
  if (input.OutpostId) {
184
184
  const { isCustomEndpoint } = config;
@@ -1,5 +1,5 @@
1
+ import { parse as parseArn, validate as validateArn } from "@aws-sdk/core/util";
1
2
  import { getArnResources as getS3AccesspointArnResources, validateAccountId, validateOutpostService, validatePartition, } from "@aws-sdk/middleware-bucket-endpoint";
2
- import { parse as parseArn, validate as validateArn } from "@aws-sdk/util-arn-parser";
3
3
  import { partition } from "@aws-sdk/util-endpoints";
4
4
  import { CONTEXT_ARN_REGION, CONTEXT_OUTPOST_ID, CONTEXT_SIGNING_REGION, CONTEXT_SIGNING_SERVICE } from "../constants";
5
5
  export const parseOutpostArnablesMiddleaware = (options) => (next, context) => async (args) => {
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "@smithy/protocol-http";
1
+ import { HttpRequest } from "@smithy/core/protocols";
2
2
  import { CONTEXT_ACCOUNT_ID, CONTEXT_ARN_REGION, CONTEXT_OUTPOST_ID } from "../constants";
3
3
  import { getOutpostEndpoint } from "./getOutpostEndpoint";
4
4
  const ACCOUNT_ID_HEADER = "x-amz-account-id";
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "@smithy/protocol-http";
1
+ import { HttpRequest } from "@smithy/core/protocols";
2
2
  import { CONTEXT_SIGNING_SERVICE } from "./constants";
3
3
  import { getOutpostEndpoint } from "./process-arnables-plugin";
4
4
  export const redirectFromPostIdMiddleware = (config) => (next, context) => async (args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3-control",
3
- "version": "3.972.10",
3
+ "version": "3.972.12",
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-control",
@@ -25,17 +25,15 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/middleware-bucket-endpoint": "^3.972.10",
28
+ "@aws-sdk/core": "^3.974.9",
29
+ "@aws-sdk/middleware-bucket-endpoint": "^3.972.11",
29
30
  "@aws-sdk/types": "^3.973.8",
30
- "@aws-sdk/util-arn-parser": "^3.972.3",
31
- "@aws-sdk/util-endpoints": "^3.996.7",
32
- "@smithy/protocol-http": "^5.3.14",
31
+ "@aws-sdk/util-endpoints": "^3.996.9",
32
+ "@smithy/core": "^3.24.1",
33
33
  "@smithy/types": "^4.14.1",
34
- "@smithy/util-endpoints": "^3.4.1",
35
34
  "tslib": "^2.6.2"
36
35
  },
37
36
  "devDependencies": {
38
- "@smithy/middleware-stack": "^4.2.14",
39
37
  "@tsconfig/recommended": "1.0.1",
40
38
  "concurrently": "7.0.0",
41
39
  "downlevel-dts": "0.10.1",