@sheetxl/scripting 0.8.0-beta.10 → 0.8.0-beta.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/README.md +1 -1
- package/browser/esm/{qjsNvVXUFvwuddu9.mjs → B1fOG8aTlcVjAako.mjs} +1 -1
- package/browser/esm/CG8cKOROEp3veyFv.mjs +3958 -0
- package/{node/esm/B74CcyWYGHJL1E2s.mjs → browser/esm/CUERvTrIURHqOWKm.mjs} +281 -282
- package/browser/esm/{Ly2yqBRuG8dssY2w.mjs → CwhaPB7R93eqixfq.mjs} +2 -2
- package/browser/esm/DfSFyaySrD6y1NJY.mjs +17 -0
- package/browser/esm/index.mjs +3 -3
- package/node/esm/{Dl6HzBX-qBm0gCfJ.mjs → 2OiXgLd8VwO6IeDg.mjs} +1 -1
- package/node/esm/{DoQf-VD0li_RugX4.mjs → BDIcVjo-h3KFdXXo.mjs} +1 -1
- package/node/esm/BLO91PRuOQIsW_Ow.mjs +580 -0
- package/node/esm/index.mjs +9 -9
- package/node/esm/{Dhbf7vOdddc7aiOT.mjs → oWHIRxwwLexnOwAn.mjs} +1 -1
- package/package.json +3 -3
- package/types/src/type/CompileOptions.d.ts +1 -1
- package/types/src/type/CompiledModule.d.ts +1 -1
- package/types/src/type/Diagnostic.d.ts +0 -2
- package/types/src/type/Types.d.ts +16 -0
- package/browser/esm/21ztp96onxWNyfBZ.mjs +0 -581
- package/browser/esm/B73J41HhbJvswDz1.mjs +0 -17
- package/browser/esm/BvzmZuTo8xvOBJ6a.mjs +0 -3627
|
@@ -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("./
|
|
7
|
+
const { createCompilerWorker: r } = await import("./2OiXgLd8VwO6IeDg.mjs");
|
|
8
8
|
return this.workerWrapper = await r(), this.workerWrapper;
|
|
9
9
|
}
|
|
10
10
|
async compileModule(r) {
|
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.
|
|
4
|
+
"version": "0.8.0-beta.12",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
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.
|
|
43
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
42
|
+
"@sheetxl/primitives": "^0.8.0-beta.12",
|
|
43
|
+
"@sheetxl/utils": "^0.8.0-beta.12"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"esbuild-wasm": ">=0.25.7",
|
|
@@ -20,7 +20,7 @@ export interface CompileOptions {
|
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
22
|
* Off by default: code that is only run keeps its own names, so a runtime error reads as the
|
|
23
|
-
* author wrote it (`wb.
|
|
23
|
+
* author wrote it (`wb.getWorksheet is not a function`, not `a.getWorksheet`).
|
|
24
24
|
*/
|
|
25
25
|
minify?: boolean;
|
|
26
26
|
/**
|
|
@@ -73,7 +73,7 @@ export interface CompiledModule {
|
|
|
73
73
|
*
|
|
74
74
|
* @remarks
|
|
75
75
|
* There is deliberately no sheet value here. A sheet's modules are stored BY the sheet
|
|
76
|
-
* (`
|
|
76
|
+
* (`IWorksheet.JSON.modules`), so nothing has to name it and a module cannot be left behind pointing
|
|
77
77
|
* at a sheet that no longer exists. This field exists only because a workbook holds both its
|
|
78
78
|
* global modules and its own in one collection, which is the single case nesting cannot express.
|
|
79
79
|
*/
|
|
@@ -70,8 +70,6 @@ export declare const DiagnosticCode: Readonly<{
|
|
|
70
70
|
readonly UntypedArray: "SXL2005";
|
|
71
71
|
/** A generic type must be supplied exactly one type argument. */
|
|
72
72
|
readonly GenericArity: "SXL2006";
|
|
73
|
-
/** A return type cannot combine multiple modifiers (e.g. async + stream). */
|
|
74
|
-
readonly MultipleModifiers: "SXL2007";
|
|
75
73
|
/** A context parameter must be the first parameter. */
|
|
76
74
|
readonly ContextNotFirst: "SXL2010";
|
|
77
75
|
/** More than one `Lambda` parameter. */
|
|
@@ -14,6 +14,22 @@ export interface FunctionBinder {
|
|
|
14
14
|
export interface FunctionProvider {
|
|
15
15
|
(getContext: () => IFormulaContext, bindFn: FunctionBinder, mapBind?: Map<string, IFunction>): Map<string, IFunction>;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* One source module's declarations, without its implementations.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* A compiled formula package exports a list of these from its `declarations` entry, for a consumer
|
|
22
|
+
* that needs to know what each function accepts and returns (a file format, a linter) but never runs
|
|
23
|
+
* one. Importing it does not load the implementations.
|
|
24
|
+
*/
|
|
25
|
+
export interface FunctionDeclarationModule {
|
|
26
|
+
/** The module's declarations, by function name. */
|
|
27
|
+
declarations: MinifiedDeclarations;
|
|
28
|
+
/** The category the module's functions belong to unless a declaration names its own. */
|
|
29
|
+
category?: string;
|
|
30
|
+
/** The enums the declarations refer to. */
|
|
31
|
+
enums?: MinifiedEnums;
|
|
32
|
+
}
|
|
17
33
|
/**
|
|
18
34
|
* Minified value.
|
|
19
35
|
*/
|