🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@aws-sdk/checksums

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/checksums - npm Package Compare versions

Comparing version
3.1000.17
to
3.1000.18
+1
-5
dist-types/ts3.4/index.d.ts

@@ -0,7 +1,3 @@

export { Crc64Nvme, Crc64NvmeJs, crc64NvmeCrtContainer } from "@aws-sdk/checksums/crc";
export {
Crc64Nvme,
Crc64NvmeJs,
crc64NvmeCrtContainer,
} from "@aws-sdk/checksums/crc";
export {
ENV_REQUEST_CHECKSUM_CALCULATION,

@@ -8,0 +4,0 @@ CONFIG_REQUEST_CHECKSUM_CALCULATION,

+1
-4
export { Crc32cJs, Crc32cJs as Crc32c } from "./crc32c/Crc32cJs";
export declare const Crc32cNode: symbol;
export {
Crc64NvmeJs,
Crc64NvmeJs as Crc64Nvme,
} from "./crc64-nvme/Crc64NvmeJs";
export { Crc64NvmeJs, Crc64NvmeJs as Crc64Nvme } from "./crc64-nvme/Crc64NvmeJs";
export { crc64NvmeCrtContainer } from "./crc64-nvme/crc64-nvme-crt-container";
export { Crc32, Crc32Js, Crc32Node } from "@smithy/core/checksum";

@@ -11,6 +11,3 @@ import {

} from "@smithy/types";
import {
RequestChecksumCalculation,
ResponseChecksumValidation,
} from "./constants";
import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
import { FlexibleChecksumsInputConfig } from "./resolveFlexibleChecksumsConfig";

@@ -17,0 +14,0 @@ export interface PreviouslyResolved {

@@ -9,3 +9,3 @@ import { RelativeMiddlewareOptions, SerializeMiddleware } from "@smithy/types";

config: PreviouslyResolved,
middlewareConfig: FlexibleChecksumsInputMiddlewareConfig
middlewareConfig: FlexibleChecksumsInputMiddlewareConfig,
) => SerializeMiddleware<any, any>;

@@ -13,3 +13,3 @@ import { BuildHandlerOptions, BuildMiddleware } from "@smithy/types";

config: PreviouslyResolved,
middlewareConfig: FlexibleChecksumsRequestMiddlewareConfig
middlewareConfig: FlexibleChecksumsRequestMiddlewareConfig,
) => BuildMiddleware<any, any>;

@@ -1,5 +0,2 @@

import {
DeserializeMiddleware,
RelativeMiddlewareOptions,
} from "@smithy/types";
import { DeserializeMiddleware, RelativeMiddlewareOptions } from "@smithy/types";
import { PreviouslyResolved } from "./configuration";

@@ -13,3 +10,3 @@ export interface FlexibleChecksumsResponseMiddlewareConfig {

config: PreviouslyResolved,
middlewareConfig: FlexibleChecksumsResponseMiddlewareConfig
middlewareConfig: FlexibleChecksumsResponseMiddlewareConfig,
) => DeserializeMiddleware<any, any>;

@@ -8,3 +8,3 @@ import { ChecksumConstructor, Encoder, HashConstructor } from "@smithy/types";

body: unknown,
{ checksumAlgorithmFn, base64Encoder }: GetChecksumDigestOptions
{ checksumAlgorithmFn, base64Encoder }: GetChecksumDigestOptions,
) => Promise<string>;

@@ -14,3 +14,3 @@ import { ChecksumAlgorithm } from "./constants";

requestChecksumCalculation,
}: GetChecksumAlgorithmForRequestOptions
}: GetChecksumAlgorithmForRequestOptions,
) => ChecksumAlgorithm | string | undefined;
import { ChecksumAlgorithm } from "./constants";
export declare const getChecksumAlgorithmListForResponse: (
responseAlgorithms?: string[]
responseAlgorithms?: string[],
) => ChecksumAlgorithm[];
import { ChecksumAlgorithm } from "./constants";
export declare const getChecksumLocationName: (
algorithm: ChecksumAlgorithm | string
) => string;
export declare const getChecksumLocationName: (algorithm: ChecksumAlgorithm | string) => string;

