dimsum-chat 0.1.6 → 0.1.7

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.
@@ -424,6 +424,11 @@ class w {
424
424
  getCachedValue(t, i) {
425
425
  return this._cachedValues[t] || (this._cachedValues[t] = i()), this._cachedValues[t];
426
426
  }
427
+ /**
428
+ * 消息所属直播平台.
429
+ *
430
+ * @see {@link https://dimsum.chat/zh/api/parser.html#parser-platform}
431
+ */
427
432
  get platform() {
428
433
  const t = /^Webcast[A-Z][a-zA-Z]*Message$/, i = /^(Common|Acfun)(Action|State)Signal[A-Z][a-zA-Z]*/;
429
434
  if ("cmd" in this.rawContent && typeof this.rawContent.cmd == "string")
package/dist/parser.d.ts CHANGED
@@ -8,6 +8,11 @@ declare class Parser {
8
8
  content: any;
9
9
  });
10
10
  private getCachedValue;
11
+ /**
12
+ * 消息所属直播平台.
13
+ *
14
+ * @see {@link https://dimsum.chat/zh/api/parser.html#parser-platform}
15
+ */
11
16
  get platform(): "acfun" | "openblive" | "bilibili" | "douyin" | undefined;
12
17
  get type(): MessageType;
13
18
  get userName(): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dimsum-chat",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "This is a simple utility package for DimSum Chat developer.",
5
5
  "author": "Miego Live",
6
6
  "license": "MIT",