vg-print 1.1.403 → 1.1.404
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/vg-print.es.js +9 -4
- package/package.json +1 -1
package/dist/vg-print.es.js
CHANGED
|
@@ -48285,6 +48285,7 @@ ${i18n.__("转大小写")}
|
|
|
48285
48285
|
if (this.clearReconnectTimer(), this.socket && (this.socket.connected ? (this.opened = !0, Cn && Cn(!0)) : this.destroySocket(!0)), !this.socket) {
|
|
48286
48286
|
var Fn = this.socket = window.io(this.host, {
|
|
48287
48287
|
transports: ["websocket"],
|
|
48288
|
+
reconnection: !1,
|
|
48288
48289
|
reconnectionAttempts: 5,
|
|
48289
48290
|
auth: {
|
|
48290
48291
|
token: this.token
|
|
@@ -48311,9 +48312,9 @@ ${i18n.__("转大小写")}
|
|
|
48311
48312
|
}), Fn.on("ippRequestCallback", function(Rn, $n) {
|
|
48312
48313
|
hinnn.event.trigger("ippRequestCallback", { err: Rn, res: $n });
|
|
48313
48314
|
}), Fn.on("connect_error", function(Rn) {
|
|
48314
|
-
console.error(Rn), Mn.opened = !1, hinnn.event.trigger("connect_error", Rn), En.destroySocket(!
|
|
48315
|
+
console.error(Rn), Mn.opened = !1, hinnn.event.trigger("connect_error", Rn), En.destroySocket(!0), En.scheduleReconnect("connect_error", Cn);
|
|
48315
48316
|
}), Fn.on("disconnect", function(Rn) {
|
|
48316
|
-
Mn.opened = !1, En.destroySocket(!
|
|
48317
|
+
Mn.opened = !1, En.destroySocket(!0), Cn && Cn(!1, Rn), En.scheduleReconnect("disconnect", Cn);
|
|
48317
48318
|
});
|
|
48318
48319
|
}
|
|
48319
48320
|
},
|
|
@@ -55078,7 +55079,11 @@ ${i18n.__("转大小写")}
|
|
|
55078
55079
|
var De = function(_e) {
|
|
55079
55080
|
window.autoConnect && hiwebSocket.hasIo() && hiwebSocket.host && (!hiwebSocket.socket || !hiwebSocket.socket.connected || !hiwebSocket.opened) && hiwebSocket.scheduleReconnect(_e);
|
|
55080
55081
|
};
|
|
55081
|
-
window.__vgPrintSocketLifecycleBound = !0, window.addEventListener("
|
|
55082
|
+
window.__vgPrintSocketLifecycleBound = !0, window.addEventListener("pagehide", function() {
|
|
55083
|
+
hiwebSocket.stop();
|
|
55084
|
+
}), window.addEventListener("beforeunload", function() {
|
|
55085
|
+
hiwebSocket.stop();
|
|
55086
|
+
}), window.addEventListener("pageshow", function(_e) {
|
|
55082
55087
|
De(_e && _e.persisted ? "pageshow:bfcache" : "pageshow");
|
|
55083
55088
|
}), document.addEventListener("visibilitychange", function() {
|
|
55084
55089
|
document.visibilityState === "visible" && De("visibilitychange");
|
|
@@ -58355,7 +58360,7 @@ async function ensureHttpClient() {
|
|
|
58355
58360
|
}
|
|
58356
58361
|
return null;
|
|
58357
58362
|
}
|
|
58358
|
-
const version = "1.1.
|
|
58363
|
+
const version = "1.1.404";
|
|
58359
58364
|
typeof window < "u" && window.hinnn && (window.hinnn.queue || (window.hinnn.queue = {
|
|
58360
58365
|
list: [],
|
|
58361
58366
|
running: !1,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vg-print",
|
|
3
3
|
"description": "vg-print supports visual drag and drop design templates, with functions such as previewing and exporting PDFs/images. Silent printing can be achieved in conjunction with a dedicated client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.404",
|
|
5
5
|
"author": "gmcSimple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/vg-print.es.js",
|