styled-tools
Advanced tools
Comparing version 0.2.4 to 0.3.0
@@ -6,9 +6,9 @@ 'use strict'; | ||
}); | ||
exports.call = exports.switchProp = exports.ifProp = exports.get = exports.prop = undefined; | ||
exports.call = exports.switchProp = exports.ifProp = exports.prop = undefined; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _get2 = require('lodash/get'); | ||
var _get = require('lodash/get'); | ||
var _get3 = _interopRequireDefault(_get2); | ||
var _get2 = _interopRequireDefault(_get); | ||
@@ -41,11 +41,6 @@ var _at = require('lodash/at'); | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
return (0, _get3.default)(props, path, defaultValue); | ||
return (0, _get2.default)(props, path, defaultValue); | ||
}; | ||
}; | ||
var get = /* istanbul ignore next */exports.get = function get() { | ||
console.warn('[styled-tools] `get` is deprecated. Please, use `prop` instead.'); | ||
return prop.apply(undefined, arguments); | ||
}; | ||
/** | ||
@@ -79,3 +74,3 @@ * Returns `pass` if prop is truthy. Otherwise returns `fail` | ||
} else { | ||
result = (0, _get3.default)(props, needle); | ||
result = (0, _get2.default)(props, needle); | ||
} | ||
@@ -116,4 +111,4 @@ return result ? pass : fail; | ||
var propType = (0, _get3.default)(props, needle); | ||
return (0, _get3.default)(switches, propType, defaultValue); | ||
var propType = (0, _get2.default)(props, needle); | ||
return (0, _get2.default)(switches, propType, defaultValue); | ||
}; | ||
@@ -120,0 +115,0 @@ }; |
@@ -5,3 +5,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import _get from 'lodash/get'; | ||
import get from 'lodash/get'; | ||
import at from 'lodash/at'; | ||
@@ -21,11 +21,6 @@ import values from 'lodash/values'; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
return _get(props, path, defaultValue); | ||
return get(props, path, defaultValue); | ||
}; | ||
}; | ||
export var get = /* istanbul ignore next */function get() { | ||
console.warn('[styled-tools] `get` is deprecated. Please, use `prop` instead.'); | ||
return prop.apply(undefined, arguments); | ||
}; | ||
/** | ||
@@ -59,3 +54,3 @@ * Returns `pass` if prop is truthy. Otherwise returns `fail` | ||
} else { | ||
result = _get(props, needle); | ||
result = get(props, needle); | ||
} | ||
@@ -96,4 +91,4 @@ return result ? pass : fail; | ||
var propType = _get(props, needle); | ||
return _get(switches, propType, defaultValue); | ||
var propType = get(props, needle); | ||
return get(switches, propType, defaultValue); | ||
}; | ||
@@ -100,0 +95,0 @@ }; |
{ | ||
"name": "styled-tools", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
17636
224