Minor updates #1

Closed
tornadocontrib wants to merge 67 commits from tornadocontrib/tornado-core:main into main
6 changed files with 8 additions and 3 deletions
Showing only changes of commit 58b3110125 - Show all commits

1
dist/index.js vendored
View File

@ -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
View File

@ -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
View File

@ -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));
}

File diff suppressed because one or more lines are too long

View File

@ -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.';

View File

@ -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;
}