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

styled-tools

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-tools - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

19

dist/index.cjs.js

@@ -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",

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