Socket
Socket
Sign inDemoInstall

styled-components

Package Overview
Dependencies
Maintainers
2
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-components - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

10

lib/constructors/inherit.js

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -7,10 +7,8 @@ Object.defineProperty(exports, "__esModule", {

exports.default = function (keys) {
exports.default = function (key, fallback) {
return function (props, theme) {
return keys.split(' ').map(function (k) {
return theme[k];
}).join('\n');
return theme[key] || fallback;
};
};
module.exports = exports['default'];
module.exports = exports["default"];

2

lib/models/StyledComponent.js

@@ -74,3 +74,3 @@ 'use strict';

}).forEach(function (propName) {
propsForElement[propName] = _this2.props.propName;
propsForElement[propName] = _this2.props[propName];
});

@@ -77,0 +77,0 @@ propsForElement.className = [className, this.generatedClassName].filter(function (x) {

{
"name": "styled-components",
"version": "0.1.4",
"version": "0.1.5",
"description": "",

@@ -36,2 +36,3 @@ "main": "lib/index.js",

"react": "^15.3.2",
"source-map": "^0.5.6",
"supports-color": "^3.1.2"

@@ -38,0 +39,0 @@ },

@@ -1,3 +0,3 @@

export default keys => (props, theme) => (
keys.split(' ').map(k => theme[k]).join('\n')
export default (key, fallback) => (props, theme) => (
theme[key] || fallback
)

@@ -36,3 +36,3 @@ // @flow

)).forEach(propName => {
propsForElement[propName] = this.props.propName
propsForElement[propName] = this.props[propName]
})

@@ -39,0 +39,0 @@ propsForElement.className = [className, this.generatedClassName].filter(x => x).join(' ')

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