react-shadow-root
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -16,3 +16,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -25,8 +25,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -41,7 +45,7 @@ | ||
var _default = | ||
/*#__PURE__*/ | ||
function (_React$PureComponent) { | ||
var _default = /*#__PURE__*/function (_React$PureComponent) { | ||
_inherits(_default, _React$PureComponent); | ||
var _super = _createSuper(_default); | ||
function _default() { | ||
@@ -52,3 +56,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(_default).call(this)); | ||
_this = _super.call(this); | ||
@@ -87,3 +91,3 @@ _defineProperty(_assertThisInitialized(_this), "state", { | ||
if (!this.state.initialized) { | ||
return _react["default"].createElement("span", { | ||
return /*#__PURE__*/_react["default"].createElement("span", { | ||
ref: this.placeholder | ||
@@ -90,0 +94,0 @@ }); |
{ | ||
"name": "react-shadow-root", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Adds a shadow root to React components", | ||
@@ -20,21 +20,21 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.46", | ||
"@babel/core": "^7.3.3", | ||
"@babel/plugin-proposal-class-properties": "^7.3.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.46", | ||
"@babel/preset-env": "^7.3.1", | ||
"@babel/preset-react": "^7.0.0-beta.46", | ||
"babel-loader": "^8.0.0-beta.0", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.9.0", | ||
"@babel/preset-env": "^7.9.0", | ||
"@babel/preset-react": "^7.9.4", | ||
"babel-loader": "^8.1.0", | ||
"concurrently": "^3.5.1", | ||
"css-loader": "^3.1.0", | ||
"css-loader": "^3.4.2", | ||
"html-webpack-plugin": "^3.2.0", | ||
"path": "^0.12.7", | ||
"prop-types": "^15.6.0", | ||
"react": "^16.3.2", | ||
"react-dom": "^16.3.2", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-syntax-highlighter": "^11.0.2", | ||
"style-loader": "^0.23.0", | ||
"webpack": "^4.6.0", | ||
"webpack-cli": "^3.2.3", | ||
"webpack-dev-server": "^3.1.14" | ||
"webpack": "^4.42.1", | ||
"webpack-cli": "^3.3.11", | ||
"webpack-dev-server": "^3.10.3" | ||
}, | ||
@@ -41,0 +41,0 @@ "repository": { |
12855
97