webserial-core 1.1.5 → 1.2.0

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");
@@ -664,7 +667,7 @@ class S extends m {
664
667
  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
668
  }
666
669
  }
667
- async #o(e) {
670
+ async #a(e) {
668
671
  if (c.isDisconnected())
669
672
  throw this.#e({ error: "Socket is disconnected." }), new Error("The socket is disconnected");
670
673
  if (this.isDisconnected)
@@ -674,7 +677,7 @@ class S extends m {
674
677
  }
675
678
  async #n(e) {
676
679
  if (this.useSocket) {
677
- await this.#o(e);
680
+ await this.#a(e);
678
681
  return;
679
682
  }
680
683
  const t = this.__internal__.serial.port;
@@ -692,22 +695,22 @@ class S extends m {
692
695
  throw new Error("Timeout waiting for clearToSend signal");
693
696
  const { clearToSend: i } = await e.getSignals();
694
697
  if (i) return;
695
- await y(100);
698
+ await m(100);
696
699
  }
697
700
  }
698
701
  #r(e = new Uint8Array([]), t = !1) {
699
702
  if (e && e.length > 0) {
700
703
  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")
704
+ 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
705
  t ? this.serialCorruptMessage(this.parseUint8ToHex(e)) : this.serialMessage(this.parseUint8ToHex(e));
703
706
  else if (this.__internal__.serial.response.as === "uint8")
704
707
  t ? this.serialCorruptMessage(e) : this.serialMessage(e);
705
708
  else if (this.__internal__.serial.response.as === "string") {
706
709
  const i = this.parseUint8ArrayToString(e);
707
710
  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]));
711
+ const o = i.split(this.__internal__.serial.response.limiter);
712
+ for (const r in o)
713
+ o[r] && (t ? this.serialCorruptMessage(o[r]) : this.serialMessage(o[r]));
711
714
  } else
712
715
  t ? this.serialCorruptMessage(i) : this.serialMessage(i);
713
716
  } else {
@@ -736,8 +739,8 @@ class S extends m {
736
739
  async #_() {
737
740
  const e = this.serialFilters, t = await navigator.serial.getPorts({ filters: e });
738
741
  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);
742
+ const o = i.getInfo();
743
+ return e.some((r) => o.usbProductId === r.usbProductId && o.usbVendorId === r.usbVendorId);
741
744
  }).filter((i) => !this.#t(i));
742
745
  }
743
746
  async serialPortsSaved(e) {
@@ -806,11 +809,14 @@ class S extends m {
806
809
  }
807
810
  }
808
811
  async #h() {
812
+ 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);
813
+ }
814
+ async #u() {
809
815
  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
816
  this.__internal__.serial.response.buffer && this.#r(this.__internal__.serial.response.buffer), this.__internal__.serial.response.buffer = new Uint8Array(0);
811
817
  }, this.__internal__.serial.free_timeout_ms || 50);
812
818
  }
813
- async #u() {
819
+ async #d() {
814
820
  const e = this.__internal__.serial.response.length;
815
821
  let t = this.__internal__.serial.response.buffer;
816
822
  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 +829,7 @@ class S extends m {
823
829
  }, this.__internal__.serial.free_timeout_ms || 50));
824
830
  }
825
831
  }
