@aws-sdk/types
Advanced tools
Comparing version 3.226.0 to 3.254.0
@@ -0,1 +1,2 @@ | ||
import { SourceData } from "./crypto"; | ||
/** | ||
@@ -51,1 +52,9 @@ * An object that provides a checksum of data provided in chunks to `update`. | ||
} | ||
/** | ||
* A constructor for a Checksum that may be used to calculate an HMAC. Implementing | ||
* classes should not directly hold the provided key in memory beyond the | ||
* lexical scope of the constructor. | ||
*/ | ||
export interface ChecksumConstructor { | ||
new (secret?: SourceData): Checksum; | ||
} |
@@ -29,2 +29,4 @@ export declare type SourceData = string | ArrayBuffer | ArrayBufferView; | ||
* lexical scope of the constructor. | ||
* | ||
* @deprecated use {@link ChecksumConstructor} | ||
*/ | ||
@@ -31,0 +33,0 @@ export interface HashConstructor { |
@@ -0,1 +1,2 @@ | ||
import { ChecksumConstructor } from "./checksum"; | ||
import { HashConstructor, StreamHasher } from "./crypto"; | ||
@@ -6,3 +7,3 @@ import { BodyLengthCalculator, Encoder } from "./util"; | ||
bodyLengthChecker: BodyLengthCalculator; | ||
checksumAlgorithmFn?: HashConstructor; | ||
checksumAlgorithmFn?: ChecksumConstructor | HashConstructor; | ||
checksumLocationName?: string; | ||
@@ -9,0 +10,0 @@ streamHasher?: StreamHasher; |
@@ -0,1 +1,2 @@ | ||
import { SourceData } from "./crypto"; | ||
export interface Checksum { | ||
@@ -9,1 +10,4 @@ digestLength?: number; | ||
} | ||
export interface ChecksumConstructor { | ||
new (secret?: SourceData): Checksum; | ||
} |
@@ -0,1 +1,2 @@ | ||
import { ChecksumConstructor } from "./checksum"; | ||
import { HashConstructor, StreamHasher } from "./crypto"; | ||
@@ -6,3 +7,3 @@ import { BodyLengthCalculator, Encoder } from "./util"; | ||
bodyLengthChecker: BodyLengthCalculator; | ||
checksumAlgorithmFn?: HashConstructor; | ||
checksumAlgorithmFn?: ChecksumConstructor | HashConstructor; | ||
checksumLocationName?: string; | ||
@@ -9,0 +10,0 @@ streamHasher?: StreamHasher; |
{ | ||
"name": "@aws-sdk/types", | ||
"version": "3.226.0", | ||
"version": "3.254.0", | ||
"main": "./dist-cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist-es/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101619
2603