@gz-fronted/gz-pc 0.1.3-beta.2 → 0.2.0-beta.0
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 +601 -628
- package/dist/fetch/index.cjs +126 -765
- package/dist/fetch/index.d.cts +3 -23
- package/dist/fetch/index.d.ts +3 -23
- package/dist/fetch/index.js +128 -765
- package/package.json +100 -99
package/package.json
CHANGED
|
@@ -1,99 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gz-fronted/gz-pc",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Shared fetch, hooks and utility primitives for GZ frontend applications.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"README.md"
|
|
11
|
-
],
|
|
12
|
-
"exports": {
|
|
13
|
-
"./fetch": {
|
|
14
|
-
"import": {
|
|
15
|
-
"types": "./dist/fetch/index.d.ts",
|
|
16
|
-
"default": "./dist/fetch/index.js"
|
|
17
|
-
},
|
|
18
|
-
"require": {
|
|
19
|
-
"types": "./dist/fetch/index.d.cts",
|
|
20
|
-
"default": "./dist/fetch/index.cjs"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"./hooks": {
|
|
24
|
-
"import": {
|
|
25
|
-
"types": "./dist/hooks/index.d.ts",
|
|
26
|
-
"default": "./dist/hooks/index.js"
|
|
27
|
-
},
|
|
28
|
-
"require": {
|
|
29
|
-
"types": "./dist/hooks/index.d.cts",
|
|
30
|
-
"default": "./dist/hooks/index.cjs"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"./utils": {
|
|
34
|
-
"import": {
|
|
35
|
-
"types": "./dist/utils/index.d.ts",
|
|
36
|
-
"default": "./dist/utils/index.js"
|
|
37
|
-
},
|
|
38
|
-
"require": {
|
|
39
|
-
"types": "./dist/utils/index.d.cts",
|
|
40
|
-
"default": "./dist/utils/index.cjs"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"./package.json": "./package.json"
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "node scripts/build.mjs",
|
|
47
|
-
"lint": "eslint .",
|
|
48
|
-
"typecheck": "tsc --noEmit",
|
|
49
|
-
"test": "vitest run",
|
|
50
|
-
"test:watch": "vitest",
|
|
51
|
-
"verify:exports": "node tests/exports/smoke.mjs",
|
|
52
|
-
"prepublishOnly": "npm run build",
|
|
53
|
-
"prepare": "husky"
|
|
54
|
-
},
|
|
55
|
-
"dependencies": {
|
|
56
|
-
"ahooks": "^3.9.7",
|
|
57
|
-
"axios": "^1.13.6"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"@commitlint/cli": "21.2.1",
|
|
66
|
-
"@commitlint/config-conventional": "21.2.0",
|
|
67
|
-
"@eslint/js": "9.39.4",
|
|
68
|
-
"@types/node": "24.10.0",
|
|
69
|
-
"@types/react": "19.2.14",
|
|
70
|
-
"@types/react-dom": "19.2.3",
|
|
71
|
-
"eslint": "9.39.4",
|
|
72
|
-
"globals": "16.5.0",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"react
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"typescript
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gz-fronted/gz-pc",
|
|
3
|
+
"version": "0.2.0-beta.0",
|
|
4
|
+
"description": "Shared fetch, hooks and utility primitives for GZ frontend applications.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
"./fetch": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/fetch/index.d.ts",
|
|
16
|
+
"default": "./dist/fetch/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/fetch/index.d.cts",
|
|
20
|
+
"default": "./dist/fetch/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./hooks": {
|
|
24
|
+
"import": {
|
|
25
|
+
"types": "./dist/hooks/index.d.ts",
|
|
26
|
+
"default": "./dist/hooks/index.js"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/hooks/index.d.cts",
|
|
30
|
+
"default": "./dist/hooks/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"./utils": {
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/utils/index.d.ts",
|
|
36
|
+
"default": "./dist/utils/index.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/utils/index.d.cts",
|
|
40
|
+
"default": "./dist/utils/index.cjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"./package.json": "./package.json"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "node scripts/build.mjs",
|
|
47
|
+
"lint": "eslint .",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"test:watch": "vitest",
|
|
51
|
+
"verify:exports": "node tests/exports/smoke.mjs",
|
|
52
|
+
"prepublishOnly": "npm run build",
|
|
53
|
+
"prepare": "husky"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"ahooks": "^3.9.7",
|
|
57
|
+
"axios": "^1.13.6",
|
|
58
|
+
"lossless-json": "4.3.1"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"gz-ui-web": "^1.0.1",
|
|
62
|
+
"react": "^19.0.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@commitlint/cli": "21.2.1",
|
|
66
|
+
"@commitlint/config-conventional": "21.2.0",
|
|
67
|
+
"@eslint/js": "9.39.4",
|
|
68
|
+
"@types/node": "24.10.0",
|
|
69
|
+
"@types/react": "19.2.14",
|
|
70
|
+
"@types/react-dom": "19.2.3",
|
|
71
|
+
"eslint": "9.39.4",
|
|
72
|
+
"globals": "16.5.0",
|
|
73
|
+
"gz-ui-web": "1.0.1",
|
|
74
|
+
"husky": "9.1.7",
|
|
75
|
+
"lint-staged": "17.2.0",
|
|
76
|
+
"msw": "2.12.7",
|
|
77
|
+
"prettier": "3.9.6",
|
|
78
|
+
"react": "19.2.4",
|
|
79
|
+
"react-dom": "19.2.4",
|
|
80
|
+
"tsup": "8.5.1",
|
|
81
|
+
"typescript": "5.9.3",
|
|
82
|
+
"typescript-eslint": "8.56.1",
|
|
83
|
+
"vitest": "4.1.4"
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=20"
|
|
87
|
+
},
|
|
88
|
+
"publishConfig": {
|
|
89
|
+
"access": "public"
|
|
90
|
+
},
|
|
91
|
+
"lint-staged": {
|
|
92
|
+
"*.{js,jsx,ts,tsx}": [
|
|
93
|
+
"eslint --fix",
|
|
94
|
+
"prettier --write"
|
|
95
|
+
],
|
|
96
|
+
"*.{json,md,yml,yaml,css,less}": [
|
|
97
|
+
"prettier --write"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|