@aws-sdk/signature-v4-crt 3.55.0 → 3.56.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 +8 -0
- package/dist-cjs/CrtSignerV4.js +3 -2
- package/dist-es/CrtSignerV4.js +4 -3
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/signature-v4-crt
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/signature-v4-crt
|
package/dist-cjs/CrtSignerV4.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CrtSignerV4 = void 0;
|
|
4
4
|
const querystring_parser_1 = require("@aws-sdk/querystring-parser");
|
|
5
5
|
const signature_v4_1 = require("@aws-sdk/signature-v4");
|
|
6
|
+
const util_middleware_1 = require("@aws-sdk/util-middleware");
|
|
6
7
|
const aws_crt_1 = require("aws-crt");
|
|
7
8
|
const constants_1 = require("./constants");
|
|
8
9
|
const headerUtil_1 = require("./headerUtil");
|
|
@@ -20,8 +21,8 @@ class CrtSignerV4 {
|
|
|
20
21
|
this.uriEscapePath = uriEscapePath;
|
|
21
22
|
this.signingAlgorithm = signingAlgorithm;
|
|
22
23
|
this.applyChecksum = applyChecksum;
|
|
23
|
-
this.regionProvider = (0,
|
|
24
|
-
this.credentialProvider = (0,
|
|
24
|
+
this.regionProvider = (0, util_middleware_1.normalizeProvider)(region);
|
|
25
|
+
this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials);
|
|
25
26
|
aws_crt_1.io.enable_logging(aws_crt_1.io.LogLevel.ERROR);
|
|
26
27
|
}
|
|
27
28
|
async options2crtConfigure({ signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}, viaHeader, payloadHash, expiresIn) {
|
package/dist-es/CrtSignerV4.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
2
|
import { parseQueryString } from "@aws-sdk/querystring-parser";
|
|
3
|
-
import { getCanonicalQuery, getPayloadHash, moveHeadersToQuery,
|
|
3
|
+
import { getCanonicalQuery, getPayloadHash, moveHeadersToQuery, prepareRequest, } from "@aws-sdk/signature-v4";
|
|
4
|
+
import { normalizeProvider } from "@aws-sdk/util-middleware";
|
|
4
5
|
import { auth as crtAuth, http as crtHttp, io as crtIO } from "aws-crt";
|
|
5
6
|
import { MAX_PRESIGNED_TTL, SHA256_HEADER } from "./constants";
|
|
6
7
|
import { deleteHeader } from "./headerUtil";
|
|
@@ -19,8 +20,8 @@ var CrtSignerV4 = (function () {
|
|
|
19
20
|
this.uriEscapePath = uriEscapePath;
|
|
20
21
|
this.signingAlgorithm = signingAlgorithm;
|
|
21
22
|
this.applyChecksum = applyChecksum;
|
|
22
|
-
this.regionProvider =
|
|
23
|
-
this.credentialProvider =
|
|
23
|
+
this.regionProvider = normalizeProvider(region);
|
|
24
|
+
this.credentialProvider = normalizeProvider(credentials);
|
|
24
25
|
crtIO.enable_logging(crtIO.LogLevel.ERROR);
|
|
25
26
|
}
|
|
26
27
|
CrtSignerV4.prototype.options2crtConfigure = function (_a, viaHeader, payloadHash, expiresIn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-crt",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.56.0",
|
|
4
4
|
"description": "A revision of AWS Signature V4 request signer based on AWS Common Runtime https://github.com/awslabs/aws-crt-nodejs",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-sdk/is-array-buffer": "3.55.0",
|
|
24
24
|
"@aws-sdk/querystring-parser": "3.55.0",
|
|
25
|
-
"@aws-sdk/signature-v4": "3.
|
|
25
|
+
"@aws-sdk/signature-v4": "3.56.0",
|
|
26
26
|
"@aws-sdk/util-hex-encoding": "3.55.0",
|
|
27
|
+
"@aws-sdk/util-middleware": "3.55.0",
|
|
27
28
|
"@aws-sdk/util-uri-escape": "3.55.0",
|
|
28
29
|
"aws-crt": "^1.11.3",
|
|
29
30
|
"tslib": "^2.3.1"
|