Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "jsexp", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -11,2 +11,4 @@ 'use strict'; | ||
var includes = require('lodash/includes'); | ||
module.exports = { | ||
@@ -53,3 +55,3 @@ $eq: function $eq(left, right) { | ||
$in: function $in(left, right) { | ||
return right.includes(left); | ||
return includes(right, left); | ||
}, | ||
@@ -56,0 +58,0 @@ $match: function $match(left, right) { |
@@ -23,2 +23,4 @@ 'use strict'; | ||
var isArray = require('lodash/isArray'); | ||
var rulesMap = require('./rulesMap'); | ||
@@ -46,3 +48,3 @@ | ||
function isValidate(value) { | ||
if (Array.isArray(value)) { | ||
if (isArray(value)) { | ||
return !!value.length; | ||
@@ -59,3 +61,3 @@ } | ||
if (Array.isArray(expr)) { | ||
if (isArray(expr)) { | ||
var operator = expr[0]; | ||
@@ -62,0 +64,0 @@ |
@@ -25,2 +25,4 @@ 'use strict'; | ||
var isArray = require('lodash/isArray'); | ||
var rules = require('./rules'); | ||
@@ -32,3 +34,3 @@ | ||
function isValidCondition(expression) { | ||
return Array.isArray(expression) && !!rules[expression[0]]; | ||
return isArray(expression) && !!rules[expression[0]]; | ||
} | ||
@@ -46,3 +48,3 @@ /** | ||
if (Array.isArray(context)) { | ||
if (isArray(context)) { | ||
if (rDeepPath.test(key)) { | ||
@@ -49,0 +51,0 @@ var value = get(context, key); |
'use strict'; | ||
var isArray = require('lodash/isArray'); | ||
var withScope = require('./withScope'); | ||
@@ -13,3 +15,3 @@ | ||
return Array.isArray(result) ? !!result.length : !!result; | ||
return isArray(result) ? !!result.length : !!result; | ||
}, false); | ||
@@ -16,0 +18,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
35282
1105