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

rc-util

Package Overview
Dependencies
Maintainers
5
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-util - npm Package Compare versions

Comparing version 4.8.6 to 4.8.7

15

es/Portal.js

@@ -9,16 +9,9 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
var Portal = function (_React$Component) {
_inherits(Portal, _React$Component);
function Portal(props) {
function Portal() {
_classCallCheck(this, Portal);
var _this = _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props));
if (props.getContainer && !windowIsUndefined) {
_this._container = props.getContainer();
}
return _this;
return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));
}

@@ -29,5 +22,3 @@

value: function componentDidMount() {
if (!this._container) {
this.createContainer();
}
this.createContainer();
}

@@ -34,0 +25,0 @@ }, {

16

lib/Portal.js

@@ -37,16 +37,8 @@ 'use strict';

var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
var Portal = function (_React$Component) {
(0, _inherits3['default'])(Portal, _React$Component);
function Portal(props) {
function Portal() {
(0, _classCallCheck3['default'])(this, Portal);
var _this = (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props));
if (props.getContainer && !windowIsUndefined) {
_this._container = props.getContainer();
}
return _this;
return (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));
}

@@ -57,5 +49,3 @@

value: function componentDidMount() {
if (!this._container) {
this.createContainer();
}
this.createContainer();
}

@@ -62,0 +52,0 @@ }, {

{
"name": "rc-util",
"version": "4.8.6",
"version": "4.8.7",
"description": "Common Utils For React Component",

@@ -5,0 +5,0 @@ "keywords": [

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