cron 2.1.0 → 2.2.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/lib/time.js +1 -1
- package/package.json +5 -5
- package/tests/crontime.test.js +1 -1
package/lib/time.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cron",
|
|
3
3
|
"description": "Cron jobs for your node",
|
|
4
|
-
"version": "2.
|
|
5
|
-
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (
|
|
4
|
+
"version": "2.2.0",
|
|
5
|
+
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)",
|
|
6
6
|
"bugs": {
|
|
7
|
-
"url": "
|
|
7
|
+
"url": "https://github.com/kelektiv/node-cron/issues"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "
|
|
11
|
+
"url": "https://github.com/kelektiv/node-cron.git"
|
|
12
12
|
},
|
|
13
13
|
"main": "lib/cron",
|
|
14
14
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "jest --coverage"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"luxon": "^
|
|
19
|
+
"luxon": "^3.2.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"chai": "~4.2.x",
|
package/tests/crontime.test.js
CHANGED
|
@@ -329,7 +329,7 @@ describe('crontime', () => {
|
|
|
329
329
|
});
|
|
330
330
|
const cronTime = new cron.CronTime('0 0 * * *');
|
|
331
331
|
const nextDate = cronTime._getNextDateFrom(currentDate, 'Asia/Amman');
|
|
332
|
-
const expectedDate = luxon.DateTime.fromISO('2018-10-26T00:00', {
|
|
332
|
+
const expectedDate = luxon.DateTime.fromISO('2018-10-26T00:00+03:00', {
|
|
333
333
|
zone: 'Asia/Amman'
|
|
334
334
|
});
|
|
335
335
|
expect(nextDate - expectedDate).toEqual(0);
|