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

react-portalize

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-portalize - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

14

commonjs/index.js

@@ -5,12 +5,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function get() {
return _Portalize.default;
}
});
exports.__esModule = true;
var _Portalize = _interopRequireDefault(require("./Portalize"));
var _Portalize = _interopRequireDefault(require("./Portalize"));
exports.default = _Portalize.default;

@@ -5,17 +5,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.default = void 0;
var _getPrototypeOf = _interopRequireDefault(require("@babel/runtime/core-js/object/get-prototype-of"));
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _react = _interopRequireDefault(require("react"));

@@ -34,5 +26,5 @@

function _render() {
var _props = this.props,
children = _props.children,
entry = _props.entry;
var _this$props = this.props,
children = _this$props.children,
entry = _this$props.entry;

@@ -54,16 +46,11 @@ if (entry() === null) {

function (_React$Component) {
(0, _inherits2.default)(Portalize, _React$Component);
(0, _inheritsLoose2.default)(Portalize, _React$Component);
function Portalize() {
(0, _classCallCheck2.default)(this, Portalize);
return (0, _possibleConstructorReturn2.default)(this, (Portalize.__proto__ || (0, _getPrototypeOf.default)(Portalize)).apply(this, arguments));
return _React$Component.apply(this, arguments) || this;
}
(0, _createClass2.default)(Portalize, [{
key: "componentDidMount",
value: _componentDidMount
}, {
key: "render",
value: _render
}]);
var _proto = Portalize.prototype;
_proto.componentDidMount = _componentDidMount;
_proto.render = _render;
return Portalize;

@@ -73,15 +60,10 @@ }(_react.default.Component);

exports.default = Portalize;
Object.defineProperty(Portalize, "defaultProps", {
configurable: true,
enumerable: true,
writable: true,
value: {
entry: function entry() {
if (typeof document === 'undefined') {
return null;
}
(0, _defineProperty2.default)(Portalize, "defaultProps", {
entry: function entry() {
if (typeof document === 'undefined') {
return null;
}
return document.getElementById('portals');
}
return document.getElementById('portals');
}
});

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

import _Object$getPrototypeOf from "@babel/runtime/core-js/object/get-prototype-of";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _inherits from "@babel/runtime/helpers/inherits";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import React from 'react';

@@ -22,5 +19,5 @@ import ReactDOM from 'react-dom';

function _render() {
var _props = this.props,
children = _props.children,
entry = _props.entry;
var _this$props = this.props,
children = _this$props.children,
entry = _this$props.entry;

@@ -37,35 +34,24 @@ if (entry() === null) {

function (_React$Component) {
_inherits(Portalize, _React$Component);
_inheritsLoose(Portalize, _React$Component);
function Portalize() {
_classCallCheck(this, Portalize);
return _possibleConstructorReturn(this, (Portalize.__proto__ || _Object$getPrototypeOf(Portalize)).apply(this, arguments));
return _React$Component.apply(this, arguments) || this;
}
_createClass(Portalize, [{
key: "componentDidMount",
value: _componentDidMount
}, {
key: "render",
value: _render
}]);
var _proto = Portalize.prototype;
_proto.componentDidMount = _componentDidMount;
_proto.render = _render;
return Portalize;
}(React.Component);
Object.defineProperty(Portalize, "defaultProps", {
configurable: true,
enumerable: true,
writable: true,
value: {
entry: function entry() {
if (typeof document === 'undefined') {
return null;
}
_defineProperty(Portalize, "defaultProps", {
entry: function entry() {
if (typeof document === 'undefined') {
return null;
}
return document.getElementById('portals');
}
return document.getElementById('portals');
}
});
export { Portalize as default };
{
"version": "0.1.2",
"version": "0.1.3",
"main": "commonjs/index.js",

@@ -8,4 +8,3 @@ "module": "es/index.js",

"scripts": {
"build": "yarn run build:es && yarn run build:commonjs && yarn run build:dist",
"build:dist": "rm -rf dist && rollup -c",
"build": "yarn run build:es && yarn run build:commonjs",
"build:es": "rm -rf es && cross-env NODE_ENV=production cross-env BABEL_ENV=es babel src --out-dir es",

@@ -29,11 +28,22 @@ "build:commonjs": "rm -rf commonjs && cross-env NODE_ENV=production cross-env BABEL_ENV=commonjs babel src --out-dir commonjs",

"devDependencies": {
"@babel/cli": "^7.0.0-beta.39",
"@babel/core": "^7.0.0-beta.39",
"@babel/plugin-transform-react-constant-elements": "^7.0.0-beta.39",
"@babel/plugin-transform-react-inline-elements": "^7.0.0-beta.39",
"@babel/plugin-transform-runtime": "^7.0.0-beta.39",
"@babel/polyfill": "^7.0.0-beta.39",
"@babel/preset-env": "^7.0.0-beta.39",
"@babel/preset-react": "^7.0.0-beta.39",
"@babel/preset-stage-0": "^7.0.0-beta.39",
"@babel/cli": "7.0.0-rc.1",
"@babel/core": "7.0.0-rc.1",
"@babel/helper-plugin-utils": "7.0.0-rc.1",
"@babel/plugin-proposal-class-properties": "7.0.0-rc.1",
"@babel/plugin-proposal-do-expressions": "7.0.0-rc.1",
"@babel/plugin-proposal-export-default-from": "7.0.0-rc.1",
"@babel/plugin-proposal-export-namespace-from": "7.0.0-rc.1",
"@babel/plugin-proposal-json-strings": "7.0.0-rc.1",
"@babel/plugin-proposal-logical-assignment-operators": "7.0.0-rc.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-rc.1",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-rc.1",
"@babel/plugin-proposal-optional-chaining": "7.0.0-rc.1",
"@babel/plugin-proposal-pipeline-operator": "7.0.0-rc.1",
"@babel/plugin-syntax-dynamic-import": "7.0.0-rc.1",
"@babel/plugin-syntax-import-meta": "7.0.0-rc.1",
"@babel/plugin-transform-react-constant-elements": "7.0.0-rc.1",
"@babel/plugin-transform-react-inline-elements": "7.0.0-rc.1",
"@babel/plugin-transform-runtime": "7.0.0-rc.1",
"@babel/preset-env": "^7.0.0-rc.1",
"@babel/preset-react": "^7.0.0-rc.1",
"babel-plugin-closure-elimination": "^1.3.0",

@@ -43,19 +53,7 @@ "babel-plugin-root-import": "^5.1.0",

"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"cross-env": "^5.1.3",
"rollup": "^0.55.3",
"rollup-plugin-babel": "^4.0.0-beta.0",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^3.0.0",
"uglify-es": "^3.3.9"
"cross-env": "^5.1.3"
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.39"
},
"peerDependencies": {
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-dom": "^16.2.0"
"@babel/runtime-corejs2": "^7.0.0-rc.1"
}
}
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