@focus-me/focus-cli
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -6,4 +6,4 @@ /// <reference types="node" /> | ||
export declare interface Timer { | ||
on(event: 'starting', listener: () => void): this; | ||
on(event: 'started', listener: () => void): this; | ||
on(event: 'starting', listener: (until: number) => void): this; | ||
on(event: 'started', listener: (until: number) => void): this; | ||
on(event: 'tick', listener: (until: number) => void): this; | ||
@@ -10,0 +10,0 @@ on(event: 'stopping', listener: () => void): this; |
@@ -21,3 +21,3 @@ "use strict"; | ||
async start() { | ||
this.emit('starting'); | ||
this.emit('starting', this.until); | ||
const promises = this.plugins.map(({ name, plugin, config }) => plugin.start(config).catch(e => { | ||
@@ -30,3 +30,3 @@ console.error(`error starting ${name} plugin: ${e}`); | ||
catch (e) { } | ||
this.emit('started'); | ||
this.emit('started', this.until); | ||
this.state = 'STARTED'; | ||
@@ -33,0 +33,0 @@ this.intervalId = timers_1.setInterval(async () => { |
{ | ||
"name": "@focus-me/focus-cli", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"author": "Ryan Kois <ryan.kois@gmail.com>", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41239818