New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dhis2-ui/portal

Package Overview
Dependencies
Maintainers
2
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2-ui/portal - npm Package Compare versions

Comparing version 8.14.5 to 8.14.6

6

build/cjs/portal.js

@@ -24,4 +24,6 @@ "use strict";

* As a fallback, portals will be attached to the document body.
*
* This needs to be a function so that it works in tests as well.
*/
const defaultNode = document.getElementById('dhis2-portal-root') || document.body;
const getDefaultNode = () => document.getElementById('dhis2-portal-root') || document.body;

@@ -36,3 +38,3 @@ const Portal = _ref => {

(0, _react.useEffect)(() => {
setMountNode(node || defaultNode);
setMountNode(node || getDefaultNode());
}, [node]);

@@ -39,0 +41,0 @@

@@ -12,5 +12,8 @@ import PropTypes from 'prop-types';

* As a fallback, portals will be attached to the document body.
*
* This needs to be a function so that it works in tests as well.
*/
const defaultNode = document.getElementById('dhis2-portal-root') || document.body;
const getDefaultNode = () => document.getElementById('dhis2-portal-root') || document.body;
export const Portal = _ref => {

@@ -24,3 +27,3 @@ let {

useEffect(() => {
setMountNode(node || defaultNode);
setMountNode(node || getDefaultNode());
}, [node]);

@@ -27,0 +30,0 @@

{
"name": "@dhis2-ui/portal",
"version": "8.14.5",
"version": "8.14.6",
"description": "UI Portal",

@@ -5,0 +5,0 @@ "repository": {

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