@ambassify/aql-condition
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -16,4 +16,5 @@ 'use strict'; | ||
function isCondition(c) { | ||
if (!c || _typeof(c) !== 'object') return false; | ||
if (!c.operator) return false; | ||
if (!c || _typeof(c) !== 'object') return false; // eslint-disable-next-line no-use-before-define | ||
if (!c.operator || !VALIDATORS[c.operator]) return false; | ||
return OPERATORS.KEYLESS.includes(c.operator) ? true : !!c.key; | ||
@@ -20,0 +21,0 @@ } |
{ | ||
"name": "@ambassify/aql-condition", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "AQL condition tool", | ||
@@ -44,3 +44,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "c3c64213038c02c85e95082e842d0ad88f164187" | ||
"gitHead": "40837e367d07e0fc4bf1c4b0d3533974f409a244" | ||
} |
@@ -13,3 +13,4 @@ 'use strict'; | ||
if (!c.operator) | ||
// eslint-disable-next-line no-use-before-define | ||
if (!c.operator || !VALIDATORS[c.operator]) | ||
return false; | ||
@@ -16,0 +17,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
60602
786