@flowgram.ai/variable-core 0.2.18 → 0.2.20
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/esm/index.js +8 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1216,7 +1216,7 @@ var BaseVariableField = class extends ASTNode {
|
|
|
1216
1216
|
return getParentFields(this);
|
|
1217
1217
|
}
|
|
1218
1218
|
get keyPath() {
|
|
1219
|
-
return this.parentFields.reverse().map((_field) => _field.key);
|
|
1219
|
+
return [...this.parentFields.reverse().map((_field) => _field.key), this.key];
|
|
1220
1220
|
}
|
|
1221
1221
|
get meta() {
|
|
1222
1222
|
return this._meta;
|
|
@@ -1853,8 +1853,12 @@ var ScopeAvailableData = class {
|
|
|
1853
1853
|
return subsToDisposable(
|
|
1854
1854
|
(0, import_rxjs4.merge)(this.anyVariableChange$, this.variables$).pipe(
|
|
1855
1855
|
triggerOnInit ? (0, import_rxjs4.startWith)() : (0, import_rxjs4.tap)(() => null),
|
|
1856
|
-
(0, import_rxjs4.map)(() =>
|
|
1857
|
-
|
|
1856
|
+
(0, import_rxjs4.map)(() => {
|
|
1857
|
+
const v = this.getByKeyPath(keyPath);
|
|
1858
|
+
return { v, hash: v?.hash };
|
|
1859
|
+
}),
|
|
1860
|
+
(0, import_rxjs4.distinctUntilKeyChanged)("hash"),
|
|
1861
|
+
(0, import_rxjs4.map)(({ v }) => v)
|
|
1858
1862
|
).subscribe(cb)
|
|
1859
1863
|
);
|
|
1860
1864
|
}
|