@dan-uni/dan-any 0.0.2 → 0.0.5

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/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## 0.0.5 (2025-01-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * **dan-any:** add `.assign()` method to help merge dans ([d7c7a86](https://github.com/ani-uni/danuni/commit/d7c7a86dd6363051083cadae2ef775fcd0c93275))
7
+
8
+
9
+
package/dist/index.d.ts CHANGED
@@ -41,9 +41,13 @@ export interface DM_JSON_DDPlay {
41
41
  m: string;
42
42
  }[];
43
43
  }
44
+ export type DM_format = 'danuni.json' | 'danuni.bin' | 'danuni.pb.zst' | 'bili.xml' | 'bili.bin' | 'bili.cmd.bin' | 'dplayer.json' | 'artplayer.json' | 'ddplay.json';
44
45
  export declare class UniPool {
45
46
  dans: UniDM[];
46
47
  constructor(dans: UniDM[]);
48
+ static create(): UniPool;
49
+ assign(dans: UniPool | UniDM | UniDM[]): UniPool;
50
+ convert2(format: DM_format): string | Uint8Array<ArrayBufferLike> | DM_JSON_Dplayer | DM_JSON_DDPlay | DM_JSON_Artplayer[];
47
51
  static fromPb(bin: Uint8Array | ArrayBuffer): UniPool;
48
52
  /**
49
53
  * 转为 protobuf 二进制