@dan-uni/dan-any-plugin-detaolu 1.4.0 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dan-uni/dan-any-plugin-detaolu",
3
- "version": "1.4.0",
3
+ "version": "1.4.8",
4
4
  "description": "A filter, dedupe and anti-spam plugin of dan-any, a danmaku transformer lib, based on pakku.js.",
5
5
  "author": "rinne",
6
6
  "license": "GPL-3.0-or-later",
package/src/index.ts CHANGED
@@ -29,21 +29,21 @@ async function detaolu(that: UniPool, config?: DeTaoLuConfig) {
29
29
  }
30
30
  const progess = pool.dans.map((d) => d.progress)
31
31
  return UniDM.create({
32
- SOID: pool.shared.SOID ?? pool.dans[0].SOID,
32
+ SOID: pool.getShared('SOID') ?? pool.dans[0].SOID,
33
33
  progress: dans[0].danuni_dan.progress,
34
34
  mode:
35
- pool.shared.mode ??
35
+ pool.getShared('mode') ??
36
36
  (isAllBottomMode(pool)
37
37
  ? UniDMTools.Modes.Bottom
38
38
  : UniDMTools.Modes.Top),
39
39
  fontsize: dans.length > 0 ? 36 : 25,
40
- color: pool.shared.color ?? pool.most.color,
40
+ color: pool.getShared('color') ?? pool.getMost('color').val,
41
41
  senderID: 'detaolu[bot]@dan-any',
42
42
  content: p.chosen_str,
43
43
  weight: 10,
44
- pool: pool.shared.pool ?? pool.most.pool,
44
+ pool: pool.getShared('pool') ?? pool.getMost('pool').val,
45
45
  attr: [UniDMTools.DMAttr.Protect],
46
- platform: pool.shared.platform ?? pool.most.platform,
46
+ platform: pool.getShared('platform') ?? pool.getMost('platform').val,
47
47
  extra: {
48
48
  danuni: {
49
49
  merge: {
@@ -17,7 +17,6 @@
17
17
  /* eslint-disable one-var */
18
18
  /* eslint-disable import/no-mutable-exports */
19
19
  /* eslint-disable no-var */
20
- /* eslint-disable prettier/prettier */
21
20
 
22
21
  /** @nocollapse */ var Module = function (moduleArg = {}) {
23
22
  var moduleRtn
@@ -1 +1 @@
1
- {"version":"6.0.2"}
1
+ {"version":"6.0.3"}