@laplace.live/ws 7.1.7 → 7.1.8

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.
package/dist/browser.js CHANGED
@@ -2049,11 +2049,7 @@ var Live = class extends LaplaceEventTarget {
2049
2049
  this.dispatchEvent(new LaplaceRawEvent("msg", data));
2050
2050
  const cmd = data.cmd || data.msg?.cmd;
2051
2051
  if (cmd) {
2052
- if (cmd.includes("DANMU_MSG")) {
2053
- this.dispatchEvent(new LaplaceRawEvent("DANMU_MSG", data));
2054
- } else {
2055
- this.dispatchEvent(new LaplaceRawEvent(cmd, data));
2056
- }
2052
+ this.dispatchEvent(new LaplaceRawEvent(cmd, data));
2057
2053
  }
2058
2054
  }
2059
2055
  });
package/dist/index.js CHANGED
@@ -269,11 +269,7 @@ var Live = class extends LaplaceEventTarget {
269
269
  this.dispatchEvent(new LaplaceRawEvent("msg", data));
270
270
  const cmd = data.cmd || data.msg?.cmd;
271
271
  if (cmd) {
272
- if (cmd.includes("DANMU_MSG")) {
273
- this.dispatchEvent(new LaplaceRawEvent("DANMU_MSG", data));
274
- } else {
275
- this.dispatchEvent(new LaplaceRawEvent(cmd, data));
276
- }
272
+ this.dispatchEvent(new LaplaceRawEvent(cmd, data));
277
273
  }
278
274
  }
279
275
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/ws",
3
- "version": "7.1.7",
3
+ "version": "7.1.8",
4
4
  "description": "LAPLACE Live! flavored bilibili live WebSocket/TCP API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -65,9 +65,9 @@
65
65
  "@laplace.live/internal": "^1.3.4"
66
66
  },
67
67
  "devDependencies": {
68
- "@biomejs/biome": "^2.4.6",
68
+ "@biomejs/biome": "^2.4.8",
69
69
  "@changesets/cli": "^2.30.0",
70
- "@types/bun": "^1.3.10",
70
+ "@types/bun": "^1.3.11",
71
71
  "playwright": "^1.58.2",
72
72
  "tsup": "^8.5.1",
73
73
  "typescript": "^5.9.3"