@rspack/dev-server 2.0.3 → 2.2.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.
@@ -8,5 +8,5 @@
8
8
  * https://github.com/webpack/webpack-dev-server/blob/main/LICENSE
9
9
  */
10
10
  import { type LoggerOptions, type LoggingFunction } from '../types.js';
11
- declare const _default: ({ level, debug, console, }: LoggerOptions) => LoggingFunction;
12
11
  export default _default;
12
+ declare function _default({ level, debug, console, }: LoggerOptions): LoggingFunction;
@@ -16,9 +16,11 @@ declare class SyncBailHook {
16
16
  constructor(_args?: string[]);
17
17
  call(_origin?: string, _type?: string, _args?: unknown): undefined;
18
18
  }
19
+ declare const configureDefaultLogger: (options: LoggerOptions) => void;
20
+ declare const getLogger: (name: string) => Logger;
19
21
  export declare const logger: {
20
- getLogger: (name: string) => Logger;
21
- configureDefaultLogger: (options: LoggerOptions) => void;
22
+ getLogger: typeof getLogger;
23
+ configureDefaultLogger: typeof configureDefaultLogger;
22
24
  hooks: {
23
25
  log: SyncBailHook;
24
26
  };
@@ -21,7 +21,7 @@ type Event = {
21
21
  type StateMachine = {
22
22
  send: (event: Event) => void;
23
23
  };
24
- declare const formatProblem: (type: "warning" | "error", item: string | Message) => {
24
+ declare const formatProblem: (type: 'warning' | 'error', item: string | Message) => {
25
25
  header: string;
26
26
  body: string;
27
27
  };
package/client/overlay.js CHANGED
@@ -41,7 +41,8 @@ function _object_spread_props(target, source) {
41
41
  });
42
42
  return target;
43
43
  }
44
- const getCodePoint = String.prototype.codePointAt ? (input, position)=>input.codePointAt(position) : (input, position)=>(input.charCodeAt(position) - 0xd800) * 0x400 + input.charCodeAt(position + 1) - 0xdc00 + 0x10000;
44
+ const hasCodePointAt = 'function' == typeof String.prototype.codePointAt;
45
+ const getCodePoint = hasCodePointAt ? (input, position)=>input.codePointAt(position) : (input, position)=>(input.charCodeAt(position) - 0xd800) * 0x400 + input.charCodeAt(position + 1) - 0xdc00 + 0x10000;
45
46
  const replaceUsingRegExp = (macroText, macroRegExp, macroReplacer)=>{
46
47
  macroRegExp.lastIndex = 0;
47
48
  let replaceMatch = macroRegExp.exec(macroText);
@@ -22,9 +22,9 @@ declare const _closeTags: Record<string, string | ((ansiCodes: Option<Array<stri
22
22
  * Converts text with ANSI color codes to HTML markup.
23
23
  */
24
24
  declare function ansiHTML(text: string): string;
25
+ export default ansiHTML;
25
26
  declare namespace ansiHTML {
26
27
  var setColors: (colors: typeof _defColors) => void;
27
28
  var reset: () => void;
28
29
  var tags: AnsiHtmlTags;
29
30
  }
30
- export default ansiHTML;
@@ -140,7 +140,7 @@ ansiHTML.setColors = (colors)=>{
140
140
  if ('object' != typeof colors) throw new Error('`colors` parameter must be an Object.');
141
141
  const _finalColors = {};
142
142
  for(const key in _defColors){
143
- let hex = colors.hasOwnProperty(key) ? colors[key] : null;
143
+ let hex = Object.prototype.hasOwnProperty.call(colors, key) ? colors[key] : null;
144
144
  if (!hex) {
145
145
  _finalColors[key] = _defColors[key];
146
146
  continue;
@@ -1,12 +1,12 @@
1
1
  /*! LICENSE: 0~chokidar.js.LICENSE.txt */
2
- import { __webpack_require__ } from "./465.js";
2
+ import { __webpack_require__ } from "./619.js";
3
3
  import { EventEmitter } from "node:events";
4
4
  import { stat as external_node_fs_stat, unwatchFile, watch, watchFile } from "node:fs";
5
5
  import { lstat, open as promises_open, readdir, realpath as promises_realpath, stat as promises_stat } from "node:fs/promises";
6
6
  import { join, relative as external_node_path_relative, resolve as external_node_path_resolve, sep } from "node:path";
7
7
  import { Readable } from "node:stream";
8
8
  import { type as external_node_os_type } from "node:os";
9
- import * as __rspack_external_node_path_c5b9b54f from "node:path";
9
+ import * as __rspack_external_node_path_806ed179 from "node:path";
10
10
  var chokidar_namespaceObject = {};
11
11
  __webpack_require__.r(chokidar_namespaceObject);
12
12
  __webpack_require__.d(chokidar_namespaceObject, {
@@ -244,7 +244,6 @@ function readdirp(root, options = {}) {
244
244
  }
245
245
  const STR_DATA = 'data';
246
246
  const STR_END = 'end';
247
- const STR_CLOSE = 'close';
248
247
  const EMPTY_FN = ()=>{};
249
248
  const pl = process.platform;
250
249
  const isWindows = 'win32' === pl;
@@ -540,7 +539,7 @@ const binaryExtensions = new Set([
540
539
  'zip',
541
540
  'zipx'
542
541
  ]);
543
- const isBinaryPath = (filePath)=>binaryExtensions.has(__rspack_external_node_path_c5b9b54f.extname(filePath).slice(1).toLowerCase());
542
+ const isBinaryPath = (filePath)=>binaryExtensions.has(__rspack_external_node_path_806ed179.extname(filePath).slice(1).toLowerCase());
544
543
  const foreach = (val, fn)=>{
545
544
  if (val instanceof Set) val.forEach(fn);
546
545
  else fn(val);
@@ -570,7 +569,7 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
570
569
  emitRaw(rawEvent, evPath, {
571
570
  watchedPath: path
572
571
  });
573
- if (evPath && path !== evPath) fsWatchBroadcast(__rspack_external_node_path_c5b9b54f.resolve(path, evPath), KEY_LISTENERS, __rspack_external_node_path_c5b9b54f.join(path, evPath));
572
+ if (evPath && path !== evPath) fsWatchBroadcast(__rspack_external_node_path_806ed179.resolve(path, evPath), KEY_LISTENERS, __rspack_external_node_path_806ed179.join(path, evPath));
574
573
  };
575
574
  try {
576
575
  return watch(path, {
@@ -685,11 +684,11 @@ class NodeFsHandler {
685
684
  }
686
685
  _watchWithNodeFs(path, listener) {
687
686
  const opts = this.fsw.options;
688
- const directory = __rspack_external_node_path_c5b9b54f.dirname(path);
689
- const basename = __rspack_external_node_path_c5b9b54f.basename(path);
687
+ const directory = __rspack_external_node_path_806ed179.dirname(path);
688
+ const basename = __rspack_external_node_path_806ed179.basename(path);
690
689
  const parent = this.fsw._getWatchedDir(directory);
691
690
  parent.add(basename);
692
- const absolutePath = __rspack_external_node_path_c5b9b54f.resolve(path);
691
+ const absolutePath = __rspack_external_node_path_806ed179.resolve(path);
693
692
  const options = {
694
693
  persistent: opts.persistent
695
694
  };
@@ -711,8 +710,8 @@ class NodeFsHandler {
711
710
  }
712
711
  _handleFile(file, stats, initialAdd) {
713
712
  if (this.fsw.closed) return;
714
- const dirname = __rspack_external_node_path_c5b9b54f.dirname(file);
715
- const basename = __rspack_external_node_path_c5b9b54f.basename(file);
713
+ const dirname = __rspack_external_node_path_806ed179.dirname(file);
714
+ const basename = __rspack_external_node_path_806ed179.basename(file);
716
715
  const parent = this.fsw._getWatchedDir(dirname);
717
716
  let prevStats = stats;
718
717
  if (parent.has(basename)) return;
@@ -779,7 +778,7 @@ class NodeFsHandler {
779
778
  this.fsw._symlinkPaths.set(full, true);
780
779
  }
781
780
  _handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
782
- directory = __rspack_external_node_path_c5b9b54f.join(directory, '');
781
+ directory = __rspack_external_node_path_806ed179.join(directory, '');
783
782
  const throttleKey = target ? `${directory}:${target}` : directory;
784
783
  throttler = this.fsw._throttle('readdir', throttleKey, 1000);
785
784
  if (!throttler) return;
@@ -796,7 +795,7 @@ class NodeFsHandler {
796
795
  return;
797
796
  }
798
797
  const item = entry.path;
799
- let path = __rspack_external_node_path_c5b9b54f.join(directory, item);
798
+ let path = __rspack_external_node_path_806ed179.join(directory, item);
800
799
  current.add(item);
801
800
  if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path, item)) return;
802
801
  if (this.fsw.closed) {
@@ -805,7 +804,7 @@ class NodeFsHandler {
805
804
  }
806
805
  if (item === target || !target && !previous.has(item)) {
807
806
  this.fsw._incrReadyCount();
808
- path = __rspack_external_node_path_c5b9b54f.join(dir, __rspack_external_node_path_c5b9b54f.relative(dir, path));
807
+ path = __rspack_external_node_path_806ed179.join(dir, __rspack_external_node_path_806ed179.relative(dir, path));
809
808
  this._addToNodeFs(path, initialAdd, wh, depth + 1);
810
809
  }
811
810
  }).on(EV.ERROR, this._boundHandleError);
@@ -827,10 +826,10 @@ class NodeFsHandler {
827
826
  });
828
827
  }
829
828
  async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
830
- const parentDir = this.fsw._getWatchedDir(__rspack_external_node_path_c5b9b54f.dirname(dir));
831
- const tracked = parentDir.has(__rspack_external_node_path_c5b9b54f.basename(dir));
829
+ const parentDir = this.fsw._getWatchedDir(__rspack_external_node_path_806ed179.dirname(dir));
830
+ const tracked = parentDir.has(__rspack_external_node_path_806ed179.basename(dir));
832
831
  if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) this.fsw._emit(EV.ADD_DIR, dir, stats);
833
- parentDir.add(__rspack_external_node_path_c5b9b54f.basename(dir));
832
+ parentDir.add(__rspack_external_node_path_806ed179.basename(dir));
834
833
  this.fsw._getWatchedDir(dir);
835
834
  let throttler;
836
835
  let closer;
@@ -868,7 +867,7 @@ class NodeFsHandler {
868
867
  const follow = this.fsw.options.followSymlinks;
869
868
  let closer;
870
869
  if (stats.isDirectory()) {
871
- const absPath = __rspack_external_node_path_c5b9b54f.resolve(path);
870
+ const absPath = __rspack_external_node_path_806ed179.resolve(path);
872
871
  const targetPath = follow ? await promises_realpath(path) : path;
873
872
  if (this.fsw.closed) return;
874
873
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
@@ -877,12 +876,12 @@ class NodeFsHandler {
877
876
  } else if (stats.isSymbolicLink()) {
878
877
  const targetPath = follow ? await promises_realpath(path) : path;
879
878
  if (this.fsw.closed) return;
880
- const parent = __rspack_external_node_path_c5b9b54f.dirname(wh.watchPath);
879
+ const parent = __rspack_external_node_path_806ed179.dirname(wh.watchPath);
881
880
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
882
881
  this.fsw._emit(EV.ADD, wh.watchPath, stats);
883
882
  closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
884
883
  if (this.fsw.closed) return;
885
- if (void 0 !== targetPath) this.fsw._symlinkPaths.set(__rspack_external_node_path_c5b9b54f.resolve(path), targetPath);
884
+ if (void 0 !== targetPath) this.fsw._symlinkPaths.set(__rspack_external_node_path_806ed179.resolve(path), targetPath);
886
885
  } else closer = this._handleFile(wh.watchPath, stats, initialAdd);
887
886
  ready();
888
887
  if (closer) this.fsw._addPathCloser(path, closer);
@@ -917,9 +916,9 @@ function createPattern(matcher) {
917
916
  if ('object' == typeof matcher && null !== matcher) return (string)=>{
918
917
  if (matcher.path === string) return true;
919
918
  if (matcher.recursive) {
920
- const relative = __rspack_external_node_path_c5b9b54f.relative(matcher.path, string);
919
+ const relative = __rspack_external_node_path_806ed179.relative(matcher.path, string);
921
920
  if (!relative) return false;
922
- return !relative.startsWith('..') && !__rspack_external_node_path_c5b9b54f.isAbsolute(relative);
921
+ return !relative.startsWith('..') && !__rspack_external_node_path_806ed179.isAbsolute(relative);
923
922
  }
924
923
  return false;
925
924
  };
@@ -927,7 +926,7 @@ function createPattern(matcher) {
927
926
  }
928
927
  function normalizePath(path) {
929
928
  if ('string' != typeof path) throw new Error('string expected');
930
- path = __rspack_external_node_path_c5b9b54f.normalize(path);
929
+ path = __rspack_external_node_path_806ed179.normalize(path);
931
930
  path = path.replace(/\\/g, '/');
932
931
  let prepend = false;
933
932
  if (path.startsWith('//')) prepend = true;
@@ -963,14 +962,14 @@ const toUnix = (string)=>{
963
962
  if (prepend) str = SLASH + str;
964
963
  return str;
965
964
  };
966
- const normalizePathToUnix = (path)=>toUnix(__rspack_external_node_path_c5b9b54f.normalize(toUnix(path)));
965
+ const normalizePathToUnix = (path)=>toUnix(__rspack_external_node_path_806ed179.normalize(toUnix(path)));
967
966
  const normalizeIgnored = (cwd = '')=>(path)=>{
968
- if ('string' == typeof path) return normalizePathToUnix(__rspack_external_node_path_c5b9b54f.isAbsolute(path) ? path : __rspack_external_node_path_c5b9b54f.join(cwd, path));
967
+ if ('string' == typeof path) return normalizePathToUnix(__rspack_external_node_path_806ed179.isAbsolute(path) ? path : __rspack_external_node_path_806ed179.join(cwd, path));
969
968
  return path;
970
969
  };
971
970
  const getAbsolutePath = (path, cwd)=>{
972
- if (__rspack_external_node_path_c5b9b54f.isAbsolute(path)) return path;
973
- return __rspack_external_node_path_c5b9b54f.join(cwd, path);
971
+ if (__rspack_external_node_path_806ed179.isAbsolute(path)) return path;
972
+ return __rspack_external_node_path_806ed179.join(cwd, path);
974
973
  };
975
974
  const EMPTY_SET = Object.freeze(new Set());
976
975
  class DirEntry {
@@ -996,7 +995,7 @@ class DirEntry {
996
995
  try {
997
996
  await readdir(dir);
998
997
  } catch (err) {
999
- if (this._removeWatcher) this._removeWatcher(__rspack_external_node_path_c5b9b54f.dirname(dir), __rspack_external_node_path_c5b9b54f.basename(dir));
998
+ if (this._removeWatcher) this._removeWatcher(__rspack_external_node_path_806ed179.dirname(dir), __rspack_external_node_path_806ed179.basename(dir));
1000
999
  }
1001
1000
  }
1002
1001
  has(item) {
@@ -1034,7 +1033,7 @@ class WatchHelper {
1034
1033
  const watchPath = path;
1035
1034
  this.path = path = path.replace(REPLACER_RE, '');
1036
1035
  this.watchPath = watchPath;
1037
- this.fullWatchPath = __rspack_external_node_path_c5b9b54f.resolve(watchPath);
1036
+ this.fullWatchPath = __rspack_external_node_path_806ed179.resolve(watchPath);
1038
1037
  this.dirParts = [];
1039
1038
  this.dirParts.forEach((parts)=>{
1040
1039
  if (parts.length > 1) parts.pop();
@@ -1043,7 +1042,7 @@ class WatchHelper {
1043
1042
  this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
1044
1043
  }
1045
1044
  entryPath(entry) {
1046
- return __rspack_external_node_path_c5b9b54f.join(this.watchPath, __rspack_external_node_path_c5b9b54f.relative(this.watchPath, entry.fullPath));
1045
+ return __rspack_external_node_path_806ed179.join(this.watchPath, __rspack_external_node_path_806ed179.relative(this.watchPath, entry.fullPath));
1047
1046
  }
1048
1047
  filterPath(entry) {
1049
1048
  const { stats } = entry;
@@ -1168,7 +1167,7 @@ class FSWatcher extends EventEmitter {
1168
1167
  })).then((results)=>{
1169
1168
  if (this.closed) return;
1170
1169
  results.forEach((item)=>{
1171
- if (item) this.add(__rspack_external_node_path_c5b9b54f.dirname(item), __rspack_external_node_path_c5b9b54f.basename(_origAdd || item));
1170
+ if (item) this.add(__rspack_external_node_path_806ed179.dirname(item), __rspack_external_node_path_806ed179.basename(_origAdd || item));
1172
1171
  });
1173
1172
  });
1174
1173
  return this;
@@ -1178,9 +1177,9 @@ class FSWatcher extends EventEmitter {
1178
1177
  const paths = unifyPaths(paths_);
1179
1178
  const { cwd } = this.options;
1180
1179
  paths.forEach((path)=>{
1181
- if (!__rspack_external_node_path_c5b9b54f.isAbsolute(path) && !this._closers.has(path)) {
1182
- if (cwd) path = __rspack_external_node_path_c5b9b54f.join(cwd, path);
1183
- path = __rspack_external_node_path_c5b9b54f.resolve(path);
1180
+ if (!__rspack_external_node_path_806ed179.isAbsolute(path) && !this._closers.has(path)) {
1181
+ if (cwd) path = __rspack_external_node_path_806ed179.join(cwd, path);
1182
+ path = __rspack_external_node_path_806ed179.resolve(path);
1184
1183
  }
1185
1184
  this._closePath(path);
1186
1185
  this._addIgnoredPath(path);
@@ -1217,7 +1216,7 @@ class FSWatcher extends EventEmitter {
1217
1216
  getWatched() {
1218
1217
  const watchList = {};
1219
1218
  this._watched.forEach((entry, dir)=>{
1220
- const key = this.options.cwd ? __rspack_external_node_path_c5b9b54f.relative(this.options.cwd, dir) : dir;
1219
+ const key = this.options.cwd ? __rspack_external_node_path_806ed179.relative(this.options.cwd, dir) : dir;
1221
1220
  const index = key || ONE_DOT;
1222
1221
  watchList[index] = entry.getChildren().sort();
1223
1222
  });
@@ -1230,8 +1229,8 @@ class FSWatcher extends EventEmitter {
1230
1229
  async _emit(event, path, stats) {
1231
1230
  if (this.closed) return;
1232
1231
  const opts = this.options;
1233
- if (isWindows) path = __rspack_external_node_path_c5b9b54f.normalize(path);
1234
- if (opts.cwd) path = __rspack_external_node_path_c5b9b54f.relative(opts.cwd, path);
1232
+ if (isWindows) path = __rspack_external_node_path_806ed179.normalize(path);
1233
+ if (opts.cwd) path = __rspack_external_node_path_806ed179.relative(opts.cwd, path);
1235
1234
  const args = [
1236
1235
  path
1237
1236
  ];
@@ -1282,7 +1281,7 @@ class FSWatcher extends EventEmitter {
1282
1281
  if (isThrottled) return this;
1283
1282
  }
1284
1283
  if (opts.alwaysStat && void 0 === stats && (event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
1285
- const fullPath = opts.cwd ? __rspack_external_node_path_c5b9b54f.join(opts.cwd, path) : path;
1284
+ const fullPath = opts.cwd ? __rspack_external_node_path_806ed179.join(opts.cwd, path) : path;
1286
1285
  let stats;
1287
1286
  try {
1288
1287
  stats = await promises_stat(fullPath);
@@ -1334,7 +1333,7 @@ class FSWatcher extends EventEmitter {
1334
1333
  const pollInterval = awf.pollInterval;
1335
1334
  let timeoutHandler;
1336
1335
  let fullPath = path;
1337
- if (this.options.cwd && !__rspack_external_node_path_c5b9b54f.isAbsolute(path)) fullPath = __rspack_external_node_path_c5b9b54f.join(this.options.cwd, path);
1336
+ if (this.options.cwd && !__rspack_external_node_path_806ed179.isAbsolute(path)) fullPath = __rspack_external_node_path_806ed179.join(this.options.cwd, path);
1338
1337
  const now = new Date();
1339
1338
  const writes = this._pendingWrites;
1340
1339
  function awaitWriteFinishFn(prevStat) {
@@ -1389,7 +1388,7 @@ class FSWatcher extends EventEmitter {
1389
1388
  return new WatchHelper(path, this.options.followSymlinks, this);
1390
1389
  }
1391
1390
  _getWatchedDir(directory) {
1392
- const dir = __rspack_external_node_path_c5b9b54f.resolve(directory);
1391
+ const dir = __rspack_external_node_path_806ed179.resolve(directory);
1393
1392
  if (!this._watched.has(dir)) this._watched.set(dir, new DirEntry(dir, this._boundRemove));
1394
1393
  return this._watched.get(dir);
1395
1394
  }
@@ -1398,8 +1397,8 @@ class FSWatcher extends EventEmitter {
1398
1397
  return Boolean(256 & Number(stats.mode));
1399
1398
  }
1400
1399
  _remove(directory, item, isDirectory) {
1401
- const path = __rspack_external_node_path_c5b9b54f.join(directory, item);
1402
- const fullPath = __rspack_external_node_path_c5b9b54f.resolve(path);
1400
+ const path = __rspack_external_node_path_806ed179.join(directory, item);
1401
+ const fullPath = __rspack_external_node_path_806ed179.resolve(path);
1403
1402
  isDirectory = null != isDirectory ? isDirectory : this._watched.has(path) || this._watched.has(fullPath);
1404
1403
  if (!this._throttle('remove', path, 100)) return;
1405
1404
  if (!isDirectory && 1 === this._watched.size) this.add(directory, item, true);
@@ -1411,7 +1410,7 @@ class FSWatcher extends EventEmitter {
1411
1410
  parent.remove(item);
1412
1411
  if (this._symlinkPaths.has(fullPath)) this._symlinkPaths.delete(fullPath);
1413
1412
  let relPath = path;
1414
- if (this.options.cwd) relPath = __rspack_external_node_path_c5b9b54f.relative(this.options.cwd, path);
1413
+ if (this.options.cwd) relPath = __rspack_external_node_path_806ed179.relative(this.options.cwd, path);
1415
1414
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
1416
1415
  const event = this._pendingWrites.get(relPath).cancelWait();
1417
1416
  if (event === EVENTS.ADD) return;
@@ -1424,8 +1423,8 @@ class FSWatcher extends EventEmitter {
1424
1423
  }
1425
1424
  _closePath(path) {
1426
1425
  this._closeFile(path);
1427
- const dir = __rspack_external_node_path_c5b9b54f.dirname(path);
1428
- this._getWatchedDir(dir).remove(__rspack_external_node_path_c5b9b54f.basename(path));
1426
+ const dir = __rspack_external_node_path_806ed179.dirname(path);
1427
+ this._getWatchedDir(dir).remove(__rspack_external_node_path_806ed179.basename(path));
1429
1428
  }
1430
1429
  _closeFile(path) {
1431
1430
  const closers = this._closers.get(path);
@@ -1453,10 +1452,10 @@ class FSWatcher extends EventEmitter {
1453
1452
  };
1454
1453
  let stream = readdirp(root, options);
1455
1454
  this._streams.add(stream);
1456
- stream.once(STR_CLOSE, ()=>{
1455
+ stream.once("close", ()=>{
1457
1456
  stream = void 0;
1458
1457
  });
1459
- stream.once(STR_END, ()=>{
1458
+ stream.once("end", ()=>{
1460
1459
  if (stream) {
1461
1460
  this._streams.delete(stream);
1462
1461
  stream = void 0;
@@ -1,5 +1,5 @@
1
- import { __webpack_require__ } from "./465.js";
2
- import "./465.js";
1
+ import { __webpack_require__ } from "./619.js";
2
+ import "./619.js";
3
3
  __webpack_require__.add({
4
4
  "./node_modules/.pnpm/connect-history-api-fallback@2.0.0/node_modules/connect-history-api-fallback/lib/index.js" (module, exports, __webpack_require__) {
5
5
  var url = __webpack_require__("url?b918");
@@ -1,7 +1,7 @@
1
1
  /*! LICENSE: 0~connect-next.js.LICENSE.txt */
2
2
  import { EventEmitter } from "node:events";
3
3
  import { createRequire } from "node:module";
4
- import * as __rspack_external_node_http_2dc67212 from "node:http";
4
+ import * as __rspack_external_node_http_e245b239 from "node:http";
5
5
  /*! LICENSE: index.js.LICENSE.txt */ const __rspack_createRequire_require = createRequire(import.meta.url);
6
6
  var __webpack_modules__ = {};
7
7
  var __webpack_module_cache__ = {};
@@ -25,11 +25,15 @@ __nested_rspack_require_364__.m = __webpack_modules__;
25
25
  };
26
26
  })();
27
27
  (()=>{
28
- __nested_rspack_require_364__.d = (exports, definition)=>{
29
- for(var key in definition)if (__nested_rspack_require_364__.o(definition, key) && !__nested_rspack_require_364__.o(exports, key)) Object.defineProperty(exports, key, {
30
- enumerable: true,
31
- get: definition[key]
32
- });
28
+ __nested_rspack_require_364__.d = (exports, getters, values)=>{
29
+ var define = (defs, kind)=>{
30
+ for(var key in defs)if (__nested_rspack_require_364__.o(defs, key) && !__nested_rspack_require_364__.o(exports, key)) Object.defineProperty(exports, key, {
31
+ enumerable: true,
32
+ [kind]: defs[key]
33
+ });
34
+ };
35
+ define(getters, "get");
36
+ define(values, "value");
33
37
  };
34
38
  })();
35
39
  (()=>{
@@ -41,7 +45,7 @@ __nested_rspack_require_364__.m = __webpack_modules__;
41
45
  __nested_rspack_require_364__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
42
46
  })();
43
47
  __nested_rspack_require_364__.add({
44
- "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js" (module, exports, __nested_rspack_require_1677_1696__) {
48
+ "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js" (module, exports, __nested_rspack_require_1796_1815__) {
45
49
  exports.formatArgs = formatArgs;
46
50
  exports.save = save;
47
51
  exports.load = load;
@@ -174,7 +178,7 @@ __nested_rspack_require_364__.add({
174
178
  return localStorage;
175
179
  } catch (error) {}
176
180
  }
177
- module.exports = __nested_rspack_require_1677_1696__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js")(exports);
181
+ module.exports = __nested_rspack_require_1796_1815__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js")(exports);
178
182
  const { formatters } = module.exports;
179
183
  formatters.j = function(v) {
180
184
  try {
@@ -184,7 +188,7 @@ __nested_rspack_require_364__.add({
184
188
  }
185
189
  };
186
190
  },
187
- "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js" (module, __unused_rspack_exports, __nested_rspack_require_6843_6862__) {
191
+ "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js" (module, __unused_rspack_exports, __nested_rspack_require_6962_6981__) {
188
192
  function setup(env) {
189
193
  createDebug.debug = createDebug;
190
194
  createDebug.default = createDebug;
@@ -192,7 +196,7 @@ __nested_rspack_require_364__.add({
192
196
  createDebug.disable = disable;
193
197
  createDebug.enable = enable;
194
198
  createDebug.enabled = enabled;
195
- createDebug.humanize = __nested_rspack_require_6843_6862__("./node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js");
199
+ createDebug.humanize = __nested_rspack_require_6962_6981__("./node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js");
196
200
  createDebug.destroy = destroy;
197
201
  Object.keys(env).forEach((key)=>{
198
202
  createDebug[key] = env[key];
@@ -326,13 +330,13 @@ __nested_rspack_require_364__.add({
326
330
  }
327
331
  module.exports = setup;
328
332
  },
329
- "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js" (module, __unused_rspack_exports, __nested_rspack_require_13591_13610__) {
330
- if ("u" < typeof process || 'renderer' === process.type || true === process.browser || process.__nwjs) module.exports = __nested_rspack_require_13591_13610__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js");
331
- else module.exports = __nested_rspack_require_13591_13610__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js");
333
+ "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js" (module, __unused_rspack_exports, __nested_rspack_require_13710_13729__) {
334
+ if ("u" < typeof process || 'renderer' === process.type || true === process.browser || process.__nwjs) module.exports = __nested_rspack_require_13710_13729__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js");
335
+ else module.exports = __nested_rspack_require_13710_13729__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js");
332
336
  },
333
- "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js" (module, exports, __nested_rspack_require_14109_14128__) {
334
- const tty = __nested_rspack_require_14109_14128__("tty");
335
- const util = __nested_rspack_require_14109_14128__("util");
337
+ "./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js" (module, exports, __nested_rspack_require_14228_14247__) {
338
+ const tty = __nested_rspack_require_14228_14247__("tty");
339
+ const util = __nested_rspack_require_14228_14247__("util");
336
340
  exports.init = init;
337
341
  exports.log = log;
338
342
  exports.formatArgs = formatArgs;
@@ -349,7 +353,7 @@ __nested_rspack_require_364__.add({
349
353
  1
350
354
  ];
351
355
  try {
352
- const supportsColor = __nested_rspack_require_14109_14128__("./node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js");
356
+ const supportsColor = __nested_rspack_require_14228_14247__("./node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js");
353
357
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
354
358
  20,
355
359
  21,
@@ -468,7 +472,7 @@ __nested_rspack_require_364__.add({
468
472
  const keys = Object.keys(exports.inspectOpts);
469
473
  for(let i = 0; i < keys.length; i++)debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
470
474
  }
471
- module.exports = __nested_rspack_require_14109_14128__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js")(exports);
475
+ module.exports = __nested_rspack_require_14228_14247__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js")(exports);
472
476
  const { formatters } = module.exports;
473
477
  formatters.o = function(v) {
474
478
  this.inspectOpts.colors = this.useColors;
@@ -587,17 +591,17 @@ __nested_rspack_require_364__.add({
587
591
  return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
588
592
  }
589
593
  },
590
- "./node_modules/.pnpm/finalhandler@2.1.1/node_modules/finalhandler/index.js" (module, __unused_rspack_exports, __nested_rspack_require_23374_23393__) {
594
+ "./node_modules/.pnpm/finalhandler@2.1.1/node_modules/finalhandler/index.js" (module, __unused_rspack_exports, __nested_rspack_require_23493_23512__) {
591
595
  /*!
592
596
  * finalhandler
593
597
  * Copyright(c) 2014-2022 Douglas Christopher Wilson
594
598
  * MIT Licensed
595
- */ var debug = __nested_rspack_require_23374_23393__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js")('finalhandler');
596
- var encodeUrl = __nested_rspack_require_23374_23393__("./node_modules/.pnpm/encodeurl@2.0.0/node_modules/encodeurl/index.js");
597
- var escapeHtml = __nested_rspack_require_23374_23393__("./node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js");
598
- var onFinished = __nested_rspack_require_23374_23393__("./node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js");
599
- var parseUrl = __nested_rspack_require_23374_23393__("./node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js");
600
- var statuses = __nested_rspack_require_23374_23393__("./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js");
599
+ */ var debug = __nested_rspack_require_23493_23512__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js")('finalhandler');
600
+ var encodeUrl = __nested_rspack_require_23493_23512__("./node_modules/.pnpm/encodeurl@2.0.0/node_modules/encodeurl/index.js");
601
+ var escapeHtml = __nested_rspack_require_23493_23512__("./node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js");
602
+ var onFinished = __nested_rspack_require_23493_23512__("./node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js");
603
+ var parseUrl = __nested_rspack_require_23493_23512__("./node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js");
604
+ var statuses = __nested_rspack_require_23493_23512__("./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js");
601
605
  var isFinished = onFinished.isFinished;
602
606
  function createHtmlDocument(message) {
603
607
  var body = escapeHtml(message).replaceAll('\n', '<br>').replaceAll(' ', ' &nbsp;');
@@ -777,7 +781,7 @@ __nested_rspack_require_364__.add({
777
781
  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
778
782
  }
779
783
  },
780
- "./node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js" (module, __unused_rspack_exports, __nested_rspack_require_31978_31997__) {
784
+ "./node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js" (module, __unused_rspack_exports, __nested_rspack_require_32097_32116__) {
781
785
  /*!
782
786
  * on-finished
783
787
  * Copyright(c) 2013 Jonathan Ong
@@ -786,7 +790,7 @@ __nested_rspack_require_364__.add({
786
790
  */ module.exports = onFinished;
787
791
  module.exports.isFinished = isFinished;
788
792
  var asyncHooks = tryRequireAsyncHooks();
789
- var first = __nested_rspack_require_31978_31997__("./node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js");
793
+ var first = __nested_rspack_require_32097_32116__("./node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js");
790
794
  var defer = 'function' == typeof setImmediate ? setImmediate : function(fn) {
791
795
  process.nextTick(fn.bind.apply(fn, arguments));
792
796
  };
@@ -865,7 +869,7 @@ __nested_rspack_require_364__.add({
865
869
  }
866
870
  function tryRequireAsyncHooks() {
867
871
  try {
868
- return __nested_rspack_require_31978_31997__("async_hooks");
872
+ return __nested_rspack_require_32097_32116__("async_hooks");
869
873
  } catch (e) {
870
874
  return {};
871
875
  }
@@ -877,13 +881,13 @@ __nested_rspack_require_364__.add({
877
881
  return res.runInAsyncScope.bind(res, fn, null);
878
882
  }
879
883
  },
880
- "./node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js" (module, __unused_rspack_exports, __nested_rspack_require_35898_35917__) {
884
+ "./node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js" (module, __unused_rspack_exports, __nested_rspack_require_36017_36036__) {
881
885
  /*!
882
886
  * parseurl
883
887
  * Copyright(c) 2014 Jonathan Ong
884
888
  * Copyright(c) 2014-2017 Douglas Christopher Wilson
885
889
  * MIT Licensed
886
- */ var url = __nested_rspack_require_35898_35917__("url");
890
+ */ var url = __nested_rspack_require_36017_36036__("url");
887
891
  var parse = url.parse;
888
892
  var Url = url.Url;
889
893
  module.exports = parseurl;
@@ -943,13 +947,13 @@ __nested_rspack_require_364__.add({
943
947
  return 'object' == typeof parsedUrl && null !== parsedUrl && (void 0 === Url || parsedUrl instanceof Url) && parsedUrl._raw === url;
944
948
  }
945
949
  },
946
- "./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js" (module, __unused_rspack_exports, __nested_rspack_require_38369_38388__) {
950
+ "./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js" (module, __unused_rspack_exports, __nested_rspack_require_38488_38507__) {
947
951
  /*!
948
952
  * statuses
949
953
  * Copyright(c) 2014 Jonathan Ong
950
954
  * Copyright(c) 2016 Douglas Christopher Wilson
951
955
  * MIT Licensed
952
- */ var codes = __nested_rspack_require_38369_38388__("./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json");
956
+ */ var codes = __nested_rspack_require_38488_38507__("./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json");
953
957
  module.exports = status;
954
958
  status.message = codes;
955
959
  status.code = createMessageToStatusCodeMap(codes);
@@ -1004,10 +1008,10 @@ __nested_rspack_require_364__.add({
1004
1008
  return getStatusCode(code);
1005
1009
  }
1006
1010
  },
1007
- "./node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js" (module, __unused_rspack_exports, __nested_rspack_require_40661_40680__) {
1008
- const os = __nested_rspack_require_40661_40680__("os");
1009
- const tty = __nested_rspack_require_40661_40680__("tty");
1010
- const hasFlag = __nested_rspack_require_40661_40680__("./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js");
1011
+ "./node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js" (module, __unused_rspack_exports, __nested_rspack_require_40780_40799__) {
1012
+ const os = __nested_rspack_require_40780_40799__("os");
1013
+ const tty = __nested_rspack_require_40780_40799__("tty");
1014
+ const hasFlag = __nested_rspack_require_40780_40799__("./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js");
1011
1015
  const { env } = process;
1012
1016
  let flagForceColor;
1013
1017
  if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
@@ -1106,7 +1110,7 @@ __nested_rspack_require_364__.add({
1106
1110
  module.exports = __rspack_createRequire_require("util");
1107
1111
  },
1108
1112
  "./node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json" (module) {
1109
- module.exports = JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}');
1113
+ module.exports = /*#__PURE__*/ JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}');
1110
1114
  }
1111
1115
  });
1112
1116
  const src = __nested_rspack_require_364__("./node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js");
@@ -1205,7 +1209,7 @@ const proto = {
1205
1209
  next();
1206
1210
  },
1207
1211
  listen (...args) {
1208
- const server = __rspack_external_node_http_2dc67212.createServer(this);
1212
+ const server = __rspack_external_node_http_e245b239.createServer(this);
1209
1213
  return server.listen(...args);
1210
1214
  }
1211
1215
  };
@@ -1240,6 +1244,6 @@ function isConnectServer(value) {
1240
1244
  return 'function' == typeof value && 'handle' in value && 'function' == typeof value.handle;
1241
1245
  }
1242
1246
  function isHttpServer(value) {
1243
- return value instanceof __rspack_external_node_http_2dc67212.Server;
1247
+ return value instanceof __rspack_external_node_http_e245b239.Server;
1244
1248
  }
1245
1249
  export { connect };