-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
87 lines (87 loc) · 2.08 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "api-refetch",
"version": "1.1.2",
"description": "Alternative to SWR or react-query. Hook that store your API calls and provide states as isLoading, isFetched, data, error. Allow to instantly fetch the API when the hook is mounted. Provide retry and revalidation options.",
"scripts": {
"build": "pnpm build:package & pnpm build:types",
"build:package": "tsup",
"build:types": "tsc --project ./tsconfig.types.json && tsc-alias --project ./tsconfig.types.json",
"clean": "rimraf ./dist"
},
"private": false,
"keywords": [
"fetch",
"api",
"cache",
"store",
"session storage",
"zustand",
"revalidate",
"loading",
"data",
"autoFetch",
"retry",
"async",
"state",
"react-query",
"SWR"
],
"license": "ISC",
"homepage": "https://github.com/aymericzip/api-refetch",
"bugs": {
"url": "https://github.com/aymericzip/api-refetch/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aymericzip/api-refetch.git"
},
"author": {
"name": "Aymeric PINEAU",
"url": "https://github.com/aymericzip"
},
"contributors": [
{
"name": "Aymeric Pineau",
"email": "[email protected]",
"url": "https://github.com/aymericzip"
}
],
"type": "module",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.cjs",
"import": "./dist/esm/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/cjs/index.cjs",
"types": "dist/types/index.d.ts",
"module": "dist/esm/index.mjs",
"typesVersions": {
"*": {
"package.json": [
"./package.json"
]
}
},
"files": [
"./dist",
"./package.json"
],
"devDependencies": {
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"esbuild-fix-imports-plugin": "^1.0.6",
"tsc-alias": "^1.8.10",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"zustand": "^4.5.2"
},
"peerDependencies": {
"react": "^18.3.1"
},
"bug": {
"url": "https://github.com/aymericzip/api-refetch/issues"
}
}