react-portalize
Advanced tools
Comparing version 1.0.5 to 1.0.6
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime-corejs2/helpers/interopRequireWildcard"); | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
@@ -5,0 +5,0 @@ exports.__esModule = true; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -8,3 +8,3 @@ exports.__esModule = true; | ||
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inheritsLoose")); | ||
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose")); | ||
@@ -11,0 +11,0 @@ var _react = _interopRequireDefault(require("react")); |
{ | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "dist/cjs/index.js", | ||
@@ -12,3 +12,4 @@ "module": "dist/es/index.js", | ||
"build:server": "rimraf server && cross-env NODE_ENV=production BABEL_ENV=node-cjs babel server-src --out-dir server", | ||
"watch": "rimraf dist/es && rimraf server && cross-env NODE_ENV=production BABEL_ENV=es babel src -w --out-dir dist/es & cross-env NODE_ENV=production BABEL_ENV=es babel server-src -w --out-dir server" | ||
"watch": "rimraf dist/es && rimraf server && cross-env NODE_ENV=production BABEL_ENV=es babel src -w --out-dir dist/es & cross-env NODE_ENV=production BABEL_ENV=es babel server-src -w --out-dir server", | ||
"prepublishOnly": "yarn build" | ||
}, | ||
@@ -29,4 +30,4 @@ "author": "Jared Lunde <jared@BeStellar.co> (https://github.com/jaredLunde)", | ||
"devDependencies": { | ||
"@stellar-apps/babel-preset-es": "^1.0.1", | ||
"@stellar-apps/babel-preset-react": "^1.0.0", | ||
"@stellar-apps/babel-preset-es": "^1.0.4", | ||
"@stellar-apps/babel-preset-react": "^1.0.1", | ||
"cross-env": "^5.2.0", | ||
@@ -37,3 +38,2 @@ "rimraf": "^2.6.2" | ||
"@babel/runtime": "^7.3.1", | ||
"@babel/runtime-corejs2": "^7.3.1", | ||
"cheerio": "^1.0.0-rc.2" | ||
@@ -40,0 +40,0 @@ }, |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
exports.__esModule = true; | ||
exports.renderPortalsToString = renderPortalsToString; | ||
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys")); | ||
var _server = require("react-dom/server"); | ||
@@ -17,3 +13,3 @@ | ||
function renderPortalsToString(html) { | ||
const selectors = (0, _keys.default)(_reactPortalize.PORTALS); | ||
const selectors = Object.keys(_reactPortalize.PORTALS); | ||
if (selectors.length === 0) return html; | ||
@@ -20,0 +16,0 @@ const doc = (0, _cheerio.load)(html); |
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
5
13696
234
- Removed@babel/runtime-corejs2@^7.3.1
- Removed@babel/runtime-corejs2@7.26.0(transitive)
- Removedcore-js@2.6.12(transitive)