Huge News!Announcing our $40M Series B led by Abstract Ventures.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 1.0.0 to 1.0.1

.github/workflows/build.yml

8

package.json
{
"name": "cron-converter",
"version": "1.0.0",
"version": "1.0.1",
"description": "Cron string converter",

@@ -17,3 +17,2 @@ "main": "src/cron.js",

"clean-temp": "rm -rf temp",
"coveralls": "cat coverage/lcov.info | coveralls",
"watch": "nodemon -w src -w test -x yarn test",

@@ -43,8 +42,7 @@ "zuul": "zuul -- test/*.js",

"browserify-shim": "^3.8.14",
"coveralls": "^3.0.6",
"isparta": "^4.1.1",
"jscs": "^3.0.7",
"jshint": "~2",
"nyc": "^14.1.1",
"tape": "^4.11.0",
"nyc": "~15",
"tape": "~5",
"uglify-js": "^3.6.0",

@@ -51,0 +49,0 @@ "zuul": "^3.12.0"

@@ -5,12 +5,12 @@ # cron-converter

[![MIT License Badge](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/roccivic/cron-converter/blob/master/LICENCE.txt)
[![npm](https://img.shields.io/npm/v/cron-converter.svg)](https://www.npmjs.com/package/cron-converter)
![Bower](https://img.shields.io/bower/v/cron-converter.svg)
[![Build Status](https://travis-ci.org/roccivic/cron-converter.svg?branch=master)](https://travis-ci.org/roccivic/cron-converter)
[![npm version](https://badge.fury.io/js/cron-converter.svg)](https://badge.fury.io/js/cron-converter)
[![Bower version](https://badge.fury.io/bo/cron-converter.svg)](https://badge.fury.io/bo/cron-converter)
[![Build status](https://github.com/roccivic/cron-converter/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/roccivic/cron-converter/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/roccivic/cron-converter/badge.svg?branch=master&service=github)](https://coveralls.io/github/roccivic/cron-converter?branch=master)
[![Dependency Status](https://david-dm.org/roccivic/cron-converter.svg)](https://david-dm.org/roccivic/cron-converter)
[![dependencies Status](https://status.david-dm.org/gh/roccivic/cron-converter.svg)](https://david-dm.org/roccivic/cron-converter)
## Install
#### Npm
### Npm
```bash

@@ -24,3 +24,3 @@ yarn add cron-converter

#### Bower
### Bower
```bash

@@ -27,0 +27,0 @@ bower install cron-converter --save

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

var maxValue = parseInt(subparts[1], 10);
if (maxValue <= minValue) {
if (maxValue < minValue) {
this.throw(

@@ -166,0 +166,0 @@ 'Max range is less than min range in "%s"',

@@ -40,1 +40,10 @@ 'use strict';

});
test('Should output correct string when min and max range values are the same',
function(t) {
var cron = new Cron({
outputWeekdayNames: true
});
t.plan(1);
cron.fromString('* * * * 1-1');
t.equal(cron.toString(), '* * * * MON');
});

@@ -107,3 +107,10 @@ 'use strict';

max: 59
}
},
{
input: '1-1',
arr: [1],
output: '1',
min: 1,
max: 5
},
];

@@ -110,0 +117,0 @@ test('Should parse valid string', function(t) {

@@ -78,2 +78,8 @@ 'use strict';

next: '2013-02-08T09:30:00.000Z'
},
{
schedule: '* 6 * * 1-1',
prev: '2013-02-04T06:59:00.000Z',
now: '2013-02-08T09:32:15.000Z',
next: '2013-02-11T06:00:00.000Z'
}

@@ -80,0 +86,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