@aws-sdk/signature-v4-crt 3.721.0 → 3.726.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
@@ -62,7 +62,17 @@ function sdkHttpRequest2crtHttpRequest(sdkRequest) {
62
62
  return new import_crt_loader.http.HttpRequest(sdkRequest.method, sdkRequest.path + "?" + queryString, crtHttpHeaders);
63
63
  }
64
64
  __name(sdkHttpRequest2crtHttpRequest, "sdkHttpRequest2crtHttpRequest");
65
- var _CrtSignerV4 = class _CrtSignerV4 {
65
+ var CrtSignerV4 = class {
66
+ static {
67
+ __name(this, "CrtSignerV4");
68
+ }
69
+ service;
70
+ regionProvider;
71
+ credentialProvider;
72
+ sha256;
73
+ uriEscapePath;
74
+ applyChecksum;
75
+ signingAlgorithm;
66
76
  constructor({
67
77
  credentials,
68
78
  region,
@@ -91,7 +101,7 @@ var _CrtSignerV4 = class _CrtSignerV4 {
91
101
  const credentials = _credentials ?? await this.credentialProvider();
92
102
  const region = signingRegion ?? await this.regionProvider();
93
103
  const service = signingService ?? this.service;
94
- if ((signableHeaders == null ? void 0 : signableHeaders.has("x-amzn-trace-id")) || (signableHeaders == null ? void 0 : signableHeaders.has("user-agent"))) {
104
+ if (signableHeaders?.has("x-amzn-trace-id") || signableHeaders?.has("user-agent")) {
95
105
  throw new Error("internal check (x-amzn-trace-id, user-agent) is not supported to be included to sign with CRT.");
96
106
  }
97
107
  const headersUnsignable = getHeadersUnsignable(unsignableHeaders, signableHeaders);
@@ -230,8 +240,6 @@ var _CrtSignerV4 = class _CrtSignerV4 {
230
240
  );
231
241
  }
232
242
  };
233
- __name(_CrtSignerV4, "CrtSignerV4");
234
- var CrtSignerV4 = _CrtSignerV4;
235
243
  function sdk2crtCredentialsProvider(credentials) {
236
244
  return import_crt_loader.auth.AwsCredentialsProvider.newStatic(
237
245
  credentials.accessKeyId,
@@ -12,6 +12,13 @@ function sdkHttpRequest2crtHttpRequest(sdkRequest) {
12
12
  return new crtHttp.HttpRequest(sdkRequest.method, sdkRequest.path + "?" + queryString, crtHttpHeaders);
13
13
  }
14
14
  export class CrtSignerV4 {
15
+ service;
16
+ regionProvider;
17
+ credentialProvider;
18
+ sha256;
19
+ uriEscapePath;
20
+ applyChecksum;
21
+ signingAlgorithm;
15
22
  constructor({ credentials, region, service, sha256, applyChecksum = true, uriEscapePath = true, signingAlgorithm = crtAuth.AwsSigningAlgorithm.SigV4, }) {
16
23
  this.service = service;
17
24
  this.sha256 = sha256;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-crt",
3
- "version": "3.721.0",
3
+ "version": "3.726.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,26 +22,26 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/crt-loader": "3.721.0",
26
- "@aws-sdk/signature-v4-multi-region": "3.716.0",
27
- "@aws-sdk/types": "3.714.0",
28
- "@smithy/querystring-parser": "^3.0.11",
29
- "@smithy/signature-v4": "^4.2.4",
30
- "@smithy/types": "^3.7.2",
31
- "@smithy/util-middleware": "^3.0.11",
25
+ "@aws-sdk/crt-loader": "3.726.0",
26
+ "@aws-sdk/signature-v4-multi-region": "3.723.0",
27
+ "@aws-sdk/types": "3.723.0",
28
+ "@smithy/querystring-parser": "^4.0.0",
29
+ "@smithy/signature-v4": "^5.0.0",
30
+ "@smithy/types": "^4.0.0",
31
+ "@smithy/util-middleware": "^4.0.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@aws-crypto/sha256-js": "5.2.0",
36
- "@smithy/protocol-http": "^4.1.8",
36
+ "@smithy/protocol-http": "^5.0.0",
37
37
  "@tsconfig/recommended": "1.0.1",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
40
  "rimraf": "3.0.2",
41
- "typescript": "~4.9.5"
41
+ "typescript": "~5.2.2"
42
42
  },
43
43
  "engines": {
44
- "node": ">=16.0.0"
44
+ "node": ">=18.0.0"
45
45
  },
46
46
  "files": [
47
47
  "dist-*/**"