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

react-themed-too

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-themed-too - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

26

lib/themed.js

@@ -30,7 +30,16 @@ "use strict";

const pluck = (theme, keys) => keys.reduce((acc, key) => {
acc[key] = theme[key];
return acc;
}, {});
const pluck = (theme, keys) => {
if (theme && keys !== void 0) {
return keys.reduce((acc, key) => {
if (keys !== void 0 && theme[key]) {
acc[key] = theme[key];
}
return acc;
}, {});
}
return {};
};
const match = (theme, regex) => Object.keys(theme).reduce((acc, key) => {

@@ -51,2 +60,7 @@ if (key.match(regex)) acc[key] = theme[key];

let thisTheme = undefined;
if (!shared) {
return {};
}
themes.forEach(theme => {

@@ -69,3 +83,5 @@ if (Array.isArray(theme)) {

return React.createElement(context.Consumer, null, theme => {
return React.createElement(context.Consumer, {
WrappedComponent: Component
}, theme => {
const thisTheme = buildTheme(theme);

@@ -72,0 +88,0 @@ return React.createElement(Component, _extends({

2

package.json
{
"name": "react-themed-too",
"version": "0.1.6",
"version": "0.1.7",
"description": "CSS in React",

@@ -5,0 +5,0 @@ "main": "./lib/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