react-global-state-hooks 16.0.0 → 16.0.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.
package/isRecord.cjs CHANGED
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/isRecord.ts
31
- var isRecord_exports = {};
32
- __export(isRecord_exports, {
33
- default: () => import_isRecord.default,
34
- isRecord: () => import_isRecord.isRecord
35
- });
36
- module.exports = __toCommonJS(isRecord_exports);
37
- var import_isRecord = __toESM(require("react-hooks-global-states/isRecord"));
1
+ "use strict";var i=Object.create;var f=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var r in o)f(e,r,{get:o[r],enumerable:!0})},c=(e,o,r,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of m(o))!s.call(e,d)&&d!==r&&f(e,d,{get:()=>o[d],enumerable:!(a=l(o,d))||a.enumerable});return e};var x=(e,o,r)=>(r=e!=null?i(p(e)):{},c(o||!e||!e.__esModule?f(r,"default",{value:e,enumerable:!0}):r,e)),R=e=>c(f({},"__esModule",{value:!0}),e);var b={};u(b,{default:()=>t.default,isRecord:()=>t.isRecord});module.exports=R(b);var t=x(require("react-hooks-global-states/isRecord"));
package/isRecord.js CHANGED
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/isRecord.ts
31
- var isRecord_exports = {};
32
- __export(isRecord_exports, {
33
- default: () => import_isRecord.default,
34
- isRecord: () => import_isRecord.isRecord
35
- });
36
- module.exports = __toCommonJS(isRecord_exports);
37
- var import_isRecord = __toESM(require("react-hooks-global-states/isRecord"));
1
+ "use strict";var i=Object.create;var f=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var r in o)f(e,r,{get:o[r],enumerable:!0})},c=(e,o,r,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of m(o))!s.call(e,d)&&d!==r&&f(e,d,{get:()=>o[d],enumerable:!(a=l(o,d))||a.enumerable});return e};var x=(e,o,r)=>(r=e!=null?i(p(e)):{},c(o||!e||!e.__esModule?f(r,"default",{value:e,enumerable:!0}):r,e)),R=e=>c(f({},"__esModule",{value:!0}),e);var b={};u(b,{default:()=>t.default,isRecord:()=>t.isRecord});module.exports=R(b);var t=x(require("react-hooks-global-states/isRecord"));
package/isRecord.mjs CHANGED
@@ -1,6 +1 @@
1
- // src/isRecord.ts
2
- import { isRecord, default as default2 } from "react-hooks-global-states/isRecord";
3
- export {
4
- default2 as default,
5
- isRecord
6
- };
1
+ import{isRecord as r,default as d}from"react-hooks-global-states/isRecord";export{d as default,r as isRecord};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-global-state-hooks",
3
- "version": "16.0.0",
3
+ "version": "16.0.2",
4
4
  "description": "This is a package to easily handling global-state across your react components",
5
5
  "main": "./bundle.cjs",
6
6
  "module": "./bundle.mjs",
@@ -97,11 +97,11 @@
97
97
  },
98
98
  "homepage": "https://github.com/johnny-quesada-developer/react-global-state-hooks#readme",
99
99
  "dependencies": {
100
- "json-storage-formatter": "4.0.0",
101
- "react-hooks-global-states": "16.0.0"
100
+ "json-storage-formatter": "^4.0.0",
101
+ "react-hooks-global-states": "^16.0.2"
102
102
  },
103
103
  "peerDependencies": {
104
- "json-storage-formatter": "4.0.0",
104
+ "json-storage-formatter": "^4.0.0",
105
105
  "react": ">=18.0.0"
106
106
  },
