@rvoh/psychic 1.11.0-beta.1 → 1.11.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.
@@ -41,6 +41,7 @@ const index_js_1 = __importDefault(require("../psychic-app/index.js"));
41
41
  const helpers_js_1 = require("../router/helpers.js");
42
42
  const route_manager_js_1 = __importDefault(require("./route-manager.js"));
43
43
  const types_js_1 = require("./types.js");
44
+ const ERROR_LOGGING_DEPTH = 6;
44
45
  class PsychicRouter {
45
46
  app;
46
47
  currentNamespaces = [];
@@ -297,7 +298,7 @@ suggested fix: "${(0, helpers_js_1.convertRouteParams)(path)}"
297
298
  index_js_1.default.log(node_util_1.default.inspect({
298
299
  type: 'validator',
299
300
  errors: err.errors || {},
300
- }));
301
+ }, { depth: ERROR_LOGGING_DEPTH }));
301
302
  }
302
303
  /**
303
304
  * See comment at top of this method for philosophy of 400
@@ -310,7 +311,7 @@ suggested fix: "${(0, helpers_js_1.convertRouteParams)(path)}"
310
311
  type: 'openapi',
311
312
  errors: err.errors,
312
313
  target: err.target,
313
- }));
314
+ }, { depth: ERROR_LOGGING_DEPTH }));
314
315
  }
315
316
  /**
316
317
  * See comment at top of this method for philosophy of 400
@@ -324,7 +325,7 @@ suggested fix: "${(0, helpers_js_1.convertRouteParams)(path)}"
324
325
  errors: {
325
326
  [err.paramName]: err.errorMessages,
326
327
  },
327
- }));
328
+ }, { depth: ERROR_LOGGING_DEPTH }));
328
329
  }
329
330
  /**
330
331
  * See comment at top of this method for philosophy of 400
@@ -336,7 +337,7 @@ suggested fix: "${(0, helpers_js_1.convertRouteParams)(path)}"
336
337
  index_js_1.default.log(node_util_1.default.inspect({
337
338
  type: 'validator',
338
339
  errors: err.errors,
339
- }));
340
+ }, { depth: ERROR_LOGGING_DEPTH }));
340
341
  }
341
342
  /**
342
343
  * See comment at top of this method for philosophy of 400
@@ -12,6 +12,7 @@ import PsychicApp from '../psychic-app/index.js';
12
12
  import { applyResourceAction, applyResourcesAction, convertRouteParams, lookupControllerOrFail, routePath, } from '../router/helpers.js';
13
13
  import RouteManager from './route-manager.js';
14
14
  import { ResourceMethods, ResourcesMethods, } from './types.js';
15
+ const ERROR_LOGGING_DEPTH = 6;
15
16
  export default class PsychicRouter {
16
17
  app;
17
18
  currentNamespaces = [];
@@ -268,7 +269,7 @@ suggested fix: "${convertRouteParams(path)}"
268
269
  PsychicApp.log(util.inspect({
269
270
  type: 'validator',
270
271
  errors: err.errors || {},
271
- }));
272
+ }, { depth: ERROR_LOGGING_DEPTH }));
272
273
  }
273
274
  /**
274
275
  * See comment at top of this method for philosophy of 400
@@ -281,7 +282,7 @@ suggested fix: "${convertRouteParams(path)}"
281
282
  type: 'openapi',
282
283
  errors: err.errors,
283
284
  target: err.target,
284
- }));
285
+ }, { depth: ERROR_LOGGING_DEPTH }));
285
286
  }
286
287
  /**
287
288
  * See comment at top of this method for philosophy of 400
@@ -295,7 +296,7 @@ suggested fix: "${convertRouteParams(path)}"
295
296
  errors: {
296
297
  [err.paramName]: err.errorMessages,
297
298
  },
298
- }));
299
+ }, { depth: ERROR_LOGGING_DEPTH }));
299
300
  }
300
301
  /**
301
302
  * See comment at top of this method for philosophy of 400
@@ -307,7 +308,7 @@ suggested fix: "${convertRouteParams(path)}"
307
308
  PsychicApp.log(util.inspect({
308
309
  type: 'validator',
309
310
  errors: err.errors,
310
- }));
311
+ }, { depth: ERROR_LOGGING_DEPTH }));
311
312
  }
312
313
  /**
313
314
  * See comment at top of this method for philosophy of 400
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "1.11.0-beta.1",
5
+ "version": "1.11.0",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@eslint/js": "^9.19.0",
64
64
  "@jest-mock/express": "^3.0.0",
65
- "@rvoh/dream": "^1.10.0-beta.1",
65
+ "@rvoh/dream": "^1.10.0",
66
66
  "@rvoh/dream-spec-helpers": "^1.2.1",
67
67
  "@rvoh/psychic-spec-helpers": "^1.1.3",
68
68
  "@types/express": "^5.0.1",