@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.
@@ -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 "./Cg2-n5X_c3X8uPPp.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" } };
@@ -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("./_cUijEyyZifD_LZf.mjs");
53
+ const { TypeScriptCompiler: e } = await import("./B1fOG8aTlcVjAako.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("./Cg2-n5X_c3X8uPPp.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("./ByvsA4Gi2N_jmjO4.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 "./Cgbq_-KJhRYkRJw-.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" } };