Comparing version 3.3.11 to 3.3.13
{ | ||
"name": "clues", | ||
"version": "3.3.11", | ||
"version": "3.3.13", | ||
"main": "clues.js", | ||
@@ -5,0 +5,0 @@ "scripts": [ |
@@ -38,3 +38,3 @@ (function(self) { | ||
var dot = ref.search(/ᐅ|\./); | ||
if (dot > -1 && logic[ref] === undefined) { | ||
if (dot > -1 && (!logic || logic[ref] === undefined)) { | ||
var next = ref.slice(0,dot); | ||
@@ -56,5 +56,5 @@ return clues(logic,next,$global,caller,fullref) | ||
fullref = (fullref ? fullref+'.' : '')+ref; | ||
fn = logic[ref]; | ||
fn = logic ? logic[ref] : undefined; | ||
if (fn === undefined) { | ||
if (typeof(logic) === 'object' && Object.getPrototypeOf(logic)[ref] !== undefined) | ||
if (typeof(logic) === 'object' && logic !== null && (Object.getPrototypeOf(logic) || {})[ref] !== undefined) | ||
fn = Object.getPrototypeOf(logic)[ref]; | ||
@@ -124,3 +124,3 @@ else if ($global[ref] && caller && caller !== '__user__') | ||
.then(function(args) { | ||
return fn.apply(logic, args); | ||
return fn.apply(logic || {}, args); | ||
}) | ||
@@ -127,0 +127,0 @@ .then(function(d) { |
{ | ||
"name": "clues", | ||
"version": "3.3.11", | ||
"version": "3.3.13", | ||
"description": "Lightweight logic tree solver using promises.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
78505
26
1467