@modern-js/plugin-devtools 2.58.0 → 2.58.2
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/cli.d.ts +3 -3
- package/dist/options.d.ts +1 -1
- package/dist/plugins/cleanup.d.ts +1 -1
- package/dist/plugins/debug.d.ts +1 -1
- package/dist/plugins/html.d.ts +1 -1
- package/dist/plugins/http.d.ts +1 -1
- package/dist/plugins/manifest.d.ts +1 -1
- package/dist/plugins/rpc.d.ts +2 -2
- package/dist/plugins/service-worker.d.ts +1 -1
- package/dist/plugins/settle.d.ts +1 -1
- package/dist/plugins/state.d.ts +2 -2
- package/dist/plugins/watcher.d.ts +1 -1
- package/dist/types/common.d.ts +3 -3
- package/dist/types/config.d.ts +1 -1
- package/dist/utils/config.d.ts +1 -1
- package/dist/utils/socket.d.ts +2 -2
- package/package.json +17 -17
package/dist/cli.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type AppTools, type CliPlugin } from '@modern-js/app-tools';
|
2
|
-
import { ClientDefinition } from '@modern-js/devtools-kit/node';
|
3
|
-
import { DevtoolsPluginOptions } from './options';
|
4
|
-
import { Plugin } from './types';
|
2
|
+
import type { ClientDefinition } from '@modern-js/devtools-kit/node';
|
3
|
+
import { type DevtoolsPluginOptions } from './options';
|
4
|
+
import type { Plugin } from './types';
|
5
5
|
export type { DevtoolsPluginOptions };
|
6
6
|
export type DevtoolsPlugin = CliPlugin<AppTools> & {
|
7
7
|
setClientDefinition: (def: ClientDefinition) => void;
|
package/dist/options.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Plugin } from '../types';
|
1
|
+
import type { Plugin } from '../types';
|
2
2
|
export declare const pluginCleanup: Plugin;
|
package/dist/plugins/debug.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Plugin } from '../types';
|
1
|
+
import type { Plugin } from '../types';
|
2
2
|
export declare const pluginDebug: Plugin;
|
package/dist/plugins/html.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Plugin } from '../types';
|
1
|
+
import type { Plugin } from '../types';
|
2
2
|
export declare const pluginHtml: Plugin;
|
package/dist/plugins/http.d.ts
CHANGED
package/dist/plugins/rpc.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { DevtoolsContext } from '@modern-js/devtools-kit/node';
|
2
|
-
import { CliPluginAPI, Plugin } from '../types';
|
1
|
+
import { type DevtoolsContext } from '@modern-js/devtools-kit/node';
|
2
|
+
import type { CliPluginAPI, Plugin } from '../types';
|
3
3
|
import { SocketServer } from '../utils/socket';
|
4
4
|
export interface SetupClientConnectionOptions {
|
5
5
|
api: CliPluginAPI;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Plugin } from '../types';
|
1
|
+
import type { Plugin } from '../types';
|
2
2
|
export declare const pluginServiceWorker: Plugin;
|
package/dist/plugins/settle.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Plugin } from '../types';
|
1
|
+
import type { Plugin } from '../types';
|
2
2
|
export declare const pluginSettleState: Plugin;
|
package/dist/plugins/state.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ServerState } from '@modern-js/devtools-kit/node';
|
2
|
-
import { Plugin } from '../types';
|
1
|
+
import { type ServerState } from '@modern-js/devtools-kit/node';
|
2
|
+
import type { Plugin } from '../types';
|
3
3
|
declare global {
|
4
4
|
interface DevtoolsPluginVars {
|
5
5
|
state: ServerState;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Plugin } from '../types';
|
1
|
+
import type { Plugin } from '../types';
|
2
2
|
export declare const pluginWatcher: Plugin;
|
package/dist/types/common.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { BaseHooks } from '@modern-js/core';
|
2
|
+
import type { BaseHooks } from '@modern-js/core';
|
3
3
|
import type { AppTools, AppToolsHooks, CliPlugin } from '@modern-js/app-tools';
|
4
4
|
import type { ServerPlugin, ToThreads } from '@modern-js/server-core';
|
5
5
|
import type { RsbuildPluginAPI } from '@rsbuild/core';
|
6
|
-
import { Hookable } from 'hookable';
|
7
|
-
import { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
|
6
|
+
import type { Hookable } from 'hookable';
|
7
|
+
import type { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
|
8
8
|
export type CliPluginAPI = Parameters<NonNullable<CliPlugin<AppTools>['setup']>>[0];
|
9
9
|
export type ServerPluginAPI = Parameters<NonNullable<ServerPlugin['setup']>>[0];
|
10
10
|
export type BufferLike = string | Buffer | DataView | number | ArrayBufferView | Uint8Array | ArrayBuffer | SharedArrayBuffer | ReadonlyArray<any> | ReadonlyArray<number> | {
|
package/dist/types/config.d.ts
CHANGED
package/dist/utils/config.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DevtoolsContext, StoragePresetContext } from '@modern-js/devtools-kit';
|
1
|
+
import type { DevtoolsContext, StoragePresetContext } from '@modern-js/devtools-kit';
|
2
2
|
export declare function getConfigFilenames(base: string, dir?: string): string[];
|
3
3
|
/** Resolve all config files from target directory upward to the root path. */
|
4
4
|
export declare function resolveConfigFiles(base: string, dir?: string): Promise<string[]>;
|
package/dist/utils/socket.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { IncomingMessage } from 'http';
|
2
|
+
import type { IncomingMessage } from 'http';
|
3
3
|
import WebSocket from 'ws';
|
4
|
-
import { BufferLike } from '../types';
|
4
|
+
import type { BufferLike } from '../types';
|
5
5
|
export interface SendMessageOptions {
|
6
6
|
mask?: boolean | undefined;
|
7
7
|
binary?: boolean | undefined;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.58.
|
18
|
+
"version": "2.58.2",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/index.d.ts",
|
21
21
|
"main": "./dist/index.js",
|
@@ -49,36 +49,36 @@
|
|
49
49
|
"cookie-es": "^1.0.0",
|
50
50
|
"flatted": "^3.2.9",
|
51
51
|
"hono": "4.5.1",
|
52
|
+
"hookable": "^5.5.3",
|
52
53
|
"open": "^10.1.0",
|
53
54
|
"p-defer": "^3.0.0",
|
55
|
+
"react-devtools-inline": "^4.28.5",
|
54
56
|
"ufo": "^1.3.0",
|
55
57
|
"valtio": "^1.11.1",
|
56
58
|
"ws": "^8.13.0",
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"@modern-js/
|
60
|
-
"@modern-js/devtools-kit": "2.58.0",
|
61
|
-
"@modern-js/utils": "2.58.0"
|
59
|
+
"@modern-js/devtools-client": "2.58.2",
|
60
|
+
"@modern-js/devtools-kit": "2.58.2",
|
61
|
+
"@modern-js/utils": "2.58.2"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
+
"@rsbuild/core": "1.0.1-beta.14",
|
64
65
|
"@swc/helpers": "0.5.3",
|
65
66
|
"@types/node": "^14",
|
66
|
-
"@types/ws": "^8.5.5",
|
67
67
|
"@types/react-devtools-inline": "^4.24.8",
|
68
|
+
"@types/ws": "^8.5.5",
|
68
69
|
"type-fest": "^4.1.0",
|
69
70
|
"typescript": "^5",
|
70
|
-
"@
|
71
|
-
"@modern-js/
|
72
|
-
"@modern-js/
|
73
|
-
"@modern-js/
|
74
|
-
"@modern-js/
|
75
|
-
"@modern-js/
|
76
|
-
"@modern-js/
|
77
|
-
"@scripts/build": "2.58.
|
78
|
-
"@modern-js/server-core": "2.58.0"
|
71
|
+
"@modern-js/app-tools": "2.58.2",
|
72
|
+
"@modern-js/core": "2.58.2",
|
73
|
+
"@modern-js/module-tools": "2.58.2",
|
74
|
+
"@modern-js/runtime": "2.58.2",
|
75
|
+
"@modern-js/server-core": "2.58.2",
|
76
|
+
"@modern-js/uni-builder": "2.58.2",
|
77
|
+
"@modern-js/types": "2.58.2",
|
78
|
+
"@scripts/build": "2.58.2"
|
79
79
|
},
|
80
80
|
"peerDependencies": {
|
81
|
-
"@modern-js/runtime": "^2.58.
|
81
|
+
"@modern-js/runtime": "^2.58.2"
|
82
82
|
},
|
83
83
|
"peerDependenciesMeta": {
|
84
84
|
"@modern-js/runtime": {
|