@mulsense/xnew 0.7.1 → 0.7.2
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/xnew.d.ts +1 -0
- package/dist/xnew.js +2 -2
- package/dist/xnew.mjs +2 -2
- package/package.json +1 -1
package/dist/xnew.d.ts
CHANGED
|
@@ -271,6 +271,7 @@ declare const xnew: ((...args: UnitArgs) => Unit) & {
|
|
|
271
271
|
[key: string]: any;
|
|
272
272
|
};
|
|
273
273
|
append(parent: Unit, ...args: UnitArgs): void;
|
|
274
|
+
next(unit: Unit, ...args: UnitArgs): void;
|
|
274
275
|
context(key: any): any;
|
|
275
276
|
promise(promise: Function | Promise<any> | Unit): UnitPromise;
|
|
276
277
|
then(callback: Function): UnitPromise;
|
package/dist/xnew.js
CHANGED
|
@@ -781,9 +781,9 @@
|
|
|
781
781
|
}
|
|
782
782
|
static getContext(unit, key) {
|
|
783
783
|
for (let context = unit._.currentContext; context.previous !== null; context = context.previous) {
|
|
784
|
-
if (context.value === Unit.currentUnit)
|
|
784
|
+
if (context.value === Unit.currentUnit && key === unit._.currentComponent)
|
|
785
785
|
continue;
|
|
786
|
-
if (
|
|
786
|
+
if (key === context.key)
|
|
787
787
|
return context.value;
|
|
788
788
|
}
|
|
789
789
|
}
|
package/dist/xnew.mjs
CHANGED
|
@@ -775,9 +775,9 @@ class Unit {
|
|
|
775
775
|
}
|
|
776
776
|
static getContext(unit, key) {
|
|
777
777
|
for (let context = unit._.currentContext; context.previous !== null; context = context.previous) {
|
|
778
|
-
if (context.value === Unit.currentUnit)
|
|
778
|
+
if (context.value === Unit.currentUnit && key === unit._.currentComponent)
|
|
779
779
|
continue;
|
|
780
|
-
if (
|
|
780
|
+
if (key === context.key)
|
|
781
781
|
return context.value;
|
|
782
782
|
}
|
|
783
783
|
}
|