107
107
  "peerDependenciesMeta": {
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/shallowCompare.ts
31
- var shallowCompare_exports = {};
32
- __export(shallowCompare_exports, {
33
- default: () => import_shallowCompare.default,
34
- shallowCompare: () => import_shallowCompare.shallowCompare
35
- });
36
- module.exports = __toCommonJS(shallowCompare_exports);
37
- var import_shallowCompare = __toESM(require("react-hooks-global-states/shallowCompare"));
1
+ "use strict";var t=Object.create;var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var w=(o,a)=>{for(var e in a)r(o,e,{get:a[e],enumerable:!0})},p=(o,a,e,m)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of h(a))!u.call(o,l)&&l!==e&&r(o,l,{get:()=>a[l],enumerable:!(m=d(a,l))||m.enumerable});return o};var x=(o,a,e)=>(e=o!=null?t(s(o)):{},p(a||!o||!o.__esModule?r(e,"default",{value:o,enumerable:!0}):e,o)),C=o=>p(r({},"__esModule",{value:!0}),o);var b={};w(b,{default:()=>f.default,shallowCompare:()=>f.shallowCompare});module.exports=C(b);var f=x(require("react-hooks-global-states/shallowCompare"));
package/shallowCompare.js CHANGED
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/shallowCompare.ts
31
- var shallowCompare_exports = {};
32
- __export(shallowCompare_exports, {
33
- default: () => import_shallowCompare.default,
34
- shallowCompare: () => import_shallowCompare.shallowCompare
35
- });
36
- module.exports = __toCommonJS(shallowCompare_exports);
37
- var import_shallowCompare = __toESM(require("react-hooks-global-states/shallowCompare"));
1
+ "use strict";var t=Object.create;var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var w=(o,a)=>{for(var e in a)r(o,e,{get:a[e],enumerable:!0})},p=(o,a,e,m)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of h(a))!u.call(o,l)&&l!==e&&r(o,l,{get:()=>a[l],enumerable:!(m=d(a,l))||m.enumerable});return o};var x=(o,a,e)=>(e=o!=null?t(s(o)):{},p(a||!o||!o.__esModule?r(e,"default",{value:o,enumerable:!0}):e,o)),C=o=>p(r({},"__esModule",{value:!0}),o);var b={};w(b,{default:()=>f.default,shallowCompare:()=>f.shallowCompare});module.exports=C(b);var f=x(require("react-hooks-global-states/shallowCompare"));
@@ -1,6 +1 @@
1
- // src/shallowCompare.ts
2
- import { shallowCompare, default as default2 } from "react-hooks-global-states/shallowCompare";
3
- export {
4
- default2 as default,
5
- shallowCompare
6
- };
1
+ import{shallowCompare as e,default as l}from"react-hooks-global-states/shallowCompare";export{l as default,e as shallowCompare};
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/throwWrongKeyOnActionCollectionConfig.ts
31
- var throwWrongKeyOnActionCollectionConfig_exports = {};
32
- __export(throwWrongKeyOnActionCollectionConfig_exports, {
33
- default: () => import_throwWrongKeyOnActionCollectionConfig.default,
34
- throwWrongKeyOnActionCollectionConfig: () => import_throwWrongKeyOnActionCollectionConfig.throwWrongKeyOnActionCollectionConfig
35
- });
36
- module.exports = __toCommonJS(throwWrongKeyOnActionCollectionConfig_exports);
37
- var import_throwWrongKeyOnActionCollectionConfig = __toESM(require("react-hooks-global-states/throwWrongKeyOnActionCollectionConfig"));
1
+ "use strict";var c=Object.create;var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var h=(o,n)=>{for(var t in n)r(o,t,{get:n[t],enumerable:!0})},l=(o,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of C(n))!d.call(o,e)&&e!==t&&r(o,e,{get:()=>n[e],enumerable:!(i=g(n,e))||i.enumerable});return o};var m=(o,n,t)=>(t=o!=null?c(a(o)):{},l(n||!o||!o.__esModule?r(t,"default",{value:o,enumerable:!0}):t,o)),p=o=>l(r({},"__esModule",{value:!0}),o);var u={};h(u,{default:()=>f.default,throwWrongKeyOnActionCollectionConfig:()=>f.throwWrongKeyOnActionCollectionConfig});module.exports=p(u);var f=m(require("react-hooks-global-states/throwWrongKeyOnActionCollectionConfig"));
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/throwWrongKeyOnActionCollectionConfig.ts
31
- var throwWrongKeyOnActionCollectionConfig_exports = {};
32
- __export(throwWrongKeyOnActionCollectionConfig_exports, {
33
- default: () => import_throwWrongKeyOnActionCollectionConfig.default,
34
- throwWrongKeyOnActionCollectionConfig: () => import_throwWrongKeyOnActionCollectionConfig.throwWrongKeyOnActionCollectionConfig
35
- });
36
- module.exports = __toCommonJS(throwWrongKeyOnActionCollectionConfig_exports);
37
- var import_throwWrongKeyOnActionCollectionConfig = __toESM(require("react-hooks-global-states/throwWrongKeyOnActionCollectionConfig"));
1
+ "use strict";var c=Object.create;var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var h=(o,n)=>{for(var t in n)r(o,t,{get:n[t],enumerable:!0})},l=(o,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of C(n))!d.call(o,e)&&e!==t&&r(o,e,{get:()=>n[e],enumerable:!(i=g(n,e))||i.enumerable});return o};var m=(o,n,t)=>(t=o!=null?c(a(o)):{},l(n||!o||!o.__esModule?r(t,"default",{value:o,enumerable:!0}):t,o)),p=o=>l(r({},"__esModule",{value:!0}),o);var u={};h(u,{default:()=>f.default,throwWrongKeyOnActionCollectionConfig:()=>f.throwWrongKeyOnActionCollectionConfig});module.exports=p(u);var f=m(require("react-hooks-global-states/throwWrongKeyOnActionCollectionConfig"));
@@ -1,9 +1 @@
1
- // src/throwWrongKeyOnActionCollectionConfig.ts
2
- import {
3
- throwWrongKeyOnActionCollectionConfig,
4
- default as default2
5
- } from "react-hooks-global-states/throwWrongKeyOnActionCollectionConfig";
6
- export {
7
- default2 as default,
8
- throwWrongKeyOnActionCollectionConfig
9
- };
1
+ import{throwWrongKeyOnActionCollectionConfig as t,default as e}from"react-hooks-global-states/throwWrongKeyOnActionCollectionConfig";export{e as default,t as throwWrongKeyOnActionCollectionConfig};
package/tryCatch.cjs CHANGED
@@ -1,33 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/tryCatch.ts
21
- var tryCatch_exports = {};
22
- __export(tryCatch_exports, {
23
- default: () => tryCatch_default
24
- });
25
- module.exports = __toCommonJS(tryCatch_exports);
26
- function tryCatch(callback) {
27
- try {
28
- return { result: callback(), error: null };
29
- } catch (error) {
30
- return { result: null, error };
31
- }
32
- }
33
- var tryCatch_default = tryCatch;
1
+ "use strict";var l=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var s=(t,r)=>{for(var u in r)l(t,u,{get:r[u],enumerable:!0})},a=(t,r,u,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of c(r))!o.call(t,e)&&e!==u&&l(t,e,{get:()=>r[e],enumerable:!(n=y(r,e))||n.enumerable});return t};var T=t=>a(l({},"__esModule",{value:!0}),t);var f={};s(f,{default:()=>p});module.exports=T(f);function h(t){try{return{result:t(),error:null}}catch(r){return{result:null,error:r}}}var p=h;
package/tryCatch.js CHANGED
@@ -1,33 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/tryCatch.ts
21
- var tryCatch_exports = {};
22
- __export(tryCatch_exports, {
23
- default: () => tryCatch_default
24
- });
25
- module.exports = __toCommonJS(tryCatch_exports);
26
- function tryCatch(callback) {
27
- try {
28
- return { result: callback(), error: null };
29
- } catch (error) {
30
- return { result: null, error };
31
- }
32
- }
33
- var tryCatch_default = tryCatch;
1
+ "use strict";var l=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var s=(t,r)=>{for(var u in r)l(t,u,{get:r[u],enumerable:!0})},a=(t,r,u,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of c(r))!o.call(t,e)&&e!==u&&l(t,e,{get:()=>r[e],enumerable:!(n=y(r,e))||n.enumerable});return t};var T=t=>a(l({},"__esModule",{value:!0}),t);var f={};s(f,{default:()=>p});module.exports=T(f);function h(t){try{return{result:t(),error:null}}catch(r){return{result:null,error:r}}}var p=h;
package/tryCatch.mjs CHANGED
@@ -1,12 +1 @@
1
- // src/tryCatch.ts
2
- function tryCatch(callback) {
3
- try {
4
- return { result: callback(), error: null };
5
- } catch (error) {
6
- return { result: null, error };
7
- }
8
- }
9
- var tryCatch_default = tryCatch;
10
- export {
11
- tryCatch_default as default
12
- };
1
+ function e(r){try{return{result:r(),error:null}}catch(t){return{result:null,error:t}}}var u=e;export{u as default};
package/types.cjs CHANGED
@@ -1,18 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/types.ts
17
- var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
1
+ "use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var c=(e,t,l,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of s(t))!r.call(e,a)&&a!==l&&n(e,a,{get:()=>t[a],enumerable:!(o=i(t,a))||o.enumerable});return e};var S=e=>c(n({},"__esModule",{value:!0}),e);var A={};module.exports=S(A);
package/types.js CHANGED
@@ -1,18 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/types.ts
17
- var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
1
+ "use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var c=(e,t,l,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of s(t))!r.call(e,a)&&a!==l&&n(e,a,{get:()=>t[a],enumerable:!(o=i(t,a))||o.enumerable});return e};var S=e=>c(n({},"__esModule",{value:!0}),e);var A={};module.exports=S(A);
package/uniqueId.cjs CHANGED
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/uniqueId.ts
31
- var uniqueId_exports = {};
32
- __export(uniqueId_exports, {
33
- default: () => import_uniqueId.default,
34
- uniqueId: () => import_uniqueId.uniqueId
35
- });
36
- module.exports = __toCommonJS(uniqueId_exports);
37
- var import_uniqueId = __toESM(require("react-hooks-global-states/uniqueId"));
1
+ "use strict";var a=Object.create;var n=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var o=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var y=(e,d)=>{for(var t in d)n(e,t,{get:d[t],enumerable:!0})},I=(e,d,t,r)=>{if(d&&typeof d=="object"||typeof d=="function")for(let u of i(d))!q.call(e,u)&&u!==t&&n(e,u,{get:()=>d[u],enumerable:!(r=f(d,u))||r.enumerable});return e};var l=(e,d,t)=>(t=e!=null?a(o(e)):{},I(d||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e)),m=e=>I(n({},"__esModule",{value:!0}),e);var x={};y(x,{default:()=>p.default,uniqueId:()=>p.uniqueId});module.exports=m(x);var p=l(require("react-hooks-global-states/uniqueId"));
package/uniqueId.js CHANGED
@@ -1,37 +1 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/uniqueId.ts
31
- var uniqueId_exports = {};
32
- __export(uniqueId_exports, {
33
- default: () => import_uniqueId.default,
34
- uniqueId: () => import_uniqueId.uniqueId
35
- });
36
- module.exports = __toCommonJS(uniqueId_exports);
37
- var import_uniqueId = __toESM(require("react-hooks-global-states/uniqueId"));
1
+ "use strict";var a=Object.create;var n=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var o=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var y=(e,d)=>{for(var t in d)n(e,t,{get:d[t],enumerable:!0})},I=(e,d,t,r)=>{if(d&&typeof d=="object"||typeof d=="function")for(let u of i(d))!q.call(e,u)&&u!==t&&n(e,u,{get:()=>d[u],enumerable:!(r=f(d,u))||r.enumerable});return e};var l=(e,d,t)=>(t=e!=null?a(o(e)):{},I(d||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e)),m=e=>I(n({},"__esModule",{value:!0}),e);var x={};y(x,{default:()=>p.default,uniqueId:()=>p.uniqueId});module.exports=m(x);var p=l(require("react-hooks-global-states/uniqueId"));
package/uniqueId.mjs CHANGED
@@ -1,6 +1 @@
1
- // src/uniqueId.ts
2
- import { uniqueId, default as default2 } from "react-hooks-global-states/uniqueId";
3
- export {
4
- default2 as default,
5
- uniqueId
6
- };
1
+ import{uniqueId as t,default as u}from"react-hooks-global-states/uniqueId";export{u as default,t as uniqueId};