@modern-js/plugin-devtools 2.58.1 → 2.58.3
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/cli.js +7 -7
- 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/http.js +4 -4
- 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/plugins/watcher.js +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/config.js +1 -1
- package/dist/utils/socket.d.ts +2 -2
- package/package.json +14 -14
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/cli.js
CHANGED
@@ -35,20 +35,20 @@ __export(cli_exports, {
|
|
35
35
|
module.exports = __toCommonJS(cli_exports);
|
36
36
|
var import_app_tools = require("@modern-js/app-tools");
|
37
37
|
var import_utils = require("@modern-js/utils");
|
38
|
-
var import_p_defer = __toESM(require("p-defer"));
|
39
38
|
var import_hookable = require("hookable");
|
39
|
+
var import_p_defer = __toESM(require("p-defer"));
|
40
40
|
var import_valtio = require("valtio");
|
41
41
|
var import_options = require("./options");
|
42
|
+
var import_cleanup = require("./plugins/cleanup");
|
42
43
|
var import_debug = require("./plugins/debug");
|
43
|
-
var import_http = require("./plugins/http");
|
44
|
-
var import_state = require("./plugins/state");
|
45
|
-
var import_watcher = require("./plugins/watcher");
|
46
|
-
var import_service_worker = require("./plugins/service-worker");
|
47
44
|
var import_html = require("./plugins/html");
|
45
|
+
var import_http = require("./plugins/http");
|
46
|
+
var import_manifest = require("./plugins/manifest");
|
48
47
|
var import_rpc = require("./plugins/rpc");
|
49
|
-
var
|
48
|
+
var import_service_worker = require("./plugins/service-worker");
|
50
49
|
var import_settle = require("./plugins/settle");
|
51
|
-
var
|
50
|
+
var import_state = require("./plugins/state");
|
51
|
+
var import_watcher = require("./plugins/watcher");
|
52
52
|
const BUILTIN_PLUGINS = [
|
53
53
|
import_debug.pluginDebug,
|
54
54
|
import_watcher.pluginWatcher,
|
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/http.js
CHANGED
@@ -31,16 +31,16 @@ __export(http_exports, {
|
|
31
31
|
pluginHttp: () => pluginHttp
|
32
32
|
});
|
33
33
|
module.exports = __toCommonJS(http_exports);
|
34
|
-
var import_path = __toESM(require("path"));
|
35
34
|
var import_assert = __toESM(require("assert"));
|
36
35
|
var import_http = __toESM(require("http"));
|
36
|
+
var import_path = __toESM(require("path"));
|
37
37
|
var import_url = require("url");
|
38
|
-
var import_hono = require("hono");
|
39
|
-
var import_cors = require("hono/cors");
|
40
|
-
var import_utils = require("@modern-js/utils");
|
41
38
|
var import_node_server = require("@hono/node-server");
|
42
39
|
var import_serve_static = require("@hono/node-server/serve-static");
|
43
40
|
var import_node = require("@modern-js/devtools-kit/node");
|
41
|
+
var import_utils = require("@modern-js/utils");
|
42
|
+
var import_hono = require("hono");
|
43
|
+
var import_cors = require("hono/cors");
|
44
44
|
const CLIENT_SERVE_DIR = import_path.default.resolve(require.resolve("@modern-js/devtools-client/package.json"), "../dist");
|
45
45
|
const cookiesServiceHandler = async (c) => {
|
46
46
|
const raw = c.req.header("Cookie");
|
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/plugins/watcher.js
CHANGED
@@ -22,8 +22,8 @@ __export(watcher_exports, {
|
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(watcher_exports);
|
24
24
|
var import_utils = require("@modern-js/utils");
|
25
|
-
var import_config = require("../utils/config");
|
26
25
|
var import_options = require("../options");
|
26
|
+
var import_config = require("../utils/config");
|
27
27
|
const pluginWatcher = {
|
28
28
|
name: "watcher",
|
29
29
|
async setup(api) {
|
package/dist/types/common.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { BaseHooks } from '@modern-js/core';
|
3
2
|
import type { AppTools, AppToolsHooks, CliPlugin } from '@modern-js/app-tools';
|
3
|
+
import type { BaseHooks } from '@modern-js/core';
|
4
|
+
import type { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
|
4
5
|
import type { ServerPlugin, ToThreads } from '@modern-js/server-core';
|
5
6
|
import type { RsbuildPluginAPI } from '@rsbuild/core';
|
6
|
-
import { Hookable } from 'hookable';
|
7
|
-
import { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
|
7
|
+
import type { Hookable } from 'hookable';
|
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/config.js
CHANGED
@@ -35,8 +35,8 @@ __export(config_exports, {
|
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(config_exports);
|
37
37
|
var import_path = __toESM(require("path"));
|
38
|
-
var import_fs_extra = __toESM(require("@modern-js/utils/fs-extra"));
|
39
38
|
var import_utils = require("@modern-js/utils");
|
39
|
+
var import_fs_extra = __toESM(require("@modern-js/utils/fs-extra"));
|
40
40
|
function getConfigFilenames(base, dir = process.cwd()) {
|
41
41
|
const files = [];
|
42
42
|
let curr = dir;
|
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.3",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/index.d.ts",
|
21
21
|
"main": "./dist/index.js",
|
@@ -56,29 +56,29 @@
|
|
56
56
|
"ufo": "^1.3.0",
|
57
57
|
"valtio": "^1.11.1",
|
58
58
|
"ws": "^8.13.0",
|
59
|
-
"@modern-js/devtools-client": "2.58.
|
60
|
-
"@modern-js/devtools-kit": "2.58.
|
61
|
-
"@modern-js/utils": "2.58.
|
59
|
+
"@modern-js/devtools-client": "2.58.3",
|
60
|
+
"@modern-js/devtools-kit": "2.58.3",
|
61
|
+
"@modern-js/utils": "2.58.3"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
-
"@rsbuild/core": "1.0.1-beta.
|
64
|
+
"@rsbuild/core": "1.0.1-beta.14",
|
65
65
|
"@swc/helpers": "0.5.3",
|
66
66
|
"@types/node": "^14",
|
67
67
|
"@types/react-devtools-inline": "^4.24.8",
|
68
68
|
"@types/ws": "^8.5.5",
|
69
69
|
"type-fest": "^4.1.0",
|
70
70
|
"typescript": "^5",
|
71
|
-
"@modern-js/core": "2.58.
|
72
|
-
"@modern-js/app-tools": "2.58.
|
73
|
-
"@modern-js/
|
74
|
-
"@modern-js/
|
75
|
-
"@modern-js/
|
76
|
-
"@modern-js/
|
77
|
-
"@
|
78
|
-
"@
|
71
|
+
"@modern-js/core": "2.58.3",
|
72
|
+
"@modern-js/app-tools": "2.58.3",
|
73
|
+
"@modern-js/module-tools": "2.58.3",
|
74
|
+
"@modern-js/server-core": "2.58.3",
|
75
|
+
"@modern-js/types": "2.58.3",
|
76
|
+
"@modern-js/uni-builder": "2.58.3",
|
77
|
+
"@scripts/build": "2.58.3",
|
78
|
+
"@modern-js/runtime": "2.58.3"
|
79
79
|
},
|
80
80
|
"peerDependencies": {
|
81
|
-
"@modern-js/runtime": "^2.58.
|
81
|
+
"@modern-js/runtime": "^2.58.3"
|
82
82
|
},
|
83
83
|
"peerDependenciesMeta": {
|
84
84
|
"@modern-js/runtime": {
|