studiokit-scaffolding-js 7.0.4 → 7.0.5-alpha.2

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 +9 -2
  2. package/package.json +8 -28
package/lib/startup.js CHANGED
@@ -118,8 +118,15 @@ var startup = function (appConfig, endpointMappings) {
118
118
  }
119
119
  // Unhandled Errors
120
120
  window.onunhandledrejection = function (evt) {
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') {
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); })) {
123
130
  if (!window.navigator.onLine) {
124
131
  window.alert("Your network connection appears to be having issues. Please check your connection and refresh your browser.");
125
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiokit-scaffolding-js",
3
- "version": "7.0.4",
3
+ "version": "7.0.5-alpha.2",
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",
@@ -44,26 +44,6 @@
44
44
  "sort-package-json"
45
45
  ]
46
46
  },
47
- "eslintConfig": {
48
- "extends": [
49
- "./src/config/eslint/react.cjs"
50
- ],
51
- "overrides": [
52
- {
53
- "files": [
54
- "**/*.ts?(x)"
55
- ],
56
- "parser": "@typescript-eslint/parser",
57
- "parserOptions": {
58
- "project": "tsconfig.json"
59
- }
60
- }
61
- ],
62
- "ignorePatterns": [
63
- "coverage/",
64
- "lib/"
65
- ]
66
- },
67
47
  "stylelint": {
68
48
  "extends": "stylelint-config-standard",
69
49
  "rules": {
@@ -180,16 +160,16 @@
180
160
  "copyfiles": "^2.4.1",
181
161
  "cross-env": "^7.0.3",
182
162
  "enzyme": "^3.11.0",
183
- "eslint": "^7.11.0",
163
+ "eslint": "^7.32.0",
184
164
  "eslint-config-prettier": "^7.2.0",
185
165
  "eslint-config-react-app": "^6.0.0",
186
166
  "eslint-import-resolver-node": "^0.3.9",
187
- "eslint-plugin-flowtype": "^5.2.0",
167
+ "eslint-plugin-flowtype": "^5.10.0",
188
168
  "eslint-plugin-import": "~2.22.1",
189
- "eslint-plugin-jsx-a11y": "^6.4.1",
190
- "eslint-plugin-prettier": "^3.3.1",
191
- "eslint-plugin-react": "^7.22.0",
192
- "eslint-plugin-react-hooks": "^4.2.0",
169
+ "eslint-plugin-jsx-a11y": "^6.9.0",
170
+ "eslint-plugin-prettier": "^3.4.1",
171
+ "eslint-plugin-react": "^7.35.0",
172
+ "eslint-plugin-react-hooks": "^4.6.2",
193
173
  "husky": "^4.3.8",
194
174
  "identity-obj-proxy": "^3.0.0",
195
175
  "jest": "^26.6.0",
@@ -223,5 +203,5 @@
223
203
  "optional": true
224
204
  }
225
205
  },
226
- "packageManager": "yarn@4.2.2"
206
+ "packageManager": "yarn@4.4.0"
227
207
  }