easy-cms 0.6.0 → 0.8.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/dist/bin.js
CHANGED
|
@@ -194,7 +194,7 @@ Commands:
|
|
|
194
194
|
generate:types Write TypeScript types for your collections and globals
|
|
195
195
|
create-admin Create an admin user
|
|
196
196
|
serve Run the CMS as its own server (admin + REST API)
|
|
197
|
-
run-scheduled
|
|
197
|
+
run-scheduled Run due scheduled publishes and webhook retries
|
|
198
198
|
|
|
199
199
|
Options:
|
|
200
200
|
--config <file> Config file (default: easy-cms.config.ts)
|
|
@@ -229,8 +229,8 @@ terminal, or read from EASY_CMS_ADMIN_PASSWORD when there is no terminal.
|
|
|
229
229
|
`,
|
|
230
230
|
"run-scheduled": `Usage: easy-cms run-scheduled [options]
|
|
231
231
|
|
|
232
|
-
Runs due scheduled publishes and unpublishes
|
|
233
|
-
keeps running. Servers
|
|
232
|
+
Runs due scheduled publishes and unpublishes, and retries failed webhook deliveries, once:
|
|
233
|
+
for a cron job where no server process keeps running. Servers do this every minute on their own.
|
|
234
234
|
`,
|
|
235
235
|
serve: `Usage: easy-cms serve [--port <n>] [--host <host>] [--watch] [--trust-proxy] [options]
|
|
236
236
|
|
|
@@ -296,8 +296,12 @@ async function run(argv, io = defaultIO) {
|
|
|
296
296
|
try {
|
|
297
297
|
switch (command) {
|
|
298
298
|
case "run-scheduled": {
|
|
299
|
-
const { ran, failed } = await cms.
|
|
299
|
+
const { ran, failed, webhooks } = await cms.runJobs();
|
|
300
300
|
io.out(`Ran ${ran} scheduled job(s)${failed ? `, ${failed} failed` : ""}.`);
|
|
301
|
+
if (webhooks.sent || webhooks.failed)
|
|
302
|
+
io.out(
|
|
303
|
+
`Retried webhooks: ${webhooks.sent} sent${webhooks.failed ? `, ${webhooks.failed} gave up` : ""}.`
|
|
304
|
+
);
|
|
301
305
|
return failed ? 1 : 0;
|
|
302
306
|
}
|
|
303
307
|
case "migrate": {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-cms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Command line tool for Easy CMS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"node": ">=22.12"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@easy-cms/core": "^0.
|
|
25
|
-
"@easy-cms/admin": "^0.
|
|
24
|
+
"@easy-cms/core": "^0.8.0",
|
|
25
|
+
"@easy-cms/admin": "^0.8.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@easy-cms/db-sqlite": "^0.
|
|
28
|
+
"@easy-cms/db-sqlite": "^0.8.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|