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

croner

Package Overview
Dependencies
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croner - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

6

lib/croner.js

@@ -202,2 +202,7 @@

var self = this;
// Optional 'new' keyword
if (!(this instanceof Cron)) {
return new Cron(pattern);
}

@@ -408,2 +413,3 @@ self.pattern = pattern;

}
}).call(this);

2

package.json
{
"name": "croner",
"version": "1.0.6",
"version": "1.0.7",
"description": "Isomorphic JavaScript cron parser and scheduler.",

@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>",

@@ -30,2 +30,20 @@ /*

describe('Module', function () {
it('new cron(...) should not throw', function () {
(function(){
var scheduler = new cron('* * * * * *'),
nextRun = scheduler.next();
}).should.not.throw();
});
it('cron(...) without `new` should not throw', function () {
(function(){
var scheduler = cron('* * * * * *'),
nextRun = scheduler.next();
}).should.not.throw();
});
});
describe('Parser', function () {

@@ -32,0 +50,0 @@

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