@ws-ui/store 0.2.0 → 0.2.1

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/index.es.js CHANGED
@@ -13562,10 +13562,13 @@ const ZA = {
13562
13562
  f[a || i],
13563
13563
  []
13564
13564
  );
13565
- return d = d.map((p) => p.id === e.id ? {
13566
- ...p,
13565
+ const p = e.changes ?? {
13567
13566
  [e.property]: e.value
13568
- } : p), c && await cr({
13567
+ };
13568
+ return d = d.map((h) => h.id === e.id ? {
13569
+ ...h,
13570
+ ...p
13571
+ } : h), c && await cr({
13569
13572
  ...s.sharedDatasources.sources,
13570
13573
  [e.namespace]: d
13571
13574
  }), {