@aws-sdk/middleware-flexible-checksums
Advanced tools
Comparing version 3.357.0 to 3.363.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.flexibleChecksumsMiddleware = void 0; | ||
const protocol_http_1 = require("@aws-sdk/protocol-http"); | ||
const protocol_http_1 = require("@smithy/protocol-http"); | ||
const getChecksumAlgorithmForRequest_1 = require("./getChecksumAlgorithmForRequest"); | ||
@@ -6,0 +6,0 @@ const getChecksumLocationName_1 = require("./getChecksumLocationName"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isStreaming = void 0; | ||
const is_array_buffer_1 = require("@aws-sdk/is-array-buffer"); | ||
const is_array_buffer_1 = require("@smithy/is-array-buffer"); | ||
const isStreaming = (body) => body !== undefined && typeof body !== "string" && !ArrayBuffer.isView(body) && !(0, is_array_buffer_1.isArrayBuffer)(body); | ||
exports.isStreaming = isStreaming; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stringHasher = void 0; | ||
const util_utf8_1 = require("@aws-sdk/util-utf8"); | ||
const util_utf8_1 = require("@smithy/util-utf8"); | ||
const stringHasher = (checksumAlgorithmFn, body) => { | ||
@@ -6,0 +6,0 @@ const hash = new checksumAlgorithmFn(); |
@@ -1,2 +0,2 @@ | ||
import { HttpRequest } from "@aws-sdk/protocol-http"; | ||
import { HttpRequest } from "@smithy/protocol-http"; | ||
import { getChecksumAlgorithmForRequest } from "./getChecksumAlgorithmForRequest"; | ||
@@ -3,0 +3,0 @@ import { getChecksumLocationName } from "./getChecksumLocationName"; |
@@ -1,2 +0,2 @@ | ||
import { isArrayBuffer } from "@aws-sdk/is-array-buffer"; | ||
import { isArrayBuffer } from "@smithy/is-array-buffer"; | ||
export const isStreaming = (body) => body !== undefined && typeof body !== "string" && !ArrayBuffer.isView(body) && !isArrayBuffer(body); |
@@ -1,2 +0,2 @@ | ||
import { toUint8Array } from "@aws-sdk/util-utf8"; | ||
import { toUint8Array } from "@smithy/util-utf8"; | ||
export const stringHasher = (checksumAlgorithmFn, body) => { | ||
@@ -3,0 +3,0 @@ const hash = new checksumAlgorithmFn(); |
@@ -1,2 +0,2 @@ | ||
import { BodyLengthCalculator, ChecksumConstructor, Encoder, GetAwsChunkedEncodingStream, HashConstructor, StreamHasher } from "@aws-sdk/types"; | ||
import { BodyLengthCalculator, ChecksumConstructor, Encoder, GetAwsChunkedEncodingStream, HashConstructor, StreamHasher } from "@smithy/types"; | ||
export interface PreviouslyResolved { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import { BuildMiddleware } from "@aws-sdk/types"; | ||
import { BuildMiddleware } from "@smithy/types"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
import { FlexibleChecksumsMiddlewareConfig } from "./getFlexibleChecksumsPlugin"; | ||
export declare const flexibleChecksumsMiddleware: (config: PreviouslyResolved, middlewareConfig: FlexibleChecksumsMiddlewareConfig) => BuildMiddleware<any, any>; |
@@ -1,2 +0,2 @@ | ||
import { ChecksumConstructor, Encoder, HashConstructor, StreamHasher } from "@aws-sdk/types"; | ||
import { ChecksumConstructor, Encoder, HashConstructor, StreamHasher } from "@smithy/types"; | ||
export interface GetChecksumDigestOptions { | ||
@@ -3,0 +3,0 @@ streamHasher: StreamHasher<any>; |
@@ -1,2 +0,2 @@ | ||
import { BuildHandlerOptions, Pluggable } from "@aws-sdk/types"; | ||
import { BuildHandlerOptions, Pluggable } from "@smithy/types"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions; |
@@ -1,2 +0,2 @@ | ||
import { HeaderBag } from "@aws-sdk/types"; | ||
import { HeaderBag } from "@smithy/types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns true if header is present in headers. |
@@ -1,2 +0,2 @@ | ||
import { ChecksumConstructor, HashConstructor } from "@aws-sdk/types"; | ||
import { ChecksumConstructor, HashConstructor } from "@smithy/types"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ import { ChecksumAlgorithm } from "./constants"; |
@@ -1,2 +0,2 @@ | ||
import { ChecksumConstructor, HashConstructor } from "@aws-sdk/types"; | ||
import { ChecksumConstructor, HashConstructor } from "@smithy/types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * A function that, given a hash constructor and a string, calculates the hash of the string. |
@@ -8,3 +8,3 @@ import { | ||
StreamHasher, | ||
} from "@aws-sdk/types"; | ||
} from "@smithy/types"; | ||
export interface PreviouslyResolved { | ||
@@ -11,0 +11,0 @@ base64Encoder: Encoder; |
@@ -1,2 +0,2 @@ | ||
import { BuildMiddleware } from "@aws-sdk/types"; | ||
import { BuildMiddleware } from "@smithy/types"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ import { FlexibleChecksumsMiddlewareConfig } from "./getFlexibleChecksumsPlugin"; |
@@ -6,3 +6,3 @@ import { | ||
StreamHasher, | ||
} from "@aws-sdk/types"; | ||
} from "@smithy/types"; | ||
export interface GetChecksumDigestOptions { | ||
@@ -9,0 +9,0 @@ streamHasher: StreamHasher<any>; |
@@ -1,2 +0,2 @@ | ||
import { BuildHandlerOptions, Pluggable } from "@aws-sdk/types"; | ||
import { BuildHandlerOptions, Pluggable } from "@smithy/types"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions; |
@@ -1,2 +0,2 @@ | ||
import { HeaderBag } from "@aws-sdk/types"; | ||
import { HeaderBag } from "@smithy/types"; | ||
export declare const hasHeader: (header: string, headers: HeaderBag) => boolean; |
@@ -1,2 +0,2 @@ | ||
import { ChecksumConstructor, HashConstructor } from "@aws-sdk/types"; | ||
import { ChecksumConstructor, HashConstructor } from "@smithy/types"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ import { ChecksumAlgorithm } from "./constants"; |
@@ -1,2 +0,2 @@ | ||
import { ChecksumConstructor, HashConstructor } from "@aws-sdk/types"; | ||
import { ChecksumConstructor, HashConstructor } from "@smithy/types"; | ||
export declare const stringHasher: ( | ||
@@ -3,0 +3,0 @@ checksumAlgorithmFn: ChecksumConstructor | HashConstructor, |
@@ -1,2 +0,2 @@ | ||
import { HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { HttpResponse } from "@smithy/protocol-http"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ export interface ValidateChecksumFromResponseOptions { |
@@ -1,2 +0,2 @@ | ||
import { HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { HttpResponse } from "@smithy/protocol-http"; | ||
import { PreviouslyResolved } from "./configuration"; | ||
@@ -3,0 +3,0 @@ export interface ValidateChecksumFromResponseOptions { |
{ | ||
"name": "@aws-sdk/middleware-flexible-checksums", | ||
"version": "3.357.0", | ||
"version": "3.363.0", | ||
"scripts": { | ||
@@ -26,6 +26,7 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/crc32c": "3.0.0", | ||
"@aws-sdk/is-array-buffer": "3.310.0", | ||
"@aws-sdk/protocol-http": "3.357.0", | ||
"@aws-sdk/types": "3.357.0", | ||
"@aws-sdk/util-utf8": "3.310.0", | ||
"@smithy/is-array-buffer": "^1.0.1", | ||
"@smithy/protocol-http": "^1.1.0", | ||
"@smithy/types": "^1.1.0", | ||
"@smithy/util-utf8": "^1.0.1", | ||
"tslib": "^2.5.0" | ||
@@ -32,0 +33,0 @@ }, |
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
45773
8
+ Added@smithy/protocol-http@^1.1.0
+ Added@smithy/types@^1.1.0
+ Added@smithy/util-utf8@^1.0.1
+ Added@smithy/is-array-buffer@1.1.0(transitive)
+ Added@smithy/protocol-http@1.2.0(transitive)
+ Added@smithy/types@1.2.0(transitive)
+ Added@smithy/util-buffer-from@1.1.0(transitive)
+ Added@smithy/util-utf8@1.1.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.310.0
- Removed@aws-sdk/protocol-http@3.357.0
- Removed@aws-sdk/util-utf8@3.310.0
- Removed@aws-sdk/is-array-buffer@3.310.0(transitive)
- Removed@aws-sdk/protocol-http@3.357.0(transitive)
- Removed@aws-sdk/util-buffer-from@3.310.0(transitive)
- Removed@aws-sdk/util-utf8@3.310.0(transitive)