Commit
·
d568eb7
1
Parent(s):
e6c40b4
Update index.js
Browse files
index.js
CHANGED
@@ -4,7 +4,7 @@ async function createApiError(res) {
|
|
4 |
throw new Error (await res.text());
|
5 |
}
|
6 |
|
7 |
-
function hexFromBytes(arr: Uint8Array)
|
8 |
if (globalThis.Buffer) {
|
9 |
return globalThis.Buffer.from(arr).toString("hex");
|
10 |
} else {
|
|
|
4 |
throw new Error (await res.text());
|
5 |
}
|
6 |
|
7 |
+
function hexFromBytes(arr: Uint8Array) {
|
8 |
if (globalThis.Buffer) {
|
9 |
return globalThis.Buffer.from(arr).toString("hex");
|
10 |
} else {
|