printbench 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/printbench.js +5 -5
- package/package.json +1 -1
package/dist/printbench.js
CHANGED
|
@@ -6240,20 +6240,20 @@ function LC(Q) {
|
|
|
6240
6240
|
height: m
|
|
6241
6241
|
};
|
|
6242
6242
|
if (A.value)
|
|
6243
|
-
return I.onSnapshot?.(BA),
|
|
6243
|
+
return I.onSnapshot?.(BA), console.log(`已生成 ${AA}`), s(), BA;
|
|
6244
6244
|
if (r === "download")
|
|
6245
|
-
return L(b, AA), I.onSnapshot?.(BA),
|
|
6245
|
+
return L(b, AA), I.onSnapshot?.(BA), console.log(`已下载 ${AA}`), s(), BA;
|
|
6246
6246
|
const $ = await ug(
|
|
6247
6247
|
b,
|
|
6248
6248
|
{ fileName: AA, format: n },
|
|
6249
6249
|
{ endpoint: E.value }
|
|
6250
6250
|
);
|
|
6251
|
-
return I.onSnapshot?.(BA),
|
|
6251
|
+
return I.onSnapshot?.(BA), console.log($.id ? `已上传 ${AA} · ${$.id}` : `已上传 ${AA}`), s(), BA;
|
|
6252
6252
|
} catch (b) {
|
|
6253
6253
|
if (b instanceof Dg)
|
|
6254
|
-
return
|
|
6254
|
+
return console.info(b.message), null;
|
|
6255
6255
|
const q = b instanceof Error ? b.message : r === "upload" ? "快照上传失败" : "快照失败";
|
|
6256
|
-
return
|
|
6256
|
+
return console.error(q), I.onError?.(q), null;
|
|
6257
6257
|
} finally {
|
|
6258
6258
|
B.setBusy(!1);
|
|
6259
6259
|
}
|