dsh-unlag 1.9.34 → 1.9.35
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/index.js +15 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -371,6 +371,8 @@ function pluginReloader(ctx, config) {
|
|
|
371
371
|
request.then(settle, settle)
|
|
372
372
|
return request
|
|
373
373
|
}
|
|
374
|
+
/** Whether the bundle route was wrapped when this update started, so a re-wrap is written down. */
|
|
375
|
+
const shimWrappedBefore = bundleShimStatus(ctx).wrapped
|
|
374
376
|
let result = null
|
|
375
377
|
for (let attempt = 0; ; attempt += 1) {
|
|
376
378
|
try {
|
|
@@ -391,6 +393,19 @@ function pluginReloader(ctx, config) {
|
|
|
391
393
|
throw error
|
|
392
394
|
}
|
|
393
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* A recomposition can leave the bundle route owned by a fresh handler. A page started from the
|
|
398
|
+
* launch-time list is then answered by the app's own 404 for a stale set, and the desktop shell
|
|
399
|
+
* treats such an entry as fatal — it exits and takes every running turn with it. Wrapping again
|
|
400
|
+
* here means the time between an update and the next press is never left unwrapped.
|
|
401
|
+
*/
|
|
402
|
+
try {
|
|
403
|
+
ensureBundleShim(ctx)
|
|
404
|
+
if (bundleShimStatus(ctx).wrapped !== true) log('the bundle route is not wrapped after the update; a page started now may not boot')
|
|
405
|
+
else if (shimWrappedBefore !== true) log('the bundle route was wrapped again after the update')
|
|
406
|
+
} catch (error) {
|
|
407
|
+
log(`cannot wrap the bundle route after the update: ${error?.message ?? error}`)
|
|
408
|
+
}
|
|
394
409
|
const warnings = Array.isArray(result?.warnings) ? result.warnings : []
|
|
395
410
|
const pending = Array.isArray(result?.pending) ? result.pending : []
|
|
396
411
|
const restartReason = typeof result?.restartReason === 'string' ? result.restartReason : null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A press applies plugin edits right away and brings a laggy interface back; automatic reloading stays off unless you turn it on, so the press is the only trigger, and nothing restarts.",
|
|
6
6
|
"license": "MIT",
|