@aws-sdk/s3-presigned-post 3.169.0 → 3.171.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 CHANGED
@@ -3,6 +3,22 @@
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.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/s3-presigned-post
9
+
10
+
11
+
12
+
13
+
14
+ # [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/s3-presigned-post
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/s3-presigned-post
@@ -1,6 +1,6 @@
1
- export declare const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
2
- export declare const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
3
- export declare const AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
4
- export declare const TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
5
- export declare const SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
6
- export declare const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
1
+ export declare const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
2
+ export declare const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
3
+ export declare const AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
4
+ export declare const TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
5
+ export declare const SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
6
+ export declare const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
@@ -1,17 +1,19 @@
1
- import { S3Client } from "@aws-sdk/client-s3";
2
- import { Conditions as PolicyEntry } from "./types";
3
- declare type Fields = Record<string, string>;
4
- export interface PresignedPostOptions {
5
- Bucket: string;
6
- Key: string;
7
- Conditions?: PolicyEntry[];
8
- Fields?: Fields;
9
- Expires?: number;
10
- }
11
- export interface PresignedPost {
12
- url: string;
13
- fields: Fields;
14
- }
15
-
16
- export declare const createPresignedPost: (client: S3Client, { Bucket, Key, Conditions, Fields, Expires }: PresignedPostOptions) => Promise<PresignedPost>;
17
- export {};
1
+ import { S3Client } from "@aws-sdk/client-s3";
2
+ import { Conditions as PolicyEntry } from "./types";
3
+ declare type Fields = Record<string, string>;
4
+ export interface PresignedPostOptions {
5
+ Bucket: string;
6
+ Key: string;
7
+ Conditions?: PolicyEntry[];
8
+ Fields?: Fields;
9
+ Expires?: number;
10
+ }
11
+ export interface PresignedPost {
12
+ url: string;
13
+ fields: Fields;
14
+ }
15
+ export declare const createPresignedPost: (
16
+ client: S3Client,
17
+ { Bucket, Key, Conditions, Fields, Expires }: PresignedPostOptions
18
+ ) => Promise<PresignedPost>;
19
+ export {};
@@ -1 +1 @@
1
- export * from "./createPresignedPost";
1
+ export * from "./createPresignedPost";
@@ -1,17 +1,12 @@
1
- declare type EqualCondition = [
2
- "eq",
3
- string,
4
- string
5
- ] | Record<string, string>;
6
- declare type StartsWithCondition = [
7
- "starts-with",
8
- string,
9
- string
10
- ];
11
- declare type ContentLengthRangeCondition = [
12
- "content-length-range",
13
- number,
14
- number
15
- ];
16
- export declare type Conditions = EqualCondition | StartsWithCondition | ContentLengthRangeCondition;
17
- export {};
1
+ declare type EqualCondition = ["eq", string, string] | Record<string, string>;
2
+ declare type StartsWithCondition = ["starts-with", string, string];
3
+ declare type ContentLengthRangeCondition = [
4
+ "content-length-range",
5
+ number,
6
+ number
7
+ ];
8
+ export declare type Conditions =
9
+ | EqualCondition
10
+ | StartsWithCondition
11
+ | ContentLengthRangeCondition;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/s3-presigned-post",
3
- "version": "3.169.0",
3
+ "version": "3.171.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,20 +20,20 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/signature-v4": "3.168.0",
24
- "@aws-sdk/types": "3.168.0",
25
- "@aws-sdk/util-format-url": "3.168.0",
26
- "@aws-sdk/util-hex-encoding": "3.168.0",
23
+ "@aws-sdk/signature-v4": "3.171.0",
24
+ "@aws-sdk/types": "3.171.0",
25
+ "@aws-sdk/util-format-url": "3.171.0",
26
+ "@aws-sdk/util-hex-encoding": "3.170.0",
27
27
  "tslib": "^2.3.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/client-s3": "3.169.0",
31
- "@aws-sdk/hash-node": "3.168.0",
32
- "@aws-sdk/protocol-http": "3.168.0",
30
+ "@aws-sdk/client-s3": "3.171.0",
31
+ "@aws-sdk/hash-node": "3.171.0",
32
+ "@aws-sdk/protocol-http": "3.171.0",
33
33
  "@tsconfig/recommended": "1.0.1",
34
34
  "@types/node": "^12.0.2",
35
35
  "concurrently": "7.0.0",
36
- "downlevel-dts": "0.7.0",
36
+ "downlevel-dts": "0.10.1",
37
37
  "rimraf": "3.0.2",
38
38
  "typedoc": "0.19.2",
39
39
  "typescript": "~4.6.2"