Socket
Socket
Sign inDemoInstall

@semcore/portal

Package Overview
Dependencies
Maintainers
1
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semcore/portal - npm Package Compare versions

Comparing version 2.3.7 to 2.3.8

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [2.3.8] - 2022-07-22
### Changed
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0]).
## [2.3.7] - 2022-07-07

@@ -7,0 +13,0 @@

6

lib/cjs/Portal.js

@@ -28,3 +28,5 @@ "use strict";

var PortalContext = _core.register.get('portal-context', // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
var PortalContext = _core.register.get('portal-context',
/*#__PURE__*/
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
_react["default"].createContext((0, _canUseDOM["default"])() ? document.body : null));

@@ -52,3 +54,3 @@

return mountNode ? (0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(Children, null), mountNode) : null;
return mountNode ? /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(Children, null), mountNode) : null;
}

@@ -55,0 +57,0 @@

@@ -7,3 +7,5 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";

import { getNodeByRef } from '@semcore/utils/lib/ref';
var PortalContext = register.get('portal-context', // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
var PortalContext = register.get('portal-context',
/*#__PURE__*/
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
React.createContext(canUseDOM() ? document.body : null));

@@ -31,3 +33,3 @@

return mountNode ? createPortal( /*#__PURE__*/React.createElement(Children, null), mountNode) : null;
return mountNode ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(Children, null), mountNode) : null;
}

@@ -34,0 +36,0 @@

{
"name": "@semcore/portal",
"description": "SEMRush Portal Component",
"version": "2.3.7",
"version": "2.3.8",
"main": "lib/cjs/index.js",

@@ -6,0 +6,0 @@ "module": "lib/es6/index.js",

@@ -45,4 +45,2 @@ # @semcore/portal

</details>
```jsx

@@ -52,2 +50,4 @@ import Portal, { PortalProvider } from '@semcore/portal';

</details>
## 👤 Author

@@ -54,0 +54,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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