feathers-ucan 0.1.43 → 0.1.44
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/lib/env/version.d.ts +1 -1
- package/lib/index.cjs +6 -0
- package/lib/index.cjs.map +1 -1
- package/lib/index.modern.js +6 -0
- package/lib/index.modern.js.map +1 -1
- package/lib/index.umd.js +6 -0
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/env/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.44";
|
package/lib/index.cjs
CHANGED
|
@@ -1009,6 +1009,7 @@ const checkUcan = (requiredCapabilities, options) => {
|
|
|
1009
1009
|
context = setExists(context, existing);
|
|
1010
1010
|
/**perform the check*/
|
|
1011
1011
|
const idArr = Array.isArray(lpass[2]) ? lpass[2] : lpass[0] || [];
|
|
1012
|
+
if (options != null && options.log) console.log('loginPass: id paths to check', idArr);
|
|
1012
1013
|
for (const passPath of idArr || []) {
|
|
1013
1014
|
const spl = String(passPath).split('/');
|
|
1014
1015
|
if (spl[0].includes('*')) {
|
|
@@ -1031,6 +1032,11 @@ const checkUcan = (requiredCapabilities, options) => {
|
|
|
1031
1032
|
}
|
|
1032
1033
|
} else checkLogin(symbolUcan._get(existing, spl[0]), spl[1] || '_id');
|
|
1033
1034
|
}
|
|
1035
|
+
} else {
|
|
1036
|
+
if (options != null && options.log) console.log('loginPass: no existing record loaded; skipping checkLogin', {
|
|
1037
|
+
method: context.method,
|
|
1038
|
+
path: context.path
|
|
1039
|
+
});
|
|
1034
1040
|
}
|
|
1035
1041
|
if (loginOk) {
|
|
1036
1042
|
v.ok = true;
|