easy-cms 0.19.0 → 0.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/dist/bin.js
CHANGED
|
@@ -203,7 +203,7 @@ Commands:
|
|
|
203
203
|
generate:types Write TypeScript types for your collections and globals
|
|
204
204
|
create-admin Create an admin user
|
|
205
205
|
serve Run the CMS as its own server (admin + REST API)
|
|
206
|
-
run-scheduled Run due scheduled publishes and
|
|
206
|
+
run-scheduled Run due scheduled publishes, webhook and email retries
|
|
207
207
|
backup <file> Copy a SQLite database to a file while the CMS runs
|
|
208
208
|
copy --from <config> Copy all content from another config's database into this one
|
|
209
209
|
|
|
@@ -350,12 +350,16 @@ async function run(argv, io = defaultIO) {
|
|
|
350
350
|
return 0;
|
|
351
351
|
}
|
|
352
352
|
case "run-scheduled": {
|
|
353
|
-
const { ran, failed, webhooks } = await cms.runJobs();
|
|
353
|
+
const { ran, failed, webhooks, emails } = await cms.runJobs();
|
|
354
354
|
io.out(`Ran ${ran} scheduled job(s)${failed ? `, ${failed} failed` : ""}.`);
|
|
355
355
|
if (webhooks.sent || webhooks.failed)
|
|
356
356
|
io.out(
|
|
357
357
|
`Retried webhooks: ${webhooks.sent} sent${webhooks.failed ? `, ${webhooks.failed} gave up` : ""}.`
|
|
358
358
|
);
|
|
359
|
+
if (emails.sent || emails.failed)
|
|
360
|
+
io.out(
|
|
361
|
+
`Retried emails: ${emails.sent} sent${emails.failed ? `, ${emails.failed} gave up` : ""}.`
|
|
362
|
+
);
|
|
359
363
|
return failed ? 1 : 0;
|
|
360
364
|
}
|
|
361
365
|
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.20.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.20.0",
|
|
25
|
+
"@easy-cms/admin": "^0.20.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@easy-cms/db-sqlite": "^0.
|
|
28
|
+
"@easy-cms/db-sqlite": "^0.20.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|