@sheetxl/scripting 0.6.5 → 0.6.7
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/browser/cjs/{8PV9JMvCFSjW86OS.cjs → BFCGA3RX_gEK8eR4.cjs} +1 -1
- package/browser/cjs/{h_1iAnqtBlAEx2HW.cjs → BhErcxWr6eEDCn__.cjs} +12 -12
- package/browser/cjs/{C8QbK005Q2_t_iHm.cjs → Bj1scLzLuLqfM8-K.cjs} +2 -2
- package/browser/cjs/{CxNcojEEHW9HUm9e.cjs → Dg_8z0K__S4SRICZ.cjs} +3 -3
- package/browser/cjs/{TjEfGXGJWS54To8_.cjs → QjgF519ZFvYoCjWT.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{CafaMkaiXdAjbesc.mjs → B16B45k5DrYEeYkI.mjs} +1 -1
- package/browser/esm/{DoIlGdTTjAbgzAO_.mjs → BPkJB2EP1mouOwla.mjs} +1 -1
- package/browser/esm/{BbdK3X5ZhFzzQ8AV.mjs → BhuOwg37oiGrdIh5.mjs} +5 -5
- package/browser/esm/{Bl1Rszg-NMY5Avsw.mjs → DKgdN329eYDOFSsc.mjs} +12 -12
- package/browser/esm/{B6GTosDqKKWj984a.mjs → dJ1gFh7MOPOxYk1P.mjs} +2 -2
- package/browser/esm/index.mjs +4 -4
- package/node/esm/{T8WOmWtRnt76hDGN.mjs → Bhyzw8F3sWqtx2Ll.mjs} +12 -12
- package/node/esm/{DbNwaDWKs4IlqUag.mjs → Binx4TooNwd5KiWi.mjs} +1 -1
- package/node/esm/{BRKNzW6-62i8-PCw.mjs → CnljPBNP8GufNERo.mjs} +1 -1
- package/node/esm/{DciFTRYStqQKji8J.mjs → DJJjz706eW-9RtGl.mjs} +5 -5
- package/node/esm/{DUwDZ5Oj-glX3mAe.mjs → DXkMROzeTG3LxngH.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
|
6
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.7
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -223,7 +223,7 @@ var v;
|
|
|
223
223
|
return r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = v.Unknown), new r(t, n);
|
|
224
224
|
}, v.getBuiltInById = (e) => Te.get(e) || xt;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.7
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -332,15 +332,15 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
|
|
|
332
332
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
333
333
|
function Lt(e) {
|
|
334
334
|
const t = Object.prototype.toString.call(e);
|
|
335
|
-
return t === "[object RegExp]" || t === "[object Date]" || function(n) {
|
|
335
|
+
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
336
336
|
return n.$$typeof === At;
|
|
337
|
-
}(e);
|
|
337
|
+
})(e);
|
|
338
338
|
}
|
|
339
339
|
const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
340
340
|
function Mt(e) {
|
|
341
|
-
return /* @__PURE__ */ function(t) {
|
|
341
|
+
return /* @__PURE__ */ (function(t) {
|
|
342
342
|
return !!t && typeof t == "object";
|
|
343
|
-
}(e) && !Lt(e);
|
|
343
|
+
})(e) && !Lt(e);
|
|
344
344
|
}
|
|
345
345
|
function re(e, t) {
|
|
346
346
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
@@ -352,11 +352,11 @@ function jt(e, t, n) {
|
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
function Be(e) {
|
|
355
|
-
return Object.keys(e).concat(function(t) {
|
|
355
|
+
return Object.keys(e).concat((function(t) {
|
|
356
356
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
357
357
|
return Object.propertyIsEnumerable.call(t, n);
|
|
358
358
|
}) : [];
|
|
359
|
-
}(e));
|
|
359
|
+
})(e));
|
|
360
360
|
}
|
|
361
361
|
function $e(e, t) {
|
|
362
362
|
try {
|
|
@@ -372,11 +372,11 @@ function Pt(e, t, n) {
|
|
|
372
372
|
}), Be(t).forEach(function(o) {
|
|
373
373
|
(function(i, a) {
|
|
374
374
|
return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
|
|
375
|
-
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = function(i, a) {
|
|
375
|
+
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(i, a) {
|
|
376
376
|
if (!a.customMerge) return Y;
|
|
377
377
|
const l = a.customMerge(i);
|
|
378
378
|
return typeof l == "function" ? l : Y;
|
|
379
|
-
}(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
379
|
+
})(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
380
380
|
}), r;
|
|
381
381
|
}
|
|
382
382
|
function Y(e, t, n) {
|
|
@@ -1504,4 +1504,4 @@ var ln = /* @__PURE__ */ Object.freeze({
|
|
|
1504
1504
|
__proto__: null,
|
|
1505
1505
|
initialize: an
|
|
1506
1506
|
});
|
|
1507
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1507
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./Dg_8z0K__S4SRICZ.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./BhErcxWr6eEDCn__.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("@sheetxl/primitives"),ae=require("@sheetxl/utils");let L=null,I=null;const oe={compilerOptions:{target:"esnext"}};async function le(h,x,b="/script.js",w="__SHEETXL"){try{const K=await
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("@sheetxl/primitives"),ae=require("@sheetxl/utils");let L=null,I=null;const oe={compilerOptions:{target:"esnext"}};async function le(h,x,b="/script.js",w="__SHEETXL"){try{const K=await(async function(){if(L)return L;if(I){if(await I,!L)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return L}let p,T;I=new Promise((a,S)=>{p=a,T=S});try{const{initialize:a}=await Promise.resolve().then(()=>require("./BFCGA3RX_gEK8eR4.cjs"));return L=await a(),p(),L}catch(a){throw console.error("Failed to import or initialize esbuild:",a),I=null,T(a),a}})(),j="@sheetxl/primitives",n=`
|
|
7
7
|
export const FormulaContext = globalThis.${w}?.FormulaContext;
|
|
8
8
|
export const ScalarType = globalThis.${w}?.ScalarType;
|
|
9
9
|
export const Observable = globalThis.${w}?.Observable;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
interface FirstTest {
|
|
16
16
|
isTrue?: boolean;
|
|
17
17
|
}
|
|
18
|
-
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(h,x)=>{Array.from(x.keys()).forEach(b=>{const w=x.get(b);x.set(`${h}.${b}`,w)})},ce=new Map([["Scalar","*"],["FormulaError.Known",$.ScalarType.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),X="SheetXL";V(X,Y),V(X,Z),V(X,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let q=null;async function pe(){if(q)return q;try{return await(await Promise.resolve().then(()=>require("./
|
|
18
|
+
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(h,x)=>{Array.from(x.keys()).forEach(b=>{const w=x.get(b);x.set(`${h}.${b}`,w)})},ce=new Map([["Scalar","*"],["FormulaError.Known",$.ScalarType.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),X="SheetXL";V(X,Y),V(X,Z),V(X,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let q=null;async function pe(){if(q)return q;try{return await(await Promise.resolve().then(()=>require("./QjgF519ZFvYoCjWT.cjs"))).initialize()}catch(h){throw q=null,h}finally{q=null}}exports.compileModule=async function(h){const x=h?.source??null;if(!x)return null;const b=(h.disableBundle||h.declarationsOnly)??!1,w=[se(),pe()],K=await Promise.all(w),j=K[0],n=K[1];let F="",f=null;const p=[],T={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},a="script",S=`${a}.ts`,_="lib.d.ts",H="global.d.ts",M={[S]:x,[_]:`
|
|
19
19
|
/**
|
|
20
20
|
* Represents the completion of an asynchronous operation
|
|
21
21
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@sheetxl/utils");let l=null,n=null,t=null;const c=Object.freeze({compileTypescript:async function(e){if(!(e?.source??null))return null;if(n&&u.CommonUtils.deepEqual(n,e))return l;const i=await
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@sheetxl/utils");let l=null,n=null,t=null;const c=Object.freeze({compileTypescript:async function(e){if(!(e?.source??null))return null;if(n&&u.CommonUtils.deepEqual(n,e))return l;const i=await(async function(){if(t)return t;const{TypeScriptCompiler:o}=await Promise.resolve().then(()=>require("./Bj1scLzLuLqfM8-K.cjs"));return t=new o,t})(),r=await i.compileModule(e);return l=r,n=e,r}});exports.ScriptingUtils=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { ScalarType as v } from "@sheetxl/primitives";
|
|
2
2
|
import { CommonUtils as ae } from "@sheetxl/utils";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
4
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -10,7 +10,7 @@ let L = null, P = null;
|
|
|
10
10
|
const oe = { compilerOptions: { target: "esnext" } };
|
|
11
11
|
async function le(h, x, S = "/script.js", w = "__SHEETXL") {
|
|
12
12
|
try {
|
|
13
|
-
const $ = await async function() {
|
|
13
|
+
const $ = await (async function() {
|
|
14
14
|
if (L) return L;
|
|
15
15
|
if (P) {
|
|
16
16
|
if (await P, !L) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
@@ -21,12 +21,12 @@ async function le(h, x, S = "/script.js", w = "__SHEETXL") {
|
|
|
21
21
|
p = a, b = T;
|
|
22
22
|
});
|
|
23
23
|
try {
|
|
24
|
-
const { initialize: a } = await import("./
|
|
24
|
+
const { initialize: a } = await import("./BPkJB2EP1mouOwla.mjs");
|
|
25
25
|
return L = await a(), p(), L;
|
|
26
26
|
} catch (a) {
|
|
27
27
|
throw console.error("Failed to import or initialize esbuild:", a), P = null, b(a), a;
|
|
28
28
|
}
|
|
29
|
-
}(), A = "@sheetxl/primitives", n = `
|
|
29
|
+
})(), A = "@sheetxl/primitives", n = `
|
|
30
30
|
export const FormulaContext = globalThis.${w}?.FormulaContext;
|
|
31
31
|
export const ScalarType = globalThis.${w}?.ScalarType;
|
|
32
32
|
export const Observable = globalThis.${w}?.Observable;
|
|
@@ -70,7 +70,7 @@ let B = null;
|
|
|
70
70
|
async function pe() {
|
|
71
71
|
if (B) return B;
|
|
72
72
|
try {
|
|
73
|
-
return await (await import("./
|
|
73
|
+
return await (await import("./B16B45k5DrYEeYkI.mjs")).initialize();
|
|
74
74
|
} catch (h) {
|
|
75
75
|
throw B = null, h;
|
|
76
76
|
} finally {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.6.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.7
|
|
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 r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = v.Unknown), new r(t, n);
|
|
267
267
|
}, v.getBuiltInById = (e) => Te.get(e) || xt;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.7
|
|
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.
|
|
@@ -375,15 +375,15 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
|
|
|
375
375
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
376
376
|
function Lt(e) {
|
|
377
377
|
const t = Object.prototype.toString.call(e);
|
|
378
|
-
return t === "[object RegExp]" || t === "[object Date]" || function(n) {
|
|
378
|
+
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
379
379
|
return n.$$typeof === At;
|
|
380
|
-
}(e);
|
|
380
|
+
})(e);
|
|
381
381
|
}
|
|
382
382
|
const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
383
383
|
function Mt(e) {
|
|
384
|
-
return /* @__PURE__ */ function(t) {
|
|
384
|
+
return /* @__PURE__ */ (function(t) {
|
|
385
385
|
return !!t && typeof t == "object";
|
|
386
|
-
}(e) && !Lt(e);
|
|
386
|
+
})(e) && !Lt(e);
|
|
387
387
|
}
|
|
388
388
|
function re(e, t) {
|
|
389
389
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
@@ -395,11 +395,11 @@ function jt(e, t, n) {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
function Be(e) {
|
|
398
|
-
return Object.keys(e).concat(function(t) {
|
|
398
|
+
return Object.keys(e).concat((function(t) {
|
|
399
399
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
400
400
|
return Object.propertyIsEnumerable.call(t, n);
|
|
401
401
|
}) : [];
|
|
402
|
-
}(e));
|
|
402
|
+
})(e));
|
|
403
403
|
}
|
|
404
404
|
function $e(e, t) {
|
|
405
405
|
try {
|
|
@@ -415,11 +415,11 @@ function Pt(e, t, n) {
|
|
|
415
415
|
}), Be(t).forEach(function(o) {
|
|
416
416
|
(function(i, a) {
|
|
417
417
|
return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
|
|
418
|
-
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = function(i, a) {
|
|
418
|
+
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(i, a) {
|
|
419
419
|
if (!a.customMerge) return Y;
|
|
420
420
|
const l = a.customMerge(i);
|
|
421
421
|
return typeof l == "function" ? l : Y;
|
|
422
|
-
}(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
422
|
+
})(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
423
423
|
}), r;
|
|
424
424
|
}
|
|
425
425
|
function Y(e, t, n) {
|
|
@@ -1574,7 +1574,7 @@ async function p() {
|
|
|
1574
1574
|
return await l();
|
|
1575
1575
|
}
|
|
1576
1576
|
const l = async () => {
|
|
1577
|
-
const { compileModule: e } = await import("./
|
|
1577
|
+
const { compileModule: e } = await import("./BhuOwg37oiGrdIh5.mjs"), n = new u((t) => e(t));
|
|
1578
1578
|
return await n.start(), n;
|
|
1579
1579
|
};
|
|
1580
1580
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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("./
|
|
13
|
+
const { createCompilerWorker: r } = await import("./DKgdN329eYDOFSsc.mjs");
|
|
14
14
|
return this.workerWrapper = await r(), this.workerWrapper;
|
|
15
15
|
}
|
|
16
16
|
async compileModule(r) {
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonUtils as u } from "@sheetxl/utils";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
|
@@ -9,11 +9,11 @@ let i = null, n = null, e = null;
|
|
|
9
9
|
const p = Object.freeze({ compileTypescript: async function(t) {
|
|
10
10
|
if (!(t?.source ?? null)) return null;
|
|
11
11
|
if (n && u.deepEqual(n, t)) return i;
|
|
12
|
-
const l = await async function() {
|
|
12
|
+
const l = await (async function() {
|
|
13
13
|
if (e) return e;
|
|
14
|
-
const { TypeScriptCompiler: o } = await import("./
|
|
14
|
+
const { TypeScriptCompiler: o } = await import("./dJ1gFh7MOPOxYk1P.mjs");
|
|
15
15
|
return e = new o(), e;
|
|
16
|
-
}(), r = await l.compileModule(t);
|
|
16
|
+
})(), r = await l.compileModule(t);
|
|
17
17
|
return i = r, n = t, r;
|
|
18
18
|
} });
|
|
19
19
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.6.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.7
|
|
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 r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = v.Unknown), new r(t, n);
|
|
267
267
|
}, v.getBuiltInById = (e) => Te.get(e) || xt;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.7
|
|
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.
|
|
@@ -375,15 +375,15 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
|
|
|
375
375
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
376
376
|
function Lt(e) {
|
|
377
377
|
const t = Object.prototype.toString.call(e);
|
|
378
|
-
return t === "[object RegExp]" || t === "[object Date]" || function(n) {
|
|
378
|
+
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
379
379
|
return n.$$typeof === At;
|
|
380
|
-
}(e);
|
|
380
|
+
})(e);
|
|
381
381
|
}
|
|
382
382
|
const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
383
383
|
function Mt(e) {
|
|
384
|
-
return /* @__PURE__ */ function(t) {
|
|
384
|
+
return /* @__PURE__ */ (function(t) {
|
|
385
385
|
return !!t && typeof t == "object";
|
|
386
|
-
}(e) && !Lt(e);
|
|
386
|
+
})(e) && !Lt(e);
|
|
387
387
|
}
|
|
388
388
|
function re(e, t) {
|
|
389
389
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
@@ -395,11 +395,11 @@ function jt(e, t, n) {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
function Be(e) {
|
|
398
|
-
return Object.keys(e).concat(function(t) {
|
|
398
|
+
return Object.keys(e).concat((function(t) {
|
|
399
399
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
400
400
|
return Object.propertyIsEnumerable.call(t, n);
|
|
401
401
|
}) : [];
|
|
402
|
-
}(e));
|
|
402
|
+
})(e));
|
|
403
403
|
}
|
|
404
404
|
function $e(e, t) {
|
|
405
405
|
try {
|
|
@@ -415,11 +415,11 @@ function Pt(e, t, n) {
|
|
|
415
415
|
}), Be(t).forEach(function(o) {
|
|
416
416
|
(function(i, a) {
|
|
417
417
|
return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
|
|
418
|
-
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = function(i, a) {
|
|
418
|
+
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(i, a) {
|
|
419
419
|
if (!a.customMerge) return Y;
|
|
420
420
|
const l = a.customMerge(i);
|
|
421
421
|
return typeof l == "function" ? l : Y;
|
|
422
|
-
}(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
422
|
+
})(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
423
423
|
}), r;
|
|
424
424
|
}
|
|
425
425
|
function Y(e, t, n) {
|
|
@@ -1574,7 +1574,7 @@ async function p() {
|
|
|
1574
1574
|
return await l();
|
|
1575
1575
|
}
|
|
1576
1576
|
const l = async () => {
|
|
1577
|
-
const { compileModule: e } = await import("./
|
|
1577
|
+
const { compileModule: e } = await import("./DJJjz706eW-9RtGl.mjs"), n = new u((t) => e(t));
|
|
1578
1578
|
return await n.start(), n;
|
|
1579
1579
|
};
|
|
1580
1580
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import * as s from "esbuild-wasm";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { ScalarType as v } from "@sheetxl/primitives";
|
|
2
2
|
import { CommonUtils as ae } from "@sheetxl/utils";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
4
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -10,7 +10,7 @@ let L = null, P = null;
|
|
|
10
10
|
const oe = { compilerOptions: { target: "esnext" } };
|
|
11
11
|
async function le(h, x, S = "/script.js", w = "__SHEETXL") {
|
|
12
12
|
try {
|
|
13
|
-
const $ = await async function() {
|
|
13
|
+
const $ = await (async function() {
|
|
14
14
|
if (L) return L;
|
|
15
15
|
if (P) {
|
|
16
16
|
if (await P, !L) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
@@ -21,12 +21,12 @@ async function le(h, x, S = "/script.js", w = "__SHEETXL") {
|
|
|
21
21
|
p = a, b = T;
|
|
22
22
|
});
|
|
23
23
|
try {
|
|
24
|
-
const { initialize: a } = await import("./
|
|
24
|
+
const { initialize: a } = await import("./CnljPBNP8GufNERo.mjs");
|
|
25
25
|
return L = await a(), p(), L;
|
|
26
26
|
} catch (a) {
|
|
27
27
|
throw console.error("Failed to import or initialize esbuild:", a), P = null, b(a), a;
|
|
28
28
|
}
|
|
29
|
-
}(), A = "@sheetxl/primitives", n = `
|
|
29
|
+
})(), A = "@sheetxl/primitives", n = `
|
|
30
30
|
export const FormulaContext = globalThis.${w}?.FormulaContext;
|
|
31
31
|
export const ScalarType = globalThis.${w}?.ScalarType;
|
|
32
32
|
export const Observable = globalThis.${w}?.Observable;
|
|
@@ -70,7 +70,7 @@ let B = null;
|
|
|
70
70
|
async function pe() {
|
|
71
71
|
if (B) return B;
|
|
72
72
|
try {
|
|
73
|
-
return await (await import("./
|
|
73
|
+
return await (await import("./Binx4TooNwd5KiWi.mjs")).initialize();
|
|
74
74
|
} catch (h) {
|
|
75
75
|
throw B = null, h;
|
|
76
76
|
} finally {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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("./
|
|
13
|
+
const { createCompilerWorker: r } = await import("./Bhyzw8F3sWqtx2Ll.mjs");
|
|
14
14
|
return this.workerWrapper = await r(), this.workerWrapper;
|
|
15
15
|
}
|
|
16
16
|
async compileModule(r) {
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonUtils as u } from "@sheetxl/utils";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.7
|
|
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.
|
|
@@ -9,11 +9,11 @@ let i = null, n = null, e = null;
|
|
|
9
9
|
const p = Object.freeze({ compileTypescript: async function(t) {
|
|
10
10
|
if (!(t?.source ?? null)) return null;
|
|
11
11
|
if (n && u.deepEqual(n, t)) return i;
|
|
12
|
-
const l = await async function() {
|
|
12
|
+
const l = await (async function() {
|
|
13
13
|
if (e) return e;
|
|
14
|
-
const { TypeScriptCompiler: o } = await import("./
|
|
14
|
+
const { TypeScriptCompiler: o } = await import("./DXkMROzeTG3LxngH.mjs");
|
|
15
15
|
return e = new o(), e;
|
|
16
|
-
}(), r = await l.compileModule(t);
|
|
16
|
+
})(), r = await l.compileModule(t);
|
|
17
17
|
return i = r, n = t, r;
|
|
18
18
|
} });
|
|
19
19
|
export {
|
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.6.
|
|
4
|
+
"version": "0.6.7",
|
|
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.6.
|
|
32
|
-
"@sheetxl/utils": "^0.6.
|
|
31
|
+
"@sheetxl/primitives": "^0.6.7",
|
|
32
|
+
"@sheetxl/utils": "^0.6.7",
|
|
33
33
|
"path-browserify": "^1.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|