@sheetxl/scripting 0.2.6 → 0.3.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.
Files changed (28) hide show
  1. package/LICENSE.md +11 -11
  2. package/README.md +309 -309
  3. package/browser/cjs/{hk-vy-g6CmJU9xqy.cjs → B7r9o0J98FeOpECG.cjs} +2 -2
  4. package/browser/cjs/{BARuVA3rLqhjAFo5.cjs → BpsMQL8WKA-7RfCC.cjs} +8 -13
  5. package/browser/cjs/DBkloFDekvQ92YXS.cjs +6 -0
  6. package/browser/cjs/{BMqIRQxRw4K8e0-c.cjs → DD5u0jJgnIfl_LRp.cjs} +3 -8
  7. package/browser/cjs/{liqm9acA3-nrAs3b.cjs → DwQSeolUdto6tnne.cjs} +3 -8
  8. package/browser/cjs/UDMd4iRmsiNDeVh4.cjs +6 -0
  9. package/browser/cjs/index.cjs +2 -2
  10. package/browser/esm/{BcvpIfnTmlQXt7_9.mjs → BB9Q-lDQb6Cd-_mI.mjs} +2 -2
  11. package/browser/esm/CbSvIMzV_OzOFidG.mjs +24 -0
  12. package/browser/esm/{RT1buZA9VR5ysUX8.mjs → CeyaVAZTjD2qkAHf.mjs} +9 -10
  13. package/browser/esm/{CqiaK1eCvblBDvvQ.mjs → CnhwtcVoqbW4lNsP.mjs} +8 -13
  14. package/browser/esm/{CouN61iEakKgCrZH.mjs → D1tRW1SWMJsVGesD.mjs} +309 -315
  15. package/browser/esm/{Qa4fAmu0jTRgpzKj.mjs → DQ3J4uNfIXgPKYoJ.mjs} +4 -10
  16. package/browser/esm/index.mjs +2 -2
  17. package/licenses/dependencies.txt +22 -22
  18. package/node/esm/{BnvW-oTnTTprwy5T.mjs → 4mi4tR_Wnw5gjYEb.mjs} +8 -13
  19. package/node/esm/BtNokzpAfQ4NDORx.mjs +14 -0
  20. package/node/esm/{DSBZsQA_mN68UsIn.mjs → CHn5nxfVUD9z6idt.mjs} +3 -9
  21. package/node/esm/{e681qu1_caFk4Ymu.mjs → D5AQfRIkPzleF5Ud.mjs} +1 -1
  22. package/node/esm/{k-nUdU0HR7EeOebA.mjs → DOzXoj7qdg53TENL.mjs} +2 -2
  23. package/node/esm/index.mjs +3 -9
  24. package/package.json +3 -3
  25. package/browser/cjs/DLR0X2oZPyo6cLlK.cjs +0 -6
  26. package/browser/cjs/ggqiJ7AVMR5OEJnW.cjs +0 -6
  27. package/browser/esm/DoJyfH8ar0VgQF35.mjs +0 -24
  28. package/node/esm/DZtDpK66kCXuqSiq.mjs +0 -14
