rspack-plugin-mock 1.0.0 → 1.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/{chunk-TO6MO344.cjs → chunk-HTVJXQRM.cjs} +1 -1
- package/dist/{chunk-2ZANSHAK.js → chunk-HV5L72CY.js} +1 -1
- package/dist/{chunk-XLQXERKW.cjs → chunk-M7F5AAOF.cjs} +12 -12
- package/dist/{chunk-DCX6CEAX.js → chunk-OGWV5ZGG.js} +1 -1
- package/dist/helper.d.cts +1 -1
- package/dist/helper.d.ts +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/rsbuild.cjs +10 -10
- package/dist/rsbuild.js +2 -2
- package/dist/server.cjs +2 -2
- package/dist/server.js +1 -1
- package/package.json +21 -21
|
@@ -245,7 +245,7 @@ var tokensCache = {};
|
|
|
245
245
|
function getTokens(rule) {
|
|
246
246
|
if (tokensCache[rule])
|
|
247
247
|
return tokensCache[rule];
|
|
248
|
-
const
|
|
248
|
+
const tks = _pathtoregexp.parse.call(void 0, rule);
|
|
249
249
|
const tokens = [];
|
|
250
250
|
for (const tk of tks) {
|
|
251
251
|
if (!_utils.isString.call(void 0, tk)) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHTVJXQRMcjs = require('./chunk-HTVJXQRM.cjs');
|
|
13
13
|
|
|
14
14
|
// src/core/build.ts
|
|
15
15
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -50,7 +50,7 @@ function createCompiler(options, callback) {
|
|
|
50
50
|
const info = stats.toJson();
|
|
51
51
|
logError(info.errors);
|
|
52
52
|
}
|
|
53
|
-
const code =
|
|
53
|
+
const code = _chunkHTVJXQRMcjs.vfs.readFileSync("/output.js", "utf-8");
|
|
54
54
|
const externals = [];
|
|
55
55
|
if (!isWatch) {
|
|
56
56
|
const modules = _optionalChain([stats, 'optionalAccess', _3 => _3.toJson, 'call', _4 => _4(), 'access', _5 => _5.modules]) || [];
|
|
@@ -67,7 +67,7 @@ function createCompiler(options, callback) {
|
|
|
67
67
|
}
|
|
68
68
|
const compiler = rspackCore.rspack(rspackOptions, isWatch ? handler : void 0);
|
|
69
69
|
if (compiler)
|
|
70
|
-
compiler.outputFileSystem =
|
|
70
|
+
compiler.outputFileSystem = _chunkHTVJXQRMcjs.vfs;
|
|
71
71
|
if (!isWatch) {
|
|
72
72
|
_optionalChain([compiler, 'optionalAccess', _8 => _8.run, 'call', _9 => _9(async (...args) => {
|
|
73
73
|
await handler(...args);
|
|
@@ -270,7 +270,7 @@ async function writeMockEntryFile(entryFile, files, cwd) {
|
|
|
270
270
|
const importers = [];
|
|
271
271
|
const exporters = [];
|
|
272
272
|
for (const [index, filepath] of files.entries()) {
|
|
273
|
-
const file =
|
|
273
|
+
const file = _chunkHTVJXQRMcjs.normalizePath.call(void 0, _path2.default.join(cwd, filepath));
|
|
274
274
|
importers.push(`import * as m${index} from '${file}'`);
|
|
275
275
|
exporters.push(`[m${index}, '${filepath}']`);
|
|
276
276
|
}
|
|
@@ -288,7 +288,7 @@ export default [
|
|
|
288
288
|
function getPluginPackageInfo() {
|
|
289
289
|
let pkg = {};
|
|
290
290
|
try {
|
|
291
|
-
const filepath = _path2.default.join(
|
|
291
|
+
const filepath = _path2.default.join(_chunkHTVJXQRMcjs.packageDir, "../package.json");
|
|
292
292
|
if (_fs2.default.existsSync(filepath)) {
|
|
293
293
|
pkg = JSON.parse(_fs2.default.readFileSync(filepath, "utf8"));
|
|
294
294
|
}
|
|
@@ -302,7 +302,7 @@ function getPluginPackageInfo() {
|
|
|
302
302
|
function getHostDependencies(context) {
|
|
303
303
|
let pkg = {};
|
|
304
304
|
try {
|
|
305
|
-
const content =
|
|
305
|
+
const content = _chunkHTVJXQRMcjs.lookupFile.call(void 0, context, ["package.json"]);
|
|
306
306
|
if (content)
|
|
307
307
|
pkg = JSON.parse(content);
|
|
308
308
|
} catch (e3) {
|
|
@@ -357,7 +357,7 @@ var MockCompiler = (_class = class extends _events2.default {
|
|
|
357
357
|
const { include, exclude } = this.options;
|
|
358
358
|
this.fileFilter = _pluginutils.createFilter.call(void 0, include, exclude, { resolve: false });
|
|
359
359
|
try {
|
|
360
|
-
const pkg =
|
|
360
|
+
const pkg = _chunkHTVJXQRMcjs.lookupFile.call(void 0, this.cwd, ["package.json"]);
|
|
361
361
|
this.moduleType = !!pkg && JSON.parse(pkg).type === "module" ? "esm" : "cjs";
|
|
362
362
|
} catch (e5) {
|
|
363
363
|
}
|
|
@@ -394,7 +394,7 @@ var MockCompiler = (_class = class extends _events2.default {
|
|
|
394
394
|
isESM: this.moduleType === "esm",
|
|
395
395
|
cwd: this.cwd
|
|
396
396
|
});
|
|
397
|
-
this._mockData =
|
|
397
|
+
this._mockData = _chunkHTVJXQRMcjs.transformMockData.call(void 0, _chunkHTVJXQRMcjs.transformRawData.call(void 0, result));
|
|
398
398
|
this.emit("update", this.watchInfo || {});
|
|
399
399
|
} catch (e) {
|
|
400
400
|
this.options.logger.error(e.stack || e.message);
|
|
@@ -454,7 +454,7 @@ var _cors = require('cors'); var _cors2 = _interopRequireDefault(_cors);
|
|
|
454
454
|
var _pathtoregexp = require('path-to-regexp');
|
|
455
455
|
function createMockMiddleware(compiler, options) {
|
|
456
456
|
function mockMiddleware(middlewares, reload) {
|
|
457
|
-
middlewares.unshift(
|
|
457
|
+
middlewares.unshift(_chunkHTVJXQRMcjs.baseMiddleware.call(void 0, compiler, options));
|
|
458
458
|
const corsMiddleware = createCorsMiddleware(compiler, options);
|
|
459
459
|
if (corsMiddleware) {
|
|
460
460
|
middlewares.unshift(corsMiddleware);
|
|
@@ -477,9 +477,9 @@ function createCorsMiddleware(compiler, options) {
|
|
|
477
477
|
}
|
|
478
478
|
const proxies = options.proxies;
|
|
479
479
|
return !enabled ? void 0 : function(req, res, next) {
|
|
480
|
-
const { pathname } =
|
|
480
|
+
const { pathname } = _chunkHTVJXQRMcjs.urlParse.call(void 0, req.url);
|
|
481
481
|
if (!pathname || proxies.length === 0 || !proxies.some(
|
|
482
|
-
(context) =>
|
|
482
|
+
(context) => _chunkHTVJXQRMcjs.doesProxyContextMatchUrl.call(void 0, context, req.url, req)
|
|
483
483
|
)) {
|
|
484
484
|
return next();
|
|
485
485
|
}
|
|
@@ -511,7 +511,7 @@ function resolvePluginOptions({
|
|
|
511
511
|
bodyParserOptions = {},
|
|
512
512
|
priority = {}
|
|
513
513
|
} = {}, { alias, context, plugins, proxies }) {
|
|
514
|
-
const logger =
|
|
514
|
+
const logger = _chunkHTVJXQRMcjs.createLogger.call(void 0,
|
|
515
515
|
"rspack:mock",
|
|
516
516
|
_utils.isBoolean.call(void 0, log) ? log ? "info" : "error" : log
|
|
517
517
|
);
|
|
@@ -245,7 +245,7 @@ var tokensCache = {};
|
|
|
245
245
|
function getTokens(rule) {
|
|
246
246
|
if (tokensCache[rule])
|
|
247
247
|
return tokensCache[rule];
|
|
248
|
-
const
|
|
248
|
+
const tks = parse(rule);
|
|
249
249
|
const tokens = [];
|
|
250
250
|
for (const tk of tks) {
|
|
251
251
|
if (!isString(tk)) {
|
package/dist/helper.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as MockHttpItem, a as MockWebsocketItem, b as MockOptions } from './types-Aw0AciTG.cjs';
|
|
2
2
|
export { B as BodyParserOptions, E as ExtraRequest, F as FormidableFile, i as LogLevel, L as LogType, f as Method, d as MockMatchPriority, e as MockMatchSpecialPriority, g as MockRequest, h as MockResponse, c as MockServerPluginOptions, R as ResponseBody, S as ServerBuildOption, W as WebSocketSetupContext } from './types-Aw0AciTG.cjs';
|
|
3
|
-
import { IncomingMessage, ServerResponse
|
|
3
|
+
import { OutgoingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
4
|
import { Transform } from 'node:stream';
|
|
5
5
|
import 'co-body';
|
|
6
6
|
import 'cookies';
|
package/dist/helper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as MockHttpItem, a as MockWebsocketItem, b as MockOptions } from './types-Aw0AciTG.js';
|
|
2
2
|
export { B as BodyParserOptions, E as ExtraRequest, F as FormidableFile, i as LogLevel, L as LogType, f as Method, d as MockMatchPriority, e as MockMatchSpecialPriority, g as MockRequest, h as MockResponse, c as MockServerPluginOptions, R as ResponseBody, S as ServerBuildOption, W as WebSocketSetupContext } from './types-Aw0AciTG.js';
|
|
3
|
-
import { IncomingMessage, ServerResponse
|
|
3
|
+
import { OutgoingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
4
|
import { Transform } from 'node:stream';
|
|
5
5
|
import 'co-body';
|
|
6
6
|
import 'cookies';
|
package/dist/index.cjs
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkM7F5AAOFcjs = require('./chunk-M7F5AAOF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHTVJXQRMcjs = require('./chunk-HTVJXQRM.cjs');
|
|
13
13
|
|
|
14
14
|
// src/rspack.ts
|
|
15
15
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -25,11 +25,11 @@ var MockServerPlugin = class {
|
|
|
25
25
|
const compilerOptions = compiler.options;
|
|
26
26
|
const options = resolvePluginOptions2(compiler, this.options);
|
|
27
27
|
if (_process2.default.env.NODE_ENV !== "production") {
|
|
28
|
-
const mockCompiler =
|
|
29
|
-
const mockMiddleware =
|
|
28
|
+
const mockCompiler = _chunkM7F5AAOFcjs.createMockCompiler.call(void 0, options);
|
|
29
|
+
const mockMiddleware = _chunkM7F5AAOFcjs.createMockMiddleware.call(void 0, mockCompiler, options);
|
|
30
30
|
const setupMiddlewares = _optionalChain([compilerOptions, 'access', _ => _.devServer, 'optionalAccess', _2 => _2.setupMiddlewares]);
|
|
31
|
-
const waitServerForMockWebSocket =
|
|
32
|
-
|
|
31
|
+
const waitServerForMockWebSocket = _chunkHTVJXQRMcjs.waitingFor.call(void 0, (server) => {
|
|
32
|
+
_chunkHTVJXQRMcjs.mockWebSocket.call(void 0, mockCompiler, server, options);
|
|
33
33
|
});
|
|
34
34
|
compilerOptions.devServer = {
|
|
35
35
|
...compilerOptions.devServer,
|
|
@@ -57,7 +57,7 @@ var MockServerPlugin = class {
|
|
|
57
57
|
const onProxyReq = item.onProxyReq;
|
|
58
58
|
item.onProxyReq = (proxyReq, req, ...args) => {
|
|
59
59
|
_optionalChain([onProxyReq, 'optionalCall', _9 => _9(proxyReq, req, ...args)]);
|
|
60
|
-
|
|
60
|
+
_chunkHTVJXQRMcjs.rewriteRequest.call(void 0, proxyReq, req);
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
return item;
|
|
@@ -66,7 +66,7 @@ var MockServerPlugin = class {
|
|
|
66
66
|
compiler.hooks.watchRun.tap(PLUGIN_NAME, () => mockCompiler.run());
|
|
67
67
|
compiler.hooks.watchClose.tap(PLUGIN_NAME, () => mockCompiler.close());
|
|
68
68
|
} else if (options.build !== false) {
|
|
69
|
-
compiler.hooks.afterEmit.tap(PLUGIN_NAME, () =>
|
|
69
|
+
compiler.hooks.afterEmit.tap(PLUGIN_NAME, () => _chunkM7F5AAOFcjs.buildMockServer.call(void 0,
|
|
70
70
|
options,
|
|
71
71
|
compilerOptions.output.path || _path2.default.resolve(_process2.default.cwd(), "dist")
|
|
72
72
|
));
|
|
@@ -86,7 +86,7 @@ function resolvePluginOptions2(compiler, options) {
|
|
|
86
86
|
}
|
|
87
87
|
return [];
|
|
88
88
|
});
|
|
89
|
-
return
|
|
89
|
+
return _chunkM7F5AAOFcjs.resolvePluginOptions.call(void 0, options, {
|
|
90
90
|
alias,
|
|
91
91
|
context,
|
|
92
92
|
plugins: _utils.toArray.call(void 0, definePluginInstance),
|
|
@@ -100,4 +100,4 @@ function resolvePluginOptions2(compiler, options) {
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
exports.MockCompiler =
|
|
103
|
+
exports.MockCompiler = _chunkM7F5AAOFcjs.MockCompiler; exports.MockServerPlugin = MockServerPlugin; exports.createMockCompiler = _chunkM7F5AAOFcjs.createMockCompiler; exports.createMockMiddleware = _chunkM7F5AAOFcjs.createMockMiddleware; exports.mockWebSocket = _chunkHTVJXQRMcjs.mockWebSocket; exports.resolvePluginOptions = resolvePluginOptions2;
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
createMockCompiler,
|
|
5
5
|
createMockMiddleware,
|
|
6
6
|
resolvePluginOptions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HV5L72CY.js";
|
|
8
8
|
import {
|
|
9
9
|
mockWebSocket,
|
|
10
10
|
rewriteRequest,
|
|
11
11
|
waitingFor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OGWV5ZGG.js";
|
|
13
13
|
|
|
14
14
|
// src/rspack.ts
|
|
15
15
|
import path from "node:path";
|
package/dist/rsbuild.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM7F5AAOFcjs = require('./chunk-M7F5AAOF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHTVJXQRMcjs = require('./chunk-HTVJXQRM.cjs');
|
|
11
11
|
|
|
12
12
|
// src/rsbuild.ts
|
|
13
13
|
var _http = require('http');
|
|
@@ -22,7 +22,7 @@ function pluginMockServer(options = {}) {
|
|
|
22
22
|
name: "plugin-mock-server",
|
|
23
23
|
setup(api) {
|
|
24
24
|
const rsbuildConfig = api.getRsbuildConfig();
|
|
25
|
-
const resolvedOptions =
|
|
25
|
+
const resolvedOptions = _chunkM7F5AAOFcjs.resolvePluginOptions.call(void 0, options, {
|
|
26
26
|
proxies: resolveConfigProxies(rsbuildConfig),
|
|
27
27
|
alias: {},
|
|
28
28
|
context: api.context.rootPath,
|
|
@@ -32,7 +32,7 @@ function pluginMockServer(options = {}) {
|
|
|
32
32
|
if (resolvedOptions.build) {
|
|
33
33
|
api.onAfterBuild(async () => {
|
|
34
34
|
const config = api.getNormalizedConfig();
|
|
35
|
-
await
|
|
35
|
+
await _chunkM7F5AAOFcjs.buildMockServer.call(void 0,
|
|
36
36
|
resolvedOptions,
|
|
37
37
|
_path2.default.resolve(_process2.default.cwd(), config.output.distPath.root || "dist")
|
|
38
38
|
);
|
|
@@ -40,10 +40,10 @@ function pluginMockServer(options = {}) {
|
|
|
40
40
|
}
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
const mockCompiler =
|
|
43
|
+
const mockCompiler = _chunkM7F5AAOFcjs.createMockCompiler.call(void 0, resolvedOptions);
|
|
44
44
|
api.modifyRsbuildConfig((config) => {
|
|
45
45
|
updateServerProxyConfigByHttpMock(config);
|
|
46
|
-
const mockMiddleware =
|
|
46
|
+
const mockMiddleware = _chunkM7F5AAOFcjs.createMockMiddleware.call(void 0, mockCompiler, resolvedOptions);
|
|
47
47
|
config.dev ??= {};
|
|
48
48
|
config.dev.setupMiddlewares ??= [];
|
|
49
49
|
config.dev.setupMiddlewares.push((middlewares, server2) => {
|
|
@@ -64,7 +64,7 @@ function pluginMockServer(options = {}) {
|
|
|
64
64
|
mockCompiler.run();
|
|
65
65
|
if (shouldMockWs) {
|
|
66
66
|
server = _http.createServer.call(void 0, );
|
|
67
|
-
|
|
67
|
+
_chunkHTVJXQRMcjs.mockWebSocket.call(void 0, mockCompiler, server, resolvedOptions);
|
|
68
68
|
server.listen(port);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -105,7 +105,7 @@ function updateServerProxyConfigByHttpMock(config) {
|
|
|
105
105
|
onError: onError || onProxyError,
|
|
106
106
|
onProxyReq: (proxyReq, req, ...args) => {
|
|
107
107
|
_optionalChain([onProxyReq, 'optionalCall', _16 => _16(proxyReq, req, ...args)]);
|
|
108
|
-
|
|
108
|
+
_chunkHTVJXQRMcjs.rewriteRequest.call(void 0, proxyReq, req);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
}
|
|
@@ -115,7 +115,7 @@ function updateServerProxyConfigByHttpMock(config) {
|
|
|
115
115
|
const onProxyReq = config.server.proxy.onProxyReq;
|
|
116
116
|
config.server.proxy.onProxyReq = (proxyReq, req, ...args) => {
|
|
117
117
|
_optionalChain([onProxyReq, 'optionalCall', _17 => _17(proxyReq, req, ...args)]);
|
|
118
|
-
|
|
118
|
+
_chunkHTVJXQRMcjs.rewriteRequest.call(void 0, proxyReq, req);
|
|
119
119
|
};
|
|
120
120
|
config.server.proxy.onError ??= onProxyError;
|
|
121
121
|
} else if (config.server.proxy) {
|
|
@@ -130,7 +130,7 @@ function updateServerProxyConfigByHttpMock(config) {
|
|
|
130
130
|
...rest,
|
|
131
131
|
onProxyReq: (proxyReq, req, ...args) => {
|
|
132
132
|
_optionalChain([onProxyReq, 'optionalCall', _18 => _18(proxyReq, req, ...args)]);
|
|
133
|
-
|
|
133
|
+
_chunkHTVJXQRMcjs.rewriteRequest.call(void 0, proxyReq, req);
|
|
134
134
|
},
|
|
135
135
|
onError: onError || onProxyError
|
|
136
136
|
};
|
package/dist/rsbuild.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
createMockCompiler,
|
|
4
4
|
createMockMiddleware,
|
|
5
5
|
resolvePluginOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HV5L72CY.js";
|
|
7
7
|
import {
|
|
8
8
|
mockWebSocket,
|
|
9
9
|
rewriteRequest
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OGWV5ZGG.js";
|
|
11
11
|
|
|
12
12
|
// src/rsbuild.ts
|
|
13
13
|
import { createServer } from "node:http";
|
package/dist/server.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHTVJXQRMcjs = require('./chunk-HTVJXQRM.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,4 +15,4 @@ var _chunkTO6MO344cjs = require('./chunk-TO6MO344.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.baseMiddleware =
|
|
18
|
+
exports.baseMiddleware = _chunkHTVJXQRMcjs.baseMiddleware; exports.createLogger = _chunkHTVJXQRMcjs.createLogger; exports.logLevels = _chunkHTVJXQRMcjs.logLevels; exports.mockWebSocket = _chunkHTVJXQRMcjs.mockWebSocket; exports.sortByValidator = _chunkHTVJXQRMcjs.sortByValidator; exports.transformMockData = _chunkHTVJXQRMcjs.transformMockData; exports.transformRawData = _chunkHTVJXQRMcjs.transformRawData;
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rspack-plugin-mock",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "inject api mock server to development server",
|
|
6
6
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -86,29 +86,29 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@pengzhanbo/utils": "^
|
|
90
|
-
"@rollup/pluginutils": "^5.1.
|
|
89
|
+
"@pengzhanbo/utils": "^2.0.0",
|
|
90
|
+
"@rollup/pluginutils": "^5.1.4",
|
|
91
91
|
"chokidar": "3.6.0",
|
|
92
92
|
"co-body": "^6.2.0",
|
|
93
93
|
"cookies": "^0.9.1",
|
|
94
94
|
"cors": "^2.8.5",
|
|
95
95
|
"debug": "^4.4.0",
|
|
96
|
-
"fast-glob": "^3.3.
|
|
96
|
+
"fast-glob": "^3.3.3",
|
|
97
97
|
"formidable": "2.1.2",
|
|
98
|
-
"http-status": "^2.
|
|
99
|
-
"is-core-module": "^2.
|
|
98
|
+
"http-status": "^2.1.0",
|
|
99
|
+
"is-core-module": "^2.16.1",
|
|
100
100
|
"json5": "^2.2.3",
|
|
101
|
-
"memfs": "^4.
|
|
102
|
-
"mime-types": "^
|
|
103
|
-
"path-to-regexp": "
|
|
101
|
+
"memfs": "^4.17.0",
|
|
102
|
+
"mime-types": "^3.0.1",
|
|
103
|
+
"path-to-regexp": "6.3.0",
|
|
104
104
|
"picocolors": "^1.1.1",
|
|
105
|
-
"portfinder": "^1.0.
|
|
106
|
-
"ws": "^8.18.
|
|
105
|
+
"portfinder": "^1.0.36",
|
|
106
|
+
"ws": "^8.18.1"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@pengzhanbo/eslint-config": "^1.
|
|
110
|
-
"@rsbuild/core": "^1.
|
|
111
|
-
"@rspack/core": "^1.
|
|
109
|
+
"@pengzhanbo/eslint-config": "^1.29.0",
|
|
110
|
+
"@rsbuild/core": "^1.3.6",
|
|
111
|
+
"@rspack/core": "^1.3.4",
|
|
112
112
|
"@types/co-body": "^6.1.3",
|
|
113
113
|
"@types/cookies": "^0.9.0",
|
|
114
114
|
"@types/cors": "^2.8.17",
|
|
@@ -116,15 +116,15 @@
|
|
|
116
116
|
"@types/formidable": "2.0.6",
|
|
117
117
|
"@types/is-core-module": "^2.2.2",
|
|
118
118
|
"@types/mime-types": "^2.1.4",
|
|
119
|
-
"@types/node": "^22.
|
|
120
|
-
"@types/ws": "^8.
|
|
121
|
-
"bumpp": "^
|
|
119
|
+
"@types/node": "^22.14.1",
|
|
120
|
+
"@types/ws": "^8.18.1",
|
|
121
|
+
"bumpp": "^10.1.0",
|
|
122
122
|
"conventional-changelog-cli": "^5.0.0",
|
|
123
|
-
"eslint": "^9.
|
|
123
|
+
"eslint": "^9.24.0",
|
|
124
124
|
"husky": "^9.1.7",
|
|
125
|
-
"lint-staged": "^15.
|
|
126
|
-
"tsup": "^8.
|
|
127
|
-
"typescript": "^5.
|
|
125
|
+
"lint-staged": "^15.5.1",
|
|
126
|
+
"tsup": "^8.4.0",
|
|
127
|
+
"typescript": "^5.8.3"
|
|
128
128
|
},
|
|
129
129
|
"lint-staged": {
|
|
130
130
|
"*": "eslint --fix"
|