@mmstack/primitives 21.9.0 → 21.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.
@@ -4622,8 +4622,11 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
4622
4622
  return idx >= 0 && idx < v.length;
4623
4623
  }
4624
4624
  }
4625
- // nullish node values are routinely descended with vivify on `in` must not throw
4626
- return v == null ? false : Reflect.has(v, prop);
4625
+ // nullish/primitive node values are routinely descended with vivify on or probed
4626
+ // with `in` (e.g. isMutable) `in` must not throw
4627
+ return v == null || (typeof v !== 'object' && typeof v !== 'function')
4628
+ ? false
4629
+ : Reflect.has(v, prop);
4627
4630
  },
4628
4631
  ownKeys() {
4629
4632
  const v = untracked(source);
@@ -4681,6 +4684,9 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
4681
4684
  [STORE_SHARED_GLOBALS]: STORE_OPTIONS[STORE_SHARED_GLOBALS],
4682
4685
  }));
4683
4686
  };
4687
+ if ((typeof prop === 'symbol' && prop !== Symbol.iterator) ||
4688
+ (typeof prop === 'string' && SIGNAL_FN_PROP.has(prop)))
4689
+ return target[prop];
4684
4690
  const k = untracked(kind);
4685
4691
  if (prop === 'extend' && k !== 'array')
4686
4692
  return (seed) => scopedStore(s, seed, isMutableSource
@@ -4698,8 +4704,6 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
4698
4704
  yield receiver[i];
4699
4705
  };
4700
4706
  }
4701
- if (typeof prop === 'symbol' || SIGNAL_FN_PROP.has(prop))
4702
- return target[prop];
4703
4707
  if (k === 'array' && !isIndexProp(prop))
4704
4708
  return Reflect.get(target, prop, receiver);
4705
4709
  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);