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.
@@ -6240,20 +6240,20 @@ function LC(Q) {
6240
6240
  height: m
6241
6241
  };
6242
6242
  if (A.value)
6243
- return I.onSnapshot?.(BA), B.toast("ok", `已生成 ${AA}`), s(), BA;
6243
+ return I.onSnapshot?.(BA), console.log(`已生成 ${AA}`), s(), BA;
6244
6244
  if (r === "download")
6245
- return L(b, AA), I.onSnapshot?.(BA), B.toast("ok", `已下载 ${AA}`), s(), 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), B.toast("ok", $.id ? `已上传 ${AA} · ${$.id}` : `已上传 ${AA}`), s(), 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 B.toast("info", b.message), null;
6254
+ return console.info(b.message), null;
6255
6255
  const q = b instanceof Error ? b.message : r === "upload" ? "快照上传失败" : "快照失败";
6256
- return B.toast("fail", q), I.onError?.(q), null;
6256
+ return console.error(q), I.onError?.(q), null;
6257
6257
  } finally {
6258
6258
  B.setBusy(!1);
6259
6259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "printbench",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Browser-based 3D print model workbench (Vue 3 + three.js + Manifold)",
5
5
  "type": "module",
6
6
  "main": "./dist/printbench.js",