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

rc-util

Package Overview
Dependencies
Maintainers
3
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.3.0 to 4.3.1

4

es/Portal.js

@@ -6,4 +6,4 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';

@@ -55,3 +55,3 @@ var Portal = function (_React$Component) {

if (this._container) {
return createPortal(this.props.children, this._container);
return ReactDOM.createPortal(this.props.children, this._container);
}

@@ -58,0 +58,0 @@ return null;

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

var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _propTypes = require('prop-types');

@@ -32,4 +36,2 @@

var _reactDom = require('react-dom');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -81,3 +83,3 @@

if (this._container) {
return (0, _reactDom.createPortal)(this.props.children, this._container);
return _reactDom2['default'].createPortal(this.props.children, this._container);
}

@@ -84,0 +86,0 @@ return null;

{
"name": "rc-util",
"version": "4.3.0",
"version": "4.3.1",
"description": "Common Utils For React Component",

@@ -48,4 +48,4 @@ "keywords": [

"rc-tools": "6.x",
"react": "15.x",
"react-dom": "15.x"
"react": "^16.2.0",
"react-dom": "^16.2.0"
},

@@ -52,0 +52,0 @@ "pre-commit": [

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