@rinova/devtools 0.0.0-stage → 0.11.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/LICENSE +21 -0
- package/README.md +24 -2
- package/dist/core/config-store.d.ts +26 -0
- package/dist/core/console-capture.d.ts +23 -0
- package/dist/core/emitter.d.ts +10 -0
- package/dist/core/network-capture.d.ts +49 -0
- package/dist/core/runtime.d.ts +58 -0
- package/dist/core/storage.d.ts +20 -0
- package/dist/create-devtools.d.ts +8 -0
- package/dist/icons.d.ts +4 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +6838 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/actions.d.ts +2 -0
- package/dist/plugins/config.d.ts +2 -0
- package/dist/plugins/console.d.ts +2 -0
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/master-detail.d.ts +65 -0
- package/dist/plugins/network.d.ts +2 -0
- package/dist/plugins/settings.d.ts +2 -0
- package/dist/plugins/storage.d.ts +2 -0
- package/dist/plugins/table-state.d.ts +11 -0
- package/dist/types.d.ts +319 -0
- package/dist/ui/choice-groups.d.ts +28 -0
- package/dist/ui/code-editor.d.ts +15 -0
- package/dist/ui/component.d.ts +20 -0
- package/dist/ui/date-picker.d.ts +18 -0
- package/dist/ui/dialog.d.ts +27 -0
- package/dist/ui/dom.d.ts +66 -0
- package/dist/ui/form-controls.d.ts +109 -0
- package/dist/ui/inspectors.d.ts +32 -0
- package/dist/ui/layout-watch.d.ts +10 -0
- package/dist/ui/layout.d.ts +43 -0
- package/dist/ui/maximize.d.ts +30 -0
- package/dist/ui/overlays.d.ts +54 -0
- package/dist/ui/page-layer.d.ts +9 -0
- package/dist/ui/popup.d.ts +26 -0
- package/dist/ui/select.d.ts +43 -0
- package/dist/ui/shell-chrome.d.ts +28 -0
- package/dist/ui/shell.d.ts +157 -0
- package/dist/ui/splitter.d.ts +16 -0
- package/dist/ui/table.d.ts +79 -0
- package/dist/ui/tabs.d.ts +20 -0
- package/dist/utils/curl.d.ts +4 -0
- package/dist/utils/format.d.ts +15 -0
- package/dist/version.d.ts +1 -0
- package/package.json +51 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** 纯函数工具:不依赖 DOM,可单独测试 */
|
|
2
|
+
export declare function formatBytes(bytes: number): string;
|
|
3
|
+
export declare function formatDuration(ms: number): string;
|
|
4
|
+
export declare function formatClock(at: number): string;
|
|
5
|
+
export declare function truncate(text: string, max: number): string;
|
|
6
|
+
/** 安全 JSON 预览:处理循环引用、函数、超长字符串 */
|
|
7
|
+
export declare function previewValue(value: unknown, maxLength?: number): string;
|
|
8
|
+
export declare function prettyJSON(text: string | undefined): string;
|
|
9
|
+
export declare function isProbablyJSON(text: string | undefined): boolean;
|
|
10
|
+
export declare function shortUrl(url: string, max?: number): string;
|
|
11
|
+
export declare function id(prefix?: string): string;
|
|
12
|
+
/** 从 RequestInfo 推导 URL 字符串 */
|
|
13
|
+
export declare function requestUrl(input: RequestInfo | URL): string;
|
|
14
|
+
/** 简易 headers 归一化 */
|
|
15
|
+
export declare function normalizeHeaders(headers: HeadersInit | undefined | null): Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "0.11.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rinova/devtools",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"description": "框架无关的开发者调试工具:环境配置、网络、存储、日志与插件扩展",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/fix-dts.mjs dist",
|
|
24
|
+
"prepack": "pnpm run build",
|
|
25
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:coverage": "vitest run --coverage",
|
|
28
|
+
"dev": "vite build --watch"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"lucide": "1.68.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/node": "26.6.6",
|
|
35
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
36
|
+
"jsdom": "30.1.3",
|
|
37
|
+
"less": "4.9.1",
|
|
38
|
+
"typescript": "5.9.3",
|
|
39
|
+
"vite": "8.3.5",
|
|
40
|
+
"vitest": "5.1.0"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"devtools",
|
|
44
|
+
"debug",
|
|
45
|
+
"vue",
|
|
46
|
+
"react",
|
|
47
|
+
"framework-agnostic"
|
|
48
|
+
],
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "https://github.com/jove-rina/rinova-devtools"
|
|
52
|
+
}
|
|
53
|
+
}
|