@mmstack/primitives 22.9.0 → 22.9.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.
|
@@ -4661,8 +4661,11 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
|
|
|
4661
4661
|
return idx >= 0 && idx < v.length;
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
|
-
// nullish node values are routinely descended with vivify on
|
|
4665
|
-
|
|
4664
|
+
// nullish/primitive node values are routinely descended with vivify on or probed
|
|
4665
|
+
// with `in` (e.g. isMutable) — `in` must not throw
|
|
4666
|
+
return v == null || (typeof v !== 'object' && typeof v !== 'function')
|
|
4667
|
+
? false
|
|
4668
|
+
: Reflect.has(v, prop);
|
|
4666
4669
|
},
|
|
4667
4670
|
ownKeys() {
|
|
4668
4671
|
const v = untracked(source);
|
|
@@ -4720,6 +4723,9 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
|
|
|
4720
4723
|
[STORE_SHARED_GLOBALS]: STORE_OPTIONS[STORE_SHARED_GLOBALS],
|
|
4721
4724
|
}));
|
|
4722
4725
|
};
|
|
4726
|
+
if ((typeof prop === 'symbol' && prop !== Symbol.iterator) ||
|
|
4727
|
+
(typeof prop === 'string' && SIGNAL_FN_PROP.has(prop)))
|
|
4728
|
+
return target[prop];
|
|
4723
4729
|
const k = untracked(kind);
|
|
4724
4730
|
if (prop === 'extend' && k !== 'array')
|
|
4725
4731
|
return (seed) => scopedStore(s, seed, isMutableSource
|
|
@@ -4737,8 +4743,6 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
|
|
|
4737
4743
|
yield receiver[i];
|
|
4738
4744
|
};
|
|
4739
4745
|
}
|
|
4740
|
-
if (typeof prop === 'symbol' || SIGNAL_FN_PROP.has(prop))
|
|
4741
|
-
return target[prop];
|
|
4742
4746
|
if (k === 'array' && !isIndexProp(prop))
|
|
4743
4747
|
return Reflect.get(target, prop, receiver);
|
|
4744
4748
|
return getCachedChild(target, prop, () => buildChildNode(target, k === 'array' ? +prop : prop, isMutableSource, STORE_OPTIONS), STORE_OPTIONS[STORE_SHARED_GLOBALS].cache, STORE_OPTIONS[STORE_SHARED_GLOBALS].registry);
|