Added logging for unzip
This commit is contained in:
parent
42db44ca3b
commit
58b3110125
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -3844,6 +3844,7 @@ function downloadZip(_0) {
|
||||
}
|
||||
}
|
||||
const { [zipName]: content } = yield unzipAsync(data);
|
||||
console.log(`Downloaded ${url}${zipDigest ? ` ( Digest: ${zipDigest} )` : ""}`);
|
||||
if (parseJson) {
|
||||
return JSON.parse(new TextDecoder().decode(content));
|
||||
}
|
||||
|
1
dist/index.mjs
vendored
1
dist/index.mjs
vendored
@ -3823,6 +3823,7 @@ function downloadZip(_0) {
|
||||
}
|
||||
}
|
||||
const { [zipName]: content } = yield unzipAsync(data);
|
||||
console.log(`Downloaded ${url}${zipDigest ? ` ( Digest: ${zipDigest} )` : ""}`);
|
||||
if (parseJson) {
|
||||
return JSON.parse(new TextDecoder().decode(content));
|
||||
}
|
||||
|
1
dist/tornado.umd.js
vendored
1
dist/tornado.umd.js
vendored
@ -78742,6 +78742,7 @@ function downloadZip(_0) {
|
||||
}
|
||||
}
|
||||
const { [zipName]: content } = yield unzipAsync(data);
|
||||
console.log(`Downloaded ${url}${zipDigest ? ` ( Digest: ${zipDigest} )` : ""}`);
|
||||
if (parseJson) {
|
||||
return JSON.parse(new TextDecoder().decode(content));
|
||||
}
|
||||
|
4
dist/tornado.umd.min.js
vendored
4
dist/tornado.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { openDB, deleteDB, OpenDBCallbacks, IDBPDatabase } from 'idb';
|
||||
import { getConfig, getNetworkConfig, NetId, NetIdType } from './networkConfig';
|
||||
import { getConfig, NetId, NetIdType } from './networkConfig';
|
||||
|
||||
export const INDEX_DB_ERROR = 'A mutation operation was attempted on a database that did not allow mutations.';
|
||||
|
||||
|
@ -58,6 +58,8 @@ export async function downloadZip<T>({
|
||||
|
||||
const { [zipName]: content } = await unzipAsync(data);
|
||||
|
||||
console.log(`Downloaded ${url}${zipDigest ? ` ( Digest: ${zipDigest} )` : ''}`);
|
||||
|
||||
if (parseJson) {
|
||||
return JSON.parse(new TextDecoder().decode(content)) as T;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user