@r2d2bzh/moleculer-authz-helpers 2.0.4 → 2.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2d2bzh/moleculer-authz-helpers",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Moleculer mixin to implement preflight runner",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,3 +1,5 @@
1
+ import { inspect } from 'node:util';
2
+
1
3
  const removeUnanswered = (authzAnswers) => authzAnswers.filter((answer) => answer !== undefined);
2
4
 
3
5
  const reduceAnswers = (answers, reducer) => {
@@ -51,7 +53,7 @@ const processAndCountAnswer = (warn) => {
51
53
  return [false, authorizationsCount];
52
54
  }
53
55
  default: {
54
- warn(`odd authorization answer`, { answer });
56
+ warn(`odd authorization answer`, inspect(answer, { compact: true, depth: 5 }));
55
57
  return [false, authorizationsCount];
56
58
  }
57
59
  }