hermes-io 2.11.95 → 2.11.96

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.
@@ -1 +1 @@
1
- import{useCallback as t,useRef as r}from"react";import{useMicroStore as e}from"./useMicroStore";export function useStore(a){var o=a.name,u=a.reducer,n=a.data,i=a.microStore,s=a.id,m=r(a.store).current,c=m.mutate=t(function(t){var r=t.type,e=t.payload,a=t.targets,o=u(m.state,{type:r,payload:e});return m.notify({type:r,payload:e,state:o,targets:a})},[]),p=m.query=t(function(t,r){var e;return null!=(e=t(m))?e:r},[]);return m.state||(m.state=n),e({id:s,microStore:i,store:m,name:o}),{query:p,mutate:c,store:m}}
1
+ import{useCallback as t,useRef as r}from"react";import{useMicroStore as e}from"./useMicroStore.js";export function useStore(a){var o=a.name,u=a.reducer,n=a.data,s=a.microStore,i=a.id,m=r(a.store).current,c=m.mutate=t(function(t){var r=t.type,e=t.payload,a=t.targets,o=u(m.state,{type:r,payload:e});return m.notify({type:r,payload:e,state:o,targets:a})},[]),p=m.query=t(function(t,r){var e;return null!=(e=t(m))?e:r},[]);return m.state||(m.state=n),e({id:i,microStore:s,store:m,name:o}),{query:p,mutate:c,store:m}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-io",
3
- "version": "2.11.95",
3
+ "version": "2.11.96",
4
4
  "type": "module",
5
5
  "description": "A lightweight React library that allows communication between Reactjs components by using the observer pattern and the hook api",
6
6
  "main": "./lib/index.js",