@ndla/util
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -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 @@ |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87792
1243
4