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

radium

Package Overview
Dependencies
Maintainers
7
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radium - npm Package Compare versions

Comparing version 0.18.0 to 0.18.1

5

CHANGELOG.md
# Radium Changelog
## 0.18.1 (July 19, 2016)
### Bug Fixes
- Fix unused props warning when passing `radiumConfig` to `StyleRoot` (#787).
## 0.18.0 (July 15, 2016)

@@ -4,0 +9,0 @@

12

lib/components/style-root.js

@@ -25,2 +25,4 @@ 'use strict';

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -58,5 +60,13 @@

StyleRoot.prototype.render = function render() {
/* eslint-disable no-unused-vars */
// Pass down all props except config to the rendered div.
var _props = this.props;
var radiumConfig = _props.radiumConfig;
var otherProps = _objectWithoutProperties(_props, ['radiumConfig']);
/* eslint-enable no-unused-vars */
return _react2.default.createElement(
'div',
this.props,
otherProps,
this.props.children,

@@ -63,0 +73,0 @@ _react2.default.createElement(_styleSheet2.default, null)

3

lib/resolve-styles.js

@@ -294,4 +294,3 @@ 'use strict';

renderedElement) {
var // ReactElement
config = arguments.length <= 2 || arguments[2] === undefined ? DEFAULT_CONFIG : arguments[2];
var config = arguments.length <= 2 || arguments[2] === undefined ? DEFAULT_CONFIG : arguments[2];
var existingKeyMap = arguments[3];

@@ -298,0 +297,0 @@ var shouldCheckBeforeResolve = arguments.length <= 4 || arguments[4] === undefined ? false : arguments[4];

{
"name": "radium",
"version": "0.18.0",
"version": "0.18.1",
"description": "A set of tools to manage inline styles on React elements",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -34,4 +34,9 @@ /* @flow */

render() {
/* eslint-disable no-unused-vars */
// Pass down all props except config to the rendered div.
const {radiumConfig, ...otherProps} = this.props;
/* eslint-enable no-unused-vars */
return (
<div {...this.props}>
<div {...otherProps}>
{this.props.children}

@@ -38,0 +43,0 @@ <StyleSheet />

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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