Initial
This commit is contained in:
9
resources/app/node_modules/@aws-crypto/sha1-browser/src/isEmptyData.ts
generated
vendored
Normal file
9
resources/app/node_modules/@aws-crypto/sha1-browser/src/isEmptyData.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { SourceData } from "@aws-sdk/types";
|
||||
|
||||
export function isEmptyData(data: SourceData): boolean {
|
||||
if (typeof data === "string") {
|
||||
return data.length === 0;
|
||||
}
|
||||
|
||||
return data.byteLength === 0;
|
||||
}
|
||||
Reference in New Issue
Block a user