@morojs/moro 1.8.11 → 1.8.12
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/dist/core/http/moro-engine-server.js +3 -1
- package/dist/core/http/moro-engine-server.js.map +1 -1
- package/dist/core/routing/index.d.ts +2 -1
- package/dist/core/routing/index.js.map +1 -1
- package/dist/core/routing/unified-router.d.ts +3 -2
- package/dist/core/routing/unified-router.js +4 -2
- package/dist/core/routing/unified-router.js.map +1 -1
- package/dist/core/utilities/package-utils.d.ts +4 -0
- package/dist/core/utilities/package-utils.js +1 -0
- package/dist/core/utilities/package-utils.js.map +1 -1
- package/dist/moro.d.ts +17 -17
- package/dist/moro.js.map +1 -1
- package/package.json +1 -1
|
@@ -2113,7 +2113,9 @@ export class MoroEngineServer {
|
|
|
2113
2113
|
// closes, in this loop iteration's check phase. One per burst is enough,
|
|
2114
2114
|
// so it is armed once and re-armed only after it has fired.
|
|
2115
2115
|
_armMicrotaskDrain() {
|
|
2116
|
-
|
|
2116
|
+
// An engine that opens a Node callback scope around every callback
|
|
2117
|
+
// (capabilities.callbackScope) drains the queue itself on return.
|
|
2118
|
+
if (this._drainArmed || this._capabilities?.callbackScope === true)
|
|
2117
2119
|
return;
|
|
2118
2120
|
this._drainArmed = true;
|
|
2119
2121
|
setImmediate(() => {
|