diff --git a/index.ts b/index.ts index 9e936fc..83d02f2 100644 --- a/index.ts +++ b/index.ts @@ -120,7 +120,7 @@ parseCron.nextDate = function(exp: string | CronSchedule, from = new Date()): Da const date: CronDate = { years: from.getUTCFullYear(), - // For whatever reason, months are numbered from 0 to 11... + // For whatever reason, UTC months are numbered from 0 to 11... months: from.getUTCMonth() + 1, days: from.getUTCDate(), hours: from.getUTCHours(), diff --git a/package-lock.json b/package-lock.json index e6c2095..b23b9b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "mi-cron", + "version": "1.0.0", "lockfileVersion": 1, + "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.10.4", @@ -1217,9 +1219,9 @@ "dev": true }, "eslint": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.9.0.tgz", - "integrity": "sha512-V6QyhX21+uXp4T+3nrNfI3hQNBDa/P8ga7LoQOenwrlEFXrEnUEE+ok1dMtaS3b6rmLXhT1TkTIsG75HMLbknA==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.10.0.tgz", + "integrity": "sha512-BDVffmqWl7JJXqCjAK6lWtcQThZB/aP1HXSH1JKwGwv0LQEdvpR7qzNrUT487RM39B5goWuboFad5ovMBmD8yA==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -1230,7 +1232,7 @@ "debug": "^4.0.1", "doctrine": "^3.0.0", "enquirer": "^2.3.5", - "eslint-scope": "^5.1.0", + "eslint-scope": "^5.1.1", "eslint-utils": "^2.1.0", "eslint-visitor-keys": "^1.3.0", "espree": "^7.3.0", diff --git a/package.json b/package.json index 37ee6a3..63c3657 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,31 @@ { + "name": "mi-cron", + "description": "A microscopic parser for standard cron expressions.", + "version": "1.0.0", + "license": "ISC", + "repository": { + "type": "git", + "url": "git+https://github.com/cheap-glitch/mi-cron.git" + }, + "bugs": { + "url": "https://github.com/cheap-glitch/mi-cron/issues" + }, + "author": "cheap glitch (https://github.com/cheap-glitch)", + "homepage": "https://github.com/cheap-glitch/mi-cron#readme", + "keywords": [ + "cron", + "cron-expression", + "crontable", + "parser" + ], + "main": "index.min.js", + "directories": { + "test": "test" + }, "scripts": { "build": "npm run build:ts && npm run build:minify", - "build:ts": "tsc", "build:minify": "terser --compress --mangle toplevel --comments '/^!/' --output index.min.js -- index.js", + "build:ts": "tsc", "coverage": "nyc npm test", "coverage:report": "npm run coverage && nyc report --reporter=text-lcov | codecov --pipe --disable=gcov", "lint": "eslint . --ext .ts", @@ -13,7 +36,7 @@ "@typescript-eslint/eslint-plugin": "^4.2.0", "@typescript-eslint/parser": "^4.2.0", "chai": "^4.2.0", - "eslint": "^7.9.0", + "eslint": "^7.10.0", "mocha": "^8.1.3", "nodemon": "^2.0.4", "nyc": "^15.1.0",