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

@aws-sdk/body-checksum-browser

Package Overview
Dependencies
Maintainers
5
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/body-checksum-browser - npm Package Compare versions

Comparing version 3.226.0 to 3.254.0

3

dist-cjs/index.js

@@ -7,2 +7,3 @@ "use strict";

const util_hex_encoding_1 = require("@aws-sdk/util-hex-encoding");
const util_utf8_1 = require("@aws-sdk/util-utf8");
const MiB = 1024 * 1024;

@@ -14,3 +15,3 @@ async function bodyChecksumGenerator(request, options) {

if (typeof body === "string") {
contentHash.update(body);
contentHash.update((0, util_utf8_1.toUint8Array)(body));
treeHash.update(body);

@@ -17,0 +18,0 @@ }

import { blobReader } from "@aws-sdk/chunked-blob-reader";
import { TreeHash } from "@aws-sdk/sha256-tree-hash";
import { toHex } from "@aws-sdk/util-hex-encoding";
import { toUint8Array } from "@aws-sdk/util-utf8";
const MiB = 1024 * 1024;

@@ -10,3 +11,3 @@ export async function bodyChecksumGenerator(request, options) {

if (typeof body === "string") {
contentHash.update(body);
contentHash.update(toUint8Array(body));
treeHash.update(body);

@@ -13,0 +14,0 @@ }

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

import { Decoder, HashConstructor, HttpRequest } from "@aws-sdk/types";
import { ChecksumConstructor, Decoder, HashConstructor, HttpRequest } from "@aws-sdk/types";
export declare function bodyChecksumGenerator(request: HttpRequest, options: {
sha256: HashConstructor;
sha256: ChecksumConstructor | HashConstructor;
utf8Decoder: Decoder;
}): Promise<[string, string]>;

@@ -1,8 +0,13 @@

import { Decoder, HashConstructor, HttpRequest } from "@aws-sdk/types";
import {
ChecksumConstructor,
Decoder,
HashConstructor,
HttpRequest,
} from "@aws-sdk/types";
export declare function bodyChecksumGenerator(
request: HttpRequest,
options: {
sha256: HashConstructor;
sha256: ChecksumConstructor | HashConstructor;
utf8Decoder: Decoder;
}
): Promise<[string, string]>;
{
"name": "@aws-sdk/body-checksum-browser",
"version": "3.226.0",
"version": "3.254.0",
"scripts": {

@@ -24,10 +24,11 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-sdk/chunked-blob-reader": "3.188.0",
"@aws-sdk/protocol-http": "3.226.0",
"@aws-sdk/sha256-tree-hash": "3.226.0",
"@aws-sdk/types": "3.226.0",
"@aws-sdk/protocol-http": "3.254.0",
"@aws-sdk/sha256-tree-hash": "3.254.0",
"@aws-sdk/types": "3.254.0",
"@aws-sdk/util-hex-encoding": "3.201.0",
"@aws-sdk/util-utf8": "3.254.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@aws-crypto/sha256-js": "2.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/util-utf8-browser": "3.188.0",

@@ -34,0 +35,0 @@ "@tsconfig/recommended": "1.0.1",

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