Socket
Socket
Sign inDemoInstall

react-portal

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-portal - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

7

lib/portal.js
import React, {findDOMNode} from 'react';
import CSSPropertyOperations from 'react/lib/CSSPropertyOperations';
import shallowEqual from 'react/lib/shallowEqual';

@@ -64,2 +65,8 @@

this.node = document.createElement('div');
if (this.props.className) {
this.node.className = this.props.className;
}
if (this.props.style) {
CSSPropertyOperations.setValueForStyles(this.node, this.props.style);
}
document.body.appendChild(this.node);

@@ -66,0 +73,0 @@ }

2

package.json

@@ -6,3 +6,3 @@ {

"author": "Vojtech Miksu",
"version": "0.4.1",
"version": "0.5.0",
"license": "MIT",

@@ -9,0 +9,0 @@ "repository": {

@@ -21,2 +21,6 @@ 'use strict';

var _CSSPropertyOperations = require('react/lib/CSSPropertyOperations');
var _CSSPropertyOperations2 = _interopRequireWildcard(_CSSPropertyOperations);
var _shallowEqual = require('react/lib/shallowEqual');

@@ -95,2 +99,8 @@

this.node = document.createElement('div');
if (this.props.className) {
this.node.className = this.props.className;
}
if (this.props.style) {
_CSSPropertyOperations2['default'].setValueForStyles(this.node, this.props.style);
}
document.body.appendChild(this.node);

@@ -97,0 +107,0 @@ }

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