@v5x/cli 0.0.8 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -118,7 +118,7 @@ var require_picocolors = __commonJS((exports, module) => {
118
118
  // package.json
119
119
  var package_default = {
120
120
  name: "@v5x/cli",
121
- version: "0.0.8",
121
+ version: "0.0.10",
122
122
  description: "Command line interface for v5x.",
123
123
  license: "MIT",
124
124
  type: "module",
@@ -746,13 +746,9 @@ class WebSerialPortAdapter extends EventTarget {
746
746
  this._info = info;
747
747
  }
748
748
  get readable() {
749
- if (!this._readable)
750
- throw new Error("Port not open");
751
749
  return this._readable;
752
750
  }
753
751
  get writable() {
754
- if (!this._writable)
755
- throw new Error("Port not open");
756
752
  return this._writable;
757
753
  }
758
754
  getInfo() {
@@ -2758,7 +2754,9 @@ class VexSerialConnection extends VexEventTarget {
2758
2754
  clearTimeout(callbackInfo.timeout);
2759
2755
  this.callbacksQueue.splice(tryIdx - 1, 1);
2760
2756
  } catch (e) {
2761
- console.warn("Read error.", e, cache);
2757
+ if (!(e instanceof Error && e.message === "No data")) {
2758
+ console.warn("Read error.", e, cache);
2759
+ }
2762
2760
  await this.close();
2763
2761
  break;
2764
2762
  } finally {
@@ -3717,7 +3715,6 @@ class V5SerialDevice extends VexSerialDevice {
3717
3715
  async doAfterConnect() {
3718
3716
  if (this.connection == null)
3719
3717
  return;
3720
- console.log("doAfterConnect");
3721
3718
  this.connection.on("disconnected", (_data) => {
3722
3719
  if (this.autoReconnect)
3723
3720
  this.reconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v5x/cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Command line interface for v5x.",
5
5
  "license": "MIT",
6
6
  "type": "module",