Comparing version 3.5.45 to 3.5.46
{ | ||
"name": "clues", | ||
"version": "3.5.37", | ||
"version": "3.5.45", | ||
"main": "clues.js", | ||
@@ -5,0 +5,0 @@ "scripts": [ |
@@ -64,3 +64,4 @@ (function(self) { | ||
fullref = (fullref ? fullref+'.' : '')+ref; | ||
var separator = fullref && fullref[fullref.length-1] !== '(' && '.' || ''; | ||
fullref = (fullref ? fullref+separator : '')+ref; | ||
fn = logic ? logic[ref] : undefined; | ||
@@ -136,3 +137,3 @@ if (fn === undefined) { | ||
return res || clues(logic,arg,$global,ref || 'fn',fullref) | ||
return res || clues(logic,arg,$global,ref || 'fn',fullref+'(') | ||
.then(null,function(e) { | ||
@@ -139,0 +140,0 @@ if (optional) return (showError) ? e : undefined; |
{ | ||
"name": "clues", | ||
"version": "3.5.45", | ||
"version": "3.5.46", | ||
"description": "Lightweight logic tree solver using promises.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -82,3 +82,3 @@ const clues = require('../clues'); | ||
t.same(e.caller,'hash','caller is hash'); | ||
t.same(e.fullref,'info.public.hash.userid','fullref'); | ||
t.same(e.fullref,'info(public(hash(userid','fullref'); | ||
}); | ||
@@ -85,0 +85,0 @@ }); |
@@ -36,3 +36,3 @@ const clues = require('../clues'); | ||
t.same(await clues(facts,'a.b.fullref'),'a.b.fullref','direct call shows fullref'); | ||
t.same(await clues(facts,'fullref'),'fullref.a.b.fullref','indirect call shows fullref'); | ||
t.same(await clues(facts,'fullref'),'fullref(.a.b.fullref','indirect call shows fullref'); | ||
@@ -39,0 +39,0 @@ const o = facts(); |
@@ -135,3 +135,3 @@ const clues = require('../clues'); | ||
t.ok($global.error.stack,'contains a stack'); | ||
t.same($global.error.fullref,'optional.stack_error','fullref ok'); | ||
t.same($global.error.fullref,'optional(stack_error','fullref ok'); | ||
}); | ||
@@ -138,0 +138,0 @@ |
@@ -53,3 +53,3 @@ const clues = require('../clues'); | ||
t.same(d.message,'#Error'); | ||
t.same(d.fullref,'showerror.error'); | ||
t.same(d.fullref,'showerror(error'); | ||
t.same(d.ref,'error'); | ||
@@ -56,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100651
1780
37