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

@rc-component/portal

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/portal - npm Package Compare versions

Comparing version 1.0.0-7 to 1.0.0-8

5

es/useDom.js

@@ -5,2 +5,3 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";

import useLayoutEffect from "rc-util/es/hooks/useLayoutEffect";
import canUseDom from "rc-util/es/Dom/canUseDom";
import OrderContext from "./Context";

@@ -15,2 +16,6 @@ var EMPTY_LIST = [];

var _React$useState = React.useState(function () {
if (!canUseDom()) {
return null;
}
var defaultEle = document.createElement('div');

@@ -17,0 +22,0 @@

@@ -20,2 +20,4 @@ "use strict";

var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
var _Context = _interopRequireDefault(require("./Context"));

@@ -31,2 +33,6 @@

var _React$useState = React.useState(function () {
if (!(0, _canUseDom.default)()) {
return null;
}
var defaultEle = document.createElement('div');

@@ -33,0 +39,0 @@

8

package.json
{
"name": "@rc-component/portal",
"version": "1.0.0-7",
"version": "1.0.0-8",
"description": "React Portal Component",

@@ -39,4 +39,6 @@ "keywords": [

"start": "dumi dev",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"test": "npm run test:client && npm run test:server",
"test:client": "umi-test --testPathIgnorePatterns=ssr.test.tsx --testPathIgnorePatterns=ssr.test.tsx",
"test:coverage": "npm run test:client --coverage",
"test:server": "umi-test --env=node tests/ssr.test.tsx",
"watch": "father dev"

@@ -43,0 +45,0 @@ },

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