@malloydata/render 0.0.249-dev250327002726 → 0.0.249-dev250327171241

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.
@@ -124685,7 +124685,7 @@ function ett(t) {
124685
124685
  }
124686
124686
  Dn.isTemporalFilter = ett;
124687
124687
  function ttt(t) {
124688
- return "operator" in t;
124688
+ return t && "operator" in t;
124689
124689
  }
124690
124690
  Dn.isFilterExpression = ttt;
124691
124691
  function ntt(t) {
@@ -125612,7 +125612,7 @@ function Att(t, e) {
125612
125612
  try {
125613
125613
  e.feed(t);
125614
125614
  const i = e.finish()[0];
125615
- return (0, Ett.isFilterExpression)(i) ? { parsed: i, log: [] } : { parsed: null, log: [] };
125615
+ return i && (0, Ett.isFilterExpression)(i) ? { parsed: i, log: [] } : { parsed: null, log: [] };
125616
125616
  } catch (r) {
125617
125617
  let i = r.message, s = 1, o = t.length;
125618
125618
  if (r.token) {
@@ -126949,7 +126949,7 @@ let bk = class extends Ptt {
126949
126949
  case "compositeField":
126950
126950
  return "{COMPOSITE_FIELD}";
126951
126951
  case "filterMatch":
126952
- if ((a.dataType === "string" || a.dataType === "number" || a.dataType === "date" || a.dataType === "timestamp" || a.dataType === "boolean") && (a.filter === null || (0, Btt.isFilterExpression)(a.filter)))
126952
+ if ((a.dataType === "string" || a.dataType === "number" || a.dataType === "date" || a.dataType === "timestamp" || a.dataType === "boolean") && (!a.filter || (0, Btt.isFilterExpression)(a.filter)))
126953
126953
  return $tt.FilterCompilers.compile(a.dataType, a.filter, a.e.sql || "", this.parent.dialect);
126954
126954
  throw new Error(`Internal Error: Filter Compiler Undefined Type '${a.dataType}'`);
126955
126955
  default:
@@ -158047,7 +158047,17 @@ function uA(t) {
158047
158047
  en._statedCompileModel = uA;
158048
158048
  function R2t(t, e) {
158049
158049
  const r = t.logs ? (0, Hh.mapLogs)(t.logs, e) : void 0;
158050
- return t.compilerNeeds ? { compiler_needs: t.compilerNeeds, logs: r } : { model: t.model, logs: r };
158050
+ if (t.compilerNeeds)
158051
+ return { compiler_needs: t.compilerNeeds, logs: r };
158052
+ {
158053
+ let i;
158054
+ return t.modelDef && (i = [
158055
+ {
158056
+ url: e,
158057
+ compiled_model_json: JSON.stringify(t.modelDef)
158058
+ }
158059
+ ]), { model: t.model, logs: r, translations: i };
158060
+ }
158051
158061
  }
158052
158062
  function D2t(t, e) {
158053
158063
  return e ?? (e = Hde(t)), Qde(e);