@sheetxl/scripting 0.8.0-beta.9 → 1.0.0

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 (32) hide show
  1. package/LICENSE.md +8 -7
  2. package/README.md +2 -2
  3. package/browser/esm/BidIa4lARdYGHm03.mjs +4017 -0
  4. package/{node/esm/byRhqE863Yd8YyB5.mjs → browser/esm/CUERvTrIURHqOWKm.mjs} +281 -282
  5. package/browser/esm/{8IBYT7vkExASLJms.mjs → CwhaPB7R93eqixfq.mjs} +2 -2
  6. package/browser/esm/{DJmAxtGDsADOLRhd.mjs → DMYFyfVN7tu3bUMi.mjs} +1 -1
  7. package/browser/esm/DfSFyaySrD6y1NJY.mjs +17 -0
  8. package/browser/esm/index.mjs +3 -3
  9. package/node/esm/{DlnqsBJLAzuuPNOx.mjs → 2OiXgLd8VwO6IeDg.mjs} +1 -1
  10. package/node/esm/{Bj3F3BUcrLYUg3Dv.mjs → BDIcVjo-h3KFdXXo.mjs} +1 -1
  11. package/node/esm/BLO91PRuOQIsW_Ow.mjs +580 -0
  12. package/node/esm/index.mjs +9 -9
  13. package/node/esm/{Dp_cerCAQ8jL3dyP.mjs → oWHIRxwwLexnOwAn.mjs} +1 -1
  14. package/package.json +12 -8
  15. package/types/src/type/CompileOptions.d.ts +1 -1
  16. package/types/src/type/CompiledModule.d.ts +2 -2
  17. package/types/src/type/Diagnostic.d.ts +0 -2
  18. package/types/src/type/Types.d.ts +17 -0
  19. package/browser/cjs/12MLcWR439OVCXwt.cjs +0 -1
  20. package/browser/cjs/B6RS19boKbA_QGQ6.cjs +0 -2
  21. package/browser/cjs/Bn3oEXST6uP5oPU2.cjs +0 -1
  22. package/browser/cjs/C83wXnFq94exmYt9.cjs +0 -1
  23. package/browser/cjs/D5np5QScDyDDD_WJ.cjs +0 -1
  24. package/browser/cjs/DLi7EA_dfez5uwwY.cjs +0 -1
  25. package/browser/cjs/DcxyEv9XIOa5qfCm.cjs +0 -1
  26. package/browser/cjs/ZKJrH74dcPwEAgmF.cjs +0 -7
  27. package/browser/cjs/Zvz3TLLPKgPcJHB4.cjs +0 -3703
  28. package/browser/cjs/index.cjs +0 -1
  29. package/browser/cjs/stpzUglP-nPdX-Zi.cjs +0 -29
  30. package/browser/esm/B73J41HhbJvswDz1.mjs +0 -17
  31. package/browser/esm/BXhWTnlrRShaRGS5.mjs +0 -581
  32. package/browser/esm/ChXuG8IaqC3qeOH3.mjs +0 -3774
@@ -1,6 +1,6 @@
1
1
  import { n as x } from "./BxiAkxNyUQseLNBv.mjs";
2
- import { r as U } from "./B73J41HhbJvswDz1.mjs";
3
- import { analyzeModule as V } from "./BXhWTnlrRShaRGS5.mjs";
2
+ import { r as U } from "./DfSFyaySrD6y1NJY.mjs";
3
+ import { analyzeModule as V } from "./CUERvTrIURHqOWKm.mjs";
4
4
  import { t as I } from "./4VkvY2rXOd49uHcQ.mjs";
5
5
  import { CommonUtils as X } from "@sheetxl/utils";
6
6
  var f = null, w = null, q = { compilerOptions: { target: "esnext" } };
@@ -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("./ChXuG8IaqC3qeOH3.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) {
@@ -0,0 +1,17 @@
1
+ var i = Object.freeze({ NoBody: "SXL1001", Anonymous: "SXL1002", ParseError: "SXL1003", InvalidParamType: "SXL2001", InvalidReturnType: "SXL2002", UndefinedInput: "SXL2003", MissingType: "SXL2004", UntypedArray: "SXL2005", GenericArity: "SXL2006", 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
+ };
@@ -1,5 +1,5 @@
1
1
  import { r as d, t as g } from "./BxiAkxNyUQseLNBv.mjs";
2
- import { r as M, t as T } from "./B73J41HhbJvswDz1.mjs";
2
+ import { r as M, t as T } from "./DfSFyaySrD6y1NJY.mjs";
3
3
  import { CommonUtils as f } from "@sheetxl/utils";
4
4
  var S = d({ RUN_INTERRUPTED: () => u, abort: () => h, check: () => y, isInterrupted: () => R, release: () => C }), r = /* @__PURE__ */ new Map(), m = 256, w = 16, u = "RunInterrupted";
5
5
  function c(t) {
@@ -50,13 +50,13 @@ 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("./DJmAxtGDsADOLRhd.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;
57
57
  }, lint: async function(t, n) {
58
58
  if (!t) return [];
59
- const [e, { lintScript: p }] = await Promise.all([v(), import("./BXhWTnlrRShaRGS5.mjs")]);
59
+ const [e, { lintScript: p }] = await Promise.all([v(), import("./CUERvTrIURHqOWKm.mjs")]);
60
60
  return p(e, t, n);
61
61
  }, cleanup: function() {
62
62
  o && (o.terminate(), o = null, a = null);
@@ -12,7 +12,7 @@ var o = class {
12
12
  }
13
13
  };
14
14
  async function a() {
15
- const { compileModule: e } = await import("./Bj3F3BUcrLYUg3Dv.mjs"), t = new o((r) => e(r));
15
+ const { compileModule: e } = await import("./BDIcVjo-h3KFdXXo.mjs"), t = new o((r) => e(r));
16
16
  return await t.start(), t;
17
17
  }
18
18
  export {
@@ -1,5 +1,5 @@
1
1
  import { DiagnosticCode as U, t as x } from "./index.mjs";
2
- import { analyzeModule as V } from "./byRhqE863Yd8YyB5.mjs";
2
+ import { analyzeModule as V } from "./BLO91PRuOQIsW_Ow.mjs";
3
3
  import { t as I } from "./4VkvY2rXOd49uHcQ.mjs";
4
4
  import { CommonUtils as X } from "@sheetxl/utils";
5
5
  var g = null, w = null, q = { compilerOptions: { target: "esnext" } };