webserial-core 1.1.5 → 1.2.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.
@@ -37,6 +37,7 @@ type PortInfo = {
37
37
  parser: ParserSocketPort;
38
38
  };
39
39
  type SerialData = {
40
+ transformStream: false | TransformStream;
40
41
  socket: boolean;
41
42
  portInfo: PortInfo;
42
43
  aux_connecting: string;
@@ -92,6 +93,7 @@ interface CoreConstructorParams {
92
93
  device_listen_on_channel?: number | string;
93
94
  bypassSerialBytesConnection?: boolean;
94
95
  socket?: boolean;
96
+ transformStream?: false | TransformStream;
95
97
  }
96
98
  interface CustomCode {
97
99
  code: string | Uint8Array | Array<string> | Array<number>;
@@ -166,7 +168,7 @@ interface ICore {
166
168
  export declare class Core extends Dispatcher implements ICore {
167
169
  #private;
168
170
  protected __internal__: Internal;
169
- constructor({ filters, config_port, no_device, device_listen_on_channel, bypassSerialBytesConnection, socket, }?: CoreConstructorParams);
171
+ constructor({ filters, config_port, no_device, device_listen_on_channel, bypassSerialBytesConnection, socket, transformStream, }?: CoreConstructorParams);
170
172
  set listenOnChannel(channel: string | number);
171
173
  get lastAction(): string | null;
172
174
  get listenOnChannel(): number;
@@ -1 +1 @@
1
- {"version":3,"file":"Core.d.ts","sourceRoot":"","sources":["../../lib/Core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,UAAU,SAAS;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC;IAC1E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IAC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CAAC;IAY7E,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE;IAI1C,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAE,MAAa,GAAG,eAAe;IAIxE,wBAAwB,CAAC,MAAM,GAAE,MAAW,EAAE,GAAG,GAAE,MAAa,GAAG,UAAU;IAM7E,kBAAkB,CAAC,MAAM,GAAE,MAAW,EAAE,GAAG,GAAE,MAAa,GAAG,MAAM,EAAE;IAKrE,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAI5C,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,UAAU;IAI5C,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU;IAatD,uBAAuB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,GAAG,MAAM;IAgB7D,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IASxC,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IASvC,2BAA2B,IAAI,OAAO;CAG9C"}
@@ -4,7 +4,7 @@ class g extends CustomEvent {
4
4
  super(e, t);
5
5
  }
6
6
  }
7
- class m extends EventTarget {
7
+ class y extends EventTarget {
8
8
  __listeners__ = {
9
9
  debug: !1
10
10
  };
@@ -105,7 +105,7 @@ class m extends EventTarget {
105
105
  this.__listeners__[e] = !1;
106
106
  }
107
107
  }
108
- class s extends m {
108
+ class s extends y {
109
109
  static instance;
110
110
  static devices = {};
111
111
  constructor() {
@@ -207,9 +207,9 @@ class s extends m {
207
207
  }
208
208
  }
209
209
  s.instance || (s.instance = new s());
210
- function y(o = 100) {
210
+ function m(a = 100) {
211
211
  return new Promise(
212
- (e) => setTimeout(() => e(), o)
212
+ (e) => setTimeout(() => e(), a)
213
213
  );
214
214
  }
215
215
  class C {
@@ -219,7 +219,7 @@ class C {
219
219
  };
220
220
  #e = null;
221
221
  #s = !1;
222
- #o = !1;
222
+ #a = !1;
223
223
  #n;
224
224
  constructor(e, t) {
225
225
  e && (this.#i = e), t && (this.#t = { ...this.#t, ...t }), this.#n = {
@@ -256,15 +256,15 @@ class C {
256
256
  return this.#e && this.#e.id ? this.#e.id : null;
257
257
  }
258
258
  configure(e, t) {
259
- if (this.#o)
259
+ if (this.#a)
260
260
  throw new Error("Cannot configure socket after it has been initialized. Call configure() before prepare().");
261
261
  e && (this.uri = e), t && (this.#t = { ...this.#t, ...t });
262
262
  }
263
263
  disconnect() {
264
- this.#e && (this.#e.off("response", this.#n.onResponse), this.#e.off("disconnect", this.#n.onDisconnect), this.#e.off("connect", this.#n.onConnect), this.#e.off("connect_error", this.#n.onConnectError), this.#e.disconnect(), this.#e = null, this.#o = !1), this.#s = !1;
264
+ this.#e && (this.#e.off("response", this.#n.onResponse), this.#e.off("disconnect", this.#n.onDisconnect), this.#e.off("connect", this.#n.onConnect), this.#e.off("connect_error", this.#n.onConnectError), this.#e.disconnect(), this.#e = null, this.#a = !1), this.#s = !1;
265
265
  }
266
266
  prepare() {
267
- this.#s || this.#o || (this.#e = b(this.#i, this.#t), this.#o = !0, this.#e.on("disconnect", this.#n.onDisconnect), this.#e.on("response", this.#n.onResponse), this.#e.on("connect", this.#n.onConnect), this.#e.on("connect_error", this.#n.onConnectError));
267
+ this.#s || this.#a || (this.#e = b(this.#i, this.#t), this.#a = !0, this.#e.on("disconnect", this.#n.onDisconnect), this.#e.on("response", this.#n.onResponse), this.#e.on("connect", this.#n.onConnect), this.#e.on("connect_error", this.#n.onConnectError));
268
268
  }
269
269
  connectDevice(e) {
270
270
  if (!this.#e)
@@ -305,7 +305,7 @@ const c = new C(), f = {
305
305
  bufferSize: 32768,
306
306
  flowControl: "none"
307
307
  };
308
- class S extends m {
308
+ class T extends y {
309
309
  __internal__ = {
310
310
  bypassSerialBytesConnection: !1,
311
311
  auto_response: !1,
@@ -318,6 +318,7 @@ class S extends m {
318
318
  no_code: 0
319
319
  },
320
320
  serial: {
321
+ transformStream: !1,
321
322
  socket: !1,
322
323
  portInfo: {
323
324
  path: null,
@@ -385,19 +386,21 @@ class S extends m {
385
386
  config_port: t = f,
386
387
  no_device: n = 1,
387
388
  device_listen_on_channel: i = 1,
388
- bypassSerialBytesConnection: a = !1,
389
- socket: r = !1
389
+ bypassSerialBytesConnection: o = !1,
390
+ socket: r = !1,
391
+ transformStream: h = !1
390
392
  } = {
391
393
  filters: null,
392
394
  config_port: f,
393
395
  no_device: 1,
394
396
  device_listen_on_channel: 1,
395
397
  bypassSerialBytesConnection: !1,
396
- socket: !1
398
+ socket: !1,
399
+ transformStream: !1
397
400
  }) {
398
401
  if (super(), !("serial" in navigator))
399
402
  throw new Error("Web Serial not supported");
400
- e && (this.serialFilters = e), t && (this.serialConfigPort = t), a && (this.__internal__.bypassSerialBytesConnection = a), n && this.#b(n), i && ["number", "string"].includes(typeof i) && (this.listenOnChannel = i), this.__internal__.serial.socket = r, this.#g(), this.#y();
403
+ e && (this.serialFilters = e), t && (this.serialConfigPort = t), o && (this.__internal__.bypassSerialBytesConnection = o), n && this.#C(n), i && ["number", "string"].includes(typeof i) && (this.listenOnChannel = i), this.__internal__.serial.socket = r, this.__internal__.serial.transformStream = h, this.#m(), this.#y();
401
404
  }
402
405
  set listenOnChannel(e) {
403
406
  if (typeof e == "string" && (e = parseInt(e)), isNaN(e) || e < 1 || e > 255)
@@ -439,7 +442,7 @@ class S extends m {
439
442
  }
440
443
  get isDisconnected() {
441
444
  const e = this.__internal__.serial.connected, t = this.#t(this.__internal__.serial.port);
442
- return !e && t && (this.dispatch("serial:connected"), this.#a(!1), s.$dispatchChange(this)), this.__internal__.serial.connected = t, !this.__internal__.serial.connected;
445
+ return !e && t && (this.dispatch("serial:connected"), this.#o(!1), s.$dispatchChange(this)), this.__internal__.serial.connected = t, !this.__internal__.serial.connected;
443
446
  }
444
447
  get deviceNumber() {
445
448
  return this.__internal__.device_number;
@@ -633,7 +636,7 @@ class S extends m {
633
636
  }
634
637
  socketResponse(e) {
635
638
  const t = this.__internal__.serial.connected;
636
- if (e.type === "disconnect" || e.type === "error" && e.data === "DISCONNECTED" ? this.__internal__.serial.connected = !1 : e.type === "success" && (this.__internal__.serial.connected = !0), s.$dispatchChange(this), !t && this.__internal__.serial.connected && (this.dispatch("serial:connected"), this.#a(!1)), e.type === "success")
639
+ if (e.type === "disconnect" || e.type === "error" && e.data === "DISCONNECTED" ? this.__internal__.serial.connected = !1 : e.type === "success" && (this.__internal__.serial.connected = !0), s.$dispatchChange(this), !t && this.__internal__.serial.connected && (this.dispatch("serial:connected"), this.#o(!1)), e.type === "success")
637
640
  this.#r(new Uint8Array(e.data));
638
641
  else if (e.type === "error") {
639
642
  const n = new Error("The port is closed or is not readable/writable");
@@ -655,8 +658,13 @@ class S extends m {
655
658
  if (this.useSocket)
656
659
  c.isConnected() && c.disconnectDevice(this.configDeviceSocket);
657
660
  else {
661
+ this.__internal__.serial.keep_reading = !1;
658
662
  const e = this.__internal__.serial.reader, t = this.__internal__.serial.output_stream;
659
- e && (await e.cancel().catch((i) => this.serialErrors(i)), await this.__internal__.serial.input_done), t && (await t.getWriter().close(), await this.__internal__.serial.output_done), this.__internal__.serial.connected && this.__internal__.serial && this.__internal__.serial.port && await this.__internal__.serial.port.close();
663
+ if (e && (await e.cancel().catch((i) => this.serialErrors(i)), this.__internal__.serial.input_done && await this.__internal__.serial.input_done), t) {
664
+ const n = t.getWriter();
665
+ await n.close(), n.releaseLock(), this.__internal__.serial.output_done && await this.__internal__.serial.output_done;
666
+ }
667
+ this.__internal__.serial && this.__internal__.serial.connected && this.__internal__.serial.port && await this.__internal__.serial.port.close();
660
668
  }
661
669
  } catch (e) {
662
670
  this.serialErrors(e);
@@ -664,7 +672,7 @@ class S extends m {
664
672
  this.__internal__.serial.reader = null, this.__internal__.serial.input_done = null, this.__internal__.serial.output_stream = null, this.__internal__.serial.output_done = null, this.__internal__.serial.connected = !1, this.__internal__.serial.port = null, s.$dispatchChange(this);
665
673
  }
666
674
  }
667
- async #o(e) {
675
+ async #a(e) {
668
676
  if (c.isDisconnected())
669
677
  throw this.#e({ error: "Socket is disconnected." }), new Error("The socket is disconnected");
670
678
  if (this.isDisconnected)
@@ -674,7 +682,7 @@ class S extends m {
674
682
  }
675
683
  async #n(e) {
676
684
  if (this.useSocket) {
677
- await this.#o(e);
685
+ await this.#a(e);
678
686
  return;
679
687
  }
680
688
  const t = this.__internal__.serial.port;
@@ -692,22 +700,22 @@ class S extends m {
692
700
  throw new Error("Timeout waiting for clearToSend signal");
693
701
  const { clearToSend: i } = await e.getSignals();
694
702
  if (i) return;
695
- await y(100);
703
+ await m(100);
696
704
  }
697
705
  }
698
706
  #r(e = new Uint8Array([]), t = !1) {
699
707
  if (e && e.length > 0) {
700
708
  const n = this.__internal__.serial.connected;
701
- if (this.__internal__.serial.connected = this.#t(this.__internal__.serial.port), s.$dispatchChange(this), !n && this.__internal__.serial.connected && (this.dispatch("serial:connected"), this.#a(!1)), this.__internal__.interval.reconnection && (clearInterval(this.__internal__.interval.reconnection), this.__internal__.interval.reconnection = 0), this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0), this.__internal__.serial.response.as === "hex")
709
+ if (this.__internal__.serial.connected = this.#t(this.__internal__.serial.port), s.$dispatchChange(this), !n && this.__internal__.serial.connected && (this.dispatch("serial:connected"), this.#o(!1)), this.__internal__.interval.reconnection && (clearInterval(this.__internal__.interval.reconnection), this.__internal__.interval.reconnection = 0), this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0), this.__internal__.serial.response.as === "hex")
702
710
  t ? this.serialCorruptMessage(this.parseUint8ToHex(e)) : this.serialMessage(this.parseUint8ToHex(e));
703
711
  else if (this.__internal__.serial.response.as === "uint8")
704
712
  t ? this.serialCorruptMessage(e) : this.serialMessage(e);
705
713
  else if (this.__internal__.serial.response.as === "string") {
706
714
  const i = this.parseUint8ArrayToString(e);
707
715
  if (this.__internal__.serial.response.limiter !== null) {
708
- const a = i.split(this.__internal__.serial.response.limiter);
709
- for (const r in a)
710
- a[r] && (t ? this.serialCorruptMessage(a[r]) : this.serialMessage(a[r]));
716
+ const o = i.split(this.__internal__.serial.response.limiter);
717
+ for (const r in o)
718
+ o[r] && (t ? this.serialCorruptMessage(o[r]) : this.serialMessage(o[r]));
711
719
  } else
712
720
  t ? this.serialCorruptMessage(i) : this.serialMessage(i);
713
721
  } else {
@@ -736,8 +744,8 @@ class S extends m {
736
744
  async #_() {
737
745
  const e = this.serialFilters, t = await navigator.serial.getPorts({ filters: e });
738
746
  return e.length === 0 ? t : t.filter((i) => {
739
- const a = i.getInfo();
740
- return e.some((r) => a.usbProductId === r.usbProductId && a.usbVendorId === r.usbVendorId);
747
+ const o = i.getInfo();
748
+ return e.some((r) => o.usbProductId === r.usbProductId && o.usbVendorId === r.usbVendorId);
741
749
  }).filter((i) => !this.#t(i));
742
750
  }
743
751
  async serialPortsSaved(e) {
@@ -806,11 +814,14 @@ class S extends m {
806
814
  }
807
815
  }
808
816
  async #h() {
817
+ this.__internal__.serial.time_until_send_bytes && (clearTimeout(this.__internal__.serial.time_until_send_bytes), this.__internal__.serial.time_until_send_bytes = 0), this.__internal__.serial.response.buffer && this.#r(this.__internal__.serial.response.buffer), this.__internal__.serial.response.buffer = new Uint8Array(0);
818
+ }
819
+ async #u() {
809
820
  this.__internal__.serial.time_until_send_bytes && (clearTimeout(this.__internal__.serial.time_until_send_bytes), this.__internal__.serial.time_until_send_bytes = 0), this.__internal__.serial.time_until_send_bytes = setTimeout(() => {
810
821
  this.__internal__.serial.response.buffer && this.#r(this.__internal__.serial.response.buffer), this.__internal__.serial.response.buffer = new Uint8Array(0);
811
822
  }, this.__internal__.serial.free_timeout_ms || 50);
812
823
  }
813
- async #u() {
824
+ async #d() {
814
825
  const e = this.__internal__.serial.response.length;
815
826
  let t = this.__internal__.serial.response.buffer;
816
827
  if (this.__internal__.serial.time_until_send_bytes && (clearTimeout(this.__internal__.serial.time_until_send_bytes), this.__internal__.serial.time_until_send_bytes = 0), !(e === null || !t || t.length === 0)) {
@@ -823,7 +834,7 @@ class S extends m {
823
834
  }, this.__internal__.serial.free_timeout_ms || 50));
824
835
  }
825
836
  }
826
- async #d() {
837
+ async #f() {
827
838
  const {
828
839
  limiter: e,
829
840
  prefixLimiter: t = !1,
@@ -835,7 +846,7 @@ class S extends m {
835
846
  if (!e || !i || i.length === 0) return;
836
847
  this.__internal__.serial.time_until_send_bytes && (clearTimeout(this.__internal__.serial.time_until_send_bytes), this.__internal__.serial.time_until_send_bytes = 0);
837
848
  let r = new TextDecoder().decode(i);
838
- const u = [];
849
+ const h = [];
839
850
  if (typeof e == "string") {
840
851
  let l;
841
852
  if (t && n)
@@ -846,60 +857,60 @@ class S extends m {
846
857
  l = new RegExp(`([^${e}]+)${e}`, "g");
847
858
  else
848
859
  return;
849
- let h, _ = 0;
850
- for (; (h = l.exec(r)) !== null; )
851
- u.push(new TextEncoder().encode(h[1])), _ = l.lastIndex;
860
+ let u, _ = 0;
861
+ for (; (u = l.exec(r)) !== null; )
862
+ h.push(new TextEncoder().encode(u[1])), _ = l.lastIndex;
852
863
  r = r.slice(_);
853
864
  } else if (e instanceof RegExp) {
854
- let l, h = 0;
865
+ let l, u = 0;
855
866
  if (t && n) {
856
867
  const _ = new RegExp(`${e.source}(.*?)${e.source}`, "g");
857
868
  for (; (l = _.exec(r)) !== null; )
858
- u.push(new TextEncoder().encode(l[1])), h = _.lastIndex;
869
+ h.push(new TextEncoder().encode(l[1])), u = _.lastIndex;
859
870
  } else if (n)
860
871
  for (; (l = e.exec(r)) !== null; ) {
861
- const _ = l.index, d = r.slice(h, _);
862
- u.push(new TextEncoder().encode(d)), h = e.lastIndex;
872
+ const _ = l.index, d = r.slice(u, _);
873
+ h.push(new TextEncoder().encode(d)), u = e.lastIndex;
863
874
  }
864
875
  else if (t) {
865
876
  const _ = r.split(e);
866
877
  _.shift();
867
878
  for (const d of _)
868
- u.push(new TextEncoder().encode(d));
879
+ h.push(new TextEncoder().encode(d));
869
880
  r = "";
870
881
  }
871
- r = r.slice(h);
882
+ r = r.slice(u);
872
883
  }
873
- for (const l of u)
884
+ for (const l of h)
874
885
  this.#r(l);
875
886
  const p = new TextEncoder().encode(r);
876
887
  this.__internal__.serial.response.buffer = p, p.length > 0 && (this.__internal__.serial.time_until_send_bytes = setTimeout(() => {
877
888
  this.#r(this.__internal__.serial.response.buffer, !0), this.__internal__.serial.response.buffer = new Uint8Array(0);
878
889
  }, this.__internal__.serial.free_timeout_ms ?? 50));
879
890
  }
880
- async #f() {
891
+ async #p() {
881
892
  const e = this.__internal__.serial.port;
882
893
  if (!e || !e.readable) throw new Error("Port is not readable");
883
- const t = e.readable.getReader();
884
- this.__internal__.serial.reader = t;
894
+ const t = this.__internal__.serial.transformStream ? this.__internal__.serial.transformStream : null, n = t ? e.readable.pipeThrough(t).getReader() : e.readable.getReader();
895
+ this.__internal__.serial.reader = n;
885
896
  try {
886
897
  for (; this.__internal__.serial.keep_reading; ) {
887
- const { value: n, done: i } = await t.read();
888
- if (i) break;
889
- this.#c(n), this.__internal__.serial.response.delimited ? await this.#d() : this.__internal__.serial.response.length === null ? await this.#h() : await this.#u();
898
+ const { value: i, done: o } = await n.read();
899
+ if (o) break;
900
+ this.#c(i), this.__internal__.serial.transformStream ? await this.#h() : this.__internal__.serial.response.delimited ? await this.#f() : this.__internal__.serial.response.length === null ? await this.#u() : await this.#d();
890
901
  }
891
- } catch (n) {
892
- this.serialErrors(n);
902
+ } catch (i) {
903
+ this.serialErrors(i);
893
904
  } finally {
894
- t.releaseLock(), this.__internal__.serial.keep_reading = !0, this.__internal__.serial.port && await this.__internal__.serial.port.close();
905
+ n.releaseLock(), this.__internal__.serial.reader = null, this.__internal__.serial.keep_reading = !0;
895
906
  }
896
907
  }
897
- #a(e) {
908
+ #o(e) {
898
909
  e !== this.__internal__.serial.connecting && (this.__internal__.serial.connecting = e, this.dispatch("serial:connecting", { active: e }), this.dispatch("internal:connecting", { active: e }));
899
910
  }
900
911
  async serialConnect() {
901
912
  try {
902
- if (this.#a(!0), this.useSocket) {
913
+ if (this.#o(!0), this.useSocket) {
903
914
  if (c.prepare(), this.__internal__.serial.last_action = "connect", this.__internal__.timeout.until_response = setTimeout(async () => {
904
915
  await this.timeout(this.__internal__.serial.bytes_connection ?? [], "connection:start");
905
916
  }, this.__internal__.time.response_connection), c.isDisconnected())
@@ -924,25 +935,25 @@ class S extends m {
924
935
  await t.open(this.serialConfigPort);
925
936
  const n = this;
926
937
  t.onconnect = (i) => {
927
- n.dispatch("serial:connected", i), n.#a(!1), s.$dispatchChange(this), n.__internal__.serial.queue.length > 0 ? n.dispatch("internal:queue", {}) : n.__internal__.serial.running_queue = !1;
938
+ n.dispatch("serial:connected", i), n.#o(!1), s.$dispatchChange(this), n.__internal__.serial.queue.length > 0 ? n.dispatch("internal:queue", {}) : n.__internal__.serial.running_queue = !1;
928
939
  }, t.ondisconnect = async () => {
929
940
  await n.disconnect();
930
- }, await y(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
941
+ }, await m(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
931
942
  await n.timeout(n.__internal__.serial.bytes_connection ?? [], "connection:start");
932
943
  }, this.__internal__.time.response_connection), this.__internal__.serial.last_action = "connect", await this.#n(this.__internal__.serial.bytes_connection ?? []), this.dispatch("serial:sent", {
933
944
  action: "connect",
934
945
  bytes: this.__internal__.serial.bytes_connection
935
- }), this.__internal__.auto_response && this.#r(this.__internal__.serial.auto_response), await this.#f();
946
+ }), this.__internal__.auto_response && this.#r(this.__internal__.serial.auto_response), await this.#p();
936
947
  }
937
948
  } catch (e) {
938
- this.#a(!1), this.serialErrors(e);
949
+ this.#o(!1), this.serialErrors(e);
939
950
  }
940
951
  }
941
- async #p() {
952
+ async #g() {
942
953
  return typeof window > "u" ? !1 : "serial" in navigator && "forget" in SerialPort.prototype && this.__internal__.serial.port ? (await this.__internal__.serial.port.forget(), !0) : !1;
943
954
  }
944
955
  async serialForget() {
945
- return await this.#p();
956
+ return await this.#g();
946
957
  }
947
958
  decToHex(e) {
948
959
  return typeof e == "string" && (e = parseInt(e, 10)), e.toString(16);
@@ -962,7 +973,7 @@ class S extends m {
962
973
  bytesToHex(e) {
963
974
  return this.add0x(Array.from(e, (t) => this.hexMaker(t)));
964
975
  }
965
- #g() {
976
+ #m() {
966
977
  [
967
978
  "serial:connected",
968
979
  "serial:connecting",
@@ -986,7 +997,7 @@ class S extends m {
986
997
  #y() {
987
998
  const e = this;
988
999
  this.on("internal:queue", async () => {
989
- await e.#w();
1000
+ await e.#b();
990
1001
  });
991
1002
  const t = () => {
992
1003
  e.isConnected && e.#e({ error: "Socket disconnected." });
@@ -994,16 +1005,16 @@ class S extends m {
994
1005
  e.isDisconnected && !e.isConnecting && e.serialConnect().catch(() => {
995
1006
  });
996
1007
  };
997
- this.useSocket && (window.addEventListener("serial:socket:disconnected", t), window.addEventListener("serial:socket:connected", n)), this.#m();
1008
+ this.useSocket && (window.addEventListener("serial:socket:disconnected", t), window.addEventListener("serial:socket:connected", n)), this.#w();
998
1009
  }
999
- #m() {
1010
+ #w() {
1000
1011
  const e = this;
1001
1012
  navigator.serial.addEventListener("connect", async () => {
1002
1013
  e.isDisconnected && await e.serialConnect().catch(() => {
1003
1014
  });
1004
1015
  });
1005
1016
  }
1006
- async #w() {
1017
+ async #b() {
1007
1018
  if (this.useSocket && c.isDisconnected())
1008
1019
  return;
1009
1020
  if (!this.#t(this.__internal__.serial.port)) {
@@ -1027,8 +1038,8 @@ class S extends m {
1027
1038
  let i = new Uint8Array(0);
1028
1039
  try {
1029
1040
  i = this.validateBytes(this.__internal__.serial.auto_response);
1030
- } catch (a) {
1031
- this.serialErrors(a);
1041
+ } catch (o) {
1042
+ this.serialErrors(o);
1032
1043
  }
1033
1044
  this.#r(i);
1034
1045
  }
@@ -1058,7 +1069,7 @@ class S extends m {
1058
1069
  }
1059
1070
  this.__internal__.serial.queue.push({ bytes: n, action: t }), this.dispatch("internal:queue", {});
1060
1071
  }
1061
- #b(e = 1) {
1072
+ #C(e = 1) {
1062
1073
  this.__internal__.device_number = e, !this.__internal__.bypassSerialBytesConnection && (this.__internal__.serial.bytes_connection = this.serialSetConnectionConstant(e));
1063
1074
  }
1064
1075
  serialSetConnectionConstant(e = 1) {
@@ -1071,7 +1082,7 @@ class S extends m {
1071
1082
  serialCorruptMessage(e) {
1072
1083
  throw console.log(e), this.dispatch("serial:corrupt-message", { code: e }), new Error("Method not implemented 'serialCorruptMessage'");
1073
1084
  }
1074
- #C() {
1085
+ #E() {
1075
1086
  this.__internal__.last_error = {
1076
1087
  message: null,
1077
1088
  action: null,
@@ -1098,7 +1109,7 @@ class S extends m {
1098
1109
  });
1099
1110
  }
1100
1111
  softReload() {
1101
- this.#C(), this.dispatch("serial:soft-reload", {});
1112
+ this.#E(), this.dispatch("serial:soft-reload", {});
1102
1113
  }
1103
1114
  async sendConnect() {
1104
1115
  if (!this.__internal__.serial.bytes_connection)
@@ -1156,8 +1167,8 @@ class S extends m {
1156
1167
  asciiToHex(e) {
1157
1168
  const t = [];
1158
1169
  for (let n = 0, i = e.length; n < i; n++) {
1159
- const a = Number(e.charCodeAt(n)).toString(16);
1160
- t.push(a);
1170
+ const o = Number(e.charCodeAt(n)).toString(16);
1171
+ t.push(o);
1161
1172
  }
1162
1173
  return t.join("");
1163
1174
  }
@@ -1165,7 +1176,7 @@ class S extends m {
1165
1176
  return this.isConnected;
1166
1177
  }
1167
1178
  }
1168
- var E = /* @__PURE__ */ ((o) => (o.CONNECTION_FAILED = "CONNECTION_FAILED", o.DISCONNECTION_FAILED = "DISCONNECTION_FAILED", o.WRITE_FAILED = "WRITE_FAILED", o.READ_FAILED = "READ_FAILED", o.TIMEOUT = "TIMEOUT", o.PORT_NOT_FOUND = "PORT_NOT_FOUND", o.PERMISSION_DENIED = "PERMISSION_DENIED", o.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", o.INVALID_CONFIGURATION = "INVALID_CONFIGURATION", o.SOCKET_ERROR = "SOCKET_ERROR", o.UNKNOWN_ERROR = "UNKNOWN_ERROR", o))(E || {});
1179
+ var E = /* @__PURE__ */ ((a) => (a.CONNECTION_FAILED = "CONNECTION_FAILED", a.DISCONNECTION_FAILED = "DISCONNECTION_FAILED", a.WRITE_FAILED = "WRITE_FAILED", a.READ_FAILED = "READ_FAILED", a.TIMEOUT = "TIMEOUT", a.PORT_NOT_FOUND = "PORT_NOT_FOUND", a.PERMISSION_DENIED = "PERMISSION_DENIED", a.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", a.INVALID_CONFIGURATION = "INVALID_CONFIGURATION", a.SOCKET_ERROR = "SOCKET_ERROR", a.UNKNOWN_ERROR = "UNKNOWN_ERROR", a))(E || {});
1169
1180
  class w extends Error {
1170
1181
  /**
1171
1182
  * Error code identifying the type of error
@@ -1220,9 +1231,9 @@ class w extends Error {
1220
1231
  }
1221
1232
  }
1222
1233
  export {
1223
- S as Core,
1234
+ T as Core,
1224
1235
  s as Devices,
1225
- m as Dispatcher,
1236
+ y as Dispatcher,
1226
1237
  w as SerialError,
1227
1238
  E as SerialErrorCode,
1228
1239
  c as Socket