@amendable/expand-style-shorthands
Advanced tools
Comparing version 0.0.2 to 0.0.3
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,3 +9,18 @@ value: true | ||
exports["default"] = void 0; | ||
var _default = ['border', 'borderTop', 'borderRight', 'borderBottom', 'borderLeft', 'borderWidth', 'borderStyle', 'borderColor', 'padding', 'margin', 'outline', 'flex']; | ||
var _lodash = _interopRequireDefault(require("lodash")); | ||
var _isNumber = _interopRequireDefault(require("is-number")); | ||
var _defaultMatchKeys = _interopRequireDefault(require("./defaultMatchKeys")); | ||
var _default = function _default(_ref) { | ||
var key = _ref.key, | ||
value = _ref.value; | ||
if (!_lodash["default"].includes(_defaultMatchKeys["default"], key)) return false; | ||
if (_lodash["default"].isString(value)) return true; | ||
if ((0, _isNumber["default"])(value)) return true; | ||
return false; | ||
}; | ||
exports["default"] = _default; |
@@ -1,1 +0,11 @@ | ||
export default ['border', 'borderTop', 'borderRight', 'borderBottom', 'borderLeft', 'borderWidth', 'borderStyle', 'borderColor', 'padding', 'margin', 'outline', 'flex']; | ||
import _ from 'lodash'; | ||
import isNumber from 'is-number'; | ||
import defaultMatchKeys from './defaultMatchKeys'; | ||
export default (function (_ref) { | ||
var key = _ref.key, | ||
value = _ref.value; | ||
if (!_.includes(defaultMatchKeys, key)) return false; | ||
if (_.isString(value)) return true; | ||
if (isNumber(value)) return true; | ||
return false; | ||
}); |
{ | ||
"name": "@amendable/expand-style-shorthands", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/commonjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6545
10
101
1
30