Skip to content

Commit d01bd03

Browse files
committed
chore(signature-v4-crt): get CRT from loader
1 parent 3cb515b commit d01bd03

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

packages/signature-v4-crt/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@
2222
},
2323
"license": "Apache-2.0",
2424
"dependencies": {
25+
"@aws-sdk/crt-loader": "*",
2526
"@aws-sdk/signature-v4-multi-region": "*",
2627
"@aws-sdk/types": "*",
27-
"@aws-sdk/util-user-agent-node": "*",
2828
"@smithy/querystring-parser": "^3.0.11",
2929
"@smithy/signature-v4": "^4.2.4",
3030
"@smithy/types": "^3.7.2",
3131
"@smithy/util-middleware": "^3.0.11",
32-
"aws-crt": "^1.18.3",
3332
"tslib": "^2.6.2"
3433
},
3534
"devDependencies": {

packages/signature-v4-crt/src/CrtSignerV4.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Sha256 } from "@aws-crypto/sha256-js";
2-
import { auth as crtAuth } from "aws-crt";
2+
import { auth as crtAuth } from "@aws-sdk/crt-loader";
33

44
import {
55
ALGORITHM_IDENTIFIER_V4A,

packages/signature-v4-crt/src/CrtSignerV4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { auth as crtAuth, http as crtHttp, io as crtIO } from "@aws-sdk/crt-loader";
12
import { AwsCredentialIdentity } from "@aws-sdk/types";
23
import { parseQueryString } from "@smithy/querystring-parser";
34
import {
@@ -18,7 +19,6 @@ import {
1819
RequestSigningArguments,
1920
} from "@smithy/types";
2021
import { normalizeProvider } from "@smithy/util-middleware";
21-
import { auth as crtAuth, http as crtHttp, io as crtIO } from "aws-crt";
2222

2323
import { MAX_PRESIGNED_TTL, SHA256_HEADER } from "./constants";
2424
import { deleteHeader } from "./headerUtil";
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { signatureV4CrtContainer } from "@aws-sdk/signature-v4-multi-region";
2-
import { crtAvailability } from "@aws-sdk/util-user-agent-node";
32

43
import { CrtSignerV4 } from "./CrtSignerV4";
54

65
signatureV4CrtContainer.CrtSignerV4 = CrtSignerV4;
7-
crtAvailability.isCrtAvailable = true;
86

97
export * from "./CrtSignerV4";

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23446,7 +23446,7 @@ __metadata:
2344623446
languageName: unknown
2344723447
linkType: soft
2344823448

23449-
"@aws-sdk/crt-loader@workspace:packages/crt-loader":
23449+
"@aws-sdk/crt-loader@npm:*, @aws-sdk/crt-loader@workspace:packages/crt-loader":
2345023450
version: 0.0.0-use.local
2345123451
resolution: "@aws-sdk/crt-loader@workspace:packages/crt-loader"
2345223452
dependencies:
@@ -24221,6 +24221,7 @@ __metadata:
2422124221
resolution: "@aws-sdk/signature-v4-crt@workspace:packages/signature-v4-crt"
2422224222
dependencies:
2422324223
"@aws-crypto/sha256-js": "npm:5.2.0"
24224+
"@aws-sdk/crt-loader": "npm:*"
2422424225
"@aws-sdk/signature-v4-multi-region": "npm:*"
2422524226
"@aws-sdk/types": "npm:*"
2422624227
"@aws-sdk/util-user-agent-node": "npm:*"
@@ -24230,7 +24231,6 @@ __metadata:
2423024231
"@smithy/types": "npm:^3.7.2"
2423124232
"@smithy/util-middleware": "npm:^3.0.11"
2423224233
"@tsconfig/recommended": "npm:1.0.1"
24233-
aws-crt: "npm:^1.18.3"
2423424234
concurrently: "npm:7.0.0"
2423524235
downlevel-dts: "npm:0.10.1"
2423624236
rimraf: "npm:3.0.2"

0 commit comments

Comments
 (0)