@koi-design/callkit 2.1.0-beta.1 → 2.1.0-beta.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.
@@ -3870,7 +3870,7 @@ var WebCall = (() => {
3870
3870
  // package.json
3871
3871
  var package_default = {
3872
3872
  name: "@koi-design/callkit",
3873
- version: "2.1.0-beta.1",
3873
+ version: "2.1.0-beta.2",
3874
3874
  description: "callkit",
3875
3875
  author: "koi",
3876
3876
  license: "ISC",
@@ -4099,15 +4099,9 @@ ${log}` : log;
4099
4099
  if (currentChunk.length > 0) {
4100
4100
  chunks.push(currentChunk.join("\n"));
4101
4101
  }
4102
- await chunks.reduce(async (previousPromise, chunk, index) => {
4103
- await previousPromise;
4104
- if (index > 0) {
4105
- await new Promise((resolve) => {
4106
- setTimeout(resolve, 1e3);
4107
- });
4108
- }
4102
+ for (const chunk of chunks) {
4109
4103
  await this.callKit.api.trackLogs(chunk);
4110
- }, Promise.resolve());
4104
+ }
4111
4105
  this.pendingTrackLogs = [];
4112
4106
  } catch (error) {
4113
4107
  console.error(error);