screwdriver-queue-service 2.0.19 → 2.0.20
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-queue-service",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "Screwdriver Queue Service API",
|
|
5
5
|
"main": "app.js",
|
|
6
6
|
"directories": {
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"@hapi/good": "^9.0.1",
|
|
12
12
|
"@hapi/good-console": "^9.0.1",
|
|
13
13
|
"@hapi/good-squeeze": "^6.0.0",
|
|
14
|
-
"@hapi/hapi": "^20.1
|
|
14
|
+
"@hapi/hapi": "^20.2.1",
|
|
15
15
|
"@hapi/hoek": "^9.1.1",
|
|
16
|
-
"amqp-connection-manager": "^3.
|
|
16
|
+
"amqp-connection-manager": "^3.8.1",
|
|
17
17
|
"amqplib": "^0.8.0",
|
|
18
18
|
"blipp": "^4.0.2",
|
|
19
19
|
"circuit-fuses": "^4.0.5",
|
|
20
20
|
"config": "^1.31.0",
|
|
21
|
-
"cron-parser": "^2.
|
|
21
|
+
"cron-parser": "^4.2.1",
|
|
22
22
|
"hapi-auth-jwt2": "^10.2.0",
|
|
23
23
|
"ioredis": "^3.2.2",
|
|
24
|
-
"joi": "^17.
|
|
24
|
+
"joi": "^17.5.0",
|
|
25
25
|
"js-yaml": "^3.14.1",
|
|
26
26
|
"jsonwebtoken": "^8.5.1",
|
|
27
27
|
"laabr": "^6.1.3",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"npm-auto-version": "^1.0.0",
|
|
30
30
|
"redlock": "^4.2.0",
|
|
31
31
|
"screwdriver-aws-producer-service": "^1.1.0",
|
|
32
|
-
"screwdriver-data-schema": "^21.
|
|
32
|
+
"screwdriver-data-schema": "^21.16.0",
|
|
33
33
|
"screwdriver-executor-docker": "^5.0.2",
|
|
34
34
|
"screwdriver-executor-jenkins": "^5.0.1",
|
|
35
|
-
"screwdriver-executor-k8s": "^14.
|
|
35
|
+
"screwdriver-executor-k8s": "^14.16.0",
|
|
36
36
|
"screwdriver-executor-k8s-vm": "^4.3.2",
|
|
37
37
|
"screwdriver-executor-router": "^2.1.2",
|
|
38
38
|
"screwdriver-logger": "^1.0.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"mockery": "^2.1.0",
|
|
54
54
|
"nyc": "^15.1.0",
|
|
55
55
|
"sinon": "^9.2.4",
|
|
56
|
-
"snyk": "^1.
|
|
56
|
+
"snyk": "^1.814.0",
|
|
57
57
|
"util": "^0.12.2"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
@@ -74,12 +74,11 @@ const timeOutOfWindow = (cronExp, timeToCheck) => {
|
|
|
74
74
|
const utcDayOfWeek = timeToCheck.getUTCDay();
|
|
75
75
|
const utcMonth = timeToCheck.getUTCMonth() + 1;
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const monthField = cronObj._fields.month;
|
|
77
|
+
const minuteField = cronObj.fields.minute;
|
|
78
|
+
const hourField = cronObj.fields.hour;
|
|
79
|
+
const dayOfMonthField = cronObj.fields.dayOfMonth;
|
|
80
|
+
const dayOfWeekField = cronObj.fields.dayOfWeek;
|
|
81
|
+
const monthField = cronObj.fields.month;
|
|
83
82
|
|
|
84
83
|
const includesMinute = minuteField.includes(utcMinutes);
|
|
85
84
|
const includesHour = hourField.includes(utcHours);
|