@dan-uni/dan-any 0.6.8 → 0.6.9

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/index.js CHANGED
@@ -612,7 +612,7 @@ class UniDM {
612
612
  };
613
613
  }
614
614
  static fromDDplay(args, episodeId, domain = platform_PlatformDanmakuOnlySource.DanDanPlay) {
615
- const SOID = id_gen_UniID.fromUnknown(`def::${episodeId}`, domain);
615
+ const SOID = id_gen_UniID.fromUnknown(`def_${platform_PlatformDanmakuOnlySource.DanDanPlay}+${episodeId}`, domain);
616
616
  return this.create({
617
617
  ...args,
618
618
  SOID: SOID.toString(),
@@ -23582,7 +23582,7 @@ and limitations under the License.
23582
23582
  };
23583
23583
  }
23584
23584
  static fromDDplay(args, episodeId, domain = platform_PlatformDanmakuOnlySource.DanDanPlay) {
23585
- const SOID = id_gen_UniID.fromUnknown(`def::${episodeId}`, domain);
23585
+ const SOID = id_gen_UniID.fromUnknown(`def_${platform_PlatformDanmakuOnlySource.DanDanPlay}+${episodeId}`, domain);
23586
23586
  return this.create({
23587
23587
  ...args,
23588
23588
  SOID: SOID.toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dan-uni/dan-any",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "A danmaku transformer lib, supporting danmaku from different platforms.",
5
5
  "keywords": [
6
6
  "bangumi",
@@ -931,7 +931,10 @@ export class UniDM {
931
931
  episodeId: string,
932
932
  domain = PlatformDanmakuOnlySource.DanDanPlay,
933
933
  ) {
934
- const SOID = ID.fromUnknown(`def::${episodeId}`, domain)
934
+ const SOID = ID.fromUnknown(
935
+ `def_${PlatformDanmakuOnlySource.DanDanPlay}+${episodeId}`,
936
+ domain,
937
+ )
935
938
  return this.create({
936
939
  ...args,
937
940
  SOID: SOID.toString(),