@stonyx/cron 0.2.1-alpha.56 → 0.2.1-alpha.57

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.
Files changed (2) hide show
  1. package/dist/service.js +7 -0
  2. package/package.json +1 -1
package/dist/service.js CHANGED
@@ -65,6 +65,13 @@ function forLog(value, maxLength) {
65
65
  * reject instead of returning an `ExecuteResult`: a contract violation in the
66
66
  * function written to prevent exactly that. Reading and coercing `message`
67
67
  * inside the `try` is what closes it.
68
+ *
69
+ * `Cron` in `main.ts` carries its own `describeError` and the two deliberately
70
+ * differ: it renders for a log line only, so it prefers `err.stack`; this one
71
+ * is also returned to the caller as `ExecuteResult.error` and persisted in a
72
+ * per-job run log, where a stack would be an unbounded blob in every stored
73
+ * failure. Recorded in `docs/architecture.md` under Error Handling — do not
74
+ * merge them into a shared helper without reading that first.
68
75
  */
69
76
  function describeError(err) {
70
77
  try {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "keywords": [
4
4
  "stonyx-module"
5
5
  ],
6
- "version": "0.2.1-alpha.56",
6
+ "version": "0.2.1-alpha.57",
7
7
  "description": "Cron/job scheduler for Stonyx framework",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",