@malloydata/malloy 0.0.249-dev250327152019 → 0.0.249

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.
Files changed (2) hide show
  1. package/dist/api/core.js +10 -1
  2. package/package.json +4 -4
package/dist/api/core.js CHANGED
@@ -312,7 +312,16 @@ function wrapResponse(response, defaultURL) {
312
312
  return { compiler_needs: response.compilerNeeds, logs };
313
313
  }
314
314
  else {
315
- return { model: response.model, logs };
315
+ let translations = undefined;
316
+ if (response.modelDef) {
317
+ translations = [
318
+ {
319
+ url: defaultURL,
320
+ compiled_model_json: JSON.stringify(response.modelDef),
321
+ },
322
+ ];
323
+ }
324
+ return { model: response.model, logs, translations };
316
325
  }
317
326
  }
318
327
  function _compileModel(modelURL, compilerNeeds, extendURL, state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.249-dev250327152019",
3
+ "version": "0.0.249",
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.249-dev250327152019",
45
- "@malloydata/malloy-interfaces": "^0.0.249-dev250327152019",
46
- "@malloydata/malloy-tag": "^0.0.249-dev250327152019",
44
+ "@malloydata/malloy-filter": "^0.0.249",
45
+ "@malloydata/malloy-interfaces": "^0.0.249",
46
+ "@malloydata/malloy-tag": "^0.0.249",
47
47
  "antlr4ts": "^0.5.0-alpha.4",
48
48
  "assert": "^2.0.0",
49
49
  "jest-diff": "^29.6.2",