New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-css-themr

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-css-themr - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

14

lib/components/themr.js

@@ -181,2 +181,3 @@ 'use strict';

* Merges passed themes by concatenating string keys and processing nested themes
*
* @param {...TReactCSSThemrTheme} themes - Themes

@@ -298,2 +299,3 @@ * @returns {TReactCSSThemrTheme} - Resulting theme

* Validates compose option
*
* @param {String|Boolean} composeTheme - Compose them option

@@ -311,2 +313,3 @@ * @throws

* Removes namespace from key
*
* @param {String} key - Key

@@ -321,2 +324,10 @@ * @param {String} themeNamespace - Theme namespace

/**
* Maps props and theme to an object that will be used to pass down props to the
* decorated component.
*
* @param {Object} ownProps - All props given to the decorated component
* @param {Object} theme - Calculated then that should be passed down
* @returns {Object} - Props that will be passed down to the decorated component
*/
function defaultMapThemrProps(ownProps, theme) {

@@ -326,3 +337,4 @@ var composeTheme = ownProps.composeTheme,

themeNamespace = ownProps.themeNamespace,
rest = _objectWithoutProperties(ownProps, ['composeTheme', 'innerRef', 'themeNamespace']);
mapThemrProps = ownProps.mapThemrProps,
rest = _objectWithoutProperties(ownProps, ['composeTheme', 'innerRef', 'themeNamespace', 'mapThemrProps']);

@@ -329,0 +341,0 @@ return _extends({}, rest, {

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/javivelasco/react-css-themr#readme",
"version": "2.1.1",
"version": "2.1.2",
"main": "./lib",

@@ -8,0 +8,0 @@ "author": {

@@ -160,2 +160,3 @@ import React, { Component } from 'react'

* Merges passed themes by concatenating string keys and processing nested themes
*
* @param {...TReactCSSThemrTheme} themes - Themes

@@ -257,2 +258,3 @@ * @returns {TReactCSSThemrTheme} - Resulting theme

* Validates compose option
*
* @param {String|Boolean} composeTheme - Compose them option

@@ -274,2 +276,3 @@ * @throws

* Removes namespace from key
*
* @param {String} key - Key

@@ -284,2 +287,10 @@ * @param {String} themeNamespace - Theme namespace

/**
* Maps props and theme to an object that will be used to pass down props to the
* decorated component.
*
* @param {Object} ownProps - All props given to the decorated component
* @param {Object} theme - Calculated then that should be passed down
* @returns {Object} - Props that will be passed down to the decorated component
*/
function defaultMapThemrProps(ownProps, theme) {

@@ -290,2 +301,3 @@ const {

themeNamespace, //eslint-disable-line no-unused-vars
mapThemrProps, //eslint-disable-line no-unused-vars
...rest

@@ -292,0 +304,0 @@ } = ownProps

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