@flowgram.ai/variable-core 0.2.18 → 0.2.19
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/esm/index.js
CHANGED
|
@@ -1168,7 +1168,7 @@ var BaseVariableField = class extends ASTNode {
|
|
|
1168
1168
|
return getParentFields(this);
|
|
1169
1169
|
}
|
|
1170
1170
|
get keyPath() {
|
|
1171
|
-
return this.parentFields.reverse().map((_field) => _field.key);
|
|
1171
|
+
return [...this.parentFields.reverse().map((_field) => _field.key), this.key];
|
|
1172
1172
|
}
|
|
1173
1173
|
get meta() {
|
|
1174
1174
|
return this._meta;
|
|
@@ -1679,6 +1679,7 @@ var ScopeOutputData = class {
|
|
|
1679
1679
|
import {
|
|
1680
1680
|
Subject as Subject3,
|
|
1681
1681
|
distinctUntilChanged as distinctUntilChanged3,
|
|
1682
|
+
distinctUntilKeyChanged,
|
|
1682
1683
|
map as map3,
|
|
1683
1684
|
merge as merge2,
|
|
1684
1685
|
share as share3,
|
|
@@ -1815,8 +1816,12 @@ var ScopeAvailableData = class {
|
|
|
1815
1816
|
return subsToDisposable(
|
|
1816
1817
|
merge2(this.anyVariableChange$, this.variables$).pipe(
|
|
1817
1818
|
triggerOnInit ? startWith() : tap2(() => null),
|
|
1818
|
-
map3(() =>
|
|
1819
|
-
|
|
1819
|
+
map3(() => {
|
|
1820
|
+
const v = this.getByKeyPath(keyPath);
|
|
1821
|
+
return { v, hash: v?.hash };
|
|
1822
|
+
}),
|
|
1823
|
+
distinctUntilKeyChanged("hash"),
|
|
1824
|
+
map3(({ v }) => v)
|
|
1820
1825
|
).subscribe(cb)
|
|
1821
1826
|
);
|
|
1822
1827
|
}
|