@aws-sdk/signature-v4-crt 3.1045.0 → 3.1046.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/dist-cjs/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  var signatureV4MultiRegion = require('@aws-sdk/signature-v4-multi-region');
4
4
  var crtLoader = require('@aws-sdk/crt-loader');
5
- var querystringParser = require('@smithy/querystring-parser');
5
+ var client = require('@smithy/core/client');
6
+ var protocols = require('@smithy/core/protocols');
6
7
  var signatureV4 = require('@smithy/signature-v4');
7
- var utilMiddleware = require('@smithy/util-middleware');
8
8
 
9
9
  const SHA256_HEADER = "x-amz-content-sha256";
10
10
  const MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
@@ -39,8 +39,8 @@ class CrtSignerV4 {
39
39
  this.uriEscapePath = uriEscapePath;
40
40
  this.signingAlgorithm = signingAlgorithm;
41
41
  this.applyChecksum = applyChecksum;
42
- this.regionProvider = utilMiddleware.normalizeProvider(region);
43
- this.credentialProvider = utilMiddleware.normalizeProvider(credentials);
42
+ this.regionProvider = client.normalizeProvider(region);
43
+ this.credentialProvider = client.normalizeProvider(credentials);
44
44
  crtLoader.io.enable_logging(crtLoader.io.LogLevel.ERROR);
45
45
  }
46
46
  async options2crtConfigure({ signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}, viaHeader, payloadHash, expiresIn, _credentials) {
@@ -99,7 +99,7 @@ class CrtSignerV4 {
99
99
  return queryParam;
100
100
  }
101
101
  const queryString = crtPath.slice(start + 1, end);
102
- return querystringParser.parseQueryString(queryString);
102
+ return protocols.parseQueryString(queryString);
103
103
  }
104
104
  async signRequest(requestToSign, crtConfig) {
105
105
  const request = sdkHttpRequest2crtHttpRequest(requestToSign);
@@ -1,7 +1,7 @@
1
1
  import { auth as crtAuth, http as crtHttp, io as crtIO } from "@aws-sdk/crt-loader";
2
- import { parseQueryString } from "@smithy/querystring-parser";
2
+ import { normalizeProvider } from "@smithy/core/client";
3
+ import { parseQueryString } from "@smithy/core/protocols";
3
4
  import { getCanonicalQuery, getPayloadHash, moveHeadersToQuery, prepareRequest } from "@smithy/signature-v4";
4
- import { normalizeProvider } from "@smithy/util-middleware";
5
5
  import { MAX_PRESIGNED_TTL, SHA256_HEADER } from "./constants";
6
6
  import { deleteHeader } from "./headerUtil";
7
7
  function sdkHttpRequest2crtHttpRequest(sdkRequest) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-crt",
3
- "version": "3.1045.0",
3
+ "version": "3.1046.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",
@@ -23,18 +23,16 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/crt-loader": "^3.972.38",
27
- "@aws-sdk/signature-v4-multi-region": "^3.996.25",
26
+ "@aws-sdk/crt-loader": "^3.972.39",
27
+ "@aws-sdk/signature-v4-multi-region": "^3.996.26",
28
28
  "@aws-sdk/types": "^3.973.8",
29
- "@smithy/querystring-parser": "^4.2.14",
30
- "@smithy/signature-v4": "^5.3.14",
29
+ "@smithy/core": "^3.24.1",
30
+ "@smithy/signature-v4": "^5.4.1",
31
31
  "@smithy/types": "^4.14.1",
32
- "@smithy/util-middleware": "^4.2.14",
33
32
  "tslib": "^2.6.2"
34
33
  },
35
34
  "devDependencies": {
36
35
  "@aws-crypto/sha256-js": "5.2.0",
37
- "@smithy/protocol-http": "^5.3.14",
38
36
  "@tsconfig/recommended": "1.0.1",
39
37
  "concurrently": "7.0.0",
40
38
  "downlevel-dts": "0.10.1",