@basmilius/apple-companion-link 0.0.98 → 0.0.100

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 +3 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -476,6 +476,9 @@ class CompanionLink {
476
476
  });
477
477
  }
478
478
  async _unsubscribe(event, fn) {
479
+ if (!this.socket.isConnected) {
480
+ return;
481
+ }
479
482
  if (fn) {
480
483
  this.#socket.off(event, fn);
481
484
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@basmilius/apple-companion-link",
3
3
  "description": "Implementation of Apple's Companion Link in Node.js.",
4
- "version": "0.0.98",
4
+ "version": "0.0.100",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -40,8 +40,8 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@basmilius/apple-common": "0.0.98",
44
- "@basmilius/apple-encoding": "0.0.98"
43
+ "@basmilius/apple-common": "0.0.100",
44
+ "@basmilius/apple-encoding": "0.0.100"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@basmilius/tools": "^2.23.0",