@malloydata/malloy 0.0.27-dev230310001113 → 0.0.27

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.
@@ -345,11 +345,15 @@ class Document extends MalloyElement {
345
345
  this.queryList = [];
346
346
  this.sqlBlocks = [];
347
347
  if (extendingModelDef) {
348
- for (const inName in extendingModelDef.contents) {
349
- const struct = extendingModelDef.contents[inName];
350
- if (struct.type === 'struct') {
351
- const exported = extendingModelDef.exports.includes(inName);
352
- this.setEntry(inName, { entry: struct, exported });
348
+ for (const [nm, orig] of Object.entries(extendingModelDef.contents)) {
349
+ const entry = (0, cloneDeep_1.default)(orig);
350
+ if (entry.type === 'struct' || entry.type === 'query') {
351
+ const exported = extendingModelDef.exports.includes(nm);
352
+ const sqlType = entry.type === 'struct' && (0, malloy_types_1.isSQLBlock)(entry);
353
+ if (sqlType) {
354
+ this.sqlBlocks.push(entry);
355
+ }
356
+ this.setEntry(nm, { entry, exported, sqlType });
353
357
  }
354
358
  }
355
359
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.27-dev230310001113",
3
+ "version": "0.0.27",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",