capacitor-mobilecron 0.2.19 → 0.2.20

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": "capacitor-mobilecron",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "Capacitor scheduling primitive that emits job due events across web, Android, and iOS",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -16,7 +16,10 @@ export interface MobileCronPlugin {
16
16
  addListener(event: 'jobSkipped', handler: (data: JobSkippedEvent) => void): Promise<PluginListenerHandle>
17
17
  addListener(event: 'overdueJobs', handler: (data: OverdueEvent) => void): Promise<PluginListenerHandle>
18
18
  addListener(event: 'statusChanged', handler: (data: CronStatus) => void): Promise<PluginListenerHandle>
19
- addListener(event: 'nativeWake', handler: (data: { source: WakeSource; paused?: boolean }) => void): Promise<PluginListenerHandle>
19
+ addListener(
20
+ event: 'nativeWake',
21
+ handler: (data: { source: WakeSource; paused?: boolean }) => void,
22
+ ): Promise<PluginListenerHandle>
20
23
 
21
24
  // E2E test hooks (not for production use)
22
25
  testNativeEvaluate(): Promise<{ firedCount: number }>
package/src/web.ts CHANGED
@@ -78,7 +78,7 @@ export class MobileCronWeb extends WebPlugin implements MobileCronPlugin {
78
78
  async addListener(event: 'statusChanged', handler: (data: CronStatus) => void): Promise<PluginListenerHandle>
79
79
  async addListener(
80
80
  event: 'nativeWake',
81
- handler: (data: { source: WakeSource; paused?: boolean }) => void
81
+ handler: (data: { source: WakeSource; paused?: boolean }) => void,
82
82
  ): Promise<PluginListenerHandle>
83
83
  async addListener(eventName: string, listenerFunc: (data: any) => void): Promise<PluginListenerHandle> {
84
84
  return super.addListener(eventName, listenerFunc)