@supraio/client-daemon-js 1.0.0-mzbrightsigndecoder.477 → 1.0.0-mzbrightsigndecoder.478

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/daemon.html CHANGED
@@ -4,6 +4,6 @@
4
4
  <title>Supra daemon</title>
5
5
  </head>
6
6
  <body>
7
- <script type="text/javascript" src="daemon.js?v=1.0.0-mzbrightsigndecoder.477"></script>
7
+ <script type="text/javascript" src="daemon.js?v=1.0.0-mzbrightsigndecoder.478"></script>
8
8
  </body>
9
9
  </html>
package/daemon.js CHANGED
@@ -24755,6 +24755,7 @@
24755
24755
  function initBrightSignTCP() {
24756
24756
  registerStreamErrorListener();
24757
24757
  if (window.brightSignTCP) {
24758
+ console.log("BrightSign TCP already initialized");
24758
24759
  return true;
24759
24760
  }
24760
24761
  try {
@@ -24764,6 +24765,7 @@
24764
24765
  maxPacketSize: 65535
24765
24766
  });
24766
24767
  registerTeardown();
24768
+ console.log("BrightSign TCP initialized");
24767
24769
  return true;
24768
24770
  } catch (error) {
24769
24771
  console.log("BrightSign TCP is not available", error);
@@ -24790,6 +24792,7 @@
24790
24792
  (event) => console.error("BrightSign native stream error", event)
24791
24793
  ]);
24792
24794
  streamErrorListenerRegistered = true;
24795
+ console.log("BrightSign native stream error listener registered");
24793
24796
  }
24794
24797
  function getReferenceRegistry() {
24795
24798
  if (!referenceRegistry) {
@@ -24806,12 +24809,14 @@
24806
24809
  }
24807
24810
  teardownRegistered = true;
24808
24811
  window.addEventListener("unload", () => {
24812
+ console.log("BrightSign teardown begin");
24809
24813
  const decoder = window.brightSignDecoder;
24810
24814
  const tcp = window.brightSignTCP;
24811
24815
  window.brightSignDecoder = void 0;
24812
24816
  window.brightSignTCP = void 0;
24813
24817
  void (decoder == null ? void 0 : decoder.destroy());
24814
24818
  void (tcp == null ? void 0 : tcp.destroy());
24819
+ console.log("BrightSign teardown dispatched");
24815
24820
  });
24816
24821
  }
24817
24822
 
@@ -24844,7 +24849,7 @@
24844
24849
  }
24845
24850
 
24846
24851
  // daemon/plain.ts
24847
- var DAEMON_JS_URL = "supra-client-daemon.js?v=1.0.0-mzbrightsigndecoder.477";
24852
+ var DAEMON_JS_URL = "supra-client-daemon.js?v=1.0.0-mzbrightsigndecoder.478";
24848
24853
  async function startPlainDaemon() {
24849
24854
  initBrightSignTCP();
24850
24855
  await initNaClTCP();
@@ -24858,7 +24863,7 @@
24858
24863
  }
24859
24864
 
24860
24865
  // daemon/wasm.ts
24861
- var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=1.0.0-mzbrightsigndecoder.477";
24866
+ var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=1.0.0-mzbrightsigndecoder.478";
24862
24867
  async function startWasmDaemon() {
24863
24868
  initBrightSignTCP();
24864
24869
  await initNaClTCP();