New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cron-converter

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-converter - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

gulpfile.js

@@ -70,3 +70,3 @@ var browserify = require('browserify');

transform: [
"browserify-shim"
'browserify-shim'
]

@@ -73,0 +73,0 @@ })

{
"name": "cron-converter",
"version": "0.0.11",
"version": "0.0.12",
"description": "Cron string converter",

@@ -11,5 +11,13 @@ "main": "src/cron.js",

"keywords": [
"cron"
"cron",
"cronjob",
"crontab",
"schedule",
"parser"
],
"author": "Rouslan Placella <rouslan@placella.com> (https://github.com/roccivic)",
"bugs": {
"url": "https://github.com/roccivic/cron-converter/issues"
},
"homepage": "https://github.com/roccivic/cron-converter#readme",
"license": "MIT",

@@ -16,0 +24,0 @@ "repository": {

@@ -205,4 +205,5 @@ 'use strict';

if (step) {
var minVal = values[0];
values = values.filter(function(value) {
return value % step === 0;
return value % step === minVal % step || value === minVal;
});

@@ -324,3 +325,3 @@ }

var haveAllValues = this.values.length === (max - min) / step + 1;
if (min - step < unit.min && max + step > unit.max && haveAllValues) {
if (min === unit.min && max + step > unit.max && haveAllValues) {
return true;

@@ -327,0 +328,0 @@ }

@@ -47,3 +47,3 @@ 'use strict';

arr,
[[5,10],[1],[1],[1],[1]]
[[1,6],[1],[1],[1],[1]]
);

@@ -53,8 +53,8 @@ arr[0] = [5];

cron.toArray(),
[[5,10],[1],[1],[1],[1]]
[[1,6],[1],[1],[1],[1]]
);
t.equal(
cron.toString(),
'5,10 1 1 1 1'
'1,6 1 1 1 1'
);
});

@@ -68,6 +68,2 @@ 'use strict';

{
string: '1-6/10 * * * *',
error: 'Empty interval value "1-6/10" for minute'
},
{
string: '5/a * * * *',

@@ -74,0 +70,0 @@ error: 'Invalid interval step value "a" for minute'

@@ -20,3 +20,3 @@ 'use strict';

cron.toString(),
'H/5 H(5-20)/5 H(3-9)/3 1-3 1-5',
'H/5 H(1-16)/5 H(3-9)/3 1-3 1-5',
'for full intervals and range intervals'

@@ -36,4 +36,4 @@ );

cron.toString(),
'H/5 H(10-16)/2 H JAN-MAR MON-FRI'
'H/5 H(9-17)/2 H JAN-MAR MON-FRI'
);
});

@@ -75,4 +75,4 @@ 'use strict';

input: '1-10/5',
arr: [5,10],
output: '5,10',
arr: [1,6],
output: '1,6',
min: 0,

@@ -79,0 +79,0 @@ max: 59

@@ -63,5 +63,5 @@ 'use strict';

schedule: '1-30/10 * * * MON-FRI',
prev: '2013-02-08T09:30:00.000Z',
prev: '2013-02-08T09:21:00.000Z',
now: '2013-02-08T09:32:00.000Z',
next: '2013-02-08T10:10:00.000Z'
next: '2013-02-08T10:01:00.000Z'
},

@@ -68,0 +68,0 @@ {

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