@vnejs/plugins.scenario.autoread 0.1.9 → 0.1.10

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.
@@ -16,7 +16,7 @@ export class Autoread extends ModuleCore {
16
16
  this.emit(this.EVENTS.SETTINGS.INIT, { name: this.SETTINGS.AUTOREAD.DELAY, value: this.PARAMS.AUTOREAD.DEFAULT_DELAY }),
17
17
  ]);
18
18
  onTry = async () => {
19
- this.emit(this.EVENTS.LOGS.EMIT, { module: this.name, value: { action: "try" } });
19
+ this.emitLog({ action: "try" });
20
20
  if (!this.shared.settings[this.SETTINGS.AUTOREAD.ENABLED] || this.disableSources.length)
21
21
  return;
22
22
  await this.waitRerender();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.scenario.autoread",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@ export class Autoread extends ModuleCore<AutoreadPluginEvents, AutoreadPluginCon
28
28
  ]);
29
29
 
30
30
  onTry = async () => {
31
- this.emit(this.EVENTS.LOGS.EMIT, { module: this.name, value: { action: "try" } });
31
+ this.emitLog({ action: "try" });
32
32
 
33
33
  if (!this.shared.settings[this.SETTINGS.AUTOREAD.ENABLED] || this.disableSources.length) return;
34
34