@pawover/kit 0.1.1 → 0.2.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.
- package/package.json +21 -20
- package/packages/hooks/dist/react.d.ts +1 -1
- package/packages/hooks/dist/react.js +283 -772
- package/packages/utils/dist/index.d.ts +23 -7
- package/packages/utils/dist/index.js +390 -276
- package/packages/utils/dist/math.js +1 -1
- package/packages/utils/dist/{string-p6hZ1Mjb.js → stringUtil-DbYpnL4l.js} +75 -95
package/package.json
CHANGED
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
"url": "https://github.com/pawover"
|
|
7
7
|
},
|
|
8
8
|
"description": "一个基于 TypeScript 的开发工具包",
|
|
9
|
-
"
|
|
9
|
+
"version": "0.2.1",
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.1.1",
|
|
12
11
|
"engines": {
|
|
13
12
|
"node": ">=22.20.0"
|
|
14
13
|
},
|
|
@@ -27,6 +26,7 @@
|
|
|
27
26
|
"type": "git",
|
|
28
27
|
"url": "git+https://github.com/pawover/pawover-kit.git"
|
|
29
28
|
},
|
|
29
|
+
"license": "MIT",
|
|
30
30
|
"main": "./packages/utils/dist/index.js",
|
|
31
31
|
"module": "./packages/utils/dist/index.js",
|
|
32
32
|
"types": "./packages/utils/dist/index.d.ts",
|
|
@@ -51,33 +51,34 @@
|
|
|
51
51
|
"./zod/*": "./packages/zod/dist/*"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@commitlint/cli": "^21.0
|
|
55
|
-
"@commitlint/config-conventional": "^21.0
|
|
56
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
57
|
-
"@pawover/eslint-rules": "^0.2.
|
|
58
|
-
"@playwright/test": "^1.
|
|
59
|
-
"@stylistic/eslint-plugin": "^
|
|
54
|
+
"@commitlint/cli": "^21.1.0",
|
|
55
|
+
"@commitlint/config-conventional": "^21.1.0",
|
|
56
|
+
"@eslint-react/eslint-plugin": "^5.10.0",
|
|
57
|
+
"@pawover/eslint-rules": "^0.2.1",
|
|
58
|
+
"@playwright/test": "^1.61.1",
|
|
59
|
+
"@stylistic/eslint-plugin": "^6.0.0-beta.5",
|
|
60
60
|
"@types/fs-extra": "^11.0.4",
|
|
61
|
-
"@types/node": "^
|
|
62
|
-
"@vitejs/plugin-react": "^6.0.
|
|
63
|
-
"@vitest/browser-playwright": "^4.1.
|
|
64
|
-
"commitizen": "^4.3.
|
|
61
|
+
"@types/node": "^26.0.1",
|
|
62
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
63
|
+
"@vitest/browser-playwright": "^4.1.9",
|
|
64
|
+
"commitizen": "^4.3.2",
|
|
65
65
|
"cz-customizable": "^7.5.4",
|
|
66
|
-
"eslint": "^10.
|
|
66
|
+
"eslint": "^10.6.0",
|
|
67
67
|
"eslint-plugin-antfu": "^3.2.3",
|
|
68
68
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
69
69
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
70
70
|
"fs-extra": "^11.3.5",
|
|
71
71
|
"husky": "^9.1.7",
|
|
72
72
|
"jsdom": "^29.1.1",
|
|
73
|
-
"lint-staged": "^17.0.
|
|
74
|
-
"prettier": "^3.
|
|
73
|
+
"lint-staged": "^17.0.8",
|
|
74
|
+
"prettier": "^3.9.1",
|
|
75
75
|
"rimraf": "^6.1.3",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
76
|
+
"taze": "^19.14.1",
|
|
77
|
+
"tsdown": "^0.22.3",
|
|
78
|
+
"turbo": "^2.10.0",
|
|
78
79
|
"typescript": "^6.0.3",
|
|
79
|
-
"typescript-eslint": "^8.
|
|
80
|
-
"vitest": "^4.1.
|
|
80
|
+
"typescript-eslint": "^8.62.1",
|
|
81
|
+
"vitest": "^4.1.9"
|
|
81
82
|
},
|
|
82
83
|
"peerDependencies": {
|
|
83
84
|
"alova": "^3.3.0",
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
"check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
|
|
123
124
|
"check:types": "tsc --noEmit",
|
|
124
125
|
"check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
|
|
125
|
-
"check:format": "prettier --write \"**/*.{html,json}\" --cache-location=.cache/prettier.cache.json --cache",
|
|
126
|
+
"check:format": "prettier --write \"**/*.{html,json,jsonc}\" --cache-location=.cache/prettier.cache.json --cache",
|
|
126
127
|
"check:pack": "attw --pack .",
|
|
127
128
|
"clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
|
|
128
129
|
"clean:turbo": "rimraf -g **/.turbo",
|
|
@@ -8,7 +8,7 @@ import { EffectCallback, RefObject } from "react";
|
|
|
8
8
|
*/
|
|
9
9
|
declare function useLatest<T>(value: T): RefObject<T>;
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region ../../node_modules/.pnpm/@pawover+types@0.0.
|
|
11
|
+
//#region ../../node_modules/.pnpm/@pawover+types@0.0.4_@types+react@19.2.15_typescript@6.0.3/node_modules/@pawover/types/dist/index.d.ts
|
|
12
12
|
/** 描述函数类型 */
|
|
13
13
|
type AnyFunction<P extends any[] = any[], R = any> = (...arg: P) => R;
|
|
14
14
|
/** 描述异步函数类型 */
|