@huaqiu/dsh-tool-schematic-gen 0.3.10 → 0.3.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/lib/client.js CHANGED
@@ -26270,8 +26270,8 @@ ${indent})`;
26270
26270
  } while (a !== start);
26271
26271
  }
26272
26272
  function eliminateHoles(data, holeIndices, outerNode, dim) {
26273
- var queue = [], i, len, start, end, list;
26274
- for (i = 0, len = holeIndices.length; i < len; i++) {
26273
+ var queue = [], i = 0, len = holeIndices.length, start, end, list;
26274
+ for (; i < len; i++) {
26275
26275
  start = holeIndices[i] * dim;
26276
26276
  end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;
26277
26277
  list = linkedList(data, start, end, dim, false);
@@ -101017,8 +101017,8 @@ ${indent})`;
101017
101017
  if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
101018
101018
  },
101019
101019
  readLocalFiles: function() {
101020
- var e2, t2;
101021
- for (e2 = 0; e2 < this.files.length; e2++) t2 = this.files[e2], this.reader.setIndex(t2.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t2.readLocalPart(this.reader), t2.handleUTF8(), t2.processAttributes();
101020
+ var e2 = 0, t2;
101021
+ for (; e2 < this.files.length; e2++) t2 = this.files[e2], this.reader.setIndex(t2.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t2.readLocalPart(this.reader), t2.handleUTF8(), t2.processAttributes();
101022
101022
  },
101023
101023
  readCentralDir: function() {
101024
101024
  var e2;
@@ -101397,8 +101397,8 @@ ${indent})`;
101397
101397
  var r2 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
101398
101398
  if (r2 !== l) throw new Error(i[r2]);
101399
101399
  if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
101400
- var n2;
101401
- if (n2 = "string" == typeof t2.dictionary ? h.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r2 = a.deflateSetDictionary(this.strm, n2)) !== l) throw new Error(i[r2]);
101400
+ var n2 = "string" == typeof t2.dictionary ? h.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary;
101401
+ if ((r2 = a.deflateSetDictionary(this.strm, n2)) !== l) throw new Error(i[r2]);
101402
101402
  this._dict_set = true;
101403
101403
  }
101404
101404
  }
@@ -101499,8 +101499,8 @@ ${indent})`;
101499
101499
  else for (var s2 = 0; s2 < n2; s2++) e2[i2 + s2] = t2[r2 + s2];
101500
101500
  },
101501
101501
  flattenChunks: function(e2) {
101502
- var t2, r2, n2, i2, s2, a;
101503
- for (t2 = n2 = 0, r2 = e2.length; t2 < r2; t2++) n2 += e2[t2].length;
101502
+ var t2 = n2 = 0, r2 = e2.length, n2, i2, s2, a;
101503
+ for (; t2 < r2; t2++) n2 += e2[t2].length;
101504
101504
  for (a = new Uint8Array(n2), t2 = i2 = 0, r2 = e2.length; t2 < r2; t2++) s2 = e2[t2], a.set(s2, i2), i2 += s2.length;
101505
101505
  return a;
101506
101506
  }
@@ -102677,8 +102677,8 @@ while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]
102677
102677
  }
102678
102678
  }
102679
102679
  function W(e2) {
102680
- var t2;
102681
- for (t2 = 0; t2 < l; t2++) e2.dyn_ltree[2 * t2] = 0;
102680
+ var t2 = 0;
102681
+ for (; t2 < l; t2++) e2.dyn_ltree[2 * t2] = 0;
102682
102682
  for (t2 = 0; t2 < f; t2++) e2.dyn_dtree[2 * t2] = 0;
102683
102683
  for (t2 = 0; t2 < c; t2++) e2.bl_tree[2 * t2] = 0;
102684
102684
  e2.dyn_ltree[2 * m] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;