Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lib-task-scheduler

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-task-scheduler - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

19

dist/src/index.js

@@ -63,11 +63,14 @@ "use strict";

}
if (!config.name && _.has(task, 'name')) {
config.name = task.name;
if (!config.name) {
const taskAny = task;
if (_.isString(taskAny.name)) {
config.name = taskAny.name;
}
else if (taskAny.constructor && _.isString(taskAny.constructor.name)) {
config.name = taskAny.constructor.name;
}
else {
throw new Error('Task must be configured with a name (either through its TaskConfig, a name property, or having a named constructor)');
}
}
else if (!config.name && _.has(task, 'constructor.name')) {
config.name = task.constructor.name;
}
else if (!config.name) {
throw new Error('Task must be configured with a name (either through its TaskConfig, a name property, or having a named constructor)');
}
if (config.intervalMs <= 0) {

@@ -74,0 +77,0 @@ throw new Error('Task interval must be greater than zero.');

{
"name": "lib-task-scheduler",
"version": "1.0.15",
"version": "1.0.16",
"description": "A lightweight, modular task scheduler.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/convoyinc/lib-task-scheduler",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc