@aws-sdk/signature-v4-multi-region 3.823.0 → 3.824.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
|
@@ -43,6 +43,14 @@ var SignatureV4MultiRegion = class {
|
|
|
43
43
|
sigv4aSigner;
|
|
44
44
|
sigv4Signer;
|
|
45
45
|
signerOptions;
|
|
46
|
+
static sigv4aDependency() {
|
|
47
|
+
if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") {
|
|
48
|
+
return "crt";
|
|
49
|
+
} else if (typeof import_signature_v4.signatureV4aContainer.SignatureV4a === "function") {
|
|
50
|
+
return "js";
|
|
51
|
+
}
|
|
52
|
+
return "none";
|
|
53
|
+
}
|
|
46
54
|
constructor(options) {
|
|
47
55
|
this.sigv4Signer = new import_middleware_sdk_s3.SignatureV4S3Express(options);
|
|
48
56
|
this.signerOptions = options;
|
|
@@ -5,6 +5,15 @@ export class SignatureV4MultiRegion {
|
|
|
5
5
|
sigv4aSigner;
|
|
6
6
|
sigv4Signer;
|
|
7
7
|
signerOptions;
|
|
8
|
+
static sigv4aDependency() {
|
|
9
|
+
if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") {
|
|
10
|
+
return "crt";
|
|
11
|
+
}
|
|
12
|
+
else if (typeof signatureV4aContainer.SignatureV4a === "function") {
|
|
13
|
+
return "js";
|
|
14
|
+
}
|
|
15
|
+
return "none";
|
|
16
|
+
}
|
|
8
17
|
constructor(options) {
|
|
9
18
|
this.sigv4Signer = new SignatureV4S3Express(options);
|
|
10
19
|
this.signerOptions = options;
|
|
@@ -17,6 +17,7 @@ export declare class SignatureV4MultiRegion implements RequestPresigner, Request
|
|
|
17
17
|
private sigv4aSigner?;
|
|
18
18
|
private readonly sigv4Signer;
|
|
19
19
|
private readonly signerOptions;
|
|
20
|
+
static sigv4aDependency(): "none" | "js" | "crt";
|
|
20
21
|
constructor(options: SignatureV4MultiRegionInit);
|
|
21
22
|
sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise<HttpRequest>;
|
|
22
23
|
/**
|
|
@@ -17,6 +17,7 @@ export declare class SignatureV4MultiRegion
|
|
|
17
17
|
private sigv4aSigner?;
|
|
18
18
|
private readonly sigv4Signer;
|
|
19
19
|
private readonly signerOptions;
|
|
20
|
+
static sigv4aDependency(): "none" | "js" | "crt";
|
|
20
21
|
constructor(options: SignatureV4MultiRegionInit);
|
|
21
22
|
sign(
|
|
22
23
|
requestToSign: HttpRequest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.824.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline signature-v4-multi-region",
|