Comparing version 1.3.0 to 1.4.0
@@ -90,7 +90,11 @@ module.exports = createTriggerLoader | ||
} | ||
var possibleValues = cond.action.equal | ||
if (!Array.isArray(possibleValues)) { | ||
possibleValues = [ possibleValues ] | ||
if (cond.action.equal) { | ||
var possibleValues = cond.action.equal | ||
if (!Array.isArray(possibleValues)) { | ||
possibleValues = [ possibleValues ] | ||
} | ||
evCb(possibleValues.indexOf(result) > -1) | ||
} else if (cond.action.lessThan) { | ||
evCb(parseInt(result, 10) < cond.action.lessThan) | ||
} | ||
evCb(possibleValues.indexOf(result) > -1) | ||
} | ||
@@ -97,0 +101,0 @@ |
{ | ||
"name": "automait", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
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
7862
168
8