webserial-core 1.2.1 → 1.2.2

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,7 +37,7 @@ type PortInfo = {
37
37
  parser: ParserSocketPort;
38
38
  };
39
39
  type SerialData = {
40
- transformStream: false | TransformStream;
40
+ transformStream: false | (() => TransformStream);
41
41
  socket: boolean;
42
42
  portInfo: PortInfo;
43
43
  aux_connecting: string;
@@ -62,6 +62,9 @@ type SerialData = {
62
62
  auto_response: any;
63
63
  free_timeout_ms: number;
64
64
  useRTSCTS: boolean;
65
+ pipeAbortController: AbortController | null;
66
+ pipeDone: Promise<void> | null;
67
+ pumpReader: ReadableStreamDefaultReader<Uint8Array> | null;
65
68
  };
66
69
  interface TimeResponse {
67
70
  response_connection: number;
@@ -93,7 +96,7 @@ interface CoreConstructorParams {
93
96
  device_listen_on_channel?: number | string;
94
97
  bypassSerialBytesConnection?: boolean;
95
98
  socket?: boolean;
96
- transformStream?: false | TransformStream;
99
+ transformStream?: false | TransformStream | (() => TransformStream);
97
100
  }
98
101
  interface CustomCode {
99
102
  code: string | Uint8Array | Array<string> | Array<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;IACX,cAAc,EAAE,MAAM,GAAG,IAAI,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IAAI,GAAE,eAA+C,EACrD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAenC;;;OAGG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAWjC;;;OAGG;IACH,QAAQ,IAAI,MAAM;CAInB"}
@@ -4,7 +4,7 @@ class g extends CustomEvent {
4
4
  super(e, t);
5
5
  }
6
6
  }
7
- class y extends EventTarget {
7
+ class m extends EventTarget {
8
8
  __listeners__ = {
9
9
  debug: !1
10
10
  };
@@ -105,7 +105,7 @@ class y extends EventTarget {
105
105
  this.__listeners__[e] = !1;
106
106
  }
107
107
  }
108
- class s extends y {
108
+ class s extends m {
109
109
  static instance;
110
110
  static devices = {};
111
111
  constructor() {
@@ -207,9 +207,9 @@ class s extends y {
207
207
  }
208
208
  }
209
209
  s.instance || (s.instance = new s());
210
- function m(a = 100) {
210
+ function y(o = 100) {
211
211
  return new Promise(
212
- (e) => setTimeout(() => e(), a)
212
+ (e) => setTimeout(() => e(), o)
213
213
  );
214
214
  }
215
215
  class C {
@@ -297,7 +297,7 @@ class C {
297
297
  return !this.#s;
298
298
  }
299
299
  }
300
- const c = new C(), f = {
300
+ const h = new C(), p = {
301
301
  baudRate: 9600,
302
302
  dataBits: 8,
303
303
  stopBits: 1,
@@ -305,7 +305,7 @@ const c = new C(), f = {
305
305
  bufferSize: 32768,
306
306
  flowControl: "none"
307
307
  };
308
- class T extends y {
308
+ class v extends m {
309
309
  __internal__ = {
310
310
  bypassSerialBytesConnection: !1,
311
311
  auto_response: !1,
@@ -354,14 +354,17 @@ class T extends y {
354
354
  delay_first_connection: 200,
355
355
  bytes_connection: null,
356
356
  filters: [],
357
- config_port: f,
357
+ config_port: p,
358
358
  queue: [],
359
359
  running_queue: !1,
360
360
  auto_response: null,
361
361
  free_timeout_ms: 50,
362
362
  // In previous versions 400 was used
363
- useRTSCTS: !1
363
+ useRTSCTS: !1,
364
364
  // Use RTS/CTS flow control
365
+ pipeAbortController: null,
366
+ pipeDone: null,
367
+ pumpReader: null
365
368
  },
366
369
  device: {
367
370
  type: "unknown",
@@ -383,15 +386,15 @@ class T extends y {
383
386
  #i = null;
384
387
  constructor({
385
388
  filters: e = null,
386
- config_port: t = f,
389
+ config_port: t = p,
387
390
  no_device: n = 1,
388
391
  device_listen_on_channel: i = 1,
389
- bypassSerialBytesConnection: o = !1,
392
+ bypassSerialBytesConnection: a = !1,
390
393
  socket: r = !1,
391
- transformStream: h = !1
394
+ transformStream: l = !1
392
395
  } = {
393
396
  filters: null,
394
- config_port: f,
397
+ config_port: p,
395
398
  no_device: 1,
396
399
  device_listen_on_channel: 1,
397
400
  bypassSerialBytesConnection: !1,
@@ -400,7 +403,14 @@ class T extends y {
400
403
  }) {
401
404
  if (super(), !("serial" in navigator))
402
405
  throw new Error("Web Serial not supported");
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();
406
+ if (e && (this.serialFilters = e), t && (this.serialConfigPort = t), a && (this.__internal__.bypassSerialBytesConnection = a), n && this.#C(n), i && ["number", "string"].includes(typeof i) && (this.listenOnChannel = i), this.__internal__.serial.socket = r, typeof l == "function")
407
+ this.__internal__.serial.transformStream = l;
408
+ else if (l) {
409
+ const d = l;
410
+ this.__internal__.serial.transformStream = () => d;
411
+ } else
412
+ this.__internal__.serial.transformStream = !1;
413
+ this.#y(), this.#m();
404
414
  }
405
415
  set listenOnChannel(e) {
406
416
  if (typeof e == "string" && (e = parseInt(e)), isNaN(e) || e < 1 || e > 255)
@@ -616,7 +626,7 @@ class T extends y {
616
626
  };
617
627
  }
618
628
  #t(e) {
619
- return this.useSocket ? this.__internal__.serial.connected && c.isConnected() : !!(e && e.readable && e.writable);
629
+ return this.useSocket ? this.__internal__.serial.connected && h.isConnected() : !!(e && e.readable && e.writable);
620
630
  }
621
631
  async timeout(e, t) {
622
632
  this.__internal__.last_error.message = "Operation response timed out.", this.__internal__.last_error.action = t, this.__internal__.last_error.code = e, this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0), t === "connect" ? (this.__internal__.serial.connected = !1, this.dispatch("serial:reconnect", {}), s.$dispatchChange(this)) : t === "connection:start" && (await this.serialDisconnect(), this.__internal__.serial.connected = !1, this.__internal__.aux_port_connector += 1, s.$dispatchChange(this), await this.serialConnect()), this.__internal__.serial.queue.length > 0 && this.dispatch("internal:queue", {}), this.dispatch("serial:timeout", {
@@ -656,29 +666,38 @@ class T extends y {
656
666
  async serialDisconnect() {
657
667
  try {
658
668
  if (this.useSocket)
659
- c.isConnected() && c.disconnectDevice(this.configDeviceSocket);
669
+ h.isConnected() && h.disconnectDevice(this.configDeviceSocket);
660
670
  else {
661
671
  this.__internal__.serial.keep_reading = !1;
662
- const e = this.__internal__.serial.reader, t = this.__internal__.serial.output_stream;
663
- if (e && (await e.cancel().catch((i) => this.serialErrors(i)), this.__internal__.serial.input_done && await this.__internal__.serial.input_done), t) {
672
+ const e = this.__internal__.serial.reader;
673
+ e && await e.cancel().catch(() => {
674
+ }), this.__internal__.serial.pumpReader && await this.__internal__.serial.pumpReader.cancel().catch(() => {
675
+ }), this.__internal__.serial.pipeDone && (await this.__internal__.serial.pipeDone.catch(() => {
676
+ }), this.__internal__.serial.pipeDone = null), this.__internal__.serial.input_done && await this.__internal__.serial.input_done.catch(() => {
677
+ });
678
+ const t = this.__internal__.serial.output_stream;
679
+ if (t) {
664
680
  const n = t.getWriter();
665
- await n.close(), n.releaseLock(), this.__internal__.serial.output_done && await this.__internal__.serial.output_done;
681
+ await n.close().catch(() => {
682
+ }), n.releaseLock(), this.__internal__.serial.output_done && await this.__internal__.serial.output_done.catch(() => {
683
+ });
666
684
  }
667
- this.__internal__.serial && this.__internal__.serial.connected && this.__internal__.serial.port && await this.__internal__.serial.port.close();
685
+ this.__internal__.serial.port && await this.__internal__.serial.port.close().catch(() => {
686
+ });
668
687
  }
669
688
  } catch (e) {
670
- this.serialErrors(e);
689
+ console.error(e), this.serialErrors(e);
671
690
  } finally {
672
691
  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);
673
692
  }
674
693
  }
675
694
  async #a(e) {
676
- if (c.isDisconnected())
695
+ if (h.isDisconnected())
677
696
  throw this.#e({ error: "Socket is disconnected." }), new Error("The socket is disconnected");
678
697
  if (this.isDisconnected)
679
698
  throw this.#e({ error: "Port is closed, not readable or writable." }), new Error("The port is closed or is not readable/writable");
680
699
  const t = this.validateBytes(e);
681
- c.write({ config: this.configDeviceSocket, bytes: Array.from(t) });
700
+ h.write({ config: this.configDeviceSocket, bytes: Array.from(t) });
682
701
  }
683
702
  async #n(e) {
684
703
  if (this.useSocket) {
@@ -700,7 +719,7 @@ class T extends y {
700
719
  throw new Error("Timeout waiting for clearToSend signal");
701
720
  const { clearToSend: i } = await e.getSignals();
702
721
  if (i) return;
703
- await m(100);
722
+ await y(100);
704
723
  }
705
724
  }
706
725
  #r(e = new Uint8Array([]), t = !1) {
@@ -713,9 +732,9 @@ class T extends y {
713
732
  else if (this.__internal__.serial.response.as === "string") {
714
733
  const i = this.parseUint8ArrayToString(e);
715
734
  if (this.__internal__.serial.response.limiter !== null) {
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]));
735
+ const a = i.split(this.__internal__.serial.response.limiter);
736
+ for (const r in a)
737
+ a[r] && (t ? this.serialCorruptMessage(a[r]) : this.serialMessage(a[r]));
719
738
  } else
720
739
  t ? this.serialCorruptMessage(i) : this.serialMessage(i);
721
740
  } else {
@@ -744,8 +763,8 @@ class T extends y {
744
763
  async #_() {
745
764
  const e = this.serialFilters, t = await navigator.serial.getPorts({ filters: e });
746
765
  return e.length === 0 ? t : t.filter((i) => {
747
- const o = i.getInfo();
748
- return e.some((r) => o.usbProductId === r.usbProductId && o.usbVendorId === r.usbVendorId);
766
+ const a = i.getInfo();
767
+ return e.some((r) => a.usbProductId === r.usbProductId && a.usbVendorId === r.usbVendorId);
749
768
  }).filter((i) => !this.#t(i));
750
769
  }
751
770
  async serialPortsSaved(e) {
@@ -846,58 +865,85 @@ class T extends y {
846
865
  if (!e || !i || i.length === 0) return;
847
866
  this.__internal__.serial.time_until_send_bytes && (clearTimeout(this.__internal__.serial.time_until_send_bytes), this.__internal__.serial.time_until_send_bytes = 0);
848
867
  let r = new TextDecoder().decode(i);
849
- const h = [];
868
+ const l = [];
850
869
  if (typeof e == "string") {
851
- let l;
870
+ let _;
852
871
  if (t && n)
853
- l = new RegExp(`${e}([^${e}]+)${e}`, "g");
872
+ _ = new RegExp(`${e}([^${e}]+)${e}`, "g");
854
873
  else if (t)
855
- l = new RegExp(`${e}([^${e}]*)`, "g");
874
+ _ = new RegExp(`${e}([^${e}]*)`, "g");
856
875
  else if (n)
857
- l = new RegExp(`([^${e}]+)${e}`, "g");
876
+ _ = new RegExp(`([^${e}]+)${e}`, "g");
858
877
  else
859
878
  return;
860
- let u, _ = 0;
861
- for (; (u = l.exec(r)) !== null; )
862
- h.push(new TextEncoder().encode(u[1])), _ = l.lastIndex;
863
- r = r.slice(_);
879
+ let u, c = 0;
880
+ for (; (u = _.exec(r)) !== null; )
881
+ l.push(new TextEncoder().encode(u[1])), c = _.lastIndex;
882
+ r = r.slice(c);
864
883
  } else if (e instanceof RegExp) {
865
- let l, u = 0;
884
+ let _, u = 0;
866
885
  if (t && n) {
867
- const _ = new RegExp(`${e.source}(.*?)${e.source}`, "g");
868
- for (; (l = _.exec(r)) !== null; )
869
- h.push(new TextEncoder().encode(l[1])), u = _.lastIndex;
886
+ const c = new RegExp(`${e.source}(.*?)${e.source}`, "g");
887
+ for (; (_ = c.exec(r)) !== null; )
888
+ l.push(new TextEncoder().encode(_[1])), u = c.lastIndex;
870
889
  } else if (n)
871
- for (; (l = e.exec(r)) !== null; ) {
872
- const _ = l.index, d = r.slice(u, _);
873
- h.push(new TextEncoder().encode(d)), u = e.lastIndex;
890
+ for (; (_ = e.exec(r)) !== null; ) {
891
+ const c = _.index, f = r.slice(u, c);
892
+ l.push(new TextEncoder().encode(f)), u = e.lastIndex;
874
893
  }
875
894
  else if (t) {
876
- const _ = r.split(e);
877
- _.shift();
878
- for (const d of _)
879
- h.push(new TextEncoder().encode(d));
895
+ const c = r.split(e);
896
+ c.shift();
897
+ for (const f of c)
898
+ l.push(new TextEncoder().encode(f));
880
899
  r = "";
881
900
  }
882
901
  r = r.slice(u);
883
902
  }
884
- for (const l of h)
885
- this.#r(l);
886
- const p = new TextEncoder().encode(r);
887
- this.__internal__.serial.response.buffer = p, p.length > 0 && (this.__internal__.serial.time_until_send_bytes = setTimeout(() => {
903
+ for (const _ of l)
904
+ this.#r(_);
905
+ const d = new TextEncoder().encode(r);
906
+ this.__internal__.serial.response.buffer = d, d.length > 0 && (this.__internal__.serial.time_until_send_bytes = setTimeout(() => {
888
907
  this.#r(this.__internal__.serial.response.buffer, !0), this.__internal__.serial.response.buffer = new Uint8Array(0);
889
908
  }, this.__internal__.serial.free_timeout_ms ?? 50));
890
909
  }
891
910
  async #p() {
892
911
  const e = this.__internal__.serial.port;
893
912
  if (!e || !e.readable) throw new Error("Port is not readable");
894
- const t = this.__internal__.serial.transformStream ? this.__internal__.serial.transformStream : null, n = t ? e.readable.pipeThrough(t).getReader() : e.readable.getReader();
913
+ const t = this.__internal__.serial.transformStream;
914
+ let n;
915
+ if (t) {
916
+ const i = t(), a = e.readable.getReader();
917
+ this.__internal__.serial.pumpReader = a;
918
+ const r = i.writable.getWriter();
919
+ this.__internal__.serial.pipeDone = (async () => {
920
+ try {
921
+ for (; ; ) {
922
+ const { value: l, done: d } = await a.read();
923
+ if (d) break;
924
+ await r.write(l);
925
+ }
926
+ } catch {
927
+ } finally {
928
+ try {
929
+ a.releaseLock();
930
+ } catch {
931
+ }
932
+ try {
933
+ r.releaseLock();
934
+ } catch {
935
+ }
936
+ this.__internal__.serial.pumpReader = null;
937
+ }
938
+ })(), n = i.readable.getReader();
939
+ } else
940
+ n = e.readable.getReader();
895
941
  this.__internal__.serial.reader = n;
896
942
  try {
897
943
  for (; this.__internal__.serial.keep_reading; ) {
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();
944
+ const { value: i, done: a } = await n.read();
945
+ if (a) break;
946
+ this.#c(i), t ? await this.#h() : this.__internal__.serial.response.delimited ? await this.#f() : this.__internal__.serial.response.length === null ? await this.#u() : await this.#d();
901
947
  }
902
948
  } catch (i) {
903
949
  this.serialErrors(i);
@@ -911,11 +957,11 @@ class T extends y {
911
957
  async serialConnect() {
912
958
  try {
913
959
  if (this.#o(!0), this.useSocket) {
914
- if (c.prepare(), this.__internal__.serial.last_action = "connect", this.__internal__.timeout.until_response = setTimeout(async () => {
960
+ if (h.prepare(), this.__internal__.serial.last_action = "connect", this.__internal__.timeout.until_response = setTimeout(async () => {
915
961
  await this.timeout(this.__internal__.serial.bytes_connection ?? [], "connection:start");
916
- }, this.__internal__.time.response_connection), c.isDisconnected())
962
+ }, this.__internal__.time.response_connection), h.isDisconnected())
917
963
  return;
918
- c.connectDevice(this.configDeviceSocket), this.dispatch("serial:sent", {
964
+ h.connectDevice(this.configDeviceSocket), this.dispatch("serial:sent", {
919
965
  action: "connect",
920
966
  bytes: this.__internal__.serial.bytes_connection
921
967
  });
@@ -938,12 +984,12 @@ class T extends y {
938
984
  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;
939
985
  }, t.ondisconnect = async () => {
940
986
  await n.disconnect();
941
- }, await m(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
987
+ }, await y(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
942
988
  await n.timeout(n.__internal__.serial.bytes_connection ?? [], "connection:start");
943
989
  }, this.__internal__.time.response_connection), this.__internal__.serial.last_action = "connect", await this.#n(this.__internal__.serial.bytes_connection ?? []), this.dispatch("serial:sent", {
944
990
  action: "connect",
945
991
  bytes: this.__internal__.serial.bytes_connection
946
- }), this.__internal__.auto_response && this.#r(this.__internal__.serial.auto_response), await this.#p();
992
+ }), this.__internal__.auto_response && this.#r(this.__internal__.serial.auto_response), this.__internal__.serial.input_done = this.#p(), await this.__internal__.serial.input_done;
947
993
  }
948
994
  } catch (e) {
949
995
  this.#o(!1), this.serialErrors(e);
@@ -973,7 +1019,7 @@ class T extends y {
973
1019
  bytesToHex(e) {
974
1020
  return this.add0x(Array.from(e, (t) => this.hexMaker(t)));
975
1021
  }
976
- #m() {
1022
+ #y() {
977
1023
  [
978
1024
  "serial:connected",
979
1025
  "serial:connecting",
@@ -994,7 +1040,7 @@ class T extends y {
994
1040
  this.serialRegisterAvailableListener(t);
995
1041
  });
996
1042
  }
997
- #y() {
1043
+ #m() {
998
1044
  const e = this;
999
1045
  this.on("internal:queue", async () => {
1000
1046
  await e.#b();
@@ -1015,7 +1061,7 @@ class T extends y {
1015
1061
  });
1016
1062
  }
1017
1063
  async #b() {
1018
- if (this.useSocket && c.isDisconnected())
1064
+ if (this.useSocket && h.isDisconnected())
1019
1065
  return;
1020
1066
  if (!this.#t(this.__internal__.serial.port)) {
1021
1067
  this.#e({ error: "Port is closed, not readable or writable." }), await this.serialConnect();
@@ -1038,8 +1084,8 @@ class T extends y {
1038
1084
  let i = new Uint8Array(0);
1039
1085
  try {
1040
1086
  i = this.validateBytes(this.__internal__.serial.auto_response);
1041
- } catch (o) {
1042
- this.serialErrors(o);
1087
+ } catch (a) {
1088
+ this.serialErrors(a);
1043
1089
  }
1044
1090
  this.#r(i);
1045
1091
  }
@@ -1167,8 +1213,8 @@ class T extends y {
1167
1213
  asciiToHex(e) {
1168
1214
  const t = [];
1169
1215
  for (let n = 0, i = e.length; n < i; n++) {
1170
- const o = Number(e.charCodeAt(n)).toString(16);
1171
- t.push(o);
1216
+ const a = Number(e.charCodeAt(n)).toString(16);
1217
+ t.push(a);
1172
1218
  }
1173
1219
  return t.join("");
1174
1220
  }
@@ -1176,7 +1222,7 @@ class T extends y {
1176
1222
  return this.isConnected;
1177
1223
  }
1178
1224
  }
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 || {});
1225
+ 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 || {});
1180
1226
  class w extends Error {
1181
1227
  /**
1182
1228
  * Error code identifying the type of error
@@ -1231,11 +1277,11 @@ class w extends Error {
1231
1277
  }
1232
1278
  }
1233
1279
  export {
1234
- T as Core,
1280
+ v as Core,
1235
1281
  s as Devices,
1236
- y as Dispatcher,
1282
+ m as Dispatcher,
1237
1283
  w as SerialError,
1238
1284
  E as SerialErrorCode,
1239
- c as Socket
1285
+ h as Socket
1240
1286
  };
1241
1287
  //# sourceMappingURL=webserial-core.js.map