styled-tools
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -16,2 +16,6 @@ 'use strict'; | ||
var _values = require('lodash/values'); | ||
var _values2 = _interopRequireDefault(_values); | ||
var _difference = require('lodash/difference'); | ||
@@ -46,3 +50,2 @@ | ||
*/ | ||
const ifProp = exports.ifProp = (needle, pass, fail) => (props = {}) => { | ||
@@ -54,3 +57,3 @@ let result; | ||
const needleKeys = Object.keys(needle); | ||
const needleValues = Object.values(needle); | ||
const needleValues = (0, _values2.default)(needle); | ||
result = !(0, _difference2.default)((0, _at2.default)(props, needleKeys), needleValues).length; | ||
@@ -57,0 +60,0 @@ } else { |
{ | ||
"name": "styled-tools", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Utilities for styled-components", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
7735
49