Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/middleware-flexible-checksums

Package Overview
Dependencies
Maintainers
5
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-flexible-checksums - npm Package Compare versions

Comparing version 3.357.0 to 3.363.0

2

dist-cjs/flexibleChecksumsMiddleware.js
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc