vite-plugin-debugger 0.0.11 → 0.1.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/dist/index.d.ts CHANGED
@@ -4,32 +4,32 @@ import { VConsoleOptions } from 'core/options.interface';
4
4
 
5
5
  type CDN = 'jsdelivr' | 'unpkg' | 'cdnjs';
6
6
 
7
- type ErudaPlugin = 'fps' | 'features' | 'timing' | 'memory' | 'code' | 'benchmark' | 'geolocation' | 'dom' | 'orientation' | 'touches';
8
- interface ErudaConfig extends CommonConfig {
9
- /**
10
- * eruda options
11
- *
12
- * see also https://github.com/liriliri/eruda/blob/master/doc/API.md
13
- */
14
- options?: InitOptions;
15
- /**
16
- * eruda plugins
17
- *
18
- * see also https://github.com/liriliri/eruda#plugins
19
- */
20
- plugins?: ErudaPlugin[] | {
21
- name: ErudaPlugin;
22
- src: string;
23
- }[];
7
+ type ErudaPlugin = 'fps' | 'features' | 'timing' | 'memory' | 'code' | 'benchmark' | 'geolocation' | 'dom' | 'orientation' | 'touches';
8
+ interface ErudaConfig extends CommonConfig {
9
+ /**
10
+ * eruda options
11
+ *
12
+ * see also https://github.com/liriliri/eruda/blob/master/doc/API.md
13
+ */
14
+ options?: InitOptions;
15
+ /**
16
+ * eruda plugins
17
+ *
18
+ * see also https://github.com/liriliri/eruda#plugins
19
+ */
20
+ plugins?: ErudaPlugin[] | {
21
+ name: ErudaPlugin;
22
+ src: string;
23
+ }[];
24
24
  }
25
25
 
26
- interface VConsoleConfig extends CommonConfig {
27
- /**
28
- * vConsole options
29
- *
30
- * see also https://github.com/Tencent/vConsole/blob/dev/doc/public_properties_methods.md#vconsoleoption
31
- */
32
- options?: VConsoleOptions;
26
+ interface VConsoleConfig extends CommonConfig {
27
+ /**
28
+ * vConsole options
29
+ *
30
+ * see also https://github.com/Tencent/vConsole/blob/dev/doc/public_properties_methods.md#vconsoleoption
31
+ */
32
+ options?: VConsoleOptions;
33
33
  }
34
34
 
35
35
  interface CommonConfig {
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ var transformCDN = (pkg, cdn) => {
40
40
  if (cdn === "cdnjs") {
41
41
  if (!Array.isArray(pkg)) {
42
42
  if (pkg === "eruda") {
43
- return "https://cdnjs.cloudflare.com/ajax/libs/eruda/2.10.0/eruda.min.js";
43
+ return "https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.0/eruda.min.js";
44
44
  }
45
45
  throw new Error(`[vite-plugin-debugger]: ${cdn} only support eruda without its plugins.`);
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-debugger",
3
- "version": "0.0.11",
3
+ "version": "0.1.0",
4
4
  "description": "A vite plugin provide the debugger tools for mobile devices.",
5
5
  "author": "jade-gjz",
6
6
  "license": "MIT",
@@ -21,10 +21,13 @@
21
21
  "files": [
22
22
  "dist"
23
23
  ],
24
+ "devDependencies": {
25
+ "publint": "^0.1.12"
26
+ },
24
27
  "peerDependencies": {
25
- "eruda": "^2.4.0",
28
+ "eruda": "^3.0.0",
26
29
  "vconsole": "^3.14.0",
27
- "vite": "^2.0.0 || ^3.0.0 || ^4.0.0"
30
+ "vite": "^3.0.0 || ^4.0.0"
28
31
  },
29
32
  "peerDependenciesMeta": {
30
33
  "eruda": {
@@ -35,8 +38,8 @@
35
38
  }
36
39
  },
37
40
  "scripts": {
38
- "dev": "tsup src/index.ts --dts --watch",
39
- "build": "tsup src/index.ts --dts",
41
+ "dev": "tsup --watch",
42
+ "build": "tsup",
40
43
  "prepublish": "pnpm build",
41
44
  "lint": "eslint . --fix",
42
45
  "release": "bumpp package.json --commit --push --tag && pnpm publish --access public --no-git-checks"