Comparing version 0.1.2 to 0.1.3
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "jsexp", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,2 +5,6 @@ 'use strict'; | ||
var isBoolean = require('lodash/isBoolean'); | ||
var isEmpty = require('lodash/isEmpty'); | ||
module.exports = { | ||
@@ -44,3 +48,3 @@ $eq: function $eq(left, right) { | ||
$empty: function $empty(value) { | ||
return !!value && value !== 0; | ||
return !isBoolean(value) && isEmpty(value); | ||
}, | ||
@@ -47,0 +51,0 @@ $in: function $in(left, right) { |
@@ -18,16 +18,20 @@ 'use strict'; | ||
function _objectSpread(target) { | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (i % 2) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
} | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
} | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -39,3 +43,3 @@ | ||
var createOps = function createOps(operator, args) { | ||
return _objectSpread({ | ||
return _objectSpread2({ | ||
operator: operator | ||
@@ -42,0 +46,0 @@ }, args); |
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
34863
1091