studiokit-scaffolding-js 7.0.4-alpha.2.2 → 7.0.4-next.2.1

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.
Files changed (2) hide show
  1. package/lib/startup.js +2 -9
  2. package/package.json +1 -1
package/lib/startup.js CHANGED
@@ -118,15 +118,8 @@ var startup = function (appConfig, endpointMappings) {
118
118
  }
119
119
  // Unhandled Errors
120
120
  window.onunhandledrejection = function (evt) {
121
- var _a;
122
- var message = (_a = evt === null || evt === void 0 ? void 0 : evt.reason) === null || _a === void 0 ? void 0 : _a.message;
123
- if (message &&
124
- typeof message === 'string' &&
125
- [
126
- 'Failed to fetch dynamically imported module',
127
- 'error loading dynamically imported module',
128
- 'Importing a module script failed'
129
- ].some(function (s) { return message.includes(s); })) {
121
+ var _a, _b;
122
+ if (((_a = evt === null || evt === void 0 ? void 0 : evt.reason) === null || _a === void 0 ? void 0 : _a.name) === 'ChunkLoadError' || ((_b = evt === null || evt === void 0 ? void 0 : evt.reason) === null || _b === void 0 ? void 0 : _b.code) === 'CSS_CHUNK_LOAD_FAILED') {
130
123
  if (!window.navigator.onLine) {
131
124
  window.alert("Your network connection appears to be having issues. Please check your connection and refresh your browser.");
132
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiokit-scaffolding-js",
3
- "version": "7.0.4-alpha.2.2",
3
+ "version": "7.0.4-next.2.1",
4
4
  "description": "Common scaffolding for Studio apps at Purdue",
5
5
  "repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
6
6
  "license": "MIT",