@r2d2bzh/moleculer-authz-helpers 2.0.3 → 2.0.4
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 +1 -1
- package/src/is-authorized.js +2 -2
package/package.json
CHANGED
package/src/is-authorized.js
CHANGED
|
@@ -25,7 +25,7 @@ const onMultipleAuthorizations =
|
|
|
25
25
|
|
|
26
26
|
const processAndCountManyAnswers = (warn) => {
|
|
27
27
|
const warnOnMultipleAuthorizations = onMultipleAuthorizations((authorizationsCount) =>
|
|
28
|
-
warn(`multiple answers to the same authorization request
|
|
28
|
+
warn(`multiple answers to the same authorization request`, { authorizationsCount })
|
|
29
29
|
);
|
|
30
30
|
return (answers, authorizationStatus) => {
|
|
31
31
|
const newRequestIsAuthorized = warnOnMultipleAuthorizations(
|
|
@@ -51,7 +51,7 @@ const processAndCountAnswer = (warn) => {
|
|
|
51
51
|
return [false, authorizationsCount];
|
|
52
52
|
}
|
|
53
53
|
default: {
|
|
54
|
-
warn(`odd authorization answer
|
|
54
|
+
warn(`odd authorization answer`, { answer });
|
|
55
55
|
return [false, authorizationsCount];
|
|
56
56
|
}
|
|
57
57
|
}
|