@sheetxl/scripting 0.8.0-beta.23 → 0.8.0-beta.25

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/README.md CHANGED
@@ -275,7 +275,7 @@ Commercial license. See [LICENSE](../../LICENSE.md) for details.
275
275
 
276
276
  ## Resources
277
277
 
278
- - 📘 [Documentation](https://www.sheetxl.com/docs/concepts/scripting) - Complete scripting guide
278
+ - 📘 [Documentation](https://www.sheetxl.com/docs/guides/concepts/scripting) - Complete scripting guide
279
279
  - 🔌 [API Reference](https://api.sheetxl.com) - Full API documentation
280
280
  - 💬 [Discord Community](https://discord.gg/NTKdwUgK9p) - Get help and share ideas
281
281
  - ⭐ [GitHub](https://github.com/sheetxl/sheetxl) - Star us and follow development
@@ -1033,15 +1033,20 @@ var oi, $e = (e, t) => {
1033
1033
  let A = e[S], L = A >> 1;
1034
1034
  if (1 & A) {
1035
1035
  let h = n[L];
1036
- if (f <= h && b(f, h), d > 1) {
1037
- let y = d - 1;
1038
- for (; y >= 0 && c[y] !== L;) y--;
1039
- y !== -1 && (c[y] = c[d - 1]);
1036
+ f <= h && b(f, h);
1037
+ let y = d - 1;
1038
+ for (; y >= 0 && c[y] !== L;) y--;
1039
+ if (y !== -1) {
1040
+ for (let w = y + 1; w < d; w++) c[w - 1] = c[w];
1041
+ d--;
1040
1042
  }
1041
- d--, f = h + 1;
1043
+ f = h + 1;
1042
1044
  } else {
1043
1045
  let h = r[L];
1044
- d > 0 && f < h && b(f, h - 1), d >= c.length && (c = this._overlaps = $e(c, d + 1)), c[d++] = L, f = h;
1046
+ d > 0 && f < h && b(f, h - 1), d >= c.length && (c = this._overlaps = $e(c, d + 1));
1047
+ let y = d;
1048
+ for (; y > 0 && c[y - 1] > L;) c[y] = c[y - 1], y--;
1049
+ c[y] = L, d++, f = h;
1045
1050
  }
1046
1051
  }
1047
1052
  l[o] = m, this._rCount = o, this._region = -1, this._rInter = null;
@@ -4,7 +4,7 @@ var t = class {
4
4
  }
5
5
  async getWorkerWrapper() {
6
6
  if (this.workerWrapper) return this.workerWrapper;
7
- const { createCompilerWorker: r } = await import("./DYo_7j0y20wRtntJ.mjs");
7
+ const { createCompilerWorker: r } = await import("./BidIa4lARdYGHm03.mjs");
8
8
  return this.workerWrapper = await r(), this.workerWrapper;
9
9
  }
10
10
  async compileModule(r) {
@@ -50,7 +50,7 @@ var k = Object.freeze({ compile: async function(t) {
50
50
  if (l && f.deepEqual(l, t)) return a;
51
51
  const n = await (await (async function() {
52
52
  if (o) return o;
53
- const { TypeScriptCompiler: e } = await import("./Dxfyqtw07s-Dtn7T.mjs");
53
+ const { TypeScriptCompiler: e } = await import("./DMYFyfVN7tu3bUMi.mjs");
54
54
  return o = new e();
55
55
  })()).compileModule(t);
56
56
  return a = n, l = t, n;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/scripting",
3
3
  "description": "Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild.",
4
- "version": "0.8.0-beta.23",
4
+ "version": "0.8.0-beta.25",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
7
7
  "exports": {
@@ -39,8 +39,8 @@
39
39
  "scripting"
40
40
  ],
41
41
  "dependencies": {
42
- "@sheetxl/primitives": "^0.8.0-beta.23",
43
- "@sheetxl/utils": "^0.8.0-beta.23"
42
+ "@sheetxl/primitives": "^0.8.0-beta.25",
43
+ "@sheetxl/utils": "^0.8.0-beta.25"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "esbuild-wasm": ">=0.25.7",