@lowdefy/api 0.0.0-experimental-20260710073520 → 0.0.0-experimental-20260713085736

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.
@@ -73,9 +73,9 @@ function getAuthConfig({ appMeta, authJson, dev, logger, plugins, secrets }) {
73
73
  authConfig,
74
74
  dev
75
75
  });
76
- // Auth.js v5 reads AUTH_SECRET from env but not NEXTAUTH_SECRET — map the
77
- // v4 variable here so existing deployments keep working without env changes.
78
- authConfigCache.secret = process.env.AUTH_SECRET ?? process.env.NEXTAUTH_SECRET;
76
+ // Auth.js v5 reads AUTH_SECRET; the v4 NEXTAUTH_SECRET variable is not
77
+ // supported — deployments must rename it (see the v5-to-v6 migration doc).
78
+ authConfigCache.secret = process.env.AUTH_SECRET;
79
79
  // Self-hosted servers run behind arbitrary proxies; derive URLs from request
80
80
  // headers (v4 derived them from NEXTAUTH_URL, aliased to AUTH_URL at startup).
81
81
  authConfigCache.trustHost = true;
@@ -37,9 +37,11 @@ async function controlReject(context, routineContext, { control }) {
37
37
  cause,
38
38
  isReject: true
39
39
  });
40
+ // Log under `err` — see controlThrow: only the `err` key runs the pino error
41
+ // serializer, so `error` would drop the message from the log line.
40
42
  context.logger.warn({
41
43
  event: 'warn_control_reject',
42
- error
44
+ err: error
43
45
  });
44
46
  return {
45
47
  status: 'reject',
@@ -36,9 +36,12 @@ async function controlThrow(context, routineContext, { control }) {
36
36
  const error = new UserError(message, {
37
37
  cause
38
38
  });
39
+ // Log under `err` — the pino error serializer (createNodeLogger) is registered
40
+ // for the `err` key only; an Error passed as `error` is JSON-dumped without its
41
+ // non-enumerable `message`/`stack`, producing a log line with no message.
39
42
  context.logger.error({
40
43
  event: 'error_control_throw',
41
- error
44
+ err: error
42
45
  });
43
46
  return {
44
47
  status: 'error',
@@ -51,10 +51,12 @@ async function handleValidateSchema(context, routineContext, { step }) {
51
51
  const error = new Error(buildErrorMessage(result.errors, step.stepId), {
52
52
  cause: result.errors
53
53
  });
54
+ // Log under `err` — see controlThrow: only the `err` key runs the pino error
55
+ // serializer, so `error` would drop the message from the log line.
54
56
  logger.error({
55
57
  event: 'error_validate_schema',
56
58
  stepId: step.stepId,
57
- error
59
+ err: error
58
60
  });
59
61
  return {
60
62
  status: 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/api",
3
- "version": "0.0.0-experimental-20260710073520",
3
+ "version": "0.0.0-experimental-20260713085736",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -34,14 +34,14 @@
34
34
  "dist/*"
35
35
  ],
36
36
  "dependencies": {
37
- "@lowdefy/ajv": "0.0.0-experimental-20260710073520",
38
- "@lowdefy/build": "0.0.0-experimental-20260710073520",
39
- "@lowdefy/errors": "0.0.0-experimental-20260710073520",
40
- "@lowdefy/helpers": "0.0.0-experimental-20260710073520",
41
- "@lowdefy/node-utils": "0.0.0-experimental-20260710073520",
42
- "@lowdefy/nunjucks": "0.0.0-experimental-20260710073520",
43
- "@lowdefy/operators": "0.0.0-experimental-20260710073520",
44
- "@lowdefy/operators-js": "0.0.0-experimental-20260710073520"
37
+ "@lowdefy/ajv": "0.0.0-experimental-20260713085736",
38
+ "@lowdefy/build": "0.0.0-experimental-20260713085736",
39
+ "@lowdefy/errors": "0.0.0-experimental-20260713085736",
40
+ "@lowdefy/helpers": "0.0.0-experimental-20260713085736",
41
+ "@lowdefy/node-utils": "0.0.0-experimental-20260713085736",
42
+ "@lowdefy/nunjucks": "0.0.0-experimental-20260713085736",
43
+ "@lowdefy/operators": "0.0.0-experimental-20260713085736",
44
+ "@lowdefy/operators-js": "0.0.0-experimental-20260713085736"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@jest/globals": "28.1.3",