@plyaz/api 1.8.0 → 1.8.1
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/api/queue/BatchProcessor.d.ts.map +1 -1
- package/dist/entry-frontend.cjs +3 -3
- package/dist/entry-frontend.cjs.map +1 -1
- package/dist/entry-frontend.mjs +3 -3
- package/dist/entry-frontend.mjs.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1179,10 +1179,10 @@ var BatchProcessor = class {
|
|
|
1179
1179
|
*/
|
|
1180
1180
|
scheduleFlush() {
|
|
1181
1181
|
if (this.timer) return;
|
|
1182
|
-
this.timer =
|
|
1182
|
+
this.timer = setTimeout(() => {
|
|
1183
1183
|
this.timer = void 0;
|
|
1184
1184
|
void this.flush();
|
|
1185
|
-
});
|
|
1185
|
+
}, 0);
|
|
1186
1186
|
}
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Flush the current batch
|
|
@@ -1214,7 +1214,7 @@ var BatchProcessor = class {
|
|
|
1214
1214
|
clear() {
|
|
1215
1215
|
this.batch.length = 0;
|
|
1216
1216
|
if (this.timer) {
|
|
1217
|
-
|
|
1217
|
+
clearTimeout(this.timer);
|
|
1218
1218
|
this.timer = void 0;
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|