@malloydata/malloy 0.0.253-dev250328041839 → 0.0.253-dev250330190957

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.
package/dist/api/core.js CHANGED
@@ -215,7 +215,8 @@ function updateCompileModelState(state, needs) {
215
215
  }
216
216
  if (!state.hasSource) {
217
217
  state.hasSource =
218
- (_d = (_b = (_a = needs === null || needs === void 0 ? void 0 : needs.files) === null || _a === void 0 ? void 0 : _a.some(f => f.url === state.translator.sourceURL)) !== null && _b !== void 0 ? _b : (_c = needs === null || needs === void 0 ? void 0 : needs.translations) === null || _c === void 0 ? void 0 : _c.some(f => f.url === state.translator.sourceURL)) !== null && _d !== void 0 ? _d : false;
218
+ ((_b = (_a = needs === null || needs === void 0 ? void 0 : needs.files) === null || _a === void 0 ? void 0 : _a.some(f => f.url === state.translator.sourceURL)) !== null && _b !== void 0 ? _b : false) ||
219
+ ((_d = (_c = needs === null || needs === void 0 ? void 0 : needs.translations) === null || _c === void 0 ? void 0 : _c.some(f => f.url === state.translator.sourceURL)) !== null && _d !== void 0 ? _d : false);
219
220
  }
220
221
  }
221
222
  const update = compilerNeedsToUpdate(needs);
@@ -225,7 +226,8 @@ exports.updateCompileModelState = updateCompileModelState;
225
226
  function _newCompileModelState(modelURL, compilerNeeds, extendURL) {
226
227
  var _a, _b, _c, _d;
227
228
  const translator = new lang_1.MalloyTranslator(modelURL, null, compilerNeedsToUpdate(compilerNeeds));
228
- const hasSource = (_d = (_b = (_a = compilerNeeds === null || compilerNeeds === void 0 ? void 0 : compilerNeeds.files) === null || _a === void 0 ? void 0 : _a.some(f => f.url === modelURL)) !== null && _b !== void 0 ? _b : (_c = compilerNeeds === null || compilerNeeds === void 0 ? void 0 : compilerNeeds.translations) === null || _c === void 0 ? void 0 : _c.some(t => t.url === modelURL)) !== null && _d !== void 0 ? _d : false;
229
+ const hasSource = ((_b = (_a = compilerNeeds === null || compilerNeeds === void 0 ? void 0 : compilerNeeds.files) === null || _a === void 0 ? void 0 : _a.some(f => f.url === modelURL)) !== null && _b !== void 0 ? _b : false) ||
230
+ ((_d = (_c = compilerNeeds === null || compilerNeeds === void 0 ? void 0 : compilerNeeds.translations) === null || _c === void 0 ? void 0 : _c.some(t => t.url === modelURL)) !== null && _d !== void 0 ? _d : false);
229
231
  if (extendURL) {
230
232
  return {
231
233
  extending: _newCompileModelState(extendURL, compilerNeeds),
@@ -889,7 +889,7 @@ class QueryField extends QueryNode {
889
889
  expr.dataType === 'date' ||
890
890
  expr.dataType === 'timestamp' ||
891
891
  expr.dataType === 'boolean') {
892
- if (!expr.filter || (0, malloy_filter_1.isFilterExpression)(expr.filter)) {
892
+ if (expr.filter === null || (0, malloy_filter_1.isFilterExpression)(expr.filter)) {
893
893
  return filter_compilers_1.FilterCompilers.compile(expr.dataType, expr.filter, expr.e.sql || '', this.parent.dialect);
894
894
  }
895
895
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.253-dev250328041839",
3
+ "version": "0.0.253-dev250330190957",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -41,9 +41,9 @@
41
41
  "generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@malloydata/malloy-filter": "^0.0.253-dev250328041839",
45
- "@malloydata/malloy-interfaces": "^0.0.253-dev250328041839",
46
- "@malloydata/malloy-tag": "^0.0.253-dev250328041839",
44
+ "@malloydata/malloy-filter": "^0.0.253-dev250330190957",
45
+ "@malloydata/malloy-interfaces": "^0.0.253-dev250330190957",
46
+ "@malloydata/malloy-tag": "^0.0.253-dev250330190957",
47
47
  "antlr4ts": "^0.5.0-alpha.4",
48
48
  "assert": "^2.0.0",
49
49
  "jest-diff": "^29.6.2",