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.
@@ -1 +1 @@
1
- export declare const VERSION = "0.1.43";
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;