@aws-sdk/body-checksum-browser
Advanced tools
Comparing version 3.226.0 to 3.254.0
@@ -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", |
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
16589
74
7
+ Added@aws-sdk/util-utf8@3.254.0
+ Added@aws-sdk/is-array-buffer@3.201.0(transitive)
+ Added@aws-sdk/protocol-http@3.254.0(transitive)
+ Added@aws-sdk/sha256-tree-hash@3.254.0(transitive)
+ Added@aws-sdk/types@3.254.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.208.0(transitive)
+ Added@aws-sdk/util-utf8@3.254.0(transitive)
- Removed@aws-sdk/protocol-http@3.226.0(transitive)
- Removed@aws-sdk/sha256-tree-hash@3.226.0(transitive)
- Removed@aws-sdk/types@3.226.0(transitive)
Updated@aws-sdk/types@3.254.0