Initial
This commit is contained in:
6
resources/app/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/stringHasher.js
generated
vendored
Normal file
6
resources/app/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/stringHasher.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { toUint8Array } from "@smithy/util-utf8";
|
||||
export const stringHasher = (checksumAlgorithmFn, body) => {
|
||||
const hash = new checksumAlgorithmFn();
|
||||
hash.update(toUint8Array(body || ""));
|
||||
return hash.digest();
|
||||
};
|
||||
Reference in New Issue
Block a user