@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.
@@ -39911,6 +39911,7 @@ function Lv(t, e, n, r = void 0) {
39911
39911
  d = y;
39912
39912
  } else
39913
39913
  return { error: { code: "not_a_composite_source", data: { path: t } } };
39914
+ f.arguments = e.arguments;
39914
39915
  const p = {}, m = (a = r == null ? void 0 : r.joined) !== null && a !== void 0 ? a : {};
39915
39916
  for (const g of f.fields)
39916
39917
  p[(l = g.as) !== null && l !== void 0 ? l : g.name] = g;
@@ -54063,7 +54064,7 @@ const TOe = (t, e, n) => {
54063
54064
  for (const s of n) {
54064
54065
  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);
54065
54066
  if (o && u && a) {
54066
- if (s.precedingTokenOptions && !s.precedingTokenOptions.some((f) => oj(t, f, "lookback")) || s.lookAheadOptions && !s.lookAheadOptions.some((f) => oj(t, f, "lookahead")))
54067
+ if (s.precedingTokenOptions && !s.precedingTokenOptions.some((f) => oj(t, f, "lookback", s.lookbackFromOffendingSymbol ? e == null ? void 0 : e.tokenIndex : void 0)) || s.lookAheadOptions && !s.lookAheadOptions.some((f) => oj(t, f, "lookahead", s.lookbackFromOffendingSymbol ? e == null ? void 0 : e.tokenIndex : void 0)))
54067
54068
  continue;
54068
54069
  return s.errorMessage.replace("${currentToken}", (e == null ? void 0 : e.text) || i.text || "");
54069
54070
  }
@@ -54071,11 +54072,18 @@ const TOe = (t, e, n) => {
54071
54072
  return "";
54072
54073
  };
54073
54074
  ny.checkCustomErrorMessage = TOe;
54074
- const oj = (t, e, n) => {
54075
+ const oj = (t, e, n, r) => {
54075
54076
  try {
54076
- for (let r = 0; r < e.length; r++) {
54077
- const i = n === "lookahead" ? r + 2 : -1 * (r + 1), s = t.inputStream.LA(i);
54078
- if (e[r] >= -1 && s !== e[r] || e[r] < -1 && s === -1 * e[r])
54077
+ for (let i = 0; i < e.length; i++) {
54078
+ let s;
54079
+ if (typeof r == "number") {
54080
+ const o = n === "lookahead" ? i + 1 : -1 * (i + 1);
54081
+ s = t.inputStream.get(r + o).type;
54082
+ } else {
54083
+ const o = n === "lookahead" ? i + 2 : -1 * (i + 1);
54084
+ s = t.inputStream.LA(o);
54085
+ }
54086
+ if (e[i] >= -1 && s !== e[i] || e[i] < -1 && s === -1 * e[i])
54079
54087
  return !1;
54080
54088
  }
54081
54089
  return !0;
@@ -54133,6 +54141,12 @@ var eZ = {};
54133
54141
  [e.MalloyParser.RUN],
54134
54142
  [e.MalloyParser.SOURCE]
54135
54143
  ]
54144
+ },
54145
+ {
54146
+ errorMessage: "'aggregate:' entries must include a name (ex: `some_name is count()`)",
54147
+ precedingTokenOptions: [[e.MalloyParser.AGGREGATE]],
54148
+ lookAheadOptions: [[-e.MalloyParser.IS]],
54149
+ lookbackFromOffendingSymbol: !0
54136
54150
  }
54137
54151
  ];
54138
54152
  class i {