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

@amendable/expand-style-shorthands

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amendable/expand-style-shorthands - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/commonjs/defaultMatchKeys.js

19

dist/commonjs/defaultMatch.js
"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;
});

2

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

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