@@ -7,3 +7,4 @@ import { Pluggable } from "@smithy/types";

export interface FlexibleChecksumsMiddlewareConfig
extends FlexibleChecksumsRequestMiddlewareConfig,
extends
FlexibleChecksumsRequestMiddlewareConfig,
FlexibleChecksumsInputMiddlewareConfig,

@@ -13,3 +14,3 @@ FlexibleChecksumsResponseMiddlewareConfig {}

config: PreviouslyResolved,
middlewareConfig: FlexibleChecksumsMiddlewareConfig
middlewareConfig: FlexibleChecksumsMiddlewareConfig,
) => Pluggable<any, any>;
import { HeaderBag } from "@smithy/types";
export declare const hasHeaderWithPrefix: (
headerPrefix: string,
headers: HeaderBag
) => boolean;
export declare const hasHeaderWithPrefix: (headerPrefix: string, headers: HeaderBag) => boolean;
import { LoadedConfigSelectors } from "@smithy/core/config";
import { RequestChecksumCalculation } from "./constants";
export declare const ENV_REQUEST_CHECKSUM_CALCULATION =
"AWS_REQUEST_CHECKSUM_CALCULATION";
export declare const CONFIG_REQUEST_CHECKSUM_CALCULATION =
"request_checksum_calculation";
export declare const ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION";
export declare const CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation";
export declare const NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: LoadedConfigSelectors<RequestChecksumCalculation>;
import { LoadedConfigSelectors } from "@smithy/core/config";
import { ResponseChecksumValidation } from "./constants";
export declare const ENV_RESPONSE_CHECKSUM_VALIDATION =
"AWS_RESPONSE_CHECKSUM_VALIDATION";
export declare const CONFIG_RESPONSE_CHECKSUM_VALIDATION =
"response_checksum_validation";
export declare const ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION";
export declare const CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation";
export declare const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: LoadedConfigSelectors<ResponseChecksumValidation>;
import { ChecksumConstructor, Provider } from "@smithy/types";
import {
RequestChecksumCalculation,
ResponseChecksumValidation,
} from "./constants";
import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants";
export interface FlexibleChecksumsInputConfig {
requestChecksumCalculation?:
| RequestChecksumCalculation
| Provider<RequestChecksumCalculation>;
responseChecksumValidation?:
| ResponseChecksumValidation
| Provider<ResponseChecksumValidation>;
requestChecksumCalculation?: RequestChecksumCalculation | Provider<RequestChecksumCalculation>;
responseChecksumValidation?: ResponseChecksumValidation | Provider<ResponseChecksumValidation>;
requestStreamBufferSize?: number | false;

@@ -31,3 +24,3 @@ checksumAlgorithms?: {

export declare const resolveFlexibleChecksumsConfig: <T>(
input: T & FlexibleChecksumsInputConfig
input: T & FlexibleChecksumsInputConfig,
) => T & FlexibleChecksumsResolvedConfig;

@@ -6,3 +6,3 @@ import { ChecksumConstructor, HashConstructor } from "@smithy/types";

checksumAlgorithm: ChecksumAlgorithm | string,
config: PreviouslyResolved
config: PreviouslyResolved,
) => ChecksumConstructor | HashConstructor;
import { ChecksumConstructor, HashConstructor } from "@smithy/types";
export declare const stringHasher: (
checksumAlgorithmFn: ChecksumConstructor | HashConstructor,
body: any
body: any,
) => Promise<Uint8Array>;

@@ -9,3 +9,3 @@ export declare enum SelectorType {

union: U,
type: SelectorType
type: SelectorType,
) => U[K] | undefined;

@@ -11,3 +11,3 @@ import { HttpResponse } from "@smithy/core/protocols";

response: HttpResponse,
{ config, responseAlgorithms, logger }: ValidateChecksumFromResponseOptions
{ config, responseAlgorithms, logger }: ValidateChecksumFromResponseOptions,
) => Promise<void>;
export { Sha1Js, Sha1Js as Sha1 } from "./sha1/Sha1Js";
export declare const Sha1Node: symbol;
export {
Sha256,
Sha256Js,
Sha256Node,
Sha256WebCrypto,
} from "@smithy/core/checksum";
export { Sha256, Sha256Js, Sha256Node, Sha256WebCrypto } from "@smithy/core/checksum";
{
"name": "@aws-sdk/checksums",
"version": "3.1000.17",
"version": "3.1000.18",
"description": "Checksum algorithms and flexible checksums middleware for the AWS SDK",
"scripts": {
"benchmark": "node ./scripts/checksum-perf.mjs",
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
"build:cjs": "node ../../scripts/compilation/inline",
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "premove dist-cjs dist-es dist-types",
"extract:docs": "api-extractor run --local",
"lint": "node ../../scripts/validation/submodules-linter.js",
"prebuild": "yarn lint",
"test": "yarn g:vitest run",
"test:watch": "yarn g:vitest watch",
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/checksums",
"license": "Apache-2.0",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/sdk-for-javascript/"
},
"repository": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-js-v3.git",
"directory": "packages-internal/checksums"
},
"files": [
"./crc.d.ts",
"./crc.js",
"./flexible-checksums.d.ts",
"./flexible-checksums.js",
"./md5.d.ts",
"./md5.js",
"./sha.d.ts",
"./sha.js",
"dist-*/**"
],
"sideEffects": false,
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
"browser": {
"./dist-es/submodules/crc/index.js": "./dist-es/submodules/crc/index.browser.js",
"./dist-es/submodules/sha/index.js": "./dist-es/submodules/sha/index.browser.js"
},
"types": "./dist-types/index.d.ts",
"typesVersions": {
"<4.5": {
"dist-types/*": [
"dist-types/ts3.4/*"
],
"*": [
"dist-types/ts3.4/submodules/*/index.d.ts"
]
}
},
"react-native": {
"./dist-es/submodules/crc/index.js": "./dist-es/submodules/crc/index.browser.js",
"./dist-es/submodules/sha/index.js": "./dist-es/submodules/sha/index.browser.js"
},
"exports": {

@@ -74,12 +96,25 @@ ".": {

},
"sideEffects": false,
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/sdk-for-javascript/"
"scripts": {
"benchmark": "node ./scripts/checksum-perf.mjs",
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
"build:cjs": "node ../../scripts/compilation/inline",
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "premove dist-cjs dist-es dist-types",
"extract:docs": "api-extractor run --local",
"lint": "node ../../scripts/validation/submodules-linter.js",
"prebuild": "yarn lint",
"test": "yarn g:vitest run",
"test:watch": "yarn g:vitest watch",
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/core": "^3.975.2",
"@aws-sdk/types": "^3.974.1",
"@smithy/core": "^3.29.3",
"@aws-sdk/core": "^3.975.3",
"@aws-sdk/types": "^3.974.2",
"@smithy/core": "^3.29.4",
"@smithy/types": "^4.16.1",

@@ -97,38 +132,3 @@ "tslib": "^2.6.2"

"node": ">=20.0.0"
},
"typesVersions": {
"<4.5": {
"dist-types/*": [
"dist-types/ts3.4/*"
],
"*": [
"dist-types/ts3.4/submodules/*/index.d.ts"
]
}
},
"files": [
"./crc.d.ts",
"./crc.js",
"./flexible-checksums.d.ts",
"./flexible-checksums.js",
"./md5.d.ts",
"./md5.js",
"./sha.d.ts",
"./sha.js",
"dist-*/**"
],
"browser": {
"./dist-es/submodules/crc/index.js": "./dist-es/submodules/crc/index.browser.js",
"./dist-es/submodules/sha/index.js": "./dist-es/submodules/sha/index.browser.js"
},
"react-native": {
"./dist-es/submodules/crc/index.js": "./dist-es/submodules/crc/index.browser.js",
"./dist-es/submodules/sha/index.js": "./dist-es/submodules/sha/index.browser.js"
},
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/checksums",
"repository": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-js-v3.git",
"directory": "packages-internal/checksums"
}
}