adonisjs-scheduler
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -0,1 +1,2 @@ | ||
import { BaseCommand } from '@adonisjs/core/build/standalone'; | ||
declare abstract class BaseSchedule { | ||
@@ -46,5 +47,5 @@ abstract type: string; | ||
items: BaseSchedule[]; | ||
command(name: string, args?: string[]): ScheduleCommand; | ||
command(name: string | typeof BaseCommand, args?: string[]): ScheduleCommand; | ||
call(callback: Function): ScheduleCallback; | ||
} | ||
export {}; |
@@ -164,3 +164,3 @@ "use strict"; | ||
command(name, args = []) { | ||
let newCommand = new ScheduleCommand(name, args); | ||
let newCommand = new ScheduleCommand(typeof name === "string" ? name : name.commandName, args); | ||
this.items.push(newCommand); | ||
@@ -167,0 +167,0 @@ return newCommand; |
{ | ||
"name": "adonisjs-scheduler", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Task scheduler for AdonisJS", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/KABBOUCHI/adonisjs-scheduler#readme", |
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
20223
423