@aws-sdk/s3-request-presigner 3.50.0 → 3.53.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,30 @@
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/s3-request-presigner
9
+
10
+
11
+
12
+
13
+
14
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/s3-request-presigner
17
+
18
+
19
+
20
+
21
+
22
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/s3-request-presigner
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
31
 
8
32
  **Note:** Version bump only for package @aws-sdk/s3-request-presigner
@@ -0,0 +1,9 @@
1
+ export declare const UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
2
+ export declare const SHA256_HEADER = "X-Amz-Content-Sha256";
3
+ export declare const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
4
+ export declare const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
5
+ export declare const AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
6
+ export declare const SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
7
+ export declare const EXPIRES_QUERY_PARAM = "X-Amz-Expires";
8
+ export declare const HOST_HEADER = "host";
9
+ export declare const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
@@ -0,0 +1,3 @@
1
+ import { Client, Command } from "@aws-sdk/smithy-client";
2
+ import { MetadataBearer, RequestPresigningArguments } from "@aws-sdk/types";
3
+ export declare const getSignedUrl: <InputTypesUnion extends object, InputType extends InputTypesUnion, OutputType extends MetadataBearer = MetadataBearer>(client: Client<any, InputTypesUnion, MetadataBearer, any>, command: Command<InputType, OutputType, any, InputTypesUnion, MetadataBearer>, options?: RequestPresigningArguments) => Promise<string>;
@@ -0,0 +1,2 @@
1
+ export * from "./getSignedUrl";
2
+ export * from "./presigner";
@@ -0,0 +1,13 @@
1
+ import { S3SignerV4Init } from "@aws-sdk/middleware-sdk-s3";
2
+ import { RequestPresigner, RequestPresigningArguments } from "@aws-sdk/types";
3
+ import { HttpRequest as IHttpRequest } from "@aws-sdk/types";
4
+ declare type PartialBy<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> & Partial<Pick<T, K>>;
5
+ export declare type S3RequestPresignerOptions = PartialBy<S3SignerV4Init, "service" | "uriEscapePath"> & {
6
+ signingName?: string;
7
+ };
8
+ export declare class S3RequestPresigner implements RequestPresigner {
9
+ private readonly signer;
10
+ constructor(options: S3RequestPresignerOptions);
11
+ presign(requestToSign: IHttpRequest, { unsignableHeaders, unhoistableHeaders, ...options }?: RequestPresigningArguments): Promise<IHttpRequest>;
12
+ }
13
+ export {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/s3-request-presigner",
3
- "version": "3.50.0",
3
+ "version": "3.53.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",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
8
  "build:types": "tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
- "clean": "rimraf ./dist-*",
10
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
11
  "test": "jest"
12
12
  },
13
13
  "main": "./dist-cjs/index.js",
@@ -19,18 +19,18 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/middleware-sdk-s3": "3.50.0",
23
- "@aws-sdk/protocol-http": "3.50.0",
24
- "@aws-sdk/signature-v4": "3.50.0",
25
- "@aws-sdk/smithy-client": "3.50.0",
26
- "@aws-sdk/types": "3.50.0",
27
- "@aws-sdk/util-create-request": "3.50.0",
28
- "@aws-sdk/util-format-url": "3.50.0",
22
+ "@aws-sdk/middleware-sdk-s3": "3.53.0",
23
+ "@aws-sdk/protocol-http": "3.53.0",
24
+ "@aws-sdk/signature-v4": "3.53.0",
25
+ "@aws-sdk/smithy-client": "3.53.0",
26
+ "@aws-sdk/types": "3.53.0",
27
+ "@aws-sdk/util-create-request": "3.53.0",
28
+ "@aws-sdk/util-format-url": "3.53.0",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@aws-sdk/client-s3": "3.50.0",
33
- "@aws-sdk/hash-node": "3.50.0",
32
+ "@aws-sdk/client-s3": "3.53.0",
33
+ "@aws-sdk/hash-node": "3.53.0",
34
34
  "@tsconfig/recommended": "1.0.1",
35
35
  "@types/node": "^12.0.2",
36
36
  "concurrently": "7.0.0",