@httpstate/react 0.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.
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var s in t)u(e,s,{get:t[s],enumerable:!0})},i=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of f(t))!r.call(e,o)&&o!==s&&u(e,o,{get:()=>t[o],enumerable:!(a=c(t,o))||a.enumerable});return e};var l=e=>i(u({},"__esModule",{value:!0}),e);var p={};m(p,{useHttpState:()=>d});module.exports=l(p);var n=require("react"),d=()=>{let[e,t]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{console.log("useEffect"),setTimeout(()=>{console.log("setTimeout"),t(Math.random())},1024*4)},[]),[e,t]};0&&(module.exports={useHttpState});
@@ -0,0 +1,3 @@
1
+ declare const useHttpState: () => any[];
2
+
3
+ export { useHttpState };
@@ -0,0 +1,3 @@
1
+ declare const useHttpState: () => any[];
2
+
3
+ export { useHttpState };
@@ -0,0 +1 @@
1
+ import{useEffect as o,useState as s}from"react";var u=()=>{let[e,t]=s(void 0);return o(()=>{console.log("useEffect"),setTimeout(()=>{console.log("setTimeout"),t(Math.random())},1024*4)},[]),[e,t]};export{u as useHttpState};
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "author": "Alex Morales, HTTP State",
3
+ "description": "HTTP State",
4
+ "devDependencies": {
5
+ "@types/react": "^19.2.14",
6
+ "react": "^19.2.4",
7
+ "tsup": "^8.5.1",
8
+ "typescript": "^5.9.3"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "keywords": [],
14
+ "license": "AGPL-3.0",
15
+ "main": "dist/useHttpState.js",
16
+ "name": "@httpstate/react",
17
+ "peerDependencies": {
18
+ "react": "^19.2.4"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/httpstate/httpstate.git"
23
+ },
24
+ "scripts": {
25
+ "build": "tsup src/useHttpState.ts --format cjs,esm --dts --minify",
26
+ "clean": "rm -rf dist",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "type": "module",
30
+ "types": "dist/useHttpState.d.ts",
31
+ "version": "0.0.1"
32
+ }