Comparing version 5.21.0 to 5.21.1
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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196429
6018
2
80