error-boundary-jsx
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -1,1 +0,1 @@ | ||
"use strict";var r=require("./ErrorBoundary-da9befef.js");require("react"),module.exports=r.ErrorBoundary; | ||
"use strict";var r=require("./ErrorBoundary-4e1bc19f.js");require("react"),module.exports=r.ErrorBoundary; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./ErrorBoundary-da9befef.js");require("react");var e=require("./withErrorBoundary-72e50b0c.js");exports.ErrorBoundary=r.ErrorBoundary,exports.withErrorBoundary=e.withErrorBoundary; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./ErrorBoundary-4e1bc19f.js");require("react");var e=require("./withErrorBoundary-b8d03215.js");exports.ErrorBoundary=r.ErrorBoundary,exports.withErrorBoundary=e.withErrorBoundary; |
@@ -1,1 +0,1 @@ | ||
"use strict";require("./ErrorBoundary-da9befef.js"),require("react");var r=require("./withErrorBoundary-72e50b0c.js");module.exports=r.withErrorBoundary; | ||
"use strict";require("./ErrorBoundary-4e1bc19f.js"),require("react");var r=require("./withErrorBoundary-b8d03215.js");module.exports=r.withErrorBoundary; |
@@ -1,1 +0,1 @@ | ||
import{E as r}from"./ErrorBoundary-f57f284e.js";export{E as default}from"./ErrorBoundary-f57f284e.js";import"react"; | ||
import{E as r}from"./ErrorBoundary-a4f4fe1d.js";export{E as default}from"./ErrorBoundary-a4f4fe1d.js";import"react"; |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],r):r((e=e||self).errorboundaryjsx={},e.React)}(this,(function(e,r){"use strict";function t(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,r){return(o=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function a(e,r){return!r||"object"!=typeof r&&"function"!=typeof r?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):r}var i,c,u,f=function(e){function i(e){var r;return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,i),(r=a(this,n(i).call(this,e))).state={error:void 0,errorInfo:void 0},r}var c,u,f;return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&o(e,r)}(i,e),c=i,(u=[{key:"componentDidCatch",value:function(e,r){var t=this.props,n=t.onError,o=t.name;if("function"==typeof n)try{n(o,e,r?r.componentStack:"No stack")}catch(e){console.error(e)}this.setState({error:e||new Error("Error was swallowed."),errorInfo:r})}},{key:"render",value:function(){var e=this.state,t=e.error,n=e.errorInfo,o=this.props,a=o.children,i=o.FallbackComponent;return t?i?r.createElement(i,{error:t,errorStack:n?n.componentStack:"Stack not found"}):r.createElement("h2",null,"Something went wrong."):a}}])&&t(c.prototype,u),f&&t(c,f),i}(r.PureComponent);u="ErrorBoundary",(c="displayName")in(i=f)?Object.defineProperty(i,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[c]=u;e.ErrorBoundary=f,e.withErrorBoundary=function(e,t,n){var o=e.displayName?e.displayName:"Unnamed Component",a=function(a){return r.createElement(f,{onError:t,name:o,FallbackComponent:n},r.createElement(e,a))};return a.displayName="WithErrorBoundary(".concat(o,")"),a},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).errorboundaryjsx={},e.React)}(this,(function(e,t){"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return c(this,r)}}var i,u,f,l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(f,e);var n,c,i,u=a(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this,e)).state={error:void 0,errorInfo:void 0},t}return n=f,(c=[{key:"componentDidCatch",value:function(e,t){var r=this.props,n=r.onError,o=r.name;if("function"==typeof n)try{n(o,e,t?t.componentStack:"No stack")}catch(e){console.error(e)}this.setState({error:e||new Error("Error was swallowed."),errorInfo:t})}},{key:"render",value:function(){var e=this.state,r=e.error,n=e.errorInfo,o=this.props,c=o.children,a=o.FallbackComponent;return r?a?t.createElement(a,{error:r,errorStack:n?n.componentStack:"Stack not found"}):t.createElement("h2",null,"Something went wrong."):c}}])&&r(n.prototype,c),i&&r(n,i),f}(t.PureComponent);f="ErrorBoundary",(u="displayName")in(i=l)?Object.defineProperty(i,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):i[u]=f;e.ErrorBoundary=l,e.withErrorBoundary=function(e,r,n){var o=e.displayName?e.displayName:"Unnamed Component",c=function(c){return t.createElement(l,{onError:r,name:o,FallbackComponent:n},t.createElement(e,c))};return c.displayName="WithErrorBoundary(".concat(o,")"),c},Object.defineProperty(e,"__esModule",{value:!0})})); |
@@ -1,1 +0,1 @@ | ||
export{E as ErrorBoundary}from"./ErrorBoundary-f57f284e.js";import"react";export{w as withErrorBoundary}from"./withErrorBoundary-ab652c6b.js"; | ||
export{E as ErrorBoundary}from"./ErrorBoundary-a4f4fe1d.js";import"react";export{w as withErrorBoundary}from"./withErrorBoundary-ffcf880e.js"; |
@@ -1,1 +0,1 @@ | ||
import"./ErrorBoundary-f57f284e.js";import"react";import{w as r}from"./withErrorBoundary-ab652c6b.js";export{w as default}from"./withErrorBoundary-ab652c6b.js"; | ||
import"./ErrorBoundary-a4f4fe1d.js";import"react";import{w as r}from"./withErrorBoundary-ffcf880e.js";export{w as default}from"./withErrorBoundary-ffcf880e.js"; |
{ | ||
"name": "error-boundary-jsx", | ||
"description": "React (JS) string formatting", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"license": "MIT", | ||
@@ -26,4 +26,4 @@ "author": "Nicky Shannon @nickyshannon", | ||
"react": "^16.13.1", | ||
"semantic-release": "^17.1.1", | ||
"semantic-release-monorepo": "^7.0.2" | ||
"semantic-release": "17.1.1", | ||
"semantic-release-monorepo": "7.0.2" | ||
}, | ||
@@ -30,0 +30,0 @@ "files": [ |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
14266
79