@ossy/platform 3.19.0 → 3.20.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 +8 -8
- package/src/tasks/cron.js +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/platform",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "Ossy application server runtime",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"@aws-sdk/util-format-url": "^3.972.17",
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
50
50
|
"@ossy/config": "^3.0.9",
|
|
51
|
-
"@ossy/event-store": "^3.
|
|
51
|
+
"@ossy/event-store": "^3.20.0",
|
|
52
52
|
"@ossy/locale": "^3.4.0",
|
|
53
|
-
"@ossy/manifest": "^3.
|
|
53
|
+
"@ossy/manifest": "^3.20.0",
|
|
54
54
|
"@ossy/observability": "^3.0.9",
|
|
55
55
|
"@ossy/policies": "^3.0.9",
|
|
56
56
|
"@ossy/router": "^3.0.9",
|
|
57
|
-
"@ossy/schema": "^3.
|
|
58
|
-
"@ossy/sdk": "^3.
|
|
57
|
+
"@ossy/schema": "^3.20.0",
|
|
58
|
+
"@ossy/sdk": "^3.20.0",
|
|
59
59
|
"@ossy/tokens": "^3.11.1",
|
|
60
|
-
"@ossy/users": "^3.
|
|
61
|
-
"@ossy/workspaces": "^3.
|
|
60
|
+
"@ossy/users": "^3.20.0",
|
|
61
|
+
"@ossy/workspaces": "^3.20.0",
|
|
62
62
|
"cookie-parser": "^1.4.7",
|
|
63
63
|
"dotenv": ">=16.0.0 <18.0.0",
|
|
64
64
|
"express": ">=5.0.0 <6.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"Dockerfile",
|
|
80
80
|
"docker-healthcheck.js"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "edab6a966f41c07a68bdd86f3864cc2ad02e3406"
|
|
83
83
|
}
|
package/src/tasks/cron.js
CHANGED
|
@@ -76,10 +76,15 @@ export function matchesCron(expression, date = new Date()) {
|
|
|
76
76
|
const month = date.getMonth() + 1 // 1–12
|
|
77
77
|
const dow = date.getDay() // 0–6 (0=Sunday)
|
|
78
78
|
|
|
79
|
+
// Special: L in dom field means last day of the month
|
|
80
|
+
const domMatches = domF === 'L'
|
|
81
|
+
? dom === new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate()
|
|
82
|
+
: matchField(domF, dom, 1, 31)
|
|
83
|
+
|
|
79
84
|
return (
|
|
80
85
|
matchField(minuteF, minute, 0, 59) &&
|
|
81
86
|
matchField(hourF, hour, 0, 23) &&
|
|
82
|
-
|
|
87
|
+
domMatches &&
|
|
83
88
|
matchField(monthF, month, 1, 12) &&
|
|
84
89
|
matchField(dowF, dow, 0, 6)
|
|
85
90
|
)
|