@openmrs/esm-error-handling 3.2.1-pre.1044 → 3.2.1-pre.1052
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["@openmrs/esm-globals"],(function(r,t){var e={};return{setters:[function(r){e.dispatchNotificationShown=r.dispatchNotificationShown}],execute:function(){r((()=>{var r={968:(r,t,e)=>{const o=e(577).R;t.s=function(r){if(r||(r=1),!e.y.meta||!e.y.meta.url)throw console.error("__system_context__",e.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");e.p=o(e.y.meta.url,r)}},577:(r,t,e)=>{t.R=function(r,t){var e=document.createElement("a");e.href=r;for(var o="/"===e.pathname[0]?e.pathname:"/"+e.pathname,n=0,i=o.length;n!==t&&i>=0;)"/"===o[--i]&&n++;if(n!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+n+") in the URL path "+r);var c=o.slice(0,i+1);return e.protocol+"//"+e.host+c};Number.isInteger},728:r=>{"use strict";r.exports=e}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.y=t,n.d=(r,t)=>{for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),n.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),n.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r;n.g.importScripts&&(r=n.g.location+"");var t=n.g.document;if(!r&&t&&(t.currentScript&&(r=t.currentScript.src),!r)){var e=t.getElementsByTagName("script");e.length&&(r=e[e.length-1].src)}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=r})();var i={};return(0,n(968).s)(1),(()=>{"use strict";n.r(i),n.d(i,{
|
|
1
|
+
System.register(["@openmrs/esm-globals"],(function(r,t){var e={};return{setters:[function(r){e.dispatchNotificationShown=r.dispatchNotificationShown}],execute:function(){r((()=>{var r={968:(r,t,e)=>{const o=e(577).R;t.s=function(r){if(r||(r=1),!e.y.meta||!e.y.meta.url)throw console.error("__system_context__",e.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");e.p=o(e.y.meta.url,r)}},577:(r,t,e)=>{t.R=function(r,t){var e=document.createElement("a");e.href=r;for(var o="/"===e.pathname[0]?e.pathname:"/"+e.pathname,n=0,i=o.length;n!==t&&i>=0;)"/"===o[--i]&&n++;if(n!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+n+") in the URL path "+r);var c=o.slice(0,i+1);return e.protocol+"//"+e.host+c};Number.isInteger},728:r=>{"use strict";r.exports=e}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return r[t](i,i.exports,n),i.exports}n.y=t,n.d=(r,t)=>{for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),n.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),n.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r;n.g.importScripts&&(r=n.g.location+"");var t=n.g.document;if(!r&&t&&(t.currentScript&&(r=t.currentScript.src),!r)){var e=t.getElementsByTagName("script");e.length&&(r=e[e.length-1].src)}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=r})();var i={};return(0,n(968).s)(1),(()=>{"use strict";n.r(i),n.d(i,{createErrorHandler:()=>o,handleApiError:()=>t,reportError:()=>e});var r=n(728);function t(){return r=>{setTimeout((()=>{throw r}))}}function e(r){const t=c(r);setTimeout((()=>{throw t}))}function o(){const r=Error();return t=>{c(t).stack+=`\nAsync stacktrace:\n${r.stack}`,e(t)}}function c(r){let t;if(r instanceof Error)return r;if(null===r)return Error("'null' was thrown as an error");if("object"==typeof r){try{t=`Object thrown as error: ${JSON.stringify(r)}`}catch(e){t=`Object thrown as error with the following properties: ${Object.keys(r)}`}return Error(t)}return void 0===r?Error("'undefined' was thrown as an error"):Error(r.toString())}window.onerror=function(){return(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."}),!1},window.onunhandledrejection=function(){(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."})}})(),i})())}}}));
|
|
2
2
|
//# sourceMappingURL=openmrs-esm-error-handling.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-error-handling",
|
|
3
|
-
"version": "3.2.1-pre.
|
|
3
|
+
"version": "3.2.1-pre.1052",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An ES module to help with error handling",
|
|
6
6
|
"browser": "dist/openmrs-esm-error-handling.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@openmrs/esm-globals": "3.x"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@openmrs/esm-globals": "^3.2.1-pre.
|
|
42
|
+
"@openmrs/esm-globals": "^3.2.1-pre.1052"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e0bb5bb89a032beecaf84a9619017236bc705502"
|
|
45
45
|
}
|