826
- async #d() {
832
+ async #f() {
827
833
  const {
828
834
  limiter: e,
829
835
  prefixLimiter: t = !1,
@@ -835,7 +841,7 @@ class S extends m {
835
841
  if (!e || !i || i.length === 0) return;
836
842
  this.__internal__.serial.time_until_send_bytes && (clearTimeout(this.__internal__.serial.time_until_send_bytes), this.__internal__.serial.time_until_send_bytes = 0);
837
843
  let r = new TextDecoder().decode(i);
838
- const u = [];
844
+ const h = [];
839
845
  if (typeof e == "string") {
840
846
  let l;
841
847
  if (t && n)
@@ -846,60 +852,60 @@ class S extends m {
846
852
  l = new RegExp(`([^${e}]+)${e}`, "g");
847
853
  else
848
854
  return;
849
- let h, _ = 0;
850
- for (; (h = l.exec(r)) !== null; )
851
- u.push(new TextEncoder().encode(h[1])), _ = l.lastIndex;
855
+ let u, _ = 0;
856
+ for (; (u = l.exec(r)) !== null; )
857
+ h.push(new TextEncoder().encode(u[1])), _ = l.lastIndex;
852
858
  r = r.slice(_);
853
859
  } else if (e instanceof RegExp) {
854
- let l, h = 0;
860
+ let l, u = 0;
855
861
  if (t && n) {
856
862
  const _ = new RegExp(`${e.source}(.*?)${e.source}`, "g");
857
863
  for (; (l = _.exec(r)) !== null; )
858
- u.push(new TextEncoder().encode(l[1])), h = _.lastIndex;
864
+ h.push(new TextEncoder().encode(l[1])), u = _.lastIndex;
859
865
  } else if (n)
860
866
  for (; (l = e.exec(r)) !== null; ) {
861
- const _ = l.index, d = r.slice(h, _);
862
- u.push(new TextEncoder().encode(d)), h = e.lastIndex;
867
+ const _ = l.index, d = r.slice(u, _);
868
+ h.push(new TextEncoder().encode(d)), u = e.lastIndex;
863
869
  }
864
870
  else if (t) {
865
871
  const _ = r.split(e);
866
872
  _.shift();
867
873
  for (const d of _)
868
- u.push(new TextEncoder().encode(d));
874
+ h.push(new TextEncoder().encode(d));
869
875
  r = "";
870
876
  }
871
- r = r.slice(h);
877
+ r = r.slice(u);
872
878
  }
873
- for (const l of u)
879
+ for (const l of h)
874
880
  this.#r(l);
875
881
  const p = new TextEncoder().encode(r);
876
882
  this.__internal__.serial.response.buffer = p, p.length > 0 && (this.__internal__.serial.time_until_send_bytes = setTimeout(() => {
877
883
  this.#r(this.__internal__.serial.response.buffer, !0), this.__internal__.serial.response.buffer = new Uint8Array(0);
878
884
  }, this.__internal__.serial.free_timeout_ms ?? 50));
879
885
  }
880
- async #f() {
886
+ async #p() {
881
887
  const e = this.__internal__.serial.port;
882
888
  if (!e || !e.readable) throw new Error("Port is not readable");
883
- const t = e.readable.getReader();
884
- this.__internal__.serial.reader = t;
889
+ const t = this.__internal__.serial.transformStream ? this.__internal__.serial.transformStream : null, n = t ? e.readable.pipeThrough(t).getReader() : e.readable.getReader();
890
+ this.__internal__.serial.reader = n;
885
891
  try {
886
892
  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();
893
+ const { value: i, done: o } = await n.read();
894
+ if (o) break;
895
+ 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
896
  }
891
- } catch (n) {
892
- this.serialErrors(n);
897
+ } catch (i) {
898
+ this.serialErrors(i);
893
899
  } finally {
894
- t.releaseLock(), this.__internal__.serial.keep_reading = !0, this.__internal__.serial.port && await this.__internal__.serial.port.close();
900
+ n.releaseLock(), this.__internal__.serial.keep_reading = !0, this.__internal__.serial.port && await this.__internal__.serial.port.close();
895
901
  }
896
902
  }
897
- #a(e) {
903
+ #o(e) {
898
904
  e !== this.__internal__.serial.connecting && (this.__internal__.serial.connecting = e, this.dispatch("serial:connecting", { active: e }), this.dispatch("internal:connecting", { active: e }));
899
905
  }
900
906
  async serialConnect() {
901
907
  try {
902
- if (this.#a(!0), this.useSocket) {
908
+ if (this.#o(!0), this.useSocket) {
903
909
  if (c.prepare(), this.__internal__.serial.last_action = "connect", this.__internal__.timeout.until_response = setTimeout(async () => {
904
910
  await this.timeout(this.__internal__.serial.bytes_connection ?? [], "connection:start");
905
911
  }, this.__internal__.time.response_connection), c.isDisconnected())
@@ -924,25 +930,25 @@ class S extends m {
924
930
  await t.open(this.serialConfigPort);
925
931
  const n = this;
926
932
  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;
933
+ 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
934
  }, t.ondisconnect = async () => {
929
935
  await n.disconnect();
930
- }, await y(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
936
+ }, await m(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
931
937
  await n.timeout(n.__internal__.serial.bytes_connection ?? [], "connection:start");
932
938
  }, this.__internal__.time.response_connection), this.__internal__.serial.last_action = "connect", await this.#n(this.__internal__.serial.bytes_connection ?? []), this.dispatch("serial:sent", {
933
939
  action: "connect",
934
940
  bytes: this.__internal__.serial.bytes_connection
935
- }), this.__internal__.auto_response && this.#r(this.__internal__.serial.auto_response), await this.#f();
941
+ }), this.__internal__.auto_response && this.#r(this.__internal__.serial.auto_response), await this.#p();
936
942
  }
937
943
  } catch (e) {
938
- this.#a(!1), this.serialErrors(e);
944
+ this.#o(!1), this.serialErrors(e);
939
945
  }
940
946
  }
941
- async #p() {
947
+ async #g() {
942
948
  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
949
  }
944
950
  async serialForget() {
945
- return await this.#p();
951
+ return await this.#g();
946
952
  }
