@malloydata/malloy 0.0.112-dev231206194739 → 0.0.112-dev231206204526

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/malloy.d.ts CHANGED
@@ -521,6 +521,7 @@ declare abstract class Entity {
521
521
  get source(): Entity | undefined;
522
522
  get name(): string;
523
523
  get sourceClasses(): string[];
524
+ get fieldPath(): string[];
524
525
  hasParentExplore(): this is Field;
525
526
  isExplore(): this is Explore;
526
527
  isQuery(): this is Query;
package/dist/malloy.js CHANGED
@@ -943,6 +943,15 @@ class Entity {
943
943
  sourceClasses.push(this.name);
944
944
  return sourceClasses;
945
945
  }
946
+ get fieldPath() {
947
+ const path = [this.name];
948
+ let f = this._parent;
949
+ while (f) {
950
+ path.unshift(f.name);
951
+ f = f._parent;
952
+ }
953
+ return path;
954
+ }
946
955
  hasParentExplore() {
947
956
  return this._parent !== undefined;
948
957
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.112-dev231206194739",
3
+ "version": "0.0.112-dev231206204526",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",