marko 4.28.8 → 4.28.9
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.
|
@@ -91,6 +91,7 @@ module.exports = function awaitTag(input, out) {
|
|
|
91
91
|
awaitInfo.after = input.showAfter;
|
|
92
92
|
|
|
93
93
|
clientReorderContext = out.global.n_ || (out.global.n_ = {
|
|
94
|
+
handleAwait: undefined,
|
|
94
95
|
instances: [],
|
|
95
96
|
nextId: 0
|
|
96
97
|
});
|
|
@@ -133,7 +134,9 @@ module.exports = function awaitTag(input, out) {
|
|
|
133
134
|
oldEmit.apply(asyncOut, arguments);
|
|
134
135
|
};
|
|
135
136
|
|
|
136
|
-
if (clientReorderContext.
|
|
137
|
+
if (clientReorderContext.handleAwait) {
|
|
138
|
+
clientReorderContext.handleAwait(awaitInfo);
|
|
139
|
+
} else {
|
|
137
140
|
clientReorderContext.instances.push(awaitInfo);
|
|
138
141
|
}
|
|
139
142
|
|
|
@@ -99,14 +99,13 @@ module.exports = function (input, out) {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
awaitContext.instances.forEach(handleAwait);
|
|
102
|
-
|
|
103
|
-
out.on("await:clientReorder", function (awaitInfo) {
|
|
102
|
+
awaitContext.handleAwait = function (awaitInfo) {
|
|
104
103
|
remaining++;
|
|
105
104
|
handleAwait(awaitInfo);
|
|
106
|
-
}
|
|
105
|
+
};
|
|
107
106
|
|
|
108
107
|
// Now that we have a listener attached, we want to receive any additional
|
|
109
|
-
// out-of-sync instances via
|
|
110
|
-
|
|
108
|
+
// out-of-sync instances via the method
|
|
109
|
+
awaitContext.instances = undefined;
|
|
111
110
|
});
|
|
112
111
|
};
|
package/package.json
CHANGED
|
@@ -103,6 +103,7 @@ module.exports = function awaitTag(input, out) {
|
|
|
103
103
|
clientReorderContext =
|
|
104
104
|
out.global.___clientReorderContext ||
|
|
105
105
|
(out.global.___clientReorderContext = {
|
|
106
|
+
handleAwait: undefined,
|
|
106
107
|
instances: [],
|
|
107
108
|
nextId: 0,
|
|
108
109
|
});
|
|
@@ -148,7 +149,9 @@ module.exports = function awaitTag(input, out) {
|
|
|
148
149
|
oldEmit.apply(asyncOut, arguments);
|
|
149
150
|
};
|
|
150
151
|
|
|
151
|
-
if (clientReorderContext.
|
|
152
|
+
if (clientReorderContext.handleAwait) {
|
|
153
|
+
clientReorderContext.handleAwait(awaitInfo);
|
|
154
|
+
} else {
|
|
152
155
|
clientReorderContext.instances.push(awaitInfo);
|
|
153
156
|
}
|
|
154
157
|
|
|
@@ -143,14 +143,13 @@ module.exports = function (input, out) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
awaitContext.instances.forEach(handleAwait);
|
|
146
|
-
|
|
147
|
-
out.on("await:clientReorder", function (awaitInfo) {
|
|
146
|
+
awaitContext.handleAwait = function (awaitInfo) {
|
|
148
147
|
remaining++;
|
|
149
148
|
handleAwait(awaitInfo);
|
|
150
|
-
}
|
|
149
|
+
};
|
|
151
150
|
|
|
152
151
|
// Now that we have a listener attached, we want to receive any additional
|
|
153
|
-
// out-of-sync instances via
|
|
154
|
-
|
|
152
|
+
// out-of-sync instances via the method
|
|
153
|
+
awaitContext.instances = undefined;
|
|
155
154
|
});
|
|
156
155
|
};
|