Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsexp

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsexp - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc