react-hooks-global-states 16.0.1-beta → 16.0.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.
Files changed (46) hide show
  1. package/jest.config.js +50 -0
  2. package/package.json +52 -2
  3. package/GlobalStore.cjs +0 -1
  4. package/GlobalStore.d.ts +0 -160
  5. package/GlobalStore.debugProps.cjs +0 -1
  6. package/GlobalStore.debugProps.d.ts +0 -5
  7. package/GlobalStore.debugProps.js +0 -1
  8. package/GlobalStore.debugProps.mjs +0 -1
  9. package/GlobalStore.js +0 -1
  10. package/GlobalStore.mjs +0 -1
  11. package/actions.cjs +0 -1
  12. package/actions.d.ts +0 -32
  13. package/actions.js +0 -1
  14. package/actions.mjs +0 -1
  15. package/bundle.cjs +0 -1
  16. package/bundle.js +0 -1
  17. package/bundle.mjs +0 -1
  18. package/createContext.cjs +0 -1
  19. package/createContext.d.ts +0 -15
  20. package/createContext.js +0 -1
  21. package/createContext.mjs +0 -1
  22. package/createGlobalState.cjs +0 -1
  23. package/createGlobalState.d.ts +0 -7
  24. package/createGlobalState.js +0 -1
  25. package/createGlobalState.mjs +0 -1
  26. package/index.d.ts +0 -9
  27. package/isRecord.cjs +0 -1
  28. package/isRecord.d.ts +0 -2
  29. package/isRecord.js +0 -1
  30. package/isRecord.mjs +0 -1
  31. package/shallowCompare.cjs +0 -1
  32. package/shallowCompare.d.ts +0 -52
  33. package/shallowCompare.js +0 -1
  34. package/shallowCompare.mjs +0 -1
  35. package/throwWrongKeyOnActionCollectionConfig.cjs +0 -12
  36. package/throwWrongKeyOnActionCollectionConfig.d.ts +0 -2
  37. package/throwWrongKeyOnActionCollectionConfig.js +0 -12
  38. package/throwWrongKeyOnActionCollectionConfig.mjs +0 -12
  39. package/types.cjs +0 -1
  40. package/types.d.ts +0 -1268
  41. package/types.js +0 -1
  42. package/types.mjs +0 -0
  43. package/uniqueId.cjs +0 -1
  44. package/uniqueId.d.ts +0 -7
  45. package/uniqueId.js +0 -1
  46. package/uniqueId.mjs +0 -1
package/types.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var d=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of i(t))!S.call(e,a)&&a!==r&&n(e,a,{get:()=>t[a],enumerable:!(o=s(t,a))||o.enumerable});return e};var l=e=>d(n({},"__esModule",{value:!0}),e);var c={};module.exports=l(c);
package/types.mjs DELETED
File without changes
package/uniqueId.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var c=(d,r)=>{for(var s in r)o(d,s,{get:r[s],enumerable:!0})},g=(d,r,s,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of B(r))!I.call(d,n)&&n!==s&&o(d,n,{get:()=>r[n],enumerable:!(e=i(r,n))||e.enumerable});return d};var T=d=>g(o({},"__esModule",{value:!0}),d);var y={};c(y,{default:()=>l,uniqueId:()=>u});module.exports=T(y);var u=(()=>{let d=0,r=()=>(d===Number.MAX_SAFE_INTEGER&&(d=0),d++),s=(n,a)=>{var t;return(t=globalThis.crypto)!=null&&t.randomUUID?(n!=null?n:"")+globalThis.crypto.randomUUID():(n!=null?n:"")+Date.now().toString(36)+a.toString(36)},e=n=>s(n,r());return e.for=n=>{let a=()=>s(n,r());return a.is=t=>typeof t=="string"&&t.startsWith(n),a.assert=function(t){if(!a.is(t))throw new Error(`The value "${String(t)}" does not match the expected prefix "${String(n)}"`)},a.strict=()=>a,a},e.of=()=>e.for(""),e.strict=()=>e,e})(),l=u;
package/uniqueId.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { UniqueId, BrandedId } from './types';
2
- /**
3
- * Generates a unique identifier string, optionally prefixed.
4
- */
5
- export declare const uniqueId: UniqueId;
6
- export default uniqueId;
7
- export type { UniqueId, BrandedId };
package/uniqueId.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var c=(d,r)=>{for(var s in r)o(d,s,{get:r[s],enumerable:!0})},g=(d,r,s,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of B(r))!I.call(d,n)&&n!==s&&o(d,n,{get:()=>r[n],enumerable:!(e=i(r,n))||e.enumerable});return d};var T=d=>g(o({},"__esModule",{value:!0}),d);var y={};c(y,{default:()=>l,uniqueId:()=>u});module.exports=T(y);var u=(()=>{let d=0,r=()=>(d===Number.MAX_SAFE_INTEGER&&(d=0),d++),s=(n,a)=>{var t;return(t=globalThis.crypto)!=null&&t.randomUUID?(n!=null?n:"")+globalThis.crypto.randomUUID():(n!=null?n:"")+Date.now().toString(36)+a.toString(36)},e=n=>s(n,r());return e.for=n=>{let a=()=>s(n,r());return a.is=t=>typeof t=="string"&&t.startsWith(n),a.assert=function(t){if(!a.is(t))throw new Error(`The value "${String(t)}" does not match the expected prefix "${String(n)}"`)},a.strict=()=>a,a},e.of=()=>e.for(""),e.strict=()=>e,e})(),l=u;
package/uniqueId.mjs DELETED
@@ -1 +0,0 @@
1
- var o=(()=>{let t=0,a=()=>(t===Number.MAX_SAFE_INTEGER&&(t=0),t++),s=(n,d)=>{var r;return(r=globalThis.crypto)!=null&&r.randomUUID?(n!=null?n:"")+globalThis.crypto.randomUUID():(n!=null?n:"")+Date.now().toString(36)+d.toString(36)},e=n=>s(n,a());return e.for=n=>{let d=()=>s(n,a());return d.is=r=>typeof r=="string"&&r.startsWith(n),d.assert=function(r){if(!d.is(r))throw new Error(`The value "${String(r)}" does not match the expected prefix "${String(n)}"`)},d.strict=()=>d,d},e.of=()=>e.for(""),e.strict=()=>e,e})(),u=o;export{u as default,o as uniqueId};