Socket
Socket
Sign inDemoInstall

rc-util

Package Overview
Dependencies
Maintainers
8
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 5.21.0 to 5.21.1

16

es/React/render.js
import _regeneratorRuntime from "@babel/runtime/regenerator";
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
import _typeof from "@babel/runtime/helpers/esm/typeof";
import * as ReactDOM from 'react-dom';
var version = ReactDOM.version,
reactRender = ReactDOM.render,
unmountComponentAtNode = ReactDOM.unmountComponentAtNode;
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import * as ReactDOM from 'react-dom'; // Let compiler not to search module usage
var fullClone = _objectSpread({}, ReactDOM);
var version = fullClone.version,
reactRender = fullClone.render,
unmountComponentAtNode = fullClone.unmountComponentAtNode;
var createRoot;

@@ -14,3 +18,3 @@

if (mainVersion >= 18) {
createRoot = ReactDOM.createRoot;
createRoot = fullClone.createRoot;
}

@@ -21,3 +25,3 @@ } catch (e) {// Do nothing;

function toggleWarning(skip) {
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

@@ -24,0 +28,0 @@ if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && _typeof(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === 'object') {

@@ -21,7 +21,11 @@ "use strict";

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var ReactDOM = _interopRequireWildcard(require("react-dom"));
var version = ReactDOM.version,
reactRender = ReactDOM.render,
unmountComponentAtNode = ReactDOM.unmountComponentAtNode;
// Let compiler not to search module usage
var fullClone = (0, _objectSpread2.default)({}, ReactDOM);
var version = fullClone.version,
reactRender = fullClone.render,
unmountComponentAtNode = fullClone.unmountComponentAtNode;
var createRoot;

@@ -33,3 +37,3 @@

if (mainVersion >= 18) {
createRoot = ReactDOM.createRoot;
createRoot = fullClone.createRoot;
}

@@ -40,3 +44,3 @@ } catch (e) {// Do nothing;

function toggleWarning(skip) {
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

@@ -43,0 +47,0 @@ if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && (0, _typeof2.default)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === 'object') {

{
"name": "rc-util",
"version": "5.21.0",
"version": "5.21.1",
"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