@malloydata/render 0.0.236-dev250219154103 → 0.0.236-dev250221173808

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.
@@ -39047,6 +39047,7 @@ function PA(t, e, n, r = void 0) {
39047
39047
  d = y;
39048
39048
  } else
39049
39049
  return { error: { code: "not_a_composite_source", data: { path: t } } };
39050
+ f.arguments = e.arguments;
39050
39051
  const p = {}, g = (a = r == null ? void 0 : r.joined) !== null && a !== void 0 ? a : {};
39051
39052
  for (const m of f.fields)
39052
39053
  p[(l = m.as) !== null && l !== void 0 ? l : m.name] = m;
@@ -52958,7 +52959,7 @@ const N6e = (t, e, n) => {
52958
52959
  for (const s of n) {
52959
52960
  const o = !s.currentToken || i.type === s.currentToken, u = !s.offendingSymbol || (e == null ? void 0 : e.type) === s.offendingSymbol, a = !s.ruleContextOptions || s.ruleContextOptions.includes(r);
52960
52961
  if (o && u && a) {
52961
- if (s.precedingTokenOptions && !s.precedingTokenOptions.some((f) => SU(t, f, "lookback")) || s.lookAheadOptions && !s.lookAheadOptions.some((f) => SU(t, f, "lookahead")))
52962
+ if (s.precedingTokenOptions && !s.precedingTokenOptions.some((f) => SU(t, f, "lookback", s.lookbackFromOffendingSymbol ? e == null ? void 0 : e.tokenIndex : void 0)) || s.lookAheadOptions && !s.lookAheadOptions.some((f) => SU(t, f, "lookahead", s.lookbackFromOffendingSymbol ? e == null ? void 0 : e.tokenIndex : void 0)))
52962
52963
  continue;
52963
52964
  return s.errorMessage.replace("${currentToken}", (e == null ? void 0 : e.text) || i.text || "");
52964
52965
  }
@@ -52966,11 +52967,18 @@ const N6e = (t, e, n) => {
52966
52967
  return "";
52967
52968
  };
52968
52969
  h3.checkCustomErrorMessage = N6e;
52969
- const SU = (t, e, n) => {
52970
+ const SU = (t, e, n, r) => {
52970
52971
  try {
52971
- for (let r = 0; r < e.length; r++) {
52972
- const i = n === "lookahead" ? r + 2 : -1 * (r + 1), s = t.inputStream.LA(i);
52973
- if (e[r] >= -1 && s !== e[r] || e[r] < -1 && s === -1 * e[r])
52972
+ for (let i = 0; i < e.length; i++) {
52973
+ let s;
52974
+ if (typeof r == "number") {
52975
+ const o = n === "lookahead" ? i + 1 : -1 * (i + 1);
52976
+ s = t.inputStream.get(r + o).type;
52977
+ } else {
52978
+ const o = n === "lookahead" ? i + 2 : -1 * (i + 1);
52979
+ s = t.inputStream.LA(o);
52980
+ }
52981
+ if (e[i] >= -1 && s !== e[i] || e[i] < -1 && s === -1 * e[i])
52974
52982
  return !1;
52975
52983
  }
52976
52984
  return !0;
@@ -53028,6 +53036,12 @@ var ZJ = {};
53028
53036
  [e.MalloyParser.RUN],
53029
53037
  [e.MalloyParser.SOURCE]
53030
53038
  ]
53039
+ },
53040
+ {
53041
+ errorMessage: "'aggregate:' entries must include a name (ex: `some_name is count()`)",
53042
+ precedingTokenOptions: [[e.MalloyParser.AGGREGATE]],
53043
+ lookAheadOptions: [[-e.MalloyParser.IS]],
53044
+ lookbackFromOffendingSymbol: !0
53031
53045
  }
53032
53046
  ];
53033
53047
  class i {