@rsbuild/core 2.0.0-beta.10 → 2.0.0-beta.11
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/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +28 -73
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +1 -1
- package/compiled/rslog/package.json +1 -1
- package/dist/{958.js → 552.js} +174 -42
- package/dist/chokidar.js +34 -33
- package/dist/connect-next.js +4 -8
- package/dist/cors.js +1 -1
- package/dist/{src.js → debug.js} +3 -10
- package/dist/http-proxy-middleware.js +19 -57
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +8 -27
- package/dist/manifest-plugin.js +9 -16
- package/dist/memfs.js +8 -31
- package/dist/mrmime.js +1 -2
- package/dist/range-parser.js +1 -1
- package/dist/sirv.js +10 -10
- package/dist/tinyglobby.js +1 -1
- package/dist/ws.js +8 -44
- package/dist-types/types/config.d.ts +1 -1
- package/package.json +9 -10
- package/types.d.ts +1 -1
- /package/dist/{rslib-runtime.js → 1~rslib-runtime.js} +0 -0
- /package/dist/{958.js.LICENSE.txt → 552.js.LICENSE.txt} +0 -0
package/dist/chokidar.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import { EventEmitter } from "node:events";
|
|
3
3
|
import { stat as external_node_fs_stat, unwatchFile, watch, watchFile } from "node:fs";
|
|
4
4
|
import { lstat, open as promises_open, readdir, realpath as promises_realpath, stat as promises_stat } from "node:fs/promises";
|
|
5
|
-
import {
|
|
5
|
+
import { join, relative as external_node_path_relative, resolve as external_node_path_resolve, sep } from "node:path";
|
|
6
6
|
import { Readable } from "node:stream";
|
|
7
7
|
import { type as external_node_os_type } from "node:os";
|
|
8
|
+
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
8
9
|
let EntryTypes_FILE_TYPE = 'files', EntryTypes_DIR_TYPE = 'directories', EntryTypes_FILE_DIR_TYPE = 'files_directories', defaultOptions = {
|
|
9
10
|
root: '.',
|
|
10
11
|
fileFilter: (_entryInfo)=>!0,
|
|
@@ -468,7 +469,7 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
|
|
|
468
469
|
}, (rawEvent, evPath)=>{
|
|
469
470
|
listener(path), emitRaw(rawEvent, evPath, {
|
|
470
471
|
watchedPath: path
|
|
471
|
-
}), evPath && path !== evPath && fsWatchBroadcast(
|
|
472
|
+
}), evPath && path !== evPath && fsWatchBroadcast(__rspack_external_node_path_c5b9b54f.resolve(path, evPath), KEY_LISTENERS, __rspack_external_node_path_c5b9b54f.join(path, evPath));
|
|
472
473
|
});
|
|
473
474
|
} catch (error) {
|
|
474
475
|
errHandler(error);
|
|
@@ -488,12 +489,12 @@ class NodeFsHandler {
|
|
|
488
489
|
this.fsw = fsW, this._boundHandleError = (error)=>fsW._handleError(error);
|
|
489
490
|
}
|
|
490
491
|
_watchWithNodeFs(path, listener) {
|
|
491
|
-
let closer, opts = this.fsw.options, directory =
|
|
492
|
+
let closer, opts = this.fsw.options, directory = __rspack_external_node_path_c5b9b54f.dirname(path), basename = __rspack_external_node_path_c5b9b54f.basename(path);
|
|
492
493
|
this.fsw._getWatchedDir(directory).add(basename);
|
|
493
|
-
let absolutePath =
|
|
494
|
+
let absolutePath = __rspack_external_node_path_c5b9b54f.resolve(path), options = {
|
|
494
495
|
persistent: opts.persistent
|
|
495
496
|
};
|
|
496
|
-
if (listener || (listener = EMPTY_FN), opts.usePolling) options.interval = opts.interval !== opts.binaryInterval && binaryExtensions.has(extname(basename).slice(1).toLowerCase()) ? opts.binaryInterval : opts.interval, closer = ((path, fullPath, options, handlers)=>{
|
|
497
|
+
if (listener || (listener = EMPTY_FN), opts.usePolling) options.interval = opts.interval !== opts.binaryInterval && binaryExtensions.has(__rspack_external_node_path_c5b9b54f.extname(basename).slice(1).toLowerCase()) ? opts.binaryInterval : opts.interval, closer = ((path, fullPath, options, handlers)=>{
|
|
497
498
|
let { listener, rawEmitter } = handlers, cont = FsWatchFileInstances.get(fullPath), copts = cont && cont.options;
|
|
498
499
|
return copts && (copts.persistent < options.persistent || copts.interval > options.interval) && (unwatchFile(fullPath), cont = void 0), cont ? (addAndConvert(cont, KEY_LISTENERS, listener), addAndConvert(cont, KEY_RAW, rawEmitter)) : (cont = {
|
|
499
500
|
listeners: listener,
|
|
@@ -557,7 +558,7 @@ class NodeFsHandler {
|
|
|
557
558
|
}
|
|
558
559
|
_handleFile(file, stats, initialAdd) {
|
|
559
560
|
if (this.fsw.closed) return;
|
|
560
|
-
let dirname =
|
|
561
|
+
let dirname = __rspack_external_node_path_c5b9b54f.dirname(file), basename = __rspack_external_node_path_c5b9b54f.basename(file), parent = this.fsw._getWatchedDir(dirname), prevStats = stats;
|
|
561
562
|
if (parent.has(basename)) return;
|
|
562
563
|
let listener = async (path, newStats)=>{
|
|
563
564
|
if (this.fsw._throttle('watch', file, 5)) if (newStats && 0 !== newStats.mtimeMs) {
|
|
@@ -602,7 +603,7 @@ class NodeFsHandler {
|
|
|
602
603
|
this.fsw._symlinkPaths.set(full, !0);
|
|
603
604
|
}
|
|
604
605
|
_handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
|
|
605
|
-
directory = join(directory, '');
|
|
606
|
+
directory = __rspack_external_node_path_c5b9b54f.join(directory, '');
|
|
606
607
|
let throttleKey = target ? `${directory}:${target}` : directory;
|
|
607
608
|
if (!(throttler = this.fsw._throttle('readdir', throttleKey, 1000))) return;
|
|
608
609
|
let previous = this.fsw._getWatchedDir(wh.path), current = new Set(), stream = this.fsw._readdirp(directory, {
|
|
@@ -614,13 +615,13 @@ class NodeFsHandler {
|
|
|
614
615
|
stream = void 0;
|
|
615
616
|
return;
|
|
616
617
|
}
|
|
617
|
-
let item = entry.path, path = join(directory, item);
|
|
618
|
+
let item = entry.path, path = __rspack_external_node_path_c5b9b54f.join(directory, item);
|
|
618
619
|
if (current.add(item), !(entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path, item))) {
|
|
619
620
|
if (this.fsw.closed) {
|
|
620
621
|
stream = void 0;
|
|
621
622
|
return;
|
|
622
623
|
}
|
|
623
|
-
item !== target && (target || previous.has(item)) || (this.fsw._incrReadyCount(), path = join(dir,
|
|
624
|
+
item !== target && (target || previous.has(item)) || (this.fsw._incrReadyCount(), path = __rspack_external_node_path_c5b9b54f.join(dir, __rspack_external_node_path_c5b9b54f.relative(dir, path)), this._addToNodeFs(path, initialAdd, wh, depth + 1));
|
|
624
625
|
}
|
|
625
626
|
}).on(EVENTS_ERROR, this._boundHandleError), new Promise((resolve, reject)=>{
|
|
626
627
|
if (!stream) return reject();
|
|
@@ -637,8 +638,8 @@ class NodeFsHandler {
|
|
|
637
638
|
});
|
|
638
639
|
}
|
|
639
640
|
async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
|
|
640
|
-
let throttler, closer, parentDir = this.fsw._getWatchedDir(
|
|
641
|
-
initialAdd && this.fsw.options.ignoreInitial || target || tracked || this.fsw._emit(EVENTS_ADD_DIR, dir, stats), parentDir.add(
|
|
641
|
+
let throttler, closer, parentDir = this.fsw._getWatchedDir(__rspack_external_node_path_c5b9b54f.dirname(dir)), tracked = parentDir.has(__rspack_external_node_path_c5b9b54f.basename(dir));
|
|
642
|
+
initialAdd && this.fsw.options.ignoreInitial || target || tracked || this.fsw._emit(EVENTS_ADD_DIR, dir, stats), parentDir.add(__rspack_external_node_path_c5b9b54f.basename(dir)), this.fsw._getWatchedDir(dir);
|
|
642
643
|
let oDepth = this.fsw.options.depth;
|
|
643
644
|
if ((null == oDepth || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) {
|
|
644
645
|
if (!target && (await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler), this.fsw.closed)) return;
|
|
@@ -659,15 +660,15 @@ class NodeFsHandler {
|
|
|
659
660
|
if (this.fsw._isIgnored(wh.watchPath, stats)) return ready(), !1;
|
|
660
661
|
let follow = this.fsw.options.followSymlinks;
|
|
661
662
|
if (stats.isDirectory()) {
|
|
662
|
-
let absPath =
|
|
663
|
+
let absPath = __rspack_external_node_path_c5b9b54f.resolve(path), targetPath = follow ? await promises_realpath(path) : path;
|
|
663
664
|
if (this.fsw.closed || (closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath), this.fsw.closed)) return;
|
|
664
665
|
absPath !== targetPath && void 0 !== targetPath && this.fsw._symlinkPaths.set(absPath, targetPath);
|
|
665
666
|
} else if (stats.isSymbolicLink()) {
|
|
666
667
|
let targetPath = follow ? await promises_realpath(path) : path;
|
|
667
668
|
if (this.fsw.closed) return;
|
|
668
|
-
let parent =
|
|
669
|
+
let parent = __rspack_external_node_path_c5b9b54f.dirname(wh.watchPath);
|
|
669
670
|
if (this.fsw._getWatchedDir(parent).add(wh.watchPath), this.fsw._emit(EVENTS_ADD, wh.watchPath, stats), closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath), this.fsw.closed) return;
|
|
670
|
-
void 0 !== targetPath && this.fsw._symlinkPaths.set(
|
|
671
|
+
void 0 !== targetPath && this.fsw._symlinkPaths.set(__rspack_external_node_path_c5b9b54f.resolve(path), targetPath);
|
|
671
672
|
} else closer = this._handleFile(wh.watchPath, stats, initialAdd);
|
|
672
673
|
return ready(), closer && this.fsw._addPathCloser(path, closer), !1;
|
|
673
674
|
} catch (error) {
|
|
@@ -686,15 +687,15 @@ function createPattern(matcher) {
|
|
|
686
687
|
return 'function' == typeof matcher ? matcher : 'string' == typeof matcher ? (string)=>matcher === string : matcher instanceof RegExp ? (string)=>matcher.test(string) : 'object' == typeof matcher && null !== matcher ? (string)=>{
|
|
687
688
|
if (matcher.path === string) return !0;
|
|
688
689
|
if (matcher.recursive) {
|
|
689
|
-
let relative =
|
|
690
|
-
return !!relative && !relative.startsWith('..') && !isAbsolute(relative);
|
|
690
|
+
let relative = __rspack_external_node_path_c5b9b54f.relative(matcher.path, string);
|
|
691
|
+
return !!relative && !relative.startsWith('..') && !__rspack_external_node_path_c5b9b54f.isAbsolute(relative);
|
|
691
692
|
}
|
|
692
693
|
return !1;
|
|
693
694
|
} : ()=>!1;
|
|
694
695
|
}
|
|
695
696
|
function normalizePath(path) {
|
|
696
697
|
if ('string' != typeof path) throw Error('string expected');
|
|
697
|
-
path = (path = normalize(path)).replace(/\\/g, '/');
|
|
698
|
+
path = (path = __rspack_external_node_path_c5b9b54f.normalize(path)).replace(/\\/g, '/');
|
|
698
699
|
let prepend = !1;
|
|
699
700
|
return path.startsWith('//') && (prepend = !0), path = path.replace(DOUBLE_SLASH_RE, '/'), prepend && (path = '/' + path), path;
|
|
700
701
|
}
|
|
@@ -715,7 +716,7 @@ let unifyPaths = (paths_)=>{
|
|
|
715
716
|
}, toUnix = (string)=>{
|
|
716
717
|
let str = string.replace(BACK_SLASH_RE, '/'), prepend = !1;
|
|
717
718
|
return str.startsWith('//') && (prepend = !0), str = str.replace(DOUBLE_SLASH_RE, '/'), prepend && (str = '/' + str), str;
|
|
718
|
-
}, normalizePathToUnix = (path)=>toUnix(normalize(toUnix(path))), normalizeIgnored = (cwd = '')=>(path)=>'string' == typeof path ? normalizePathToUnix(isAbsolute(path) ? path : join(cwd, path)) : path, EMPTY_SET = Object.freeze(new Set());
|
|
719
|
+
}, normalizePathToUnix = (path)=>toUnix(__rspack_external_node_path_c5b9b54f.normalize(toUnix(path))), normalizeIgnored = (cwd = '')=>(path)=>'string' == typeof path ? normalizePathToUnix(__rspack_external_node_path_c5b9b54f.isAbsolute(path) ? path : __rspack_external_node_path_c5b9b54f.join(cwd, path)) : path, EMPTY_SET = Object.freeze(new Set());
|
|
719
720
|
class DirEntry {
|
|
720
721
|
path;
|
|
721
722
|
_removeWatcher;
|
|
@@ -734,7 +735,7 @@ class DirEntry {
|
|
|
734
735
|
try {
|
|
735
736
|
await readdir(dir);
|
|
736
737
|
} catch (err) {
|
|
737
|
-
this._removeWatcher && this._removeWatcher(
|
|
738
|
+
this._removeWatcher && this._removeWatcher(__rspack_external_node_path_c5b9b54f.dirname(dir), __rspack_external_node_path_c5b9b54f.basename(dir));
|
|
738
739
|
}
|
|
739
740
|
}
|
|
740
741
|
has(item) {
|
|
@@ -762,12 +763,12 @@ class WatchHelper {
|
|
|
762
763
|
constructor(path, follow, fsw){
|
|
763
764
|
this.fsw = fsw;
|
|
764
765
|
let watchPath = path;
|
|
765
|
-
this.path = path = path.replace(REPLACER_RE, ''), this.watchPath = watchPath, this.fullWatchPath =
|
|
766
|
+
this.path = path = path.replace(REPLACER_RE, ''), this.watchPath = watchPath, this.fullWatchPath = __rspack_external_node_path_c5b9b54f.resolve(watchPath), this.dirParts = [], this.dirParts.forEach((parts)=>{
|
|
766
767
|
parts.length > 1 && parts.pop();
|
|
767
768
|
}), this.followSymlinks = follow, this.statMethod = follow ? 'stat' : 'lstat';
|
|
768
769
|
}
|
|
769
770
|
entryPath(entry) {
|
|
770
|
-
return join(this.watchPath,
|
|
771
|
+
return __rspack_external_node_path_c5b9b54f.join(this.watchPath, __rspack_external_node_path_c5b9b54f.relative(this.watchPath, entry.fullPath));
|
|
771
772
|
}
|
|
772
773
|
filterPath(entry) {
|
|
773
774
|
let { stats } = entry;
|
|
@@ -845,14 +846,14 @@ class FSWatcher extends EventEmitter {
|
|
|
845
846
|
let { cwd } = this.options;
|
|
846
847
|
this.closed = !1, this._closePromise = void 0;
|
|
847
848
|
let paths = unifyPaths(paths_);
|
|
848
|
-
return cwd && (paths = paths.map((path)=>isAbsolute(path) ? path : join(cwd, path))), paths.forEach((path)=>{
|
|
849
|
+
return cwd && (paths = paths.map((path)=>__rspack_external_node_path_c5b9b54f.isAbsolute(path) ? path : __rspack_external_node_path_c5b9b54f.join(cwd, path))), paths.forEach((path)=>{
|
|
849
850
|
this._removeIgnoredPath(path);
|
|
850
851
|
}), this._userIgnored = void 0, this._readyCount || (this._readyCount = 0), this._readyCount += paths.length, Promise.all(paths.map(async (path)=>{
|
|
851
852
|
let res = await this._nodeFsHandler._addToNodeFs(path, !_internal, void 0, 0, _origAdd);
|
|
852
853
|
return res && this._emitReady(), res;
|
|
853
854
|
})).then((results)=>{
|
|
854
855
|
this.closed || results.forEach((item)=>{
|
|
855
|
-
item && this.add(
|
|
856
|
+
item && this.add(__rspack_external_node_path_c5b9b54f.dirname(item), __rspack_external_node_path_c5b9b54f.basename(_origAdd || item));
|
|
856
857
|
});
|
|
857
858
|
}), this;
|
|
858
859
|
}
|
|
@@ -860,7 +861,7 @@ class FSWatcher extends EventEmitter {
|
|
|
860
861
|
if (this.closed) return this;
|
|
861
862
|
let paths = unifyPaths(paths_), { cwd } = this.options;
|
|
862
863
|
return paths.forEach((path)=>{
|
|
863
|
-
isAbsolute(path) || this._closers.has(path) || (cwd && (path = join(cwd, path)), path =
|
|
864
|
+
__rspack_external_node_path_c5b9b54f.isAbsolute(path) || this._closers.has(path) || (cwd && (path = __rspack_external_node_path_c5b9b54f.join(cwd, path)), path = __rspack_external_node_path_c5b9b54f.resolve(path)), this._closePath(path), this._addIgnoredPath(path), this._watched.has(path) && this._addIgnoredPath({
|
|
864
865
|
path,
|
|
865
866
|
recursive: !0
|
|
866
867
|
}), this._userIgnored = void 0;
|
|
@@ -878,7 +879,7 @@ class FSWatcher extends EventEmitter {
|
|
|
878
879
|
getWatched() {
|
|
879
880
|
let watchList = {};
|
|
880
881
|
return this._watched.forEach((entry, dir)=>{
|
|
881
|
-
watchList[(this.options.cwd ?
|
|
882
|
+
watchList[(this.options.cwd ? __rspack_external_node_path_c5b9b54f.relative(this.options.cwd, dir) : dir) || '.'] = entry.getChildren().sort();
|
|
882
883
|
}), watchList;
|
|
883
884
|
}
|
|
884
885
|
emitWithAll(event, args) {
|
|
@@ -888,7 +889,7 @@ class FSWatcher extends EventEmitter {
|
|
|
888
889
|
let pw;
|
|
889
890
|
if (this.closed) return;
|
|
890
891
|
let opts = this.options;
|
|
891
|
-
isWindows && (path = normalize(path)), opts.cwd && (path =
|
|
892
|
+
isWindows && (path = __rspack_external_node_path_c5b9b54f.normalize(path)), opts.cwd && (path = __rspack_external_node_path_c5b9b54f.relative(opts.cwd, path));
|
|
892
893
|
let args = [
|
|
893
894
|
path
|
|
894
895
|
];
|
|
@@ -914,7 +915,7 @@ class FSWatcher extends EventEmitter {
|
|
|
914
915
|
}
|
|
915
916
|
if (event === EVENTS_CHANGE && !this._throttle(EVENTS_CHANGE, path, 50)) return this;
|
|
916
917
|
if (opts.alwaysStat && void 0 === stats && (event === EVENTS_ADD || event === EVENTS_ADD_DIR || event === EVENTS_CHANGE)) {
|
|
917
|
-
let stats, fullPath = opts.cwd ? join(opts.cwd, path) : path;
|
|
918
|
+
let stats, fullPath = opts.cwd ? __rspack_external_node_path_c5b9b54f.join(opts.cwd, path) : path;
|
|
918
919
|
try {
|
|
919
920
|
stats = await promises_stat(fullPath);
|
|
920
921
|
} catch (err) {}
|
|
@@ -951,7 +952,7 @@ class FSWatcher extends EventEmitter {
|
|
|
951
952
|
let timeoutHandler, awf = this.options.awaitWriteFinish;
|
|
952
953
|
if ('object' != typeof awf) return;
|
|
953
954
|
let pollInterval = awf.pollInterval, fullPath = path;
|
|
954
|
-
this.options.cwd && !isAbsolute(path) && (fullPath = join(this.options.cwd, path));
|
|
955
|
+
this.options.cwd && !__rspack_external_node_path_c5b9b54f.isAbsolute(path) && (fullPath = __rspack_external_node_path_c5b9b54f.join(this.options.cwd, path));
|
|
955
956
|
let now = new Date(), writes = this._pendingWrites;
|
|
956
957
|
function awaitWriteFinishFn(prevStat) {
|
|
957
958
|
external_node_fs_stat(fullPath, (err, curStat)=>{
|
|
@@ -988,28 +989,28 @@ class FSWatcher extends EventEmitter {
|
|
|
988
989
|
return new WatchHelper(path, this.options.followSymlinks, this);
|
|
989
990
|
}
|
|
990
991
|
_getWatchedDir(directory) {
|
|
991
|
-
let dir =
|
|
992
|
+
let dir = __rspack_external_node_path_c5b9b54f.resolve(directory);
|
|
992
993
|
return this._watched.has(dir) || this._watched.set(dir, new DirEntry(dir, this._boundRemove)), this._watched.get(dir);
|
|
993
994
|
}
|
|
994
995
|
_hasReadPermissions(stats) {
|
|
995
996
|
return !!this.options.ignorePermissionErrors || !!(256 & Number(stats.mode));
|
|
996
997
|
}
|
|
997
998
|
_remove(directory, item, isDirectory) {
|
|
998
|
-
let path = join(directory, item), fullPath =
|
|
999
|
+
let path = __rspack_external_node_path_c5b9b54f.join(directory, item), fullPath = __rspack_external_node_path_c5b9b54f.resolve(path);
|
|
999
1000
|
if (isDirectory = null != isDirectory ? isDirectory : this._watched.has(path) || this._watched.has(fullPath), !this._throttle('remove', path, 100)) return;
|
|
1000
1001
|
isDirectory || 1 !== this._watched.size || this.add(directory, item, !0), this._getWatchedDir(path).getChildren().forEach((nested)=>this._remove(path, nested));
|
|
1001
1002
|
let parent = this._getWatchedDir(directory), wasTracked = parent.has(item);
|
|
1002
1003
|
parent.remove(item), this._symlinkPaths.has(fullPath) && this._symlinkPaths.delete(fullPath);
|
|
1003
1004
|
let relPath = path;
|
|
1004
|
-
if (this.options.cwd && (relPath =
|
|
1005
|
+
if (this.options.cwd && (relPath = __rspack_external_node_path_c5b9b54f.relative(this.options.cwd, path)), this.options.awaitWriteFinish && this._pendingWrites.has(relPath) && this._pendingWrites.get(relPath).cancelWait() === EVENTS_ADD) return;
|
|
1005
1006
|
this._watched.delete(path), this._watched.delete(fullPath);
|
|
1006
1007
|
let eventName = isDirectory ? EVENTS_UNLINK_DIR : EVENTS_UNLINK;
|
|
1007
1008
|
wasTracked && !this._isIgnored(path) && this._emit(eventName, path), this._closePath(path);
|
|
1008
1009
|
}
|
|
1009
1010
|
_closePath(path) {
|
|
1010
1011
|
this._closeFile(path);
|
|
1011
|
-
let dir =
|
|
1012
|
-
this._getWatchedDir(dir).remove(
|
|
1012
|
+
let dir = __rspack_external_node_path_c5b9b54f.dirname(path);
|
|
1013
|
+
this._getWatchedDir(dir).remove(__rspack_external_node_path_c5b9b54f.basename(path));
|
|
1013
1014
|
}
|
|
1014
1015
|
_closeFile(path) {
|
|
1015
1016
|
let closers = this._closers.get(path);
|
package/dist/connect-next.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/*! LICENSE: connect-next.js.LICENSE.txt */
|
|
2
|
-
import * as __rspack_external_url from "url";
|
|
3
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
4
2
|
import { EventEmitter } from "node:events";
|
|
5
3
|
import { Server, createServer } from "node:http";
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
4
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
5
|
+
import "./debug.js";
|
|
6
|
+
import "./552.js";
|
|
8
7
|
__webpack_require__.add({
|
|
9
8
|
"../../node_modules/.pnpm/encodeurl@2.0.0/node_modules/encodeurl/index.js" (module) {
|
|
10
9
|
module.exports = encodeUrl;
|
|
@@ -94,7 +93,7 @@ __webpack_require__.add({
|
|
|
94
93
|
};
|
|
95
94
|
},
|
|
96
95
|
"../../node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
97
|
-
var url = __webpack_require__("url?
|
|
96
|
+
var url = __webpack_require__("url?5f07"), parse = url.parse, Url = url.Url;
|
|
98
97
|
function parseurl(req) {
|
|
99
98
|
var url = req.url;
|
|
100
99
|
if (void 0 !== url) {
|
|
@@ -179,9 +178,6 @@ __webpack_require__.add({
|
|
|
179
178
|
504: !0
|
|
180
179
|
};
|
|
181
180
|
},
|
|
182
|
-
"url?b138" (module) {
|
|
183
|
-
module.exports = __rspack_external_url;
|
|
184
|
-
},
|
|
185
181
|
"../../node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json" (module) {
|
|
186
182
|
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"}');
|
|
187
183
|
}
|
package/dist/cors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! LICENSE: cors.js.LICENSE.txt */
|
|
2
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
4
|
"../../node_modules/.pnpm/cors@2.8.6/node_modules/cors/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
5
5
|
!function() {
|
package/dist/{src.js → debug.js}
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
1
3
|
import * as __rspack_external_node_os_74b4b876 from "node:os";
|
|
2
4
|
import * as __rspack_external_node_process_786449bf from "node:process";
|
|
3
5
|
import * as __rspack_external_node_tty_c64aab7e from "node:tty";
|
|
4
|
-
import * as __rspack_external_tty from "tty";
|
|
5
|
-
import * as __rspack_external_util from "util";
|
|
6
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
7
6
|
__webpack_require__.add({
|
|
8
7
|
"../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.js" (module, exports, __webpack_require__) {
|
|
9
8
|
let warned;
|
|
@@ -204,7 +203,7 @@ __webpack_require__.add({
|
|
|
204
203
|
"u" < typeof process || 'renderer' === process.type || !0 === process.browser || process.__nwjs ? module.exports = __webpack_require__("../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.js") : module.exports = __webpack_require__("../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/node.js");
|
|
205
204
|
},
|
|
206
205
|
"../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/node.js" (module, exports, __webpack_require__) {
|
|
207
|
-
let tty = __webpack_require__("tty"), util = __webpack_require__("util
|
|
206
|
+
let tty = __webpack_require__("tty"), util = __webpack_require__("util");
|
|
208
207
|
exports.init = init, exports.log = log, exports.formatArgs = formatArgs, exports.save = save, exports.load = load, exports.useColors = useColors, exports.destroy = util.deprecate(()=>{}, 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'), exports.colors = [
|
|
209
208
|
6,
|
|
210
209
|
2,
|
|
@@ -411,12 +410,6 @@ __webpack_require__.add({
|
|
|
411
410
|
"node:tty?4724" (module) {
|
|
412
411
|
module.exports = __rspack_external_node_tty_c64aab7e;
|
|
413
412
|
},
|
|
414
|
-
tty (module) {
|
|
415
|
-
module.exports = __rspack_external_tty;
|
|
416
|
-
},
|
|
417
|
-
"util?9076" (module) {
|
|
418
|
-
module.exports = __rspack_external_util;
|
|
419
|
-
},
|
|
420
413
|
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
421
414
|
let flagForceColor;
|
|
422
415
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
/*! LICENSE: http-proxy-middleware.js.LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as __rspack_external_path from "path";
|
|
6
|
-
import * as __rspack_external_querystring from "querystring";
|
|
7
|
-
import * as __rspack_external_stream from "stream";
|
|
8
|
-
import * as __rspack_external_url from "url";
|
|
9
|
-
import * as __rspack_external_util from "util";
|
|
10
|
-
import * as __rspack_external_zlib from "zlib";
|
|
11
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
12
|
-
import "./src.js";
|
|
2
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
3
|
+
import "./552.js";
|
|
4
|
+
import "./debug.js";
|
|
13
5
|
__webpack_require__.add({
|
|
14
6
|
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
15
7
|
let stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"), compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"), expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"), parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"), braces = (input, options = {})=>{
|
|
@@ -481,7 +473,7 @@ __webpack_require__.add({
|
|
|
481
473
|
}, EventEmitter.prototype.off = EventEmitter.prototype.removeListener, EventEmitter.prototype.addListener = EventEmitter.prototype.on, EventEmitter.prefixed = prefix, EventEmitter.EventEmitter = EventEmitter, module.exports = EventEmitter;
|
|
482
474
|
},
|
|
483
475
|
"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
484
|
-
let util = __webpack_require__("util
|
|
476
|
+
let util = __webpack_require__("util"), toRegexRange = __webpack_require__("../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"), isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val), isValidValue = (value)=>'number' == typeof value || 'string' == typeof value && '' !== value, zeros = (input)=>{
|
|
485
477
|
let value = `${input}`, index = -1;
|
|
486
478
|
if ('-' === value[0] && (value = value.slice(1)), '0' === value) return !1;
|
|
487
479
|
for(; '0' === value[++index];);
|
|
@@ -591,7 +583,7 @@ __webpack_require__.add({
|
|
|
591
583
|
};
|
|
592
584
|
},
|
|
593
585
|
"../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3_supports-color@10.2.2_/node_modules/follow-redirects/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
594
|
-
var looksLikeNode, looksLikeBrowser, looksLikeV8, url = __webpack_require__("url?
|
|
586
|
+
var looksLikeNode, looksLikeBrowser, looksLikeV8, url = __webpack_require__("url?5f07"), URL = url.URL, http = __webpack_require__("http"), https = __webpack_require__("https"), Writable = __webpack_require__("stream").Writable, assert = __webpack_require__("assert"), debug = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3_supports-color@10.2.2_/node_modules/follow-redirects/debug.js");
|
|
595
587
|
looksLikeNode = "u" > typeof process, looksLikeBrowser = "u" > typeof window && "u" > typeof document, looksLikeV8 = isFunction(Error.captureStackTrace), looksLikeNode || !looksLikeBrowser && looksLikeV8 || console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
596
588
|
var useNativeURL = !1;
|
|
597
589
|
try {
|
|
@@ -869,7 +861,7 @@ __webpack_require__.add({
|
|
|
869
861
|
ProxyServer.createProxyServer = createProxyServer, ProxyServer.createServer = createProxyServer, ProxyServer.createProxy = createProxyServer, module.exports = ProxyServer;
|
|
870
862
|
},
|
|
871
863
|
"../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/common.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
872
|
-
var url = __webpack_require__("url?
|
|
864
|
+
var url = __webpack_require__("url?5f07"), required = __webpack_require__("../../node_modules/.pnpm/requires-port@1.0.0/node_modules/requires-port/index.js"), upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i, isSSL = /^https|wss/;
|
|
873
865
|
function hasPort(host) {
|
|
874
866
|
return !!~host.indexOf(':');
|
|
875
867
|
}
|
|
@@ -917,7 +909,7 @@ __webpack_require__.add({
|
|
|
917
909
|
};
|
|
918
910
|
},
|
|
919
911
|
"../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
920
|
-
var httpProxy = module.exports, parse_url = __webpack_require__("url?
|
|
912
|
+
var httpProxy = module.exports, parse_url = __webpack_require__("url?5f07").parse, EE3 = __webpack_require__("../../node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js"), http = __webpack_require__("http"), https = __webpack_require__("https"), web = __webpack_require__("../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js"), ws = __webpack_require__("../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js");
|
|
921
913
|
function createRightProxy(type) {
|
|
922
914
|
return function(options) {
|
|
923
915
|
return function(req, res) {
|
|
@@ -941,7 +933,7 @@ __webpack_require__.add({
|
|
|
941
933
|
return ws[pass];
|
|
942
934
|
}), this.on('error', this.onError, this);
|
|
943
935
|
}
|
|
944
|
-
httpProxy.Server = ProxyServer, httpProxy.createRightProxy = createRightProxy, __webpack_require__("util
|
|
936
|
+
httpProxy.Server = ProxyServer, httpProxy.createRightProxy = createRightProxy, __webpack_require__("util").inherits(ProxyServer, EE3), ProxyServer.prototype.onError = function(err) {
|
|
945
937
|
if (1 === this.listeners('error').length) throw err;
|
|
946
938
|
}, ProxyServer.prototype.listen = function(port, hostname) {
|
|
947
939
|
var self = this, closure = function(req, res) {
|
|
@@ -973,7 +965,7 @@ __webpack_require__.add({
|
|
|
973
965
|
};
|
|
974
966
|
},
|
|
975
967
|
"../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
976
|
-
var httpNative = __webpack_require__("http
|
|
968
|
+
var httpNative = __webpack_require__("http"), httpsNative = __webpack_require__("https"), web_o = __webpack_require__("../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js"), common = __webpack_require__("../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/common.js"), followRedirects = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3_supports-color@10.2.2_/node_modules/follow-redirects/index.js");
|
|
977
969
|
web_o = Object.keys(web_o).map(function(pass) {
|
|
978
970
|
return web_o[pass];
|
|
979
971
|
});
|
|
@@ -1036,7 +1028,7 @@ __webpack_require__.add({
|
|
|
1036
1028
|
};
|
|
1037
1029
|
},
|
|
1038
1030
|
"../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1039
|
-
var url = __webpack_require__("url?
|
|
1031
|
+
var url = __webpack_require__("url?5f07"), common = __webpack_require__("../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/common.js"), redirectRegex = /^201|30(1|2|7|8)$/;
|
|
1040
1032
|
module.exports = {
|
|
1041
1033
|
removeChunked: function removeChunked(req, res, proxyRes) {
|
|
1042
1034
|
'1.0' === req.httpVersion && delete proxyRes.headers['transfer-encoding'];
|
|
@@ -1076,7 +1068,7 @@ __webpack_require__.add({
|
|
|
1076
1068
|
};
|
|
1077
1069
|
},
|
|
1078
1070
|
"../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1079
|
-
var http = __webpack_require__("http
|
|
1071
|
+
var http = __webpack_require__("http"), https = __webpack_require__("https"), common = __webpack_require__("../../node_modules/.pnpm/http-proxy@1.18.1_patch_hash=424b689da454f1f336d635615733f30568882789c1173f861c30f95ba8_7c4b684cae90eb7d05b3dfae37f0ceb4/node_modules/http-proxy/lib/http-proxy/common.js");
|
|
1080
1072
|
module.exports = {
|
|
1081
1073
|
checkMethodAndHeader: function checkMethodAndHeader(req, socket) {
|
|
1082
1074
|
if ('GET' !== req.method || !req.headers.upgrade || 'websocket' !== req.headers.upgrade.toLowerCase()) return socket.destroy(), !0;
|
|
@@ -1196,7 +1188,7 @@ __webpack_require__.add({
|
|
|
1196
1188
|
};
|
|
1197
1189
|
},
|
|
1198
1190
|
"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1199
|
-
let util = __webpack_require__("util
|
|
1191
|
+
let util = __webpack_require__("util"), braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"), picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"), utils = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"), isEmptyString = (v)=>'' === v || './' === v, hasBraces = (v)=>{
|
|
1200
1192
|
let index = v.indexOf('{');
|
|
1201
1193
|
return index > -1 && v.indexOf('}', index) > -1;
|
|
1202
1194
|
}, micromatch = (list, patterns, options)=>{
|
|
@@ -1297,7 +1289,7 @@ __webpack_require__.add({
|
|
|
1297
1289
|
module.exports = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js");
|
|
1298
1290
|
},
|
|
1299
1291
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1300
|
-
let path = __webpack_require__("path?
|
|
1292
|
+
let path = __webpack_require__("path?37f5"), WIN_NO_SLASH = "[^\\\\/]", QMARK = '[^/]', END_ANCHOR = "(?:\\/|$)", START_ANCHOR = "(?:^|\\/)", DOTS_SLASH = `\\.{1,2}${END_ANCHOR}`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!\\.{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, STAR = `${QMARK}*?`, POSIX_CHARS = {
|
|
1301
1293
|
DOT_LITERAL: '\\.',
|
|
1302
1294
|
PLUS_LITERAL: '\\+',
|
|
1303
1295
|
QMARK_LITERAL: '\\?',
|
|
@@ -1975,7 +1967,7 @@ __webpack_require__.add({
|
|
|
1975
1967
|
}, module.exports = parse;
|
|
1976
1968
|
},
|
|
1977
1969
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1978
|
-
let path = __webpack_require__("path?
|
|
1970
|
+
let path = __webpack_require__("path?37f5"), scan = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"), parse = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"), utils = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"), constants = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"), picomatch = (glob, options, returnState = !1)=>{
|
|
1979
1971
|
if (Array.isArray(glob)) {
|
|
1980
1972
|
let fns = glob.map((input)=>picomatch(input, options, returnState));
|
|
1981
1973
|
return (str)=>{
|
|
@@ -2203,7 +2195,7 @@ __webpack_require__.add({
|
|
|
2203
2195
|
};
|
|
2204
2196
|
},
|
|
2205
2197
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2206
|
-
let path = __webpack_require__("path?
|
|
2198
|
+
let path = __webpack_require__("path?37f5"), win32 = 'win32' === process.platform, { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js");
|
|
2207
2199
|
exports.isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val), exports.hasRegexChars = (str)=>REGEX_SPECIAL_CHARS.test(str), exports.isRegexChar = (str)=>1 === str.length && exports.hasRegexChars(str), exports.escapeRegex = (str)=>str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1'), exports.toPosixSlashes = (str)=>str.replace(REGEX_BACKSLASH, '/'), exports.removeBackslashes = (str)=>str.replace(REGEX_REMOVE_BACKSLASH, (match)=>'\\' === match ? '' : match), exports.supportsLookbehinds = ()=>{
|
|
2208
2200
|
let segs = process.version.slice(1).split('.').map(Number);
|
|
2209
2201
|
return 3 === segs.length && !!(segs[0] >= 9) || 8 === segs[0] && !!(segs[1] >= 10);
|
|
@@ -2362,36 +2354,6 @@ __webpack_require__.add({
|
|
|
2362
2354
|
}
|
|
2363
2355
|
toRegexRange.cache = {}, toRegexRange.clearCache = ()=>toRegexRange.cache = {}, module.exports = toRegexRange;
|
|
2364
2356
|
},
|
|
2365
|
-
assert (module) {
|
|
2366
|
-
module.exports = __rspack_external_assert;
|
|
2367
|
-
},
|
|
2368
|
-
"http?5e34" (module) {
|
|
2369
|
-
module.exports = __rspack_external_http;
|
|
2370
|
-
},
|
|
2371
|
-
"https?1ab9" (module) {
|
|
2372
|
-
module.exports = __rspack_external_https;
|
|
2373
|
-
},
|
|
2374
|
-
"path?e3a4" (module) {
|
|
2375
|
-
module.exports = __rspack_external_path;
|
|
2376
|
-
},
|
|
2377
|
-
querystring (module) {
|
|
2378
|
-
module.exports = __rspack_external_querystring;
|
|
2379
|
-
},
|
|
2380
|
-
"stream?4cc8" (module) {
|
|
2381
|
-
module.exports = __rspack_external_stream;
|
|
2382
|
-
},
|
|
2383
|
-
"url?13be" (module) {
|
|
2384
|
-
module.exports = __rspack_external_url;
|
|
2385
|
-
},
|
|
2386
|
-
"url?7328" (module) {
|
|
2387
|
-
module.exports = __rspack_external_url;
|
|
2388
|
-
},
|
|
2389
|
-
"util?e86d" (module) {
|
|
2390
|
-
module.exports = __rspack_external_util;
|
|
2391
|
-
},
|
|
2392
|
-
"zlib?58ec" (module) {
|
|
2393
|
-
module.exports = __rspack_external_zlib;
|
|
2394
|
-
},
|
|
2395
2357
|
"../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/configuration.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2396
2358
|
exports.verifyConfig = verifyConfig;
|
|
2397
2359
|
let errors_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/errors.js");
|
|
@@ -2498,7 +2460,7 @@ __webpack_require__.add({
|
|
|
2498
2460
|
Object.defineProperty(exports, "__esModule", {
|
|
2499
2461
|
value: !0
|
|
2500
2462
|
}), exports.responseInterceptor = responseInterceptor;
|
|
2501
|
-
let zlib = __webpack_require__("zlib
|
|
2463
|
+
let zlib = __webpack_require__("zlib"), debug_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/debug.js"), function_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/utils/function.js"), debug = debug_1.Debug.extend('response-interceptor');
|
|
2502
2464
|
function responseInterceptor(interceptor) {
|
|
2503
2465
|
return async function proxyResResponseInterceptor(proxyRes, req, res) {
|
|
2504
2466
|
debug('intercept proxy response');
|
|
@@ -2652,7 +2614,7 @@ __webpack_require__.add({
|
|
|
2652
2614
|
},
|
|
2653
2615
|
"../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/legacy/options-adapter.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2654
2616
|
exports.legacyOptionsAdapter = legacyOptionsAdapter;
|
|
2655
|
-
let url = __webpack_require__("url?
|
|
2617
|
+
let url = __webpack_require__("url?5f07"), debug_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/debug.js"), logger_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/logger.js"), debug = debug_1.Debug.extend('legacy-options-adapter'), proxyEventMap = {
|
|
2656
2618
|
onError: 'error',
|
|
2657
2619
|
onProxyReq: 'proxyReq',
|
|
2658
2620
|
onProxyRes: 'proxyRes',
|
|
@@ -2733,7 +2695,7 @@ __webpack_require__.add({
|
|
|
2733
2695
|
},
|
|
2734
2696
|
"../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/path-filter.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2735
2697
|
exports.matchPathFilter = matchPathFilter;
|
|
2736
|
-
let isGlob = __webpack_require__("../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"), micromatch = __webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"), url = __webpack_require__("url?
|
|
2698
|
+
let isGlob = __webpack_require__("../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"), micromatch = __webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"), url = __webpack_require__("url?5f07"), errors_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/errors.js");
|
|
2737
2699
|
function matchPathFilter(pathFilter = '/', uri, req) {
|
|
2738
2700
|
if (isStringPath(pathFilter)) return matchSingleStringPath(pathFilter, uri);
|
|
2739
2701
|
if (isGlobPath(pathFilter)) return matchSingleGlobPath(pathFilter, uri);
|
|
@@ -2888,7 +2850,7 @@ __webpack_require__.add({
|
|
|
2888
2850
|
Object.defineProperty(exports, "__esModule", {
|
|
2889
2851
|
value: !0
|
|
2890
2852
|
}), exports.loggerPlugin = void 0;
|
|
2891
|
-
let url_1 = __webpack_require__("url?
|
|
2853
|
+
let url_1 = __webpack_require__("url?5f07"), logger_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/logger.js"), logger_plugin_1 = __webpack_require__("../../node_modules/.pnpm/http-proxy-middleware@3.0.5_supports-color@10.2.2/node_modules/http-proxy-middleware/dist/utils/logger-plugin.js");
|
|
2892
2854
|
exports.loggerPlugin = (proxyServer, options)=>{
|
|
2893
2855
|
let logger = (0, logger_1.getLogger)(options);
|
|
2894
2856
|
proxyServer.on('error', (err, req, res, target)=>{
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createLogger, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack, runCLI, version } from "./
|
|
1
|
+
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createLogger, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack, runCLI, version } from "./552.js";
|