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

@semcore/portal

Package Overview
Dependencies
Maintainers
1
Versions
224
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.3 to 2.3.4

6

CHANGELOG.md

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

## [2.3.4] - 2022-05-19
### Changed
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1]).
## [2.3.3] - 2022-03-14

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

6

lib/cjs/Portal.js

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

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

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

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

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

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

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

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

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

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

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

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

"directory": "semcore/portal"
},
"devDependencies": {
"@semcore/jest-preset-ui": "1.0.0"
}
}

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