@sheetxl/scripting 0.8.0-beta.11 → 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.
@@ -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("./C8P-wHdBmweFS0Ex.mjs");
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.11",
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.11",
43
- "@sheetxl/utils": "^0.8.0-beta.11"
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",
@@ -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. */
@@ -1,17 +0,0 @@
1
- var i = Object.freeze({ NoBody: "SXL1001", Anonymous: "SXL1002", ParseError: "SXL1003", InvalidParamType: "SXL2001", InvalidReturnType: "SXL2002", UndefinedInput: "SXL2003", MissingType: "SXL2004", UntypedArray: "SXL2005", GenericArity: "SXL2006", MultipleModifiers: "SXL2007", ContextNotFirst: "SXL2010", MultipleLambda: "SXL2020", LambdaNotLast: "SXL2021", LambdaScalarMismatch: "SXL2022", LambdaReturn: "SXL2023", FunctionReturn: "SXL2024", LambdaArity: "SXL2025", ArrayDepth: "SXL2030", RepeatingPosition: "SXL2040", MultipleRepeating: "SXL2041", RepeatingSlots: "SXL2042", RepeatingOptional: "SXL2043", RepeatingMax: "SXL2044", EnumMixed: "SXL2050", EnumMemberNotConstant: "SXL2051", EnumNotLocal: "SXL2052", EnumMissingAlias: "SXL2053", EnumPosition: "SXL2054", EnumOmittedValue: "SXL2055", NoExports: "SXL3001", UnknownParam: "SXL3002", BuiltInName: "SXL3003", UnknownReturnKind: "SXL3005", InvalidName: "SXL3006", DuplicateName: "SXL3007", MissingSummary: "SXL9001", MissingParamDescription: "SXL9002", MissingReturns: "SXL9003", EnumDuplicateValue: "SXL9004", EnumMemberUndocumented: "SXL9005" }), a = [{ name: "param", group: "jsdoc", description: "Document a parameter. A string union type becomes a dropdown of allowed options.", snippet: "param ${1:name} ${2:description}" }, { name: "returns", aliases: ["return"], group: "jsdoc", description: "Describe the return value." }, { name: "category", group: "sheetxl", description: "Group the function under a category in the function list.", snippet: "category ${1:name}" }, { name: "name", group: "sheetxl", description: "A name an identifier cannot spell: the name formulas call a function by (MY.FUNC), or an enum member's label.", snippet: "name ${1:NAME}" }, { name: "description", group: "sheetxl", description: "A longer description of the function." }, { name: "deprecated", group: "sheetxl", standalone: !0, description: "Mark the function as deprecated (optionally with a reason)." }, { name: "hidden", group: "sheetxl", standalone: !0, description: "Hide the function from the function list." }, { name: "returnkind", group: "sheetxl", description: "Declare the value kind of the return (a ValueKind word, e.g. `number`, `array`, `reference`) where the type spelling cannot say it (a union return collapses to any).", snippet: "returnKind ${1:number}" }, { name: "example", group: "jsdoc", description: "Provide a usage example." }, { name: "see", group: "jsdoc", description: "Reference a related function or link." }], r = (() => {
2
- const n = /* @__PURE__ */ new Map();
3
- for (const e of a) if (n.set(e.name, e), e.aliases) for (const t of e.aliases) n.set(t, e);
4
- return n;
5
- })();
6
- function o(n) {
7
- return (function(e) {
8
- if (!e) return;
9
- const t = (e.startsWith("@") ? e.slice(1) : e).toLowerCase();
10
- return r.get(t);
11
- })(n)?.standalone === !0;
12
- }
13
- export {
14
- o as n,
15
- i as r,
16
- a as t
17
- };