@aws-sdk/s3-request-presigner 3.58.0 → 3.72.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,33 @@
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.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/s3-request-presigner
9
+
10
+
11
+
12
+
13
+
14
+ # [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/s3-request-presigner
17
+
18
+
19
+
20
+
21
+
22
+ # [3.66.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.65.0...v3.66.0) (2022-04-07)
23
+
24
+
25
+ ### Features
26
+
27
+ * **signature-v4-multi-region:** support multi-region sigv4a signer ([#3518](https://github.com/aws/aws-sdk-js-v3/issues/3518)) ([16aa220](https://github.com/aws/aws-sdk-js-v3/commit/16aa22042c92b33c702f775b87e830fb767e479c))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/s3-request-presigner
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.S3RequestPresigner = void 0;
4
- const middleware_sdk_s3_1 = require("@aws-sdk/middleware-sdk-s3");
4
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
5
5
  const constants_1 = require("./constants");
6
6
  class S3RequestPresigner {
7
7
  constructor(options) {
@@ -11,7 +11,7 @@ class S3RequestPresigner {
11
11
  applyChecksum: options.applyChecksum || false,
12
12
  ...options,
13
13
  };
14
- this.signer = new middleware_sdk_s3_1.S3SignatureV4(resolvedOptions);
14
+ this.signer = new signature_v4_multi_region_1.SignatureV4MultiRegion(resolvedOptions);
15
15
  }
16
16
  async presign(requestToSign, { unsignableHeaders = new Set(), unhoistableHeaders = new Set(), ...options } = {}) {
17
17
  unsignableHeaders.add("content-type");
@@ -1,10 +1,10 @@
1
1
  import { __assign, __awaiter, __generator, __rest } from "tslib";
2
- import { S3SignatureV4 } from "@aws-sdk/middleware-sdk-s3";
2
+ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
3
3
  import { SHA256_HEADER, UNSIGNED_PAYLOAD } from "./constants";
4
4
  var S3RequestPresigner = (function () {
5
5
  function S3RequestPresigner(options) {
6
6
  var resolvedOptions = __assign({ service: options.signingName || options.service || "s3", uriEscapePath: options.uriEscapePath || false, applyChecksum: options.applyChecksum || false }, options);
7
- this.signer = new S3SignatureV4(resolvedOptions);
7
+ this.signer = new SignatureV4MultiRegion(resolvedOptions);
8
8
  }
9
9
  S3RequestPresigner.prototype.presign = function (requestToSign, _a) {
10
10
  if (_a === void 0) { _a = {}; }
@@ -1,8 +1,8 @@
1
- import { S3SignerV4Init } from "@aws-sdk/middleware-sdk-s3";
1
+ import { SignatureV4MultiRegionInit } from "@aws-sdk/signature-v4-multi-region";
2
2
  import { RequestPresigner, RequestPresigningArguments } from "@aws-sdk/types";
3
3
  import { HttpRequest as IHttpRequest } from "@aws-sdk/types";
4
4
  declare type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
5
- export declare type S3RequestPresignerOptions = PartialBy<S3SignerV4Init, "service" | "uriEscapePath"> & {
5
+ export declare type S3RequestPresignerOptions = PartialBy<SignatureV4MultiRegionInit, "service" | "uriEscapePath"> & {
6
6
  signingName?: string;
7
7
  };
8
8
  export declare class S3RequestPresigner implements RequestPresigner {
@@ -1,8 +1,8 @@
1
- import { S3SignerV4Init } from "@aws-sdk/middleware-sdk-s3";
1
+ import { SignatureV4MultiRegionInit } from "@aws-sdk/signature-v4-multi-region";
2
2
  import { RequestPresigner, RequestPresigningArguments } from "@aws-sdk/types";
3
3
  import { HttpRequest as IHttpRequest } from "@aws-sdk/types";
4
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"> & {
5
+ export declare type S3RequestPresignerOptions = PartialBy<SignatureV4MultiRegionInit, "service" | "uriEscapePath"> & {
6
6
  signingName?: string;
7
7
  };
8
8
  export declare class S3RequestPresigner implements RequestPresigner {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/s3-request-presigner",
3
- "version": "3.58.0",
3
+ "version": "3.72.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",
@@ -19,17 +19,17 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/middleware-sdk-s3": "3.58.0",
22
+ "@aws-sdk/middleware-sdk-s3": "3.66.0",
23
23
  "@aws-sdk/protocol-http": "3.58.0",
24
- "@aws-sdk/signature-v4": "3.58.0",
25
- "@aws-sdk/smithy-client": "3.55.0",
24
+ "@aws-sdk/signature-v4-multi-region": "3.66.0",
25
+ "@aws-sdk/smithy-client": "3.72.0",
26
26
  "@aws-sdk/types": "3.55.0",
27
- "@aws-sdk/util-create-request": "3.58.0",
27
+ "@aws-sdk/util-create-request": "3.72.0",
28
28
  "@aws-sdk/util-format-url": "3.58.0",
29
29
  "tslib": "^2.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@aws-sdk/client-s3": "3.58.0",
32
+ "@aws-sdk/client-s3": "3.72.0",
33
33
  "@aws-sdk/hash-node": "3.55.0",
34
34
  "@tsconfig/recommended": "1.0.1",
35
35
  "@types/node": "^12.0.2",