@aws-sdk/types
Advanced tools
@@ -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; |
+1
-1
| { | ||
| "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", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
101619
0.63%2603
0.66%