947
953
  decToHex(e) {
948
954
  return typeof e == "string" && (e = parseInt(e, 10)), e.toString(16);
@@ -962,7 +968,7 @@ class S extends m {
962
968
  bytesToHex(e) {
963
969
  return this.add0x(Array.from(e, (t) => this.hexMaker(t)));
964
970
  }
965
- #g() {
971
+ #m() {
966
972
  [
967
973
  "serial:connected",
968
974
  "serial:connecting",
@@ -986,7 +992,7 @@ class S extends m {
986
992
  #y() {
987
993
  const e = this;
988
994
  this.on("internal:queue", async () => {
989
- await e.#w();
995
+ await e.#b();
990
996
  });
991
997
  const t = () => {
992
998
  e.isConnected && e.#e({ error: "Socket disconnected." });
@@ -994,16 +1000,16 @@ class S extends m {
994
1000
  e.isDisconnected && !e.isConnecting && e.serialConnect().catch(() => {
995
1001
  });
996
1002
  };
997
- this.useSocket && (window.addEventListener("serial:socket:disconnected", t), window.addEventListener("serial:socket:connected", n)), this.#m();
1003
+ this.useSocket && (window.addEventListener("serial:socket:disconnected", t), window.addEventListener("serial:socket:connected", n)), this.#w();
998
1004
  }
999
- #m() {
1005
+ #w() {
1000
1006
  const e = this;
1001
1007
  navigator.serial.addEventListener("connect", async () => {
1002
1008
  e.isDisconnected && await e.serialConnect().catch(() => {
1003
1009
  });
1004
1010
  });
1005
1011
  }
1006
- async #w() {
1012
+ async #b() {
1007
1013
  if (this.useSocket && c.isDisconnected())
1008
1014
  return;
1009
1015
  if (!this.#t(this.__internal__.serial.port)) {
@@ -1027,8 +1033,8 @@ class S extends m {
1027
1033
  let i = new Uint8Array(0);
1028
1034
  try {
1029
1035
  i = this.validateBytes(this.__internal__.serial.auto_response);
1030
- } catch (a) {
1031
- this.serialErrors(a);
1036
+ } catch (o) {
1037
+ this.serialErrors(o);
1032
1038
  }
1033
1039
  this.#r(i);
1034
1040
  }
@@ -1058,7 +1064,7 @@ class S extends m {
1058
1064
  }
1059
1065
  this.__internal__.serial.queue.push({ bytes: n, action: t }), this.dispatch("internal:queue", {});
1060
1066
  }
1061
- #b(e = 1) {
1067
+ #C(e = 1) {
1062
1068
  this.__internal__.device_number = e, !this.__internal__.bypassSerialBytesConnection && (this.__internal__.serial.bytes_connection = this.serialSetConnectionConstant(e));
1063
1069
  }
1064
1070
  serialSetConnectionConstant(e = 1) {
@@ -1071,7 +1077,7 @@ class S extends m {
1071
1077
  serialCorruptMessage(e) {
1072
1078
  throw console.log(e), this.dispatch("serial:corrupt-message", { code: e }), new Error("Method not implemented 'serialCorruptMessage'");
1073
1079
  }
1074
- #C() {
1080
+ #E() {
1075
1081
  this.__internal__.last_error = {
1076
1082
  message: null,
1077
1083
  action: null,
@@ -1098,7 +1104,7 @@ class S extends m {
1098
1104
  });
1099
1105
  }
1100
1106
  softReload() {
1101
- this.#C(), this.dispatch("serial:soft-reload", {});
1107
+ this.#E(), this.dispatch("serial:soft-reload", {});
1102
1108
  }
1103
1109
  async sendConnect() {
1104
1110
  if (!this.__internal__.serial.bytes_connection)
@@ -1156,8 +1162,8 @@ class S extends m {
1156
1162
  asciiToHex(e) {
1157
1163
  const t = [];
1158
1164
  for (let n = 0, i = e.length; n < i; n++) {
1159
- const a = Number(e.charCodeAt(n)).toString(16);
1160
- t.push(a);
1165
+ const o = Number(e.charCodeAt(n)).toString(16);
1166
+ t.push(o);
1161
1167
  }
1162
1168
  return t.join("");
1163
1169
  }
@@ -1165,7 +1171,7 @@ class S extends m {
1165
1171
  return this.isConnected;
1166
1172
  }
1167
1173
  }
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 || {});
1174
+ 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
1175
  class w extends Error {
1170
1176
  /**
1171
1177
  * Error code identifying the type of error
@@ -1220,9 +1226,9 @@ class w extends Error {
1220
1226
  }
1221
1227
  }
1222
1228
  export {
1223
- S as Core,
1229
+ T as Core,
1224
1230
  s as Devices,
1225
- m as Dispatcher,
1231
+ y as Dispatcher,
1226
1232
  w as SerialError,
1227
1233
  E as SerialErrorCode,
1228
1234
  c as Socket