react-globo-state 1.0.0 → 1.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/README.md +1 -4
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +3 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# [React Globo State](https://npmjs.com/package/react-globo-state)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A react state everywhere, easy and smart ... Only one!
|
|
4
4
|
|
|
5
5
|
**React Globo State** by [Dario Passariello](https://dario.passariello.ca) (c)
|
|
6
6
|
|
|
@@ -80,6 +80,3 @@ const App = () => {
|
|
|
80
80
|
If you are interested to see a demo live visit [EXAMPLEPAGE](https://examplepage.picla.net) and look the console.
|
|
81
81
|
|
|
82
82
|
Thank you!
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
Copyright by
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useState as
|
|
1
|
+
import{useState as n}from"react";const e={},u=()=>{const[r,o]=n(null);return globalThis.gState={get:t=>{if(t&&t)return r?.[t]?r[t]:null},set:(t,l)=>{!t||!l||(e[t]=l,o({...e}))},remove:t=>{t&&(delete e[t],o({...e}))},delete:t=>{t&&gState.remove(t)},list:()=>r},u};var f=u;export{f as default,u as globoState};
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-globo-state",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A react state everywhere made easy",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"react",
|
|
7
6
|
"react",
|
|
8
7
|
"state",
|
|
9
8
|
"render",
|
|
10
9
|
"global",
|
|
11
|
-
"component",
|
|
12
10
|
"dario",
|
|
13
11
|
"passariello"
|
|
14
12
|
],
|
|
@@ -18,8 +16,7 @@
|
|
|
18
16
|
"main": "./index.js",
|
|
19
17
|
"types": "./index.d.ts",
|
|
20
18
|
"dependencies": {
|
|
21
|
-
"react": "^19.2.3"
|
|
22
|
-
"react-dom": "^19.2.3"
|
|
19
|
+
"react": "^19.2.3"
|
|
23
20
|
},
|
|
24
21
|
"scripts": {
|
|
25
22
|
"build": "node ./esbuild.config.mjs",
|
|
@@ -36,4 +33,4 @@
|
|
|
36
33
|
"tslib": "^2.8.1",
|
|
37
34
|
"typescript": "^5.9.3"
|
|
38
35
|
}
|
|
39
|
-
}
|
|
36
|
+
}
|