@aws-sdk/middleware-sdk-s3 3.170.0 → 3.178.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/CHANGELOG.md +19 -0
- package/dist-cjs/configuration.js +13 -0
- package/dist-cjs/index.js +1 -0
- package/dist-es/configuration.js +5 -0
- package/dist-es/index.js +1 -0
- package/dist-types/configuration.d.ts +24 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/check-content-length-header.d.ts +0 -3
- package/dist-types/ts3.4/configuration.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/throw-200-exceptions.d.ts +0 -3
- package/dist-types/ts3.4/validate-bucket-name.d.ts +0 -3
- package/dist-types/ts3.4/write-get-object-response-endpoint.d.ts +1 -4
- package/dist-types/write-get-object-response-endpoint.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **endpoint:** endpoints 2.0 existing package changes ([#3947](https://github.com/aws/aws-sdk-js-v3/issues/3947)) ([df99fc3](https://github.com/aws/aws-sdk-js-v3/commit/df99fc33a43982e1c59000721a535f6fe77a3c23))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-s3
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/middleware-sdk-s3
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveS3Config = void 0;
|
|
4
|
+
const resolveS3Config = (input) => {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
return ({
|
|
7
|
+
...input,
|
|
8
|
+
forcePathStyle: (_a = input.forcePathStyle) !== null && _a !== void 0 ? _a : false,
|
|
9
|
+
useAccelerateEndpoint: (_b = input.useAccelerateEndpoint) !== null && _b !== void 0 ? _b : false,
|
|
10
|
+
disableMultiregionAccessPoints: (_c = input.disableMultiregionAccessPoints) !== null && _c !== void 0 ? _c : false,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
exports.resolveS3Config = resolveS3Config;
|
package/dist-cjs/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./check-content-length-header"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./configuration"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./throw-200-exceptions"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./validate-bucket-name"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./write-get-object-response-endpoint"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
export var resolveS3Config = function (input) {
|
|
3
|
+
var _a, _b, _c;
|
|
4
|
+
return (__assign(__assign({}, input), { forcePathStyle: (_a = input.forcePathStyle) !== null && _a !== void 0 ? _a : false, useAccelerateEndpoint: (_b = input.useAccelerateEndpoint) !== null && _b !== void 0 ? _b : false, disableMultiregionAccessPoints: (_c = input.disableMultiregionAccessPoints) !== null && _c !== void 0 ? _c : false }));
|
|
5
|
+
};
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All endpoint parameters with built-in bindings of AWS::S3::*
|
|
3
|
+
*/
|
|
4
|
+
export interface S3InputConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to force path style URLs for S3 objects
|
|
7
|
+
* (e.g., https://s3.amazonaws.com/<bucketName>/<key> instead of https://<bucketName>.s3.amazonaws.com/<key>
|
|
8
|
+
*/
|
|
9
|
+
forcePathStyle?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to use the S3 Transfer Acceleration endpoint by default
|
|
12
|
+
*/
|
|
13
|
+
useAccelerateEndpoint?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether multi-region access points (MRAP) should be disabled.
|
|
16
|
+
*/
|
|
17
|
+
disableMultiregionAccessPoints?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface S3ResolvedConfig {
|
|
20
|
+
forcePathStyle: boolean;
|
|
21
|
+
useAccelerateEndpoint: boolean;
|
|
22
|
+
disableMultiregionAccessPoints: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const resolveS3Config: <T>(input: T & S3InputConfig) => T & S3ResolvedConfig;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -3,14 +3,11 @@ import {
|
|
|
3
3
|
FinalizeRequestMiddleware,
|
|
4
4
|
Pluggable,
|
|
5
5
|
} from "@aws-sdk/types";
|
|
6
|
-
|
|
7
6
|
export declare function checkContentLengthHeader(): FinalizeRequestMiddleware<
|
|
8
7
|
any,
|
|
9
8
|
any
|
|
10
9
|
>;
|
|
11
|
-
|
|
12
10
|
export declare const checkContentLengthHeaderMiddlewareOptions: FinalizeRequestHandlerOptions;
|
|
13
|
-
|
|
14
11
|
export declare const getCheckContentLengthHeaderPlugin: (
|
|
15
12
|
unused: any
|
|
16
13
|
) => Pluggable<any, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface S3InputConfig {
|
|
2
|
+
forcePathStyle?: boolean;
|
|
3
|
+
useAccelerateEndpoint?: boolean;
|
|
4
|
+
disableMultiregionAccessPoints?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface S3ResolvedConfig {
|
|
7
|
+
forcePathStyle: boolean;
|
|
8
|
+
useAccelerateEndpoint: boolean;
|
|
9
|
+
disableMultiregionAccessPoints: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const resolveS3Config: <T>(
|
|
12
|
+
input: T & S3InputConfig
|
|
13
|
+
) => T & S3ResolvedConfig;
|
|
@@ -9,13 +9,10 @@ declare type PreviouslyResolved = {
|
|
|
9
9
|
streamCollector: StreamCollector;
|
|
10
10
|
utf8Encoder: Encoder;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
12
|
export declare const throw200ExceptionsMiddleware: (
|
|
14
13
|
config: PreviouslyResolved
|
|
15
14
|
) => DeserializeMiddleware<any, any>;
|
|
16
|
-
|
|
17
15
|
export declare const throw200ExceptionsMiddlewareOptions: RelativeMiddlewareOptions;
|
|
18
|
-
|
|
19
16
|
export declare const getThrow200ExceptionsPlugin: (
|
|
20
17
|
config: PreviouslyResolved
|
|
21
18
|
) => Pluggable<any, any>;
|
|
@@ -3,14 +3,11 @@ import {
|
|
|
3
3
|
InitializeMiddleware,
|
|
4
4
|
Pluggable,
|
|
5
5
|
} from "@aws-sdk/types";
|
|
6
|
-
|
|
7
6
|
export declare function validateBucketNameMiddleware(): InitializeMiddleware<
|
|
8
7
|
any,
|
|
9
8
|
any
|
|
10
9
|
>;
|
|
11
|
-
|
|
12
10
|
export declare const validateBucketNameMiddlewareOptions: InitializeHandlerOptions;
|
|
13
|
-
|
|
14
11
|
export declare const getValidateBucketNamePlugin: (
|
|
15
12
|
unused: any
|
|
16
13
|
) => Pluggable<any, any>;
|
|
@@ -6,17 +6,14 @@ import {
|
|
|
6
6
|
} from "@aws-sdk/types";
|
|
7
7
|
declare type PreviouslyResolved = {
|
|
8
8
|
region: Provider<string>;
|
|
9
|
-
isCustomEndpoint
|
|
9
|
+
isCustomEndpoint?: boolean;
|
|
10
10
|
disableHostPrefix: boolean;
|
|
11
11
|
runtime: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
14
13
|
export declare const writeGetObjectResponseEndpointMiddleware: (
|
|
15
14
|
config: PreviouslyResolved
|
|
16
15
|
) => BuildMiddleware<any, any>;
|
|
17
|
-
|
|
18
16
|
export declare const writeGetObjectResponseEndpointMiddlewareOptions: RelativeMiddlewareOptions;
|
|
19
|
-
|
|
20
17
|
export declare const getWriteGetObjectResponseEndpointPlugin: (
|
|
21
18
|
config: PreviouslyResolved
|
|
22
19
|
) => Pluggable<any, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuildMiddleware, Pluggable, Provider, RelativeMiddlewareOptions } from "@aws-sdk/types";
|
|
2
2
|
declare type PreviouslyResolved = {
|
|
3
3
|
region: Provider<string>;
|
|
4
|
-
isCustomEndpoint
|
|
4
|
+
isCustomEndpoint?: boolean;
|
|
5
5
|
disableHostPrefix: boolean;
|
|
6
6
|
runtime: string;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.178.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/middleware-bucket-endpoint": "3.
|
|
24
|
-
"@aws-sdk/protocol-http": "3.
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.178.0",
|
|
24
|
+
"@aws-sdk/protocol-http": "3.178.0",
|
|
25
|
+
"@aws-sdk/types": "3.178.0",
|
|
26
26
|
"@aws-sdk/util-arn-parser": "3.170.0",
|
|
27
27
|
"tslib": "^2.3.1"
|
|
28
28
|
},
|