@aws-sdk/s3-request-presigner 3.1086.0 → 3.1088.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.
|
@@ -3,9 +3,9 @@ import { MetadataBearer, RequestPresigningArguments } from "@smithy/types";
|
|
|
3
3
|
export declare const getSignedUrl: <
|
|
4
4
|
InputTypesUnion extends object,
|
|
5
5
|
InputType extends InputTypesUnion,
|
|
6
|
-
OutputType extends MetadataBearer = MetadataBearer
|
|
6
|
+
OutputType extends MetadataBearer = MetadataBearer,
|
|
7
7
|
>(
|
|
8
8
|
client: Client<any, InputTypesUnion, MetadataBearer, any>,
|
|
9
9
|
command: Command<InputType, OutputType, any, InputTypesUnion, MetadataBearer>,
|
|
10
|
-
options?: RequestPresigningArguments
|
|
10
|
+
options?: RequestPresigningArguments,
|
|
11
11
|
) => Promise<string>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { SignatureV4MultiRegionInit } from "@aws-sdk/signature-v4-multi-region";
|
|
2
|
-
import {
|
|
3
|
-
AwsCredentialIdentity,
|
|
4
|
-
RequestPresigner,
|
|
5
|
-
RequestPresigningArguments,
|
|
6
|
-
} from "@smithy/types";
|
|
2
|
+
import { AwsCredentialIdentity, RequestPresigner, RequestPresigningArguments } from "@smithy/types";
|
|
7
3
|
import { HttpRequest as IHttpRequest } from "@smithy/types";
|
|
8
|
-
type PartialBy<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> &
|
|
9
|
-
Partial<Pick<T, K>>;
|
|
4
|
+
type PartialBy<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> & Partial<Pick<T, K>>;
|
|
10
5
|
export type S3RequestPresignerOptions = PartialBy<
|
|
11
6
|
SignatureV4MultiRegionInit,
|
|
12
7
|
"service" | "uriEscapePath"
|
|
@@ -23,7 +18,7 @@ export declare class S3RequestPresigner implements RequestPresigner {
|
|
|
23
18
|
hoistableHeaders,
|
|
24
19
|
unhoistableHeaders,
|
|
25
20
|
...options
|
|
26
|
-
}?: RequestPresigningArguments
|
|
21
|
+
}?: RequestPresigningArguments,
|
|
27
22
|
): Promise<IHttpRequest>;
|
|
28
23
|
presignWithCredentials(
|
|
29
24
|
requestToSign: IHttpRequest,
|
|
@@ -33,7 +28,7 @@ export declare class S3RequestPresigner implements RequestPresigner {
|
|
|
33
28
|
hoistableHeaders,
|
|
34
29
|
unhoistableHeaders,
|
|
35
30
|
...options
|
|
36
|
-
}?: RequestPresigningArguments
|
|
31
|
+
}?: RequestPresigningArguments,
|
|
37
32
|
): Promise<IHttpRequest>;
|
|
38
33
|
private prepareRequest;
|
|
39
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/s3-request-presigner",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1088.0",
|
|
4
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/s3-request-presigner",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "AWS SDK for JavaScript Team",
|
|
8
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
13
|
+
"directory": "packages/s3-request-presigner"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist-*/**"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "./dist-cjs/index.js",
|
|
20
|
+
"module": "./dist-es/index.js",
|
|
21
|
+
"types": "./dist-types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
"<4.5": {
|
|
24
|
+
"dist-types/*": [
|
|
25
|
+
"dist-types/ts3.4/*"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
4
29
|
"scripts": {
|
|
5
30
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
31
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -13,25 +38,16 @@
|
|
|
13
38
|
"test": "yarn g:vitest run",
|
|
14
39
|
"test:watch": "yarn g:vitest watch"
|
|
15
40
|
},
|
|
16
|
-
"main": "./dist-cjs/index.js",
|
|
17
|
-
"module": "./dist-es/index.js",
|
|
18
|
-
"types": "./dist-types/index.d.ts",
|
|
19
|
-
"sideEffects": false,
|
|
20
|
-
"author": {
|
|
21
|
-
"name": "AWS SDK for JavaScript Team",
|
|
22
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
23
|
-
},
|
|
24
|
-
"license": "Apache-2.0",
|
|
25
41
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/core": "^3.975.
|
|
27
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
28
|
-
"@aws-sdk/types": "^3.974.
|
|
29
|
-
"@smithy/core": "^3.29.
|
|
30
|
-
"@smithy/types": "^4.16.
|
|
42
|
+
"@aws-sdk/core": "^3.975.3",
|
|
43
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.41",
|
|
44
|
+
"@aws-sdk/types": "^3.974.2",
|
|
45
|
+
"@smithy/core": "^3.29.4",
|
|
46
|
+
"@smithy/types": "^4.16.1",
|
|
31
47
|
"tslib": "^2.6.2"
|
|
32
48
|
},
|
|
33
49
|
"devDependencies": {
|
|
34
|
-
"@aws-sdk/client-s3": "3.
|
|
50
|
+
"@aws-sdk/client-s3": "3.1088.0",
|
|
35
51
|
"@tsconfig/recommended": "1.0.1",
|
|
36
52
|
"@types/node": "^20.14.8",
|
|
37
53
|
"concurrently": "7.0.0",
|
|
@@ -41,21 +57,5 @@
|
|
|
41
57
|
},
|
|
42
58
|
"engines": {
|
|
43
59
|
"node": ">=20.0.0"
|
|
44
|
-
},
|
|
45
|
-
"typesVersions": {
|
|
46
|
-
"<4.5": {
|
|
47
|
-
"dist-types/*": [
|
|
48
|
-
"dist-types/ts3.4/*"
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"files": [
|
|
53
|
-
"dist-*/**"
|
|
54
|
-
],
|
|
55
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/s3-request-presigner",
|
|
56
|
-
"repository": {
|
|
57
|
-
"type": "git",
|
|
58
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
59
|
-
"directory": "packages/s3-request-presigner"
|
|
60
60
|
}
|
|
61
61
|
}
|