@aws-sdk/s3-presigned-post 3.1087.0 → 3.1089.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/README.md
CHANGED
|
@@ -28,7 +28,11 @@ You can optionally attach a policy to a presigned post. It specifies a list of c
|
|
|
28
28
|
For example:
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
|
-
const Conditions = [
|
|
31
|
+
const Conditions = [
|
|
32
|
+
{ acl: "bucket-owner-full-control" },
|
|
33
|
+
{ bucket: "johnsmith" },
|
|
34
|
+
["starts-with", "$key", "user/eric/"],
|
|
35
|
+
];
|
|
32
36
|
```
|
|
33
37
|
|
|
34
38
|
Visit [S3 POST documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html)
|
|
@@ -14,6 +14,6 @@ export interface PresignedPost {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const createPresignedPost: (
|
|
16
16
|
client: S3Client,
|
|
17
|
-
{ Bucket, Key, Conditions, Fields, Expires }: PresignedPostOptions
|
|
17
|
+
{ Bucket, Key, Conditions, Fields, Expires }: PresignedPostOptions,
|
|
18
18
|
) => Promise<PresignedPost>;
|
|
19
19
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
type EqualCondition = ["eq", string, string] | Record<string, string>;
|
|
2
2
|
type StartsWithCondition = ["starts-with", string, string];
|
|
3
3
|
type ContentLengthRangeCondition = ["content-length-range", number, number];
|
|
4
|
-
export type Conditions =
|
|
5
|
-
| EqualCondition
|
|
6
|
-
| StartsWithCondition
|
|
7
|
-
| ContentLengthRangeCondition;
|
|
4
|
+
export type Conditions = EqualCondition | StartsWithCondition | ContentLengthRangeCondition;
|
|
8
5
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/s3-presigned-post",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1089.0",
|
|
4
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/s3-presigned-post",
|
|
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-presigned-post"
|
|
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",
|
|
@@ -15,21 +40,12 @@
|
|
|
15
40
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
|
|
16
41
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
|
|
17
42
|
},
|
|
18
|
-
"main": "./dist-cjs/index.js",
|
|
19
|
-
"module": "./dist-es/index.js",
|
|
20
|
-
"types": "./dist-types/index.d.ts",
|
|
21
|
-
"sideEffects": false,
|
|
22
|
-
"author": {
|
|
23
|
-
"name": "AWS SDK for JavaScript Team",
|
|
24
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
25
|
-
},
|
|
26
|
-
"license": "Apache-2.0",
|
|
27
43
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-s3": "3.
|
|
29
|
-
"@aws-sdk/core": "^3.975.
|
|
30
|
-
"@aws-sdk/types": "^3.974.
|
|
31
|
-
"@smithy/core": "^3.29.
|
|
32
|
-
"@smithy/signature-v4": "^5.6.
|
|
44
|
+
"@aws-sdk/client-s3": "3.1089.0",
|
|
45
|
+
"@aws-sdk/core": "^3.975.3",
|
|
46
|
+
"@aws-sdk/types": "^3.974.2",
|
|
47
|
+
"@smithy/core": "^3.29.4",
|
|
48
|
+
"@smithy/signature-v4": "^5.6.5",
|
|
33
49
|
"@smithy/types": "^4.16.1",
|
|
34
50
|
"tslib": "^2.6.2"
|
|
35
51
|
},
|
|
@@ -44,21 +60,5 @@
|
|
|
44
60
|
},
|
|
45
61
|
"engines": {
|
|
46
62
|
"node": ">=20.0.0"
|
|
47
|
-
},
|
|
48
|
-
"typesVersions": {
|
|
49
|
-
"<4.5": {
|
|
50
|
-
"dist-types/*": [
|
|
51
|
-
"dist-types/ts3.4/*"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"dist-*/**"
|
|
57
|
-
],
|
|
58
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/s3-presigned-post",
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
62
|
-
"directory": "packages/s3-presigned-post"
|
|
63
63
|
}
|
|
64
64
|
}
|