studiokit-scaffolding-js 4.5.6-alpha.2 → 4.5.6
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.
- package/lib/redux/configureStore.js +1 -1
- package/lib/startup.js +10 -4
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ var filterData = function (obj) {
|
|
|
56
56
|
};
|
|
57
57
|
var stripState = function (obj, parentKey) {
|
|
58
58
|
return lodash_1.transform(obj, function (result, value, key) {
|
|
59
|
-
if (lodash_1.isPlainObject(value)
|
|
59
|
+
if (lodash_1.isPlainObject(value)) {
|
|
60
60
|
result[key] = exports.stripState(value, key);
|
|
61
61
|
}
|
|
62
62
|
else if (key === 'id' || parentKey === '_metadata') {
|
package/lib/startup.js
CHANGED
|
@@ -96,12 +96,18 @@ var startup = function (appConfig, endpointMappings) {
|
|
|
96
96
|
}
|
|
97
97
|
// Unhandled Errors
|
|
98
98
|
window.onunhandledrejection = function (evt) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
var _a, _b;
|
|
100
|
+
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') {
|
|
101
|
+
if (!window.navigator.onLine) {
|
|
102
|
+
window.alert("Your network connection appears to be having issues. Please check your connection and refresh your browser.");
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
window.alert("A new version of " + appConfig.APP_NAME + " is available. Your browser will now refresh. If you see this message again, please clear your browser cache and try again.");
|
|
106
|
+
document.location.reload();
|
|
107
|
+
}
|
|
102
108
|
}
|
|
103
109
|
else {
|
|
104
|
-
Sentry.captureException(evt.reason);
|
|
110
|
+
Sentry.captureException(evt === null || evt === void 0 ? void 0 : evt.reason);
|
|
105
111
|
}
|
|
106
112
|
};
|
|
107
113
|
// Google Analytics
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "4.5.6
|
|
3
|
+
"version": "4.5.6",
|
|
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",
|