@@ -1,12 +1,6 @@
1
- import { Y as he } from "./CouN61iEakKgCrZH.mjs";
1
+ import { Y as he } from "./D1tRW1SWMJsVGesD.mjs";
2
2
  /**
3
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
4
- *
5
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
- * License: The license can be found at https://www.sheetxl.com/license.
7
- */
8
- /**
9
- * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.2.6
3
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
10
4
  *
11
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -239,7 +233,7 @@ async function Te(e, a, C = "/script.js", p = "__SHEETXL") {
239
233
  b = d, N = S;
240
234
  });
241
235
  try {
242
- const { initialize: d } = await import("./DoJyfH8ar0VgQF35.mjs");
236
+ const { initialize: d } = await import("./CbSvIMzV_OzOFidG.mjs");
243
237
  return I = await d(), b(), I;
244
238
  } catch (d) {
245
239
  throw console.error("Failed to import or initialize esbuild:", d), Y = null, N(d), d;
@@ -288,7 +282,7 @@ let H = null;
288
282
  async function Le() {
289
283
  if (H) return H;
290
284
  try {
291
- return await (await import("./RT1buZA9VR5ysUX8.mjs")).initialize();
285
+ return await (await import("./CeyaVAZTjD2qkAHf.mjs")).initialize();
292
286
  } catch (e) {
293
287
  throw H = null, e;
294
288
  } finally {
@@ -1,6 +1,6 @@
1
- import { S as t } from "./CouN61iEakKgCrZH.mjs";
1
+ import { S as t } from "./D1tRW1SWMJsVGesD.mjs";
2
2
  /**
3
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
3
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,41 +1,41 @@
1
1
  Name: @sheetxl/primitives
2
- Version: 0.2.6
2
+ Version: 0.3.1
3
3
  License: SEE LICENSE IN <LICENSE>
4
4
  Private: false
5
5
  Description: Primitives - Base types for SheetXL functions.
6
6
  License Copyright:
7
7
  ===
8
8
 
9
- # Repository Licensing
10
-
11
- SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
12
-
13
- For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
14
-
15
- Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
16
-
17
- For more details on commercial licensing, please visit our website:
18
-
9
+ # Repository Licensing
10
+
11
+ SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
12
+
13
+ For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
14
+
15
+ Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
16
+
17
+ For more details on commercial licensing, please visit our website:
18
+
19
19
  https://www.sheetxl.com/licensing-pricing
20
20
 
21
21
  ---
22
22
 
23
23
  Name: @sheetxl/utils
24
- Version: 0.2.6
24
+ Version: 0.3.1
25
25
  License: SEE LICENSE IN <LICENSE>
26
26
  Private: false
27
27
  Description: Utils - Utilities used by most SheetXL components.
28
28
  License Copyright:
29
29
  ===
30
30
 
31
- # Repository Licensing
32
-
33
- SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
34
-
35
- For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
36
-
37
- Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
38
-
39
- For more details on commercial licensing, please visit our website:
40
-
31
+ # Repository Licensing
32
+
33
+ SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
34
+
35
+ For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
36
+
37
+ Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
38
+
39
+ For more details on commercial licensing, please visit our website:
40
+
41
41
  https://www.sheetxl.com/licensing-pricing
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
2
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -47,7 +47,7 @@ class u {
47
47
  }
48
48
  }
49
49
  const s = `/**
50
- * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.2.6
50
+ * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.1
51
51
  *
52
52
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
53
53
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -266,7 +266,7 @@ var v;
266
266
  return n = typeof e == "string" ? tt.get(e) : rt.get(e), n || (n = v.Unknown), new n(t, r);
267
267
  }, v.getBuiltInById = (e) => Te.get(e) || Et;
268
268
  /**
269
- * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.2.6
269
+ * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.1
270
270
  *
271
271
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
272
272
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -550,7 +550,7 @@ const qe = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
550
550
  }, findNextStep: (e, t = !0, r = 15, n = 10, o = 400) => {
551
551
  const i = Math.max(e - n, 0) + (t ? 1 : -1);
552
552
  return Math.min(o, Math[t ? "ceil" : "floor"](i / r) * r + n);
553
- }, getBuildEnv: () => "browser2-build", getDPI: () => {
553
+ }, getDPI: () => {
554
554
  let e = 1;
555
555
  return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
556
556
  }, getFromPath: (e, t) => {
@@ -1505,21 +1505,17 @@ let ce = null;
1505
1505
  async function tr() {
1506
1506
  return ce || (ce = new Promise(async (e, t) => {
1507
1507
  try {
1508
- const r = "0.20.2", n = \`https://esm.sh/esbuild-wasm@\${r}\`, o = \`https://esm.sh/esbuild-wasm@\${r}/esbuild.wasm\`;
1509
- console.log("🔄 Initializing esbuild...", o);
1510
- const i = await import(
1508
+ const r = "0.20.2", n = \`https://esm.sh/esbuild-wasm@\${r}\`, o = \`https://esm.sh/esbuild-wasm@\${r}/esbuild.wasm\`, a = (await import(
1511
1509
  /* webpackIgnore: true */
1512
1510
  /* @vite-ignore */
1513
1511
  n
1514
- );
1515
- console.log("🔄 Got esm...", o);
1516
- const a = i.default;
1512
+ )).default;
1517
1513
  await a.initialize({
1518
1514
  wasmURL: o,
1519
1515
  // Provide the specific WASM URL
1520
1516
  worker: !1
1521
1517
  // Keep processing on the current thread
1522
- }), console.log("🔄 Initialized esm...", o), e(a);
1518
+ }), e(a);
1523
1519
  } catch (r) {
1524
1520
  console.error("Error initializing esbuild:", r), t(r);
1525
1521
  }
@@ -1532,7 +1528,6 @@ var rr = /* @__PURE__ */ Object.freeze({
1532
1528
  let ue = null;
1533
1529
  async function nr() {
1534
1530
  return ue || (ue = new Promise(async (e, t) => {
1535
- console.log("🔄 Initializing Browser TypeScript module...");
1536
1531
  let r = null;
1537
1532
  try {
1538
1533
  r = await import("https://esm.sh/typescript@5.7.2");
@@ -1573,7 +1568,7 @@ async function p() {
1573
1568
  return await l();
1574
1569
  }
1575
1570
  const l = async () => {
1576
- const { compileModule: e } = await import("./DSBZsQA_mN68UsIn.mjs"), n = new u((t) => e(t));
1571
+ const { compileModule: e } = await import("./CHn5nxfVUD9z6idt.mjs"), n = new u((t) => e(t));
1577
1572
  return await n.start(), n;
1578
1573
  };
1579
1574
  export {
@@ -0,0 +1,14 @@
1
+ import * as s from "esbuild-wasm";
2
+ /**
3
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
4
+ *
5
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
+ * License: The license can be found at https://www.sheetxl.com/license.
7
+ */
8
+ let i = null;
9
+ function t() {
10
+ return i || (i = s.initialize({ wasmURL: "https://esm.sh/esbuild-wasm@0.20.2/esbuild.wasm", worker: !1 }).then(() => s)), i;
11
+ }
12
+ export {
13
+ t as initialize
14
+ };
@@ -1,12 +1,6 @@
1
1
  import { e as he } from "./index.mjs";
2
2
  /**
3
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
4
- *
5
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
- * License: The license can be found at https://www.sheetxl.com/license.
7
- */
8
- /**
9
- * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.2.6
3
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
10
4
  *
11
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -239,7 +233,7 @@ async function Te(e, a, C = "/script.js", p = "__SHEETXL") {
239
233
  b = d, N = S;
240
234
  });
241
235
  try {
242
- const { initialize: d } = await import("./DZtDpK66kCXuqSiq.mjs");
236
+ const { initialize: d } = await import("./BtNokzpAfQ4NDORx.mjs");
243
237
  return I = await d(), b(), I;
244
238
  } catch (d) {
245
239
  throw console.error("Failed to import or initialize esbuild:", d), H = null, N(d), d;
@@ -288,7 +282,7 @@ let W = null;
288
282
  async function Le() {
289
283
  if (W) return W;
290
284
  try {
291
- return await (await import("./e681qu1_caFk4Ymu.mjs")).initialize();
285
+ return await (await import("./D5AQfRIkPzleF5Ud.mjs")).initialize();
292
286
  } catch (e) {
293
287
  throw W = null, e;
294
288
  } finally {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
2
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
2
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -10,7 +10,7 @@ class o {
10
10
  }
11
11
  async getWorkerWrapper() {
12
12
  if (this.workerWrapper) return this.workerWrapper;
13
- const { createCompilerWorker: r } = await import("./BnvW-oTnTTprwy5T.mjs");
13
+ const { createCompilerWorker: r } = await import("./4mi4tR_Wnw5gjYEb.mjs");
14
14
  return this.workerWrapper = await r(), this.workerWrapper;
15
15
  }
16
16
  async compileModule(r) {
@@ -1,11 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- /**
8
- * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.2.6
2
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.1
9
3
  *
10
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -283,7 +277,7 @@ const it = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
283
277
  }, findNextStep: (e, t = !0, n = 15, r = 10, o = 400) => {
284
278
  const a = Math.max(e - r, 0) + (t ? 1 : -1);
285
279
  return Math.min(o, Math[t ? "ceil" : "floor"](a / n) * n + r);
286
- }, getBuildEnv: () => "node-build", getDPI: () => {
280
+ }, getDPI: () => {
287
281
  let e = 1;
288
282
  return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
289
283
  }, getFromPath: (e, t) => {
@@ -817,7 +811,7 @@ const Vt = Object.freeze({ compileTypescript: async function(e) {
817
811
  if (q && $t.deepEqual(q, e)) return ht;
818
812
  const t = await async function() {
819
813
  if (M) return M;
820
- const { TypeScriptCompiler: r } = await import("./k-nUdU0HR7EeOebA.mjs");
814
+ const { TypeScriptCompiler: r } = await import("./DOzXoj7qdg53TENL.mjs");
821
815
  return M = new r(), M;
822
816
  }(), n = await t.compileModule(e);
823
817
  return ht = n, q = e, 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.2.6",
4
+ "version": "0.3.1",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -28,8 +28,8 @@
28
28
  "typescript"
29
29
  ],
30
30
  "dependencies": {
31
- "@sheetxl/primitives": "^0.2.6",
32
- "@sheetxl/utils": "^0.2.6",
31
+ "@sheetxl/primitives": "^0.3.1",
32
+ "@sheetxl/utils": "^0.3.1",
33
33
  "path-browserify": "^1.0.1"
34
34
  },
35
35
  "peerDependencies": {
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t=null;exports.initialize=async function(){return t||(t=new Promise(async(r,o)=>{console.log("🔄 Initializing Browser TypeScript module...");let e=null;try{e=await import("https://esm.sh/typescript@5.7.2")}catch(i){console.error("Error initializing Browser TypeScript module:",i)}e||console.log("use script fallback"),r(e)}),t)};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let s=null;exports.initialize=async function(){return s||(s=new Promise(async(o,l)=>{try{const i="0.20.2",n=`https://esm.sh/esbuild-wasm@${i}`,e=`https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`;console.log("🔄 Initializing esbuild...",e);const a=await import(n);console.log("🔄 Got esm...",e);const t=a.default;await t.initialize({wasmURL:e,worker:!1}),console.log("🔄 Initialized esm...",e),o(t)}catch(i){console.error("Error initializing esbuild:",i),l(i)}}),s)};
@@ -1,24 +0,0 @@
1
- /**
2
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- let e = null;
8
- async function r() {
9
- return e || (e = new Promise(async (o, l) => {
10
- try {
11
- const i = "0.20.2", n = `https://esm.sh/esbuild-wasm@${i}`, s = `https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`;
12
- console.log("🔄 Initializing esbuild...", s);
13
- const a = await import(n);
14
- console.log("🔄 Got esm...", s);
15
- const t = a.default;
16
- await t.initialize({ wasmURL: s, worker: !1 }), console.log("🔄 Initialized esm...", s), o(t);
17
- } catch (i) {
18
- console.error("Error initializing esbuild:", i), l(i);
19
- }
20
- }), e);
21
- }
22
- export {
23
- r as initialize
24
- };