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

@ndla/util

Package Overview
Dependencies
Maintainers
7
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/util - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

10

es/createUniversalPortal.js

@@ -0,1 +1,3 @@

import { jsx as _jsx } from "@emotion/react/jsx-runtime";
/**

@@ -11,3 +13,2 @@ * Copyright (c) 2016-present, NDLA.

import ReactDOM from 'react-dom';
import { jsx as ___EmotionJSX } from "@emotion/react";

@@ -21,5 +22,6 @@ var canUseDOM = function canUseDOM() {

if (!canUseDOM()) {
return ___EmotionJSX("div", {
"data-react-universal-portal": true
}, children);
return _jsx("div", {
"data-react-universal-portal": true,
children: children
});
}

@@ -26,0 +28,0 @@

11

lib/createUniversalPortal.js

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

var _jsxRuntime = require("@emotion/react/jsx-runtime");
var _react = _interopRequireDefault(require("react"));

@@ -13,4 +15,2 @@

var _react2 = require("@emotion/react");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -33,5 +33,6 @@

if (!canUseDOM()) {
return (0, _react2.jsx)("div", {
"data-react-universal-portal": true
}, children);
return (0, _jsxRuntime.jsx)("div", {
"data-react-universal-portal": true,
children: children
});
}

@@ -38,0 +39,0 @@

{
"name": "@ndla/util",
"version": "3.1.4",
"version": "3.1.5",
"description": "Collection of util functions used by NDLA",

@@ -30,2 +30,3 @@ "license": "GPL-3.0",

"peerDependencies": {
"@emotion/react": "^11.10.4",
"react": "^16.8.0 || ^17.0.0"

@@ -40,3 +41,3 @@ },

},
"gitHead": "153f67893ba72297587e17144b71c92150b6eeeb"
"gitHead": "e62f69c71e7b72b1e346508e8ad483afd36eeffd"
}
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