node-schedule 1.3.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "node-schedule",
3
- "version": "1.3.3",
3
+ "version": "2.0.0",
4
4
  "description": "A cron-like and not-cron-like job scheduler for Node.",
5
5
  "keywords": [
6
6
  "schedule",
7
7
  "task",
8
8
  "job",
9
9
  "cron",
10
+ "recurrent",
10
11
  "in-memory"
11
12
  ],
12
13
  "license": "MIT",
13
- "main": "./lib/schedule.js",
14
+ "main": "index.js",
14
15
  "scripts": {
15
- "test": "nodeunit",
16
- "test:coverage": "istanbul cover ./node_modules/.bin/nodeunit test",
17
- "test:coverage-win": "istanbul cover ./node_modules/nodeunit/bin/nodeunit test",
16
+ "test": "tape test/*.js",
17
+ "test:browser": "airtap test/cancel-long-running-jobs.js test/convenience-method-test.js test/date-convenience-methods-test.js test/range-test.js test/recurrence-rule-test.js test/schedule-cron-jobs.js test/start-end-test.js",
18
+ "coveralls": "nyc report --reporter=lcov",
19
+ "test:coverage": "nyc tape test/*.js",
18
20
  "lint": "eslint lib test",
19
21
  "lint:fix": "eslint --fix lib test"
20
22
  },
@@ -34,18 +36,24 @@
34
36
  "url": "https://github.com/node-schedule/node-schedule.git"
35
37
  },
36
38
  "dependencies": {
37
- "cron-parser": "^2.18.0",
39
+ "cron-parser": "^3.1.0",
38
40
  "long-timeout": "0.1.1",
39
41
  "sorted-array-functions": "^1.3.0"
40
42
  },
41
43
  "devDependencies": {
44
+ "airtap": "^4.0.1",
42
45
  "eslint": "^7.18.0",
43
- "istanbul": "^0.4.5",
44
- "nodeunit": "~0.10.2",
45
- "sinon": "^2.4.1"
46
+ "nyc": "^15.1.0",
47
+ "sinon": "^9.2.4",
48
+ "tape": "^5.1.1"
49
+ },
50
+ "engines": {
51
+ "node": ">=6"
46
52
  },
47
53
  "files": [
54
+ "CHANGELOG.md",
48
55
  "README.md",
56
+ "UPGRADING.md",
49
57
  "LICENSE",
50
58
  "lib/*"
51
59
  ]
@@ -1,30 +0,0 @@
1
- 'use strict'
2
-
3
- var nodeVersionString = process.versions.node
4
-
5
- function getNodeVersion(nodeVersionString) {
6
- var versionSplit = nodeVersionString.split('.')
7
- return {
8
- majorVersion: Number(versionSplit[0]),
9
- minorVersion: Number(versionSplit[1])
10
- }
11
- }
12
-
13
- function arePromisesSupported(nodeVersion) {
14
- var majorVersion = nodeVersion.majorVersion
15
- var minorVersion = nodeVersion.minorVersion
16
-
17
- if (majorVersion > 0) {
18
- return true
19
- }
20
-
21
- if (minorVersion < 12) {
22
- return false
23
- }
24
-
25
- return true
26
- }
27
-
28
- module.exports.nodeVersionString = nodeVersionString;
29
- module.exports.arePromisesSupported = arePromisesSupported;
30
- module.exports.getNodeVersion = getNodeVersion;