@rsbuild/core 2.1.4 → 2.1.6
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/@rstackjs/load-config/index.d.ts +66 -0
- package/compiled/@rstackjs/load-config/license +21 -0
- package/compiled/@rstackjs/load-config/package.json +1 -0
- package/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.d.ts +4 -4
- package/compiled/html-rspack-plugin/index.js +53 -48
- package/compiled/http-proxy-middleware/index.d.ts +2 -1
- package/compiled/http-proxy-middleware/package.json +1 -1
- package/compiled/jiti/dist/babel.cjs +49 -2
- package/compiled/postcss/index.js +1 -1
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +7 -14
- package/compiled/rslog/package.json +1 -1
- package/dist/{756.js → 711.js} +162 -237
- package/dist/chokidar.js +33 -33
- package/dist/client/hmr.js +1 -1
- package/dist/client/overlay.js +1 -1
- package/dist/connect-next.js +3 -3
- package/dist/cssUrlLoader.mjs +1 -1
- package/dist/http-proxy-middleware.js +29 -10
- package/dist/ignoreCssLoader.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +1 -1
- package/dist/manifest-plugin.js +38 -34
- package/dist/memfs.js +370 -202
- package/dist/sirv.js +7 -7
- package/dist/ws.js +1 -1
- package/dist-types/configChain.d.ts +1 -0
- package/dist-types/constants.d.ts +2 -0
- package/dist-types/loadConfig.d.ts +4 -39
- package/dist-types/types/config.d.ts +7 -5
- package/package.json +9 -8
- package/types.d.ts +24 -0
- /package/dist/{349.js → 252.js} +0 -0
- /package/dist/{756.js.LICENSE.txt → 711.js.LICENSE.txt} +0 -0
- /package/dist/client/{60.js → 307.js} +0 -0
- /package/dist/{fresh-import.js → freshImport.js} +0 -0
package/dist/memfs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./711.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
4
|
"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js" (__unused_rspack_module, exports) {
|
|
5
5
|
exports.alphabet = void 0, exports.alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', 'function' == typeof Buffer && Buffer.from;
|
|
@@ -563,11 +563,11 @@ __webpack_require__.add({
|
|
|
563
563
|
value: !0
|
|
564
564
|
}), exports.default = new (__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/CachedUtf8Decoder.js")).CachedUtf8Decoder();
|
|
565
565
|
},
|
|
566
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
566
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
567
567
|
Object.defineProperty(exports, "__esModule", {
|
|
568
568
|
value: !0
|
|
569
569
|
}), exports.File = void 0;
|
|
570
|
-
let { O_APPEND } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
570
|
+
let { O_APPEND } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants;
|
|
571
571
|
exports.File = class {
|
|
572
572
|
constructor(link, node, flags, fd){
|
|
573
573
|
this.link = link, this.node = node, this.flags = flags, this.fd = fd, this.position = 0, this.flags & O_APPEND && (this.position = this.getSize());
|
|
@@ -611,11 +611,11 @@ __webpack_require__.add({
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
},
|
|
614
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
614
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
615
615
|
Object.defineProperty(exports, "__esModule", {
|
|
616
616
|
value: !0
|
|
617
617
|
}), exports.Link = void 0;
|
|
618
|
-
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
618
|
+
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), fanout_1 = __webpack_require__("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"), { S_IFREG } = fs_node_utils_1.constants;
|
|
619
619
|
exports.Link = class Link {
|
|
620
620
|
get steps() {
|
|
621
621
|
return this._steps;
|
|
@@ -678,11 +678,11 @@ __webpack_require__.add({
|
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
},
|
|
681
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
681
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
682
682
|
Object.defineProperty(exports, "__esModule", {
|
|
683
683
|
value: !0
|
|
684
684
|
}), exports.Node = void 0;
|
|
685
|
-
let fanout_1 = __webpack_require__("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"), process_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
685
|
+
let fanout_1 = __webpack_require__("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"), process_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"), buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants, getuid = ()=>process_1.default.getuid?.() ?? 0, getgid = ()=>process_1.default.getgid?.() ?? 0, EMPTY_BUFFER = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
686
686
|
exports.Node = class {
|
|
687
687
|
constructor(ino, mode = 438, uid = getuid(), gid = getgid()){
|
|
688
688
|
this.changes = new fanout_1.FanOut(), this._uid = getuid(), this._gid = getgid(), this._atime = new Date(), this._mtime = new Date(), this._ctime = new Date(), this.buf = EMPTY_BUFFER, this.capacity = 0, this.size = 0, this.rdev = 0, this._nlink = 1, this.mode = mode, this.ino = ino, this._uid = uid, this._gid = gid;
|
|
@@ -845,11 +845,11 @@ __webpack_require__.add({
|
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
847
|
},
|
|
848
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
848
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
849
849
|
Object.defineProperty(exports, "__esModule", {
|
|
850
850
|
value: !0
|
|
851
851
|
}), exports.Superblock = void 0;
|
|
852
|
-
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
852
|
+
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"), Node_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js"), Link_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js"), File_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js"), buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), process_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"), fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), fs_node_utils_2 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"), json_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"), result_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"), fanout_1 = __webpack_require__("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"), FsEvent_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"), pathSep = path_1.posix ? path_1.posix.sep : path_1.sep, pathRelative = path_1.posix ? path_1.posix.relative : path_1.relative, pathJoin = path_1.posix ? path_1.posix.join : path_1.join, { O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_EXCL, O_TRUNC, O_APPEND, O_DIRECTORY } = fs_node_utils_1.constants;
|
|
853
853
|
class Superblock {
|
|
854
854
|
static fromJSON(json, cwd, opts) {
|
|
855
855
|
let vol = new Superblock(opts);
|
|
@@ -860,7 +860,7 @@ __webpack_require__.add({
|
|
|
860
860
|
return vol.fromNestedJSON(json, cwd), vol;
|
|
861
861
|
}
|
|
862
862
|
constructor(opts = {}){
|
|
863
|
-
this.ino = 0, this.inodes = {}, this.releasedInos = [], this.fds = {}, this.releasedFds = [], this.maxFiles = 10000, this.openFiles = 0, this.open = (filename, flagsNum, modeNum, resolveSymlinks = !0)=>{
|
|
863
|
+
this.ino = 0, this.inodes = {}, this.releasedInos = [], this.fds = {}, this.releasedFds = [], this.maxFiles = 10000, this.openFiles = 0, this.changes = new fanout_1.FanOut(), this.open = (filename, flagsNum, modeNum, resolveSymlinks = !0)=>{
|
|
864
864
|
let file = this.openFile(filename, flagsNum, modeNum, resolveSymlinks);
|
|
865
865
|
if (!file) throw (0, util_1.createError)("ENOENT", 'open', filename);
|
|
866
866
|
return file.fd;
|
|
@@ -906,11 +906,13 @@ __webpack_require__.add({
|
|
|
906
906
|
let name = (0, path_1.basename)(filename2);
|
|
907
907
|
if (dir2.getChild(name)) throw (0, util_1.createError)("EEXIST", 'link', filename1, filename2);
|
|
908
908
|
let node = link1.getNode();
|
|
909
|
-
node.nlink
|
|
909
|
+
node.nlink++;
|
|
910
|
+
let newLink = dir2.createChild(name, node);
|
|
911
|
+
this.emit(new FsEvent_1.FsEvent(0, newLink.steps, node, newLink));
|
|
910
912
|
}, this.unlink = (filename)=>{
|
|
911
913
|
let link = this.getLinkOrThrow(filename, 'unlink');
|
|
912
914
|
if (link.length) throw Error('Dir not empty...');
|
|
913
|
-
this.deleteLink(link);
|
|
915
|
+
this._emitDeleteRecursive(link), this.deleteLink(link);
|
|
914
916
|
let node = link.getNode();
|
|
915
917
|
node.nlink--, node.nlink <= 0 && this.deleteNode(node);
|
|
916
918
|
}, this.symlink = (targetFilename, pathFilename)=>{
|
|
@@ -925,7 +927,7 @@ __webpack_require__.add({
|
|
|
925
927
|
let node = dirLink.getNode();
|
|
926
928
|
if (!node.canExecute() || !node.canWrite()) throw (0, util_1.createError)("EACCES", 'symlink', targetFilename, pathFilename);
|
|
927
929
|
let symlink = dirLink.createChild(name);
|
|
928
|
-
return symlink.getNode().makeSymlink(targetFilename), symlink;
|
|
930
|
+
return symlink.getNode().makeSymlink(targetFilename), this.emit(new FsEvent_1.FsEvent(0, symlink.steps, symlink.getNode(), symlink)), symlink;
|
|
929
931
|
}, this.rename = (oldPathFilename, newPathFilename)=>{
|
|
930
932
|
let link, newPathDirLink;
|
|
931
933
|
try {
|
|
@@ -943,11 +945,11 @@ __webpack_require__.add({
|
|
|
943
945
|
let oldParentNode = oldLinkParent.getNode(), newPathDirNode = newPathDirLink.getNode();
|
|
944
946
|
if (!oldParentNode.canExecute() || !oldParentNode.canWrite() || !newPathDirNode.canExecute() || !newPathDirNode.canWrite()) throw (0, util_1.createError)("EACCES", 'rename', oldPathFilename, newPathFilename);
|
|
945
947
|
oldLinkParent.deleteChild(link);
|
|
946
|
-
let name = (0, path_1.basename)(newPathFilename);
|
|
948
|
+
let name = (0, path_1.basename)(newPathFilename), oldSteps = link.steps;
|
|
947
949
|
link.name = name, link.steps = [
|
|
948
950
|
...newPathDirLink.steps,
|
|
949
951
|
name
|
|
950
|
-
], newPathDirLink.setChild(link.getName(), link);
|
|
952
|
+
], newPathDirLink.setChild(link.getName(), link), this.emit(new FsEvent_1.FsEvent(4, link.steps, link.getNode(), link, oldSteps));
|
|
951
953
|
}, this.mkdir = (filename, modeNum)=>{
|
|
952
954
|
let steps = (0, util_1.filenameToSteps)(filename);
|
|
953
955
|
if (!steps.length) throw (0, util_1.createError)("EEXIST", 'mkdir', filename);
|
|
@@ -955,7 +957,8 @@ __webpack_require__.add({
|
|
|
955
957
|
if (dir.getChild(name)) throw (0, util_1.createError)("EEXIST", 'mkdir', filename);
|
|
956
958
|
let node = dir.getNode();
|
|
957
959
|
if (!node.canWrite() || !node.canExecute()) throw (0, util_1.createError)("EACCES", 'mkdir', filename);
|
|
958
|
-
dir.createChild(name, this.createNode(fs_node_utils_1.constants.S_IFDIR | modeNum));
|
|
960
|
+
let child = dir.createChild(name, this.createNode(fs_node_utils_1.constants.S_IFDIR | modeNum));
|
|
961
|
+
this.emit(new FsEvent_1.FsEvent(0, child.steps, child.getNode(), child));
|
|
959
962
|
}, this.mkdirp = (filename, modeNum)=>{
|
|
960
963
|
let created = !1, steps = (0, util_1.filenameToSteps)(filename), curr = null, i = steps.length;
|
|
961
964
|
for(i = steps.length; i >= 0 && !(curr = this.getResolvedLink(steps.slice(0, i))); i--);
|
|
@@ -964,13 +967,13 @@ __webpack_require__.add({
|
|
|
964
967
|
if (node.isDirectory()) {
|
|
965
968
|
if (!node.canExecute() || !node.canWrite()) throw (0, util_1.createError)("EACCES", 'mkdir', filename);
|
|
966
969
|
} else throw (0, util_1.createError)("ENOTDIR", 'mkdir', filename);
|
|
967
|
-
created = !0, curr = curr.createChild(steps[i], this.createNode(fs_node_utils_1.constants.S_IFDIR | modeNum));
|
|
970
|
+
created = !0, curr = curr.createChild(steps[i], this.createNode(fs_node_utils_1.constants.S_IFDIR | modeNum)), this.emit(new FsEvent_1.FsEvent(0, curr.steps, curr.getNode(), curr));
|
|
968
971
|
}
|
|
969
972
|
return created ? filename : void 0;
|
|
970
973
|
}, this.rmdir = (filename, recursive = !1)=>{
|
|
971
974
|
let link = this.getLinkAsDirOrThrow(filename, 'rmdir');
|
|
972
975
|
if (link.length && !recursive) throw (0, util_1.createError)("ENOTEMPTY", 'rmdir', filename);
|
|
973
|
-
this.deleteLink(link);
|
|
976
|
+
this._emitDeleteRecursive(link), this.deleteLink(link);
|
|
974
977
|
}, this.rm = (filename, force = !1, recursive = !1)=>{
|
|
975
978
|
let link;
|
|
976
979
|
try {
|
|
@@ -981,15 +984,45 @@ __webpack_require__.add({
|
|
|
981
984
|
}
|
|
982
985
|
if (link.getNode().isDirectory() && !recursive) throw (0, util_1.createError)("ERR_FS_EISDIR", 'rm', filename);
|
|
983
986
|
if (!link.parent?.getNode().canWrite()) throw (0, util_1.createError)("EACCES", 'rm', filename);
|
|
984
|
-
this.deleteLink(link);
|
|
987
|
+
this._emitDeleteRecursive(link), this.deleteLink(link);
|
|
985
988
|
}, this.close = (fd)=>{
|
|
986
989
|
(0, util_1.validateFd)(fd);
|
|
987
990
|
let file = this.getFileByFdOrThrow(fd, 'close');
|
|
988
991
|
this.closeFile(file);
|
|
992
|
+
}, this.ftruncate = (fd, len)=>{
|
|
993
|
+
let file = this.getFileByFdOrThrow(fd, 'ftruncate');
|
|
994
|
+
file.truncate(len), this.emit(new FsEvent_1.FsEvent(2, file.link.steps, file.node, file.link));
|
|
995
|
+
}, this.fchmod = (fd, modeNum)=>{
|
|
996
|
+
let file = this.getFileByFdOrThrow(fd, 'fchmod');
|
|
997
|
+
file.chmod(modeNum), this.emit(new FsEvent_1.FsEvent(3, file.link.steps, file.node, file.link));
|
|
998
|
+
}, this.chmod = (filename, modeNum)=>{
|
|
999
|
+
let link = this.getResolvedLinkOrThrow(filename, 'chmod');
|
|
1000
|
+
link.getNode().chmod(modeNum), this.emit(new FsEvent_1.FsEvent(3, link.steps, link.getNode(), link));
|
|
1001
|
+
}, this.lchmod = (filename, modeNum)=>{
|
|
1002
|
+
let link = this.getLinkOrThrow(filename, 'lchmod');
|
|
1003
|
+
link.getNode().chmod(modeNum), this.emit(new FsEvent_1.FsEvent(3, link.steps, link.getNode(), link));
|
|
1004
|
+
}, this.fchown = (fd, uid, gid)=>{
|
|
1005
|
+
let file = this.getFileByFdOrThrow(fd, 'fchown');
|
|
1006
|
+
file.chown(uid, gid), this.emit(new FsEvent_1.FsEvent(3, file.link.steps, file.node, file.link));
|
|
1007
|
+
}, this.chown = (filename, uid, gid)=>{
|
|
1008
|
+
let link = this.getResolvedLinkOrThrow(filename, 'chown');
|
|
1009
|
+
link.getNode().chown(uid, gid), this.emit(new FsEvent_1.FsEvent(3, link.steps, link.getNode(), link));
|
|
1010
|
+
}, this.lchown = (filename, uid, gid)=>{
|
|
1011
|
+
let link = this.getLinkOrThrow(filename, 'lchown');
|
|
1012
|
+
link.getNode().chown(uid, gid), this.emit(new FsEvent_1.FsEvent(3, link.steps, link.getNode(), link));
|
|
1013
|
+
}, this.futimes = (fd, atime, mtime)=>{
|
|
1014
|
+
let file = this.getFileByFdOrThrow(fd, 'futimes'), node = file.node;
|
|
1015
|
+
node.atime = new Date(1000 * atime), node.mtime = new Date(1000 * mtime), this.emit(new FsEvent_1.FsEvent(3, file.link.steps, file.node, file.link));
|
|
1016
|
+
}, this.utimes = (filename, atime, mtime, followSymlinks = !0)=>{
|
|
1017
|
+
let link = followSymlinks ? this.getResolvedLinkOrThrow(filename, 'utimes') : this.getLinkOrThrow(filename, 'lutimes'), node = link.getNode();
|
|
1018
|
+
node.atime = new Date(1000 * atime), node.mtime = new Date(1000 * mtime), this.emit(new FsEvent_1.FsEvent(3, link.steps, node, link));
|
|
989
1019
|
}, this.process = opts.process ?? process_1.default;
|
|
990
1020
|
let root = this.createLink();
|
|
991
1021
|
root.setNode(this.createNode(511 | fs_node_utils_1.constants.S_IFDIR)), root.setChild('.', root), root.getNode().nlink++, root.setChild('..', root), root.getNode().nlink++, this.root = root;
|
|
992
1022
|
}
|
|
1023
|
+
emit(change) {
|
|
1024
|
+
this.changes.emit(change);
|
|
1025
|
+
}
|
|
993
1026
|
createLink(parent, name, isDirectory = !1, mode) {
|
|
994
1027
|
if (!parent) return new Link_1.Link(this, void 0, '');
|
|
995
1028
|
if (!name) throw Error('createLink: name cannot be empty');
|
|
@@ -1000,6 +1033,10 @@ __webpack_require__.add({
|
|
|
1000
1033
|
let parent = link.parent;
|
|
1001
1034
|
return !!parent && (parent.deleteChild(link), !0);
|
|
1002
1035
|
}
|
|
1036
|
+
_emitDeleteRecursive(link) {
|
|
1037
|
+
if (link.getNode().isDirectory()) for (let [name, child] of link.children.entries())child && '.' !== name && '..' !== name && this._emitDeleteRecursive(child);
|
|
1038
|
+
this.emit(new FsEvent_1.FsEvent(1, link.steps, link.getNode(), link));
|
|
1039
|
+
}
|
|
1003
1040
|
newInoNumber() {
|
|
1004
1041
|
let releasedFd = this.releasedInos.pop();
|
|
1005
1042
|
return releasedFd || (this.ino = (this.ino + 1) % 0xffffffff, this.ino);
|
|
@@ -1152,7 +1189,11 @@ __webpack_require__.add({
|
|
|
1152
1189
|
} else if (flagsNum & O_DIRECTORY) throw (0, util_1.createError)("ENOTDIR", 'open', link.getPath());
|
|
1153
1190
|
if ((flagsNum & (O_RDONLY | O_RDWR | O_WRONLY)) !== O_WRONLY && !node.canRead() || flagsNum & (O_WRONLY | O_RDWR) && !node.canWrite()) throw (0, util_1.createError)("EACCES", 'open', link.getPath());
|
|
1154
1191
|
let file = new File_1.File(link, node, flagsNum, this.newFdNumber());
|
|
1155
|
-
|
|
1192
|
+
if (this.fds[file.fd] = file, this.openFiles++, flagsNum & O_TRUNC) {
|
|
1193
|
+
let hadContent = file.node.getSize() > 0;
|
|
1194
|
+
file.truncate(), hadContent && this.emit(new FsEvent_1.FsEvent(2, file.link.steps, file.node, file.link));
|
|
1195
|
+
}
|
|
1196
|
+
return file;
|
|
1156
1197
|
}
|
|
1157
1198
|
openFile(filename, flagsNum, modeNum, resolveSymlinks = !0) {
|
|
1158
1199
|
let link, steps = (0, util_1.filenameToSteps)(filename);
|
|
@@ -1163,7 +1204,7 @@ __webpack_require__.add({
|
|
|
1163
1204
|
let dirName = (0, path_1.dirname)(filename), dirLink = this.getResolvedLinkOrThrow(dirName), dirNode = dirLink.getNode();
|
|
1164
1205
|
if (!dirNode.isDirectory()) throw (0, util_1.createError)("ENOTDIR", 'open', filename);
|
|
1165
1206
|
if (!dirNode.canExecute() || !dirNode.canWrite()) throw (0, util_1.createError)("EACCES", 'open', filename);
|
|
1166
|
-
modeNum ?? (modeNum = 438), link = this.createLink(dirLink, steps[steps.length - 1], !1, modeNum);
|
|
1207
|
+
modeNum ?? (modeNum = 438), link = this.createLink(dirLink, steps[steps.length - 1], !1, modeNum), this.emit(new FsEvent_1.FsEvent(0, link.steps, link.getNode(), link));
|
|
1167
1208
|
} else throw err;
|
|
1168
1209
|
}
|
|
1169
1210
|
if (link) return this.openLink(link, flagsNum, resolveSymlinks);
|
|
@@ -1175,54 +1216,55 @@ __webpack_require__.add({
|
|
|
1175
1216
|
write(fd, buf, offset, length, position) {
|
|
1176
1217
|
let file = this.getFileByFdOrThrow(fd, 'write');
|
|
1177
1218
|
if (file.node.isSymlink()) throw (0, util_1.createError)("EBADF", 'write', file.link.getPath());
|
|
1178
|
-
|
|
1219
|
+
let bytes = file.write(buf, offset, length, -1 === position || 'number' != typeof position ? void 0 : position);
|
|
1220
|
+
return bytes > 0 && this.emit(new FsEvent_1.FsEvent(2, file.link.steps, file.node, file.link)), bytes;
|
|
1179
1221
|
}
|
|
1180
1222
|
}
|
|
1181
1223
|
exports.Superblock = Superblock, Superblock.fd = 0x7fffffff;
|
|
1182
1224
|
},
|
|
1183
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1225
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js" (__unused_rspack_module, exports) {
|
|
1184
1226
|
Object.defineProperty(exports, "__esModule", {
|
|
1185
1227
|
value: !0
|
|
1186
1228
|
});
|
|
1187
1229
|
},
|
|
1188
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1189
|
-
exports.ENCODING_UTF8 = void 0, __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1230
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1231
|
+
exports.ENCODING_UTF8 = void 0, __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"), exports.ENCODING_UTF8 = 'utf8';
|
|
1190
1232
|
},
|
|
1191
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1233
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1192
1234
|
Object.defineProperty(exports, "__esModule", {
|
|
1193
1235
|
value: !0
|
|
1194
1236
|
}), exports.resolve = exports.pathToFilename = exports.createStatError = exports.createError = exports.validateFd = exports.isFd = exports.filenameToSteps = exports.dataToBuffer = exports.Superblock = exports.File = exports.Link = exports.Node = void 0;
|
|
1195
1237
|
let tslib_1 = __webpack_require__("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
1196
|
-
tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1197
|
-
var Node_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1238
|
+
tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"), exports);
|
|
1239
|
+
var Node_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js");
|
|
1198
1240
|
Object.defineProperty(exports, "Node", {
|
|
1199
1241
|
enumerable: !0,
|
|
1200
1242
|
get: function() {
|
|
1201
1243
|
return Node_1.Node;
|
|
1202
1244
|
}
|
|
1203
1245
|
});
|
|
1204
|
-
var Link_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1246
|
+
var Link_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js");
|
|
1205
1247
|
Object.defineProperty(exports, "Link", {
|
|
1206
1248
|
enumerable: !0,
|
|
1207
1249
|
get: function() {
|
|
1208
1250
|
return Link_1.Link;
|
|
1209
1251
|
}
|
|
1210
1252
|
});
|
|
1211
|
-
var File_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1253
|
+
var File_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js");
|
|
1212
1254
|
Object.defineProperty(exports, "File", {
|
|
1213
1255
|
enumerable: !0,
|
|
1214
1256
|
get: function() {
|
|
1215
1257
|
return File_1.File;
|
|
1216
1258
|
}
|
|
1217
1259
|
});
|
|
1218
|
-
var Superblock_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1260
|
+
var Superblock_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js");
|
|
1219
1261
|
Object.defineProperty(exports, "Superblock", {
|
|
1220
1262
|
enumerable: !0,
|
|
1221
1263
|
get: function() {
|
|
1222
1264
|
return Superblock_1.Superblock;
|
|
1223
1265
|
}
|
|
1224
|
-
});
|
|
1225
|
-
var util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1266
|
+
}), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/CoreWatcher.js"), exports);
|
|
1267
|
+
var util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");
|
|
1226
1268
|
Object.defineProperty(exports, "dataToBuffer", {
|
|
1227
1269
|
enumerable: !0,
|
|
1228
1270
|
get: function() {
|
|
@@ -1265,11 +1307,11 @@ __webpack_require__.add({
|
|
|
1265
1307
|
}
|
|
1266
1308
|
});
|
|
1267
1309
|
},
|
|
1268
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1310
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1269
1311
|
Object.defineProperty(exports, "__esModule", {
|
|
1270
1312
|
value: !0
|
|
1271
1313
|
}), exports.flattenJSON = void 0;
|
|
1272
|
-
let buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1314
|
+
let buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"), pathJoin = path_1.posix ? path_1.posix.join : path_1.join;
|
|
1273
1315
|
exports.flattenJSON = (nestedJSON)=>{
|
|
1274
1316
|
let flatJSON = {};
|
|
1275
1317
|
function flatten(pathPrefix, node) {
|
|
@@ -1281,7 +1323,7 @@ __webpack_require__.add({
|
|
|
1281
1323
|
return flatten('', nestedJSON), flatJSON;
|
|
1282
1324
|
};
|
|
1283
1325
|
},
|
|
1284
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1326
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1285
1327
|
let p;
|
|
1286
1328
|
(p = (()=>{
|
|
1287
1329
|
if ("u" > typeof process) return process;
|
|
@@ -1294,7 +1336,7 @@ __webpack_require__.add({
|
|
|
1294
1336
|
console.warn(`${type}${type ? ': ' : ''}${message}`);
|
|
1295
1337
|
}), p.env || (p.env = {}), exports.default = p;
|
|
1296
1338
|
},
|
|
1297
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1339
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js" (__unused_rspack_module, exports) {
|
|
1298
1340
|
function Ok(value) {
|
|
1299
1341
|
return {
|
|
1300
1342
|
ok: !0,
|
|
@@ -1311,16 +1353,16 @@ __webpack_require__.add({
|
|
|
1311
1353
|
value: !0
|
|
1312
1354
|
}), exports.Ok = Ok, exports.Err = Err;
|
|
1313
1355
|
},
|
|
1314
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1356
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js" (__unused_rspack_module, exports) {
|
|
1315
1357
|
Object.defineProperty(exports, "__esModule", {
|
|
1316
1358
|
value: !0
|
|
1317
1359
|
});
|
|
1318
1360
|
},
|
|
1319
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1361
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1320
1362
|
Object.defineProperty(exports, "__esModule", {
|
|
1321
1363
|
value: !0
|
|
1322
1364
|
}), exports.filenameToSteps = exports.resolve = exports.unixify = exports.isWin = void 0, exports.isFd = isFd, exports.validateFd = validateFd, exports.dataToBuffer = dataToBuffer, exports.nullCheck = nullCheck, exports.pathToFilename = pathToFilename, exports.createError = createError, exports.createStatError = createStatError;
|
|
1323
|
-
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1365
|
+
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"), buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), errors = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"), process_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"), encoding_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js"), fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
1324
1366
|
exports.isWin = 'win32' === process_1.default.platform;
|
|
1325
1367
|
let resolveCrossPlatform = path_1.resolve, pathSep = path_1.posix ? path_1.posix.sep : path_1.sep, isSeparator = (str, i)=>{
|
|
1326
1368
|
let char = str[i];
|
|
@@ -1433,7 +1475,57 @@ __webpack_require__.add({
|
|
|
1433
1475
|
return fullPathSansSlash ? fullPathSansSlash.split(pathSep) : [];
|
|
1434
1476
|
};
|
|
1435
1477
|
},
|
|
1436
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-
|
|
1478
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/CoreWatcher.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1479
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1480
|
+
value: !0
|
|
1481
|
+
}), exports.CoreWatcher = exports.CoreWatchEvent = void 0;
|
|
1482
|
+
let fanout_1 = __webpack_require__("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js");
|
|
1483
|
+
class CoreWatchEvent {
|
|
1484
|
+
constructor(type, steps, node, link, oldSteps){
|
|
1485
|
+
this.type = type, this.steps = steps, this.node = node, this.link = link, this.oldSteps = oldSteps;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
exports.CoreWatchEvent = CoreWatchEvent, exports.CoreWatcher = class {
|
|
1489
|
+
constructor(core, path, opts = {}){
|
|
1490
|
+
this.changes = new fanout_1.FanOut(), this.link = opts.follow ?? !0 ? core.getResolvedLinkOrThrow(path, 'watch') : core.getLinkOrThrow(path, 'watch'), this.node = this.link.getNode(), this.recursive = !!opts.recursive, this.unsub = core.changes.listen((event)=>this.onEvent(event));
|
|
1491
|
+
}
|
|
1492
|
+
get closed() {
|
|
1493
|
+
return !this.unsub;
|
|
1494
|
+
}
|
|
1495
|
+
onEvent(event) {
|
|
1496
|
+
let rootLength = this.link.steps.length;
|
|
1497
|
+
if (event.link === this.link || event.node === this.node && (2 === event.type || 3 === event.type)) {
|
|
1498
|
+
this.changes.emit(new CoreWatchEvent(event.type, [], event.node, this.link)), 1 === event.type && this.close();
|
|
1499
|
+
return;
|
|
1500
|
+
}
|
|
1501
|
+
if (4 === event.type) {
|
|
1502
|
+
let from = event.oldSteps && this.inScope(event.oldSteps) ? event.oldSteps.slice(rootLength) : void 0, to = this.inScope(event.steps) ? event.steps.slice(rootLength) : void 0;
|
|
1503
|
+
from && to ? this.changes.emit(new CoreWatchEvent(4, to, event.node, event.link, from)) : from ? this.changes.emit(new CoreWatchEvent(1, from, event.node, event.link)) : to && this.changes.emit(new CoreWatchEvent(0, to, event.node, event.link));
|
|
1504
|
+
return;
|
|
1505
|
+
}
|
|
1506
|
+
this.inScope(event.steps) && this.changes.emit(new CoreWatchEvent(event.type, event.steps.slice(rootLength), event.node, event.link));
|
|
1507
|
+
}
|
|
1508
|
+
inScope(steps) {
|
|
1509
|
+
let root = this.link.steps;
|
|
1510
|
+
if (steps.length <= root.length || !this.recursive && steps.length !== root.length + 1) return !1;
|
|
1511
|
+
for(let i = 0; i < root.length; i++)if (steps[i] !== root[i]) return !1;
|
|
1512
|
+
return !0;
|
|
1513
|
+
}
|
|
1514
|
+
close() {
|
|
1515
|
+
this.unsub?.(), this.unsub = void 0;
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
},
|
|
1519
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js" (__unused_rspack_module, exports) {
|
|
1520
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1521
|
+
value: !0
|
|
1522
|
+
}), exports.FsEvent = void 0, exports.FsEvent = class {
|
|
1523
|
+
constructor(type, steps, node, link, oldSteps){
|
|
1524
|
+
this.type = type, this.steps = steps, this.node = node, this.link = link, this.oldSteps = oldSteps;
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
},
|
|
1528
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1437
1529
|
exports.Buffer = void 0;
|
|
1438
1530
|
var node_buffer_1 = __webpack_require__("node:buffer?1cd0");
|
|
1439
1531
|
Object.defineProperty(exports, "Buffer", {
|
|
@@ -1443,7 +1535,7 @@ __webpack_require__.add({
|
|
|
1443
1535
|
}
|
|
1444
1536
|
});
|
|
1445
1537
|
},
|
|
1446
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1538
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1447
1539
|
exports.EventEmitter = void 0;
|
|
1448
1540
|
var node_events_1 = __webpack_require__("node:events?3ec9");
|
|
1449
1541
|
Object.defineProperty(exports, "EventEmitter", {
|
|
@@ -1453,9 +1545,9 @@ __webpack_require__.add({
|
|
|
1453
1545
|
}
|
|
1454
1546
|
});
|
|
1455
1547
|
},
|
|
1456
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1548
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1457
1549
|
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
1458
|
-
let buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1550
|
+
let buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js");
|
|
1459
1551
|
function bufferV0P12Ponyfill(arg0, ...args) {
|
|
1460
1552
|
return new buffer_1.Buffer(arg0, ...args);
|
|
1461
1553
|
}
|
|
@@ -1466,9 +1558,9 @@ __webpack_require__.add({
|
|
|
1466
1558
|
}
|
|
1467
1559
|
}), exports.bufferAllocUnsafe = buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill, exports.bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
1468
1560
|
},
|
|
1469
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1561
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1470
1562
|
exports.TypeError = exports.Error = void 0;
|
|
1471
|
-
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1563
|
+
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"), kCode = "u" < typeof Symbol ? '_kCode' : Symbol('code'), messages = {};
|
|
1472
1564
|
function makeNodeError(Base) {
|
|
1473
1565
|
return class extends Base {
|
|
1474
1566
|
constructor(key, ...args){
|
|
@@ -1494,7 +1586,7 @@ __webpack_require__.add({
|
|
|
1494
1586
|
}
|
|
1495
1587
|
g.Error, exports.Error = makeNodeError(g.Error), exports.TypeError = makeNodeError(g.TypeError), makeNodeError(g.RangeError), E('ERR_DIR_CLOSED', 'Directory handle was closed'), E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent asynchronous operations'), E('ERR_INVALID_FILE_URL_HOST', 'File URL host must be "localhost" or empty on %s'), E('ERR_INVALID_FILE_URL_PATH', 'File URL path %s'), E('ERR_INVALID_OPT_VALUE', (name, value)=>`The value "${String(value)}" is invalid for option "${name}"`), E('ERR_INVALID_OPT_VALUE_ENCODING', (value)=>`The value "${String(value)}" is invalid for option "encoding"`), E('ERR_INVALID_ARG_VALUE', 'Unable to open file as blob');
|
|
1496
1588
|
},
|
|
1497
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1589
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1498
1590
|
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
1499
1591
|
var node_path_1 = __webpack_require__("node:path?435f");
|
|
1500
1592
|
Object.defineProperty(exports, "resolve", {
|
|
@@ -1544,7 +1636,7 @@ __webpack_require__.add({
|
|
|
1544
1636
|
}
|
|
1545
1637
|
});
|
|
1546
1638
|
},
|
|
1547
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1639
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1548
1640
|
exports.Writable = exports.Readable = void 0;
|
|
1549
1641
|
var node_stream_1 = __webpack_require__("node:stream?3c93");
|
|
1550
1642
|
Object.defineProperty(exports, "Readable", {
|
|
@@ -1559,7 +1651,7 @@ __webpack_require__.add({
|
|
|
1559
1651
|
}
|
|
1560
1652
|
});
|
|
1561
1653
|
},
|
|
1562
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1654
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js" (__unused_rspack_module, exports) {
|
|
1563
1655
|
function inspect(value) {
|
|
1564
1656
|
if (null === value) return 'null';
|
|
1565
1657
|
if (void 0 === value) return 'undefined';
|
|
@@ -1613,7 +1705,7 @@ __webpack_require__.add({
|
|
|
1613
1705
|
});
|
|
1614
1706
|
}, exports.inspect = inspect, exports.format = format;
|
|
1615
1707
|
},
|
|
1616
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1708
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js" (__unused_rspack_module, exports) {
|
|
1617
1709
|
var FLAGS, FLAGS1;
|
|
1618
1710
|
Object.defineProperty(exports, "__esModule", {
|
|
1619
1711
|
value: !0
|
|
@@ -1684,22 +1776,22 @@ __webpack_require__.add({
|
|
|
1684
1776
|
let { O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_EXCL, O_TRUNC, O_APPEND, O_SYNC } = exports.constants;
|
|
1685
1777
|
(FLAGS1 = FLAGS || (exports.FLAGS = FLAGS = {}))[FLAGS1.r = O_RDONLY] = "r", FLAGS1[FLAGS1["r+"] = O_RDWR] = "r+", FLAGS1[FLAGS1.rs = O_RDONLY | O_SYNC] = "rs", FLAGS1[FLAGS1.sr = FLAGS1.rs] = "sr", FLAGS1[FLAGS1["rs+"] = O_RDWR | O_SYNC] = "rs+", FLAGS1[FLAGS1["sr+"] = FLAGS1['rs+']] = "sr+", FLAGS1[FLAGS1.w = O_WRONLY | O_CREAT | O_TRUNC] = "w", FLAGS1[FLAGS1.wx = O_WRONLY | O_CREAT | O_TRUNC | O_EXCL] = "wx", FLAGS1[FLAGS1.xw = FLAGS1.wx] = "xw", FLAGS1[FLAGS1["w+"] = O_RDWR | O_CREAT | O_TRUNC] = "w+", FLAGS1[FLAGS1["wx+"] = O_RDWR | O_CREAT | O_TRUNC | O_EXCL] = "wx+", FLAGS1[FLAGS1["xw+"] = FLAGS1['wx+']] = "xw+", FLAGS1[FLAGS1.a = O_WRONLY | O_APPEND | O_CREAT] = "a", FLAGS1[FLAGS1.ax = O_WRONLY | O_APPEND | O_CREAT | O_EXCL] = "ax", FLAGS1[FLAGS1.xa = FLAGS1.ax] = "xa", FLAGS1[FLAGS1["a+"] = O_RDWR | O_APPEND | O_CREAT] = "a+", FLAGS1[FLAGS1["ax+"] = O_RDWR | O_APPEND | O_CREAT | O_EXCL] = "ax+", FLAGS1[FLAGS1["xa+"] = FLAGS1['ax+']] = "xa+";
|
|
1686
1778
|
},
|
|
1687
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1779
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js" (__unused_rspack_module, exports) {
|
|
1688
1780
|
Object.defineProperty(exports, "__esModule", {
|
|
1689
1781
|
value: !0
|
|
1690
1782
|
});
|
|
1691
1783
|
},
|
|
1692
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1784
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js" (__unused_rspack_module, exports) {
|
|
1693
1785
|
var FLAG, FLAG1;
|
|
1694
1786
|
Object.defineProperty(exports, "__esModule", {
|
|
1695
1787
|
value: !0
|
|
1696
1788
|
}), exports.FLAG = void 0, (FLAG1 = FLAG || (exports.FLAG = FLAG = {}))[FLAG1.O_RDONLY = 0] = "O_RDONLY", FLAG1[FLAG1.O_WRONLY = 1] = "O_WRONLY", FLAG1[FLAG1.O_RDWR = 2] = "O_RDWR", FLAG1[FLAG1.O_ACCMODE = 3] = "O_ACCMODE", FLAG1[FLAG1.O_CREAT = 64] = "O_CREAT", FLAG1[FLAG1.O_EXCL = 128] = "O_EXCL", FLAG1[FLAG1.O_NOCTTY = 256] = "O_NOCTTY", FLAG1[FLAG1.O_TRUNC = 512] = "O_TRUNC", FLAG1[FLAG1.O_APPEND = 1024] = "O_APPEND", FLAG1[FLAG1.O_NONBLOCK = 2048] = "O_NONBLOCK", FLAG1[FLAG1.O_DSYNC = 4096] = "O_DSYNC", FLAG1[FLAG1.FASYNC = 8192] = "FASYNC", FLAG1[FLAG1.O_DIRECT = 16384] = "O_DIRECT", FLAG1[FLAG1.O_LARGEFILE = 0] = "O_LARGEFILE", FLAG1[FLAG1.O_DIRECTORY = 65536] = "O_DIRECTORY", FLAG1[FLAG1.O_NOFOLLOW = 131072] = "O_NOFOLLOW", FLAG1[FLAG1.O_NOATIME = 262144] = "O_NOATIME", FLAG1[FLAG1.O_CLOEXEC = 524288] = "O_CLOEXEC", FLAG1[FLAG1.O_SYNC = 1052672] = "O_SYNC", FLAG1[FLAG1.O_NDELAY = 2048] = "O_NDELAY";
|
|
1697
1789
|
},
|
|
1698
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1790
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1699
1791
|
Object.defineProperty(exports, "__esModule", {
|
|
1700
1792
|
value: !0
|
|
1701
1793
|
}), exports.ENCODING_UTF8 = void 0, exports.assertEncoding = assertEncoding, exports.strToEncoding = strToEncoding;
|
|
1702
|
-
let buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1794
|
+
let buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), errors = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
1703
1795
|
function assertEncoding(encoding) {
|
|
1704
1796
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
1705
1797
|
}
|
|
@@ -1708,14 +1800,14 @@ __webpack_require__.add({
|
|
|
1708
1800
|
}
|
|
1709
1801
|
exports.ENCODING_UTF8 = 'utf8';
|
|
1710
1802
|
},
|
|
1711
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1803
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1712
1804
|
Object.defineProperty(exports, "__esModule", {
|
|
1713
1805
|
value: !0
|
|
1714
1806
|
});
|
|
1715
1807
|
let tslib_1 = __webpack_require__("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
1716
|
-
tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1808
|
+
tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/watchIgnore.js"), exports);
|
|
1717
1809
|
},
|
|
1718
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1810
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js" (__unused_rspack_module, exports) {
|
|
1719
1811
|
Object.defineProperty(exports, "__esModule", {
|
|
1720
1812
|
value: !0
|
|
1721
1813
|
}), exports.basename = void 0, exports.basename = (path, separator)=>{
|
|
@@ -1724,22 +1816,43 @@ __webpack_require__.add({
|
|
|
1724
1816
|
return -1 === lastSlashIndex ? path : path.slice(lastSlashIndex + 1);
|
|
1725
1817
|
};
|
|
1726
1818
|
},
|
|
1727
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1819
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js" (__unused_rspack_module, exports) {
|
|
1728
1820
|
exports.default = function setTimeoutUnref(callback, time, args) {
|
|
1729
1821
|
let ref = setTimeout.apply("u" > typeof globalThis ? globalThis : global, arguments);
|
|
1730
1822
|
return ref && 'object' == typeof ref && 'function' == typeof ref.unref && ref.unref(), ref;
|
|
1731
1823
|
};
|
|
1732
1824
|
},
|
|
1733
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1825
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js" (__unused_rspack_module, exports) {
|
|
1734
1826
|
Object.defineProperty(exports, "__esModule", {
|
|
1735
1827
|
value: !0
|
|
1736
1828
|
});
|
|
1737
1829
|
},
|
|
1738
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
1830
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/watchIgnore.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1831
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1832
|
+
value: !0
|
|
1833
|
+
}), exports.watchIgnoreToMatcher = exports.watchIgnorePatternToMatcher = void 0;
|
|
1834
|
+
let glob_to_regex_js_1 = __webpack_require__("../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js");
|
|
1835
|
+
exports.watchIgnorePatternToMatcher = (pattern)=>{
|
|
1836
|
+
if ('function' == typeof pattern) return pattern;
|
|
1837
|
+
if (pattern instanceof RegExp) return (filename)=>pattern.test(filename);
|
|
1838
|
+
if ('string' == typeof pattern) {
|
|
1839
|
+
let regex = (0, glob_to_regex_js_1.toRegex)(pattern);
|
|
1840
|
+
return (filename)=>regex.test(filename);
|
|
1841
|
+
}
|
|
1842
|
+
throw TypeError(`The "options.ignore" property must be of type string, RegExp, function, or an array thereof. Received ${typeof pattern}`);
|
|
1843
|
+
}, exports.watchIgnoreToMatcher = (ignore)=>{
|
|
1844
|
+
if (Array.isArray(ignore)) {
|
|
1845
|
+
let matchers = ignore.map(exports.watchIgnorePatternToMatcher);
|
|
1846
|
+
return (filename)=>matchers.some((matcher)=>matcher(filename));
|
|
1847
|
+
}
|
|
1848
|
+
return (0, exports.watchIgnorePatternToMatcher)(ignore);
|
|
1849
|
+
};
|
|
1850
|
+
},
|
|
1851
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1739
1852
|
Object.defineProperty(exports, "__esModule", {
|
|
1740
1853
|
value: !0
|
|
1741
1854
|
}), exports.Dir = void 0;
|
|
1742
|
-
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
1855
|
+
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), Dirent_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"), errors = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
1743
1856
|
class Dir {
|
|
1744
1857
|
constructor(link, options){
|
|
1745
1858
|
this.link = link, this.options = options, this.iteratorInfo = [], this.closed = !1, this.operationQueue = null, this.path = link.getPath(), this.iteratorInfo.push(link.children[Symbol.iterator]());
|
|
@@ -1842,11 +1955,11 @@ __webpack_require__.add({
|
|
|
1842
1955
|
}
|
|
1843
1956
|
exports.Dir = Dir;
|
|
1844
1957
|
},
|
|
1845
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
1958
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1846
1959
|
Object.defineProperty(exports, "__esModule", {
|
|
1847
1960
|
value: !0
|
|
1848
1961
|
}), exports.Dirent = void 0;
|
|
1849
|
-
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1962
|
+
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), { S_IFMT, S_IFDIR, S_IFREG, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, S_IFSOCK } = fs_node_utils_1.constants;
|
|
1850
1963
|
class Dirent {
|
|
1851
1964
|
constructor(){
|
|
1852
1965
|
this.name = '', this.parentPath = '', this.mode = 0, this.path = '';
|
|
@@ -1882,11 +1995,11 @@ __webpack_require__.add({
|
|
|
1882
1995
|
}
|
|
1883
1996
|
exports.Dirent = Dirent, exports.default = Dirent;
|
|
1884
1997
|
},
|
|
1885
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
1998
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1886
1999
|
Object.defineProperty(exports, "__esModule", {
|
|
1887
2000
|
value: !0
|
|
1888
2001
|
}), exports.FileHandle = void 0;
|
|
1889
|
-
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2002
|
+
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), events_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js");
|
|
1890
2003
|
class FileHandle extends events_1.EventEmitter {
|
|
1891
2004
|
constructor(fs, fd){
|
|
1892
2005
|
super(), this.refs = 1, this.closePromise = null, this.position = 0, this.readableWebStreamLocked = !1, this.fs = fs, this.fd = fd;
|
|
@@ -2028,23 +2141,31 @@ __webpack_require__.add({
|
|
|
2028
2141
|
}
|
|
2029
2142
|
exports.FileHandle = FileHandle;
|
|
2030
2143
|
},
|
|
2031
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2144
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2032
2145
|
Object.defineProperty(exports, "__esModule", {
|
|
2033
2146
|
value: !0
|
|
2034
2147
|
}), exports.FsPromises = void 0;
|
|
2035
|
-
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2148
|
+
let util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), newAbortError = (signal)=>{
|
|
2149
|
+
let error = Error('The operation was aborted');
|
|
2150
|
+
return error.name = 'AbortError', error.code = 'ABORT_ERR', error.cause = signal.reason, error;
|
|
2151
|
+
};
|
|
2036
2152
|
class FSWatchAsyncIterator {
|
|
2037
2153
|
constructor(fs, path, options = {}){
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2154
|
+
this.fs = fs, this.path = path, this.options = options, this.eventQueue = [], this.resolveQueue = [], this.finished = !1, this.maxQueue = options.maxQueue || 2048;
|
|
2155
|
+
let overflow = options.overflow || 'ignore';
|
|
2156
|
+
if ('ignore' !== overflow && 'error' !== overflow && 'throw' !== overflow) throw TypeError(`The argument 'options.overflow' must be one of: 'ignore', 'error'. Received '${overflow}'`);
|
|
2157
|
+
this.overflow = 'throw' === overflow ? 'error' : overflow;
|
|
2158
|
+
let signal = options.signal;
|
|
2159
|
+
if (signal) {
|
|
2160
|
+
if (signal.aborted) return void this.finish(newAbortError(signal));
|
|
2161
|
+
this.onAbort = ()=>this.finish(newAbortError(signal)), signal.addEventListener('abort', this.onAbort);
|
|
2043
2162
|
}
|
|
2163
|
+
this.startWatching();
|
|
2044
2164
|
}
|
|
2045
2165
|
startWatching() {
|
|
2166
|
+
let { signal, ...watchOptions } = this.options;
|
|
2046
2167
|
try {
|
|
2047
|
-
this.watcher = this.fs.watch(this.path,
|
|
2168
|
+
this.watcher = this.fs.watch(this.path, watchOptions, (eventType, filename)=>{
|
|
2048
2169
|
this.enqueueEvent({
|
|
2049
2170
|
eventType,
|
|
2050
2171
|
filename
|
|
@@ -2056,11 +2177,13 @@ __webpack_require__.add({
|
|
|
2056
2177
|
}
|
|
2057
2178
|
enqueueEvent(event) {
|
|
2058
2179
|
if (!this.finished) {
|
|
2059
|
-
if (this.eventQueue.length >= this.maxQueue)
|
|
2060
|
-
|
|
2061
|
-
|
|
2180
|
+
if (this.eventQueue.length >= this.maxQueue) {
|
|
2181
|
+
if ('error' === this.overflow) {
|
|
2182
|
+
let error = Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);
|
|
2183
|
+
error.code = 'ERR_FS_WATCH_QUEUE_OVERFLOW', this.finish(error);
|
|
2184
|
+
} else "u" > typeof process && 'function' == typeof process.emitWarning && process.emitWarning('fs.watch maxQueue exceeded');
|
|
2062
2185
|
return;
|
|
2063
|
-
}
|
|
2186
|
+
}
|
|
2064
2187
|
if (this.eventQueue.push(event), this.resolveQueue.length > 0) {
|
|
2065
2188
|
let { resolve } = this.resolveQueue.shift();
|
|
2066
2189
|
resolve({
|
|
@@ -2071,15 +2194,23 @@ __webpack_require__.add({
|
|
|
2071
2194
|
}
|
|
2072
2195
|
}
|
|
2073
2196
|
finish(error) {
|
|
2074
|
-
if (
|
|
2197
|
+
if (this.finished) return;
|
|
2198
|
+
this.finished = !0, this.error = error, error && (this.eventQueue.length = 0), this.onAbort && (this.options.signal.removeEventListener('abort', this.onAbort), this.onAbort = void 0), this.watcher && (this.watcher.close(), this.watcher = null);
|
|
2199
|
+
let delivered = error && this.resolveQueue.length > 0;
|
|
2200
|
+
for(; this.resolveQueue.length > 0;){
|
|
2075
2201
|
let { resolve, reject } = this.resolveQueue.shift();
|
|
2076
2202
|
error ? reject(error) : resolve({
|
|
2077
2203
|
value: void 0,
|
|
2078
2204
|
done: !0
|
|
2079
2205
|
});
|
|
2080
2206
|
}
|
|
2207
|
+
delivered && (this.error = void 0);
|
|
2081
2208
|
}
|
|
2082
2209
|
async next() {
|
|
2210
|
+
if (this.error) {
|
|
2211
|
+
let error = this.error;
|
|
2212
|
+
throw this.error = void 0, error;
|
|
2213
|
+
}
|
|
2083
2214
|
return this.finished ? {
|
|
2084
2215
|
value: void 0,
|
|
2085
2216
|
done: !0
|
|
@@ -2114,7 +2245,7 @@ __webpack_require__.add({
|
|
|
2114
2245
|
}
|
|
2115
2246
|
};
|
|
2116
2247
|
},
|
|
2117
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2248
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js" (__unused_rspack_module, exports) {
|
|
2118
2249
|
Object.defineProperty(exports, "__esModule", {
|
|
2119
2250
|
value: !0
|
|
2120
2251
|
}), exports.StatFs = void 0;
|
|
@@ -2128,11 +2259,11 @@ __webpack_require__.add({
|
|
|
2128
2259
|
}
|
|
2129
2260
|
exports.StatFs = StatFs, exports.default = StatFs;
|
|
2130
2261
|
},
|
|
2131
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2262
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2132
2263
|
Object.defineProperty(exports, "__esModule", {
|
|
2133
2264
|
value: !0
|
|
2134
2265
|
}), exports.Stats = void 0;
|
|
2135
|
-
let { S_IFMT, S_IFDIR, S_IFREG, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, S_IFSOCK } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2266
|
+
let { S_IFMT, S_IFDIR, S_IFREG, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, S_IFSOCK } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants;
|
|
2136
2267
|
class Stats {
|
|
2137
2268
|
static build(node, bigint = !1) {
|
|
2138
2269
|
let stats = new Stats(), { uid, gid, atime, mtime, ctime } = node, getStatNumber = bigint ? (number)=>BigInt(number) : (number)=>number;
|
|
@@ -2172,11 +2303,11 @@ __webpack_require__.add({
|
|
|
2172
2303
|
}
|
|
2173
2304
|
exports.Stats = Stats, exports.default = Stats;
|
|
2174
2305
|
},
|
|
2175
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2306
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2176
2307
|
Object.defineProperty(exports, "__esModule", {
|
|
2177
2308
|
value: !0
|
|
2178
2309
|
}), exports.globSync = globSync;
|
|
2179
|
-
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2310
|
+
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"), glob_to_regex_js_1 = __webpack_require__("../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js"), util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), pathJoin = path_1.posix.join, pathRelative = path_1.posix.relative, pathResolve = path_1.posix.resolve;
|
|
2180
2311
|
function matchesPattern(path, pattern) {
|
|
2181
2312
|
return (0, glob_to_regex_js_1.toRegex)(pattern).test(path);
|
|
2182
2313
|
}
|
|
@@ -2227,12 +2358,12 @@ __webpack_require__.add({
|
|
|
2227
2358
|
].sort();
|
|
2228
2359
|
}
|
|
2229
2360
|
},
|
|
2230
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2361
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2231
2362
|
Object.defineProperty(exports, "__esModule", {
|
|
2232
2363
|
value: !0
|
|
2233
2364
|
}), exports.fsCommonObjectsList = exports.fsSynchronousApiList = exports.fsCallbackApiList = exports.FsPromises = exports.Dir = exports.FileHandle = exports.StatFs = exports.Dirent = exports.Stats = exports.toUnixTimestamp = exports.FSWatcher = exports.StatWatcher = exports.Volume = void 0;
|
|
2234
2365
|
let tslib_1 = __webpack_require__("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
2235
|
-
var volume_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2366
|
+
var volume_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js");
|
|
2236
2367
|
Object.defineProperty(exports, "Volume", {
|
|
2237
2368
|
enumerable: !0,
|
|
2238
2369
|
get: function() {
|
|
@@ -2254,63 +2385,63 @@ __webpack_require__.add({
|
|
|
2254
2385
|
return volume_1.toUnixTimestamp;
|
|
2255
2386
|
}
|
|
2256
2387
|
});
|
|
2257
|
-
var Stats_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2388
|
+
var Stats_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js");
|
|
2258
2389
|
Object.defineProperty(exports, "Stats", {
|
|
2259
2390
|
enumerable: !0,
|
|
2260
2391
|
get: function() {
|
|
2261
2392
|
return Stats_1.default;
|
|
2262
2393
|
}
|
|
2263
2394
|
});
|
|
2264
|
-
var Dirent_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2395
|
+
var Dirent_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js");
|
|
2265
2396
|
Object.defineProperty(exports, "Dirent", {
|
|
2266
2397
|
enumerable: !0,
|
|
2267
2398
|
get: function() {
|
|
2268
2399
|
return Dirent_1.default;
|
|
2269
2400
|
}
|
|
2270
2401
|
});
|
|
2271
|
-
var StatFs_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2402
|
+
var StatFs_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js");
|
|
2272
2403
|
Object.defineProperty(exports, "StatFs", {
|
|
2273
2404
|
enumerable: !0,
|
|
2274
2405
|
get: function() {
|
|
2275
2406
|
return StatFs_1.default;
|
|
2276
2407
|
}
|
|
2277
2408
|
});
|
|
2278
|
-
var FileHandle_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2409
|
+
var FileHandle_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js");
|
|
2279
2410
|
Object.defineProperty(exports, "FileHandle", {
|
|
2280
2411
|
enumerable: !0,
|
|
2281
2412
|
get: function() {
|
|
2282
2413
|
return FileHandle_1.FileHandle;
|
|
2283
2414
|
}
|
|
2284
2415
|
});
|
|
2285
|
-
var Dir_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2416
|
+
var Dir_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js");
|
|
2286
2417
|
Object.defineProperty(exports, "Dir", {
|
|
2287
2418
|
enumerable: !0,
|
|
2288
2419
|
get: function() {
|
|
2289
2420
|
return Dir_1.Dir;
|
|
2290
2421
|
}
|
|
2291
2422
|
});
|
|
2292
|
-
var FsPromises_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2423
|
+
var FsPromises_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js");
|
|
2293
2424
|
Object.defineProperty(exports, "FsPromises", {
|
|
2294
2425
|
enumerable: !0,
|
|
2295
2426
|
get: function() {
|
|
2296
2427
|
return FsPromises_1.FsPromises;
|
|
2297
2428
|
}
|
|
2298
|
-
}), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2299
|
-
var fsCallbackApiList_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2429
|
+
}), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js"), exports);
|
|
2430
|
+
var fsCallbackApiList_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js");
|
|
2300
2431
|
Object.defineProperty(exports, "fsCallbackApiList", {
|
|
2301
2432
|
enumerable: !0,
|
|
2302
2433
|
get: function() {
|
|
2303
2434
|
return fsCallbackApiList_1.fsCallbackApiList;
|
|
2304
2435
|
}
|
|
2305
2436
|
});
|
|
2306
|
-
var fsSynchronousApiList_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2437
|
+
var fsSynchronousApiList_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js");
|
|
2307
2438
|
Object.defineProperty(exports, "fsSynchronousApiList", {
|
|
2308
2439
|
enumerable: !0,
|
|
2309
2440
|
get: function() {
|
|
2310
2441
|
return fsSynchronousApiList_1.fsSynchronousApiList;
|
|
2311
2442
|
}
|
|
2312
2443
|
});
|
|
2313
|
-
var fsCommonObjectsList_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2444
|
+
var fsCommonObjectsList_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js");
|
|
2314
2445
|
Object.defineProperty(exports, "fsCommonObjectsList", {
|
|
2315
2446
|
enumerable: !0,
|
|
2316
2447
|
get: function() {
|
|
@@ -2318,7 +2449,7 @@ __webpack_require__.add({
|
|
|
2318
2449
|
}
|
|
2319
2450
|
});
|
|
2320
2451
|
},
|
|
2321
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2452
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js" (__unused_rspack_module, exports) {
|
|
2322
2453
|
Object.defineProperty(exports, "__esModule", {
|
|
2323
2454
|
value: !0
|
|
2324
2455
|
}), exports.fsCallbackApiList = void 0, exports.fsCallbackApiList = [
|
|
@@ -2373,7 +2504,7 @@ __webpack_require__.add({
|
|
|
2373
2504
|
'writeFile'
|
|
2374
2505
|
];
|
|
2375
2506
|
},
|
|
2376
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2507
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js" (__unused_rspack_module, exports) {
|
|
2377
2508
|
Object.defineProperty(exports, "__esModule", {
|
|
2378
2509
|
value: !0
|
|
2379
2510
|
}), exports.fsCommonObjectsList = void 0, exports.fsCommonObjectsList = [
|
|
@@ -2386,13 +2517,13 @@ __webpack_require__.add({
|
|
|
2386
2517
|
'StatFs',
|
|
2387
2518
|
'Dir',
|
|
2388
2519
|
'Dirent',
|
|
2389
|
-
'
|
|
2520
|
+
'StatWatcher',
|
|
2390
2521
|
'FSWatcher',
|
|
2391
2522
|
'ReadStream',
|
|
2392
2523
|
'WriteStream'
|
|
2393
2524
|
];
|
|
2394
2525
|
},
|
|
2395
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2526
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js" (__unused_rspack_module, exports) {
|
|
2396
2527
|
Object.defineProperty(exports, "__esModule", {
|
|
2397
2528
|
value: !0
|
|
2398
2529
|
}), exports.fsSynchronousApiList = void 0, exports.fsSynchronousApiList = [
|
|
@@ -2441,11 +2572,11 @@ __webpack_require__.add({
|
|
|
2441
2572
|
'writevSync'
|
|
2442
2573
|
];
|
|
2443
2574
|
},
|
|
2444
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2575
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2445
2576
|
Object.defineProperty(exports, "__esModule", {
|
|
2446
2577
|
value: !0
|
|
2447
2578
|
}), exports.getWriteFileOptions = exports.writeFileDefaults = exports.getRealpathOptsAndCb = exports.getRealpathOptions = exports.getStatfsOptsAndCb = exports.getStatfsOptions = exports.getStatOptsAndCb = exports.getStatOptions = exports.getAppendFileOptsAndCb = exports.getAppendFileOpts = exports.getOpendirOptsAndCb = exports.getOpendirOptions = exports.getReaddirOptsAndCb = exports.getReaddirOptions = exports.getReadFileOptions = exports.getRmOptsAndCb = exports.getRmdirOptions = exports.getDefaultOptsAndCb = exports.getDefaultOpts = exports.optsDefaults = exports.getMkdirOptions = void 0, exports.getOptions = getOptions, exports.optsGenerator = optsGenerator, exports.optsAndCbGenerator = optsAndCbGenerator;
|
|
2448
|
-
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2579
|
+
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), mkdirDefaults = {
|
|
2449
2580
|
mode: 511,
|
|
2450
2581
|
recursive: !1
|
|
2451
2582
|
};
|
|
@@ -2533,11 +2664,11 @@ __webpack_require__.add({
|
|
|
2533
2664
|
flag: fs_node_utils_1.FLAGS[fs_node_utils_1.FLAGS.w]
|
|
2534
2665
|
}, exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
2535
2666
|
},
|
|
2536
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2667
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2537
2668
|
Object.defineProperty(exports, "__esModule", {
|
|
2538
2669
|
value: !0
|
|
2539
2670
|
}), exports.getWriteSyncArgs = exports.getWriteArgs = exports.bufToUint8 = void 0, exports.promisify = promisify, exports.validateCallback = validateCallback, exports.modeToNumber = modeToNumber, exports.nullCheck = nullCheck, exports.pathToFilename = pathToFilename, exports.createError = createError, exports.createStatError = createStatError, exports.genRndStr6 = genRndStr6, exports.flagsToNumber = flagsToNumber, exports.streamToBuffer = streamToBuffer, exports.bufferToEncoding = bufferToEncoding, exports.isReadableStream = isReadableStream;
|
|
2540
|
-
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2671
|
+
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), errors = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"), buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), fs_core_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js");
|
|
2541
2672
|
function promisify(fs, fn, getResult = (input)=>input) {
|
|
2542
2673
|
return (...args)=>new Promise((resolve, reject)=>{
|
|
2543
2674
|
fs[fn].bind(fs)(...args, (error, result)=>error ? reject(error) : resolve(getResult(result)));
|
|
@@ -2689,14 +2820,12 @@ __webpack_require__.add({
|
|
|
2689
2820
|
];
|
|
2690
2821
|
};
|
|
2691
2822
|
},
|
|
2692
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2823
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2693
2824
|
var pool;
|
|
2694
2825
|
Object.defineProperty(exports, "__esModule", {
|
|
2695
2826
|
value: !0
|
|
2696
2827
|
}), exports.FSWatcher = exports.StatWatcher = exports.Volume = void 0, exports.pathToSteps = pathToSteps, exports.dataToStr = dataToStr, exports.toUnixTimestamp = toUnixTimestamp;
|
|
2697
|
-
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2698
|
-
path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
2699
|
-
let pathRelative = path_1.posix ? path_1.posix.relative : path_1.relative, pathJoin = path_1.posix ? path_1.posix.join : path_1.join, pathDirname = path_1.posix ? path_1.posix.dirname : path_1.dirname, pathNormalize = path_1.posix ? path_1.posix.normalize : path_1.normalize;
|
|
2828
|
+
let path_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"), fs_core_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js"), util_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"), Stats_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js"), Dirent_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"), StatFs_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js"), buffer_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"), setTimeoutUnref_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js"), stream_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js"), fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), events_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js"), FileHandle_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js"), util_2 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"), FsPromises_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js"), fs_print_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js"), fsSnapshot = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js"), fs_node_utils_2 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), errors = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"), options_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"), util_3 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), Dir_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js"), resolveCrossPlatform = path_1.resolve, { O_SYMLINK, F_OK, R_OK, W_OK, X_OK, COPYFILE_EXCL, COPYFILE_FICLONE_FORCE } = fs_node_utils_1.constants, pathSep = path_1.posix ? path_1.posix.sep : path_1.sep, pathRelative = path_1.posix ? path_1.posix.relative : path_1.relative, pathJoin = path_1.posix ? path_1.posix.join : path_1.join, pathDirname = path_1.posix ? path_1.posix.dirname : path_1.dirname, pathNormalize = path_1.posix ? path_1.posix.normalize : path_1.normalize;
|
|
2700
2829
|
function pathToSteps(path) {
|
|
2701
2830
|
return (0, fs_core_1.filenameToSteps)((0, util_3.pathToFilename)(path));
|
|
2702
2831
|
}
|
|
@@ -3024,7 +3153,7 @@ __webpack_require__.add({
|
|
|
3024
3153
|
fd
|
|
3025
3154
|
], callback);
|
|
3026
3155
|
}, this._ftruncate = (fd, len)=>{
|
|
3027
|
-
this._core.
|
|
3156
|
+
this._core.ftruncate(fd, len);
|
|
3028
3157
|
}, this.ftruncateSync = (fd, len)=>{
|
|
3029
3158
|
this._ftruncate(fd, len);
|
|
3030
3159
|
}, this.ftruncate = (fd, a, b)=>{
|
|
@@ -3051,8 +3180,7 @@ __webpack_require__.add({
|
|
|
3051
3180
|
len
|
|
3052
3181
|
], callback);
|
|
3053
3182
|
}, this._futimes = (fd, atime, mtime)=>{
|
|
3054
|
-
|
|
3055
|
-
node.atime = new Date(1000 * atime), node.mtime = new Date(1000 * mtime);
|
|
3183
|
+
this._core.futimes(fd, atime, mtime);
|
|
3056
3184
|
}, this.futimesSync = (fd, atime, mtime)=>{
|
|
3057
3185
|
this._futimes(fd, toUnixTimestamp(atime), toUnixTimestamp(mtime));
|
|
3058
3186
|
}, this.futimes = (fd, atime, mtime, callback)=>{
|
|
@@ -3062,8 +3190,7 @@ __webpack_require__.add({
|
|
|
3062
3190
|
toUnixTimestamp(mtime)
|
|
3063
3191
|
], callback);
|
|
3064
3192
|
}, this._utimes = (filename, atime, mtime, followSymlinks = !0)=>{
|
|
3065
|
-
|
|
3066
|
-
node.atime = new Date(1000 * atime), node.mtime = new Date(1000 * mtime);
|
|
3193
|
+
this._core.utimes(filename, atime, mtime, followSymlinks);
|
|
3067
3194
|
}, this.utimesSync = (path, atime, mtime)=>{
|
|
3068
3195
|
this._utimes((0, util_3.pathToFilename)(path), toUnixTimestamp(atime), toUnixTimestamp(mtime), !0);
|
|
3069
3196
|
}, this.utimes = (path, atime, mtime, callback)=>{
|
|
@@ -3134,7 +3261,7 @@ __webpack_require__.add({
|
|
|
3134
3261
|
opts?.recursive
|
|
3135
3262
|
], callback);
|
|
3136
3263
|
}, this._fchmod = (fd, modeNum)=>{
|
|
3137
|
-
this._core.
|
|
3264
|
+
this._core.fchmod(fd, modeNum);
|
|
3138
3265
|
}, this.fchmodSync = (fd, mode)=>{
|
|
3139
3266
|
this._fchmod(fd, (0, util_3.modeToNumber)(mode));
|
|
3140
3267
|
}, this.fchmod = (fd, mode, callback)=>{
|
|
@@ -3143,7 +3270,7 @@ __webpack_require__.add({
|
|
|
3143
3270
|
(0, util_3.modeToNumber)(mode)
|
|
3144
3271
|
], callback);
|
|
3145
3272
|
}, this._chmod = (filename, modeNum, followSymlinks = !0)=>{
|
|
3146
|
-
|
|
3273
|
+
followSymlinks ? this._core.chmod(filename, modeNum) : this._core.lchmod(filename, modeNum);
|
|
3147
3274
|
}, this.chmodSync = (path, mode)=>{
|
|
3148
3275
|
let modeNum = (0, util_3.modeToNumber)(mode), filename = (0, util_3.pathToFilename)(path);
|
|
3149
3276
|
this._chmod(filename, modeNum, !0);
|
|
@@ -3154,7 +3281,7 @@ __webpack_require__.add({
|
|
|
3154
3281
|
modeNum
|
|
3155
3282
|
], callback);
|
|
3156
3283
|
}, this._lchmod = (filename, modeNum)=>{
|
|
3157
|
-
this.
|
|
3284
|
+
this._core.lchmod(filename, modeNum);
|
|
3158
3285
|
}, this.lchmodSync = (path, mode)=>{
|
|
3159
3286
|
let modeNum = (0, util_3.modeToNumber)(mode), filename = (0, util_3.pathToFilename)(path);
|
|
3160
3287
|
this._lchmod(filename, modeNum);
|
|
@@ -3165,7 +3292,7 @@ __webpack_require__.add({
|
|
|
3165
3292
|
modeNum
|
|
3166
3293
|
], callback);
|
|
3167
3294
|
}, this._fchown = (fd, uid, gid)=>{
|
|
3168
|
-
this._core.
|
|
3295
|
+
this._core.fchown(fd, uid, gid);
|
|
3169
3296
|
}, this.fchownSync = (fd, uid, gid)=>{
|
|
3170
3297
|
validateUid(uid), validateGid(gid), this._fchown(fd, uid, gid);
|
|
3171
3298
|
}, this.fchown = (fd, uid, gid, callback)=>{
|
|
@@ -3175,7 +3302,7 @@ __webpack_require__.add({
|
|
|
3175
3302
|
gid
|
|
3176
3303
|
], callback);
|
|
3177
3304
|
}, this._chown = (filename, uid, gid)=>{
|
|
3178
|
-
this._core.
|
|
3305
|
+
this._core.chown(filename, uid, gid);
|
|
3179
3306
|
}, this.chownSync = (path, uid, gid)=>{
|
|
3180
3307
|
validateUid(uid), validateGid(gid), this._chown((0, util_3.pathToFilename)(path), uid, gid);
|
|
3181
3308
|
}, this.chown = (path, uid, gid, callback)=>{
|
|
@@ -3185,7 +3312,7 @@ __webpack_require__.add({
|
|
|
3185
3312
|
gid
|
|
3186
3313
|
], callback);
|
|
3187
3314
|
}, this._lchown = (filename, uid, gid)=>{
|
|
3188
|
-
this._core.
|
|
3315
|
+
this._core.lchown(filename, uid, gid);
|
|
3189
3316
|
}, this.lchownSync = (path, uid, gid)=>{
|
|
3190
3317
|
validateUid(uid), validateGid(gid), this._lchown((0, util_3.pathToFilename)(path), uid, gid);
|
|
3191
3318
|
}, this.lchown = (path, uid, gid, callback)=>{
|
|
@@ -3256,7 +3383,7 @@ __webpack_require__.add({
|
|
|
3256
3383
|
options || {}
|
|
3257
3384
|
], callback);
|
|
3258
3385
|
}, this.globSync = (pattern, options = {})=>this._globSync(pattern, options), this._globSync = (pattern, options = {})=>{
|
|
3259
|
-
let { globSync } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3386
|
+
let { globSync } = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js");
|
|
3260
3387
|
return globSync(this, pattern, options);
|
|
3261
3388
|
}, this._opendir = (filename, options)=>{
|
|
3262
3389
|
let link = this._core.getResolvedLinkOrThrow(filename, 'scandir');
|
|
@@ -3334,16 +3461,15 @@ __webpack_require__.add({
|
|
|
3334
3461
|
this._core.fromJSON(json, mountpoint);
|
|
3335
3462
|
}
|
|
3336
3463
|
_write(fd, buf, offset, length, position) {
|
|
3337
|
-
|
|
3338
|
-
if (file.node.isSymlink()) throw (0, util_3.createError)("EBADF", 'write', file.link.getPath());
|
|
3339
|
-
return file.write(buf, offset, length, -1 === position || 'number' != typeof position ? void 0 : position);
|
|
3464
|
+
return this._core.write(fd, buf, offset, length, position);
|
|
3340
3465
|
}
|
|
3341
3466
|
writevBase(fd, buffers, position) {
|
|
3342
|
-
|
|
3467
|
+
this._core.getFileByFdOrThrow(fd);
|
|
3468
|
+
let p = position ?? void 0;
|
|
3343
3469
|
-1 === p && (p = void 0);
|
|
3344
3470
|
let bytesWritten = 0;
|
|
3345
3471
|
for (let buffer of buffers){
|
|
3346
|
-
let nodeBuf = buffer_1.Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength), bytes =
|
|
3472
|
+
let nodeBuf = buffer_1.Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength), bytes = this._core.write(fd, nodeBuf, 0, nodeBuf.byteLength, p ?? null);
|
|
3347
3473
|
if (p = void 0, bytesWritten += bytes, bytes < nodeBuf.byteLength) break;
|
|
3348
3474
|
}
|
|
3349
3475
|
return bytesWritten;
|
|
@@ -3438,11 +3564,18 @@ __webpack_require__.add({
|
|
|
3438
3564
|
}
|
|
3439
3565
|
watchFile(path, a, b) {
|
|
3440
3566
|
let filename = (0, util_3.pathToFilename)(path), options = a, listener = b;
|
|
3441
|
-
if ('function' == typeof options && (listener = a, options = null), 'function' != typeof listener) throw
|
|
3442
|
-
let interval = 5007, persistent = !0;
|
|
3443
|
-
options && 'object' == typeof options
|
|
3567
|
+
if ('function' == typeof options && (listener = a, options = null), 'function' != typeof listener) throw TypeError('The "listener" argument must be of type function. Received ' + typeof listener);
|
|
3568
|
+
let interval = 5007, persistent = !0, bigint = !1;
|
|
3569
|
+
if (options && 'object' == typeof options) {
|
|
3570
|
+
if (void 0 !== options.interval) {
|
|
3571
|
+
if ('number' != typeof options.interval) throw TypeError('The "options.interval" property must be of type number. Received ' + typeof options.interval);
|
|
3572
|
+
if (!Number.isInteger(options.interval) || options.interval < 0 || options.interval > 0xffffffff) throw RangeError(`The value of "options.interval" is out of range. It must be an integer >= 0 && <= 4294967295. Received ${options.interval}`);
|
|
3573
|
+
interval = options.interval;
|
|
3574
|
+
}
|
|
3575
|
+
'boolean' == typeof options.persistent && (persistent = options.persistent), 'boolean' == typeof options.bigint && (bigint = options.bigint);
|
|
3576
|
+
}
|
|
3444
3577
|
let watcher = this.statWatchers[filename];
|
|
3445
|
-
return watcher || ((watcher = new this.StatWatcher()).start(filename, persistent, interval), this.statWatchers[filename] = watcher), watcher.addListener('change', listener), watcher;
|
|
3578
|
+
return watcher || ((watcher = new this.StatWatcher()).start(filename, persistent, interval, bigint), this.statWatchers[filename] = watcher), watcher.addListener('change', listener), watcher;
|
|
3446
3579
|
}
|
|
3447
3580
|
unwatchFile(path, listener) {
|
|
3448
3581
|
let filename = (0, util_3.pathToFilename)(path), watcher = this.statWatchers[filename];
|
|
@@ -3457,10 +3590,23 @@ __webpack_require__.add({
|
|
|
3457
3590
|
watch(path, options, listener) {
|
|
3458
3591
|
let filename = (0, util_3.pathToFilename)(path), givenOptions = options;
|
|
3459
3592
|
'function' == typeof options && (listener = options, givenOptions = null);
|
|
3460
|
-
let { persistent, recursive, encoding } = (0, options_1.getDefaultOpts)(givenOptions);
|
|
3593
|
+
let { persistent, recursive, encoding, signal, throwIfNoEntry, ignore } = (0, options_1.getDefaultOpts)(givenOptions);
|
|
3461
3594
|
void 0 === persistent && (persistent = !0), void 0 === recursive && (recursive = !1);
|
|
3462
3595
|
let watcher = new this.FSWatcher();
|
|
3463
|
-
|
|
3596
|
+
try {
|
|
3597
|
+
watcher.start(filename, persistent, recursive, encoding, ignore);
|
|
3598
|
+
} catch (err) {
|
|
3599
|
+
if (!1 === throwIfNoEntry && 'ENOENT' === err.code) return watcher;
|
|
3600
|
+
throw err;
|
|
3601
|
+
}
|
|
3602
|
+
if (listener && watcher.addListener('change', listener), signal) if (signal.aborted) watcher.close();
|
|
3603
|
+
else {
|
|
3604
|
+
let onAbort = ()=>watcher.close();
|
|
3605
|
+
signal.addEventListener('abort', onAbort, {
|
|
3606
|
+
once: !0
|
|
3607
|
+
}), watcher.once('close', ()=>signal.removeEventListener('abort', onAbort));
|
|
3608
|
+
}
|
|
3609
|
+
return watcher;
|
|
3464
3610
|
}
|
|
3465
3611
|
_statfs(filename, bigint = !1) {
|
|
3466
3612
|
return this._core.getResolvedLinkOrThrow(filename, 'statfs'), StatFs_1.default.build(this._core, bigint);
|
|
@@ -3523,32 +3669,68 @@ __webpack_require__.add({
|
|
|
3523
3669
|
function emitStop(self) {
|
|
3524
3670
|
self.emit('stop');
|
|
3525
3671
|
}
|
|
3672
|
+
function buildZeroStats(bigint) {
|
|
3673
|
+
let stats = new Stats_1.default(), zero = bigint ? BigInt(0) : 0, epoch = new Date(0);
|
|
3674
|
+
return stats.uid = zero, stats.gid = zero, stats.rdev = zero, stats.blksize = zero, stats.ino = zero, stats.size = zero, stats.blocks = zero, stats.atime = epoch, stats.mtime = epoch, stats.ctime = epoch, stats.birthtime = epoch, stats.atimeMs = zero, stats.mtimeMs = zero, stats.ctimeMs = zero, stats.birthtimeMs = zero, bigint && (stats.atimeNs = zero, stats.mtimeNs = zero, stats.ctimeNs = zero, stats.birthtimeNs = zero), stats.dev = zero, stats.mode = zero, stats.nlink = zero, stats;
|
|
3675
|
+
}
|
|
3526
3676
|
exports.Volume = Volume, Volume.fromJSON = (json, cwd, opts)=>new Volume(fs_core_1.Superblock.fromJSON(json, cwd, opts)), Volume.fromNestedJSON = (json, cwd, opts)=>new Volume(fs_core_1.Superblock.fromNestedJSON(json, cwd, opts));
|
|
3527
3677
|
class StatWatcher extends events_1.EventEmitter {
|
|
3528
3678
|
constructor(vol){
|
|
3529
|
-
super(), this.onInterval = ()=>{
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3679
|
+
super(), this.bigint = !1, this.fileExists = !1, this.stopped = !1, this.onInterval = ()=>{
|
|
3680
|
+
if (this.stopped) return;
|
|
3681
|
+
let stats = this.statSafe();
|
|
3682
|
+
if (stats) if (this.fileExists) {
|
|
3683
|
+
if (this.hasChanged(stats)) {
|
|
3684
|
+
let prev = this.prev;
|
|
3685
|
+
this.prev = stats, this.emit('change', stats, prev);
|
|
3686
|
+
}
|
|
3687
|
+
} else {
|
|
3688
|
+
this.fileExists = !0;
|
|
3689
|
+
let prev = this.prev;
|
|
3690
|
+
this.prev = stats, this.emit('change', stats, prev);
|
|
3535
3691
|
}
|
|
3692
|
+
else this.fileExists && (this.fileExists = !1, this.emit('change', buildZeroStats(this.bigint), this.prev));
|
|
3693
|
+
this.loop();
|
|
3536
3694
|
}, this.vol = vol;
|
|
3537
3695
|
}
|
|
3538
3696
|
loop() {
|
|
3539
|
-
this.timeoutRef = this.setTimeout(this.onInterval, this.interval);
|
|
3697
|
+
clearTimeout(this.timeoutRef), this.timeoutRef = this.setTimeout(this.onInterval, this.interval);
|
|
3540
3698
|
}
|
|
3541
3699
|
hasChanged(stats) {
|
|
3542
|
-
|
|
3700
|
+
let prev = this.prev;
|
|
3701
|
+
return stats.mtimeMs !== prev.mtimeMs || stats.ctimeMs !== prev.ctimeMs || stats.size !== prev.size || stats.ino !== prev.ino || stats.mode !== prev.mode || stats.uid !== prev.uid || stats.gid !== prev.gid || stats.nlink !== prev.nlink;
|
|
3702
|
+
}
|
|
3703
|
+
statSafe() {
|
|
3704
|
+
try {
|
|
3705
|
+
return this.bigint ? this.vol.statSync(this.filename, {
|
|
3706
|
+
bigint: !0
|
|
3707
|
+
}) : this.vol.statSync(this.filename);
|
|
3708
|
+
} catch {
|
|
3709
|
+
return null;
|
|
3710
|
+
}
|
|
3543
3711
|
}
|
|
3544
|
-
start(path, persistent = !0, interval = 5007) {
|
|
3545
|
-
this.filename = (0, util_3.pathToFilename)(path), this.setTimeout = persistent ? setTimeout.bind("u" > typeof globalThis ? globalThis : global) : setTimeoutUnref_1.default, this.interval = interval, this.
|
|
3712
|
+
start(path, persistent = !0, interval = 5007, bigint = !1) {
|
|
3713
|
+
this.filename = (0, util_3.pathToFilename)(path), this.setTimeout = persistent ? setTimeout.bind("u" > typeof globalThis ? globalThis : global) : setTimeoutUnref_1.default, this.interval = interval, this.bigint = bigint;
|
|
3714
|
+
let stats = this.statSafe();
|
|
3715
|
+
stats ? (this.prev = stats, this.fileExists = !0) : (this.prev = buildZeroStats(bigint), this.fileExists = !1, queueMicrotask(()=>{
|
|
3716
|
+
this.stopped || this.emit('change', this.prev, this.prev);
|
|
3717
|
+
})), this.loop();
|
|
3546
3718
|
}
|
|
3547
3719
|
stop() {
|
|
3548
|
-
clearTimeout(this.timeoutRef), queueMicrotask(()=>{
|
|
3720
|
+
this.stopped = !0, clearTimeout(this.timeoutRef), queueMicrotask(()=>{
|
|
3549
3721
|
emitStop.call(this, this);
|
|
3550
3722
|
});
|
|
3551
3723
|
}
|
|
3724
|
+
ref() {
|
|
3725
|
+
this.setTimeout = setTimeout.bind("u" > typeof globalThis ? globalThis : global);
|
|
3726
|
+
let ref = this.timeoutRef;
|
|
3727
|
+
return ref && 'object' == typeof ref && 'function' == typeof ref.ref && ref.ref(), this;
|
|
3728
|
+
}
|
|
3729
|
+
unref() {
|
|
3730
|
+
this.setTimeout = setTimeoutUnref_1.default;
|
|
3731
|
+
let ref = this.timeoutRef;
|
|
3732
|
+
return ref && 'object' == typeof ref && 'function' == typeof ref.unref && ref.unref(), this;
|
|
3733
|
+
}
|
|
3552
3734
|
}
|
|
3553
3735
|
function allocNewPool(poolSize) {
|
|
3554
3736
|
(pool = (0, buffer_1.bufferAllocUnsafe)(poolSize)).used = 0;
|
|
@@ -3656,68 +3838,54 @@ __webpack_require__.add({
|
|
|
3656
3838
|
}, FsWriteStream.prototype._destroy = FsReadStream.prototype._destroy, FsWriteStream.prototype.destroySoon = FsWriteStream.prototype.end;
|
|
3657
3839
|
class FSWatcher extends events_1.EventEmitter {
|
|
3658
3840
|
constructor(vol){
|
|
3659
|
-
super(), this._filename = '', this._filenameEncoded = '', this._recursive = !1, this._encoding = fs_node_utils_1.ENCODING_UTF8, this.
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3841
|
+
super(), this._filename = '', this._filenameEncoded = '', this._recursive = !1, this._encoding = fs_node_utils_1.ENCODING_UTF8, this._closed = !1, this._onEvent = (event)=>{
|
|
3842
|
+
switch(event.type){
|
|
3843
|
+
case 0:
|
|
3844
|
+
case 1:
|
|
3845
|
+
this._emit('rename', event.steps);
|
|
3846
|
+
break;
|
|
3847
|
+
case 4:
|
|
3848
|
+
event.oldSteps && this._emit('rename', event.oldSteps), this._emit('rename', event.steps);
|
|
3849
|
+
break;
|
|
3850
|
+
case 2:
|
|
3851
|
+
case 3:
|
|
3852
|
+
this._emit('change', event.steps);
|
|
3853
|
+
}
|
|
3663
3854
|
}, this._persist = ()=>{
|
|
3664
3855
|
this._timer = setTimeout(this._persist, 1e6);
|
|
3665
3856
|
}, this._vol = vol;
|
|
3666
3857
|
}
|
|
3667
|
-
|
|
3668
|
-
|
|
3858
|
+
_emit(type, relativeSteps) {
|
|
3859
|
+
let filename = relativeSteps.length ? relativeSteps.join(pathSep) : this._watcher.link.getName();
|
|
3860
|
+
this._ignore && this._ignore(filename) || this.emit('change', type, (0, fs_node_utils_1.strToEncoding)(filename, this._encoding));
|
|
3669
3861
|
}
|
|
3670
|
-
|
|
3671
|
-
this.
|
|
3862
|
+
ref() {
|
|
3863
|
+
return !this._watcher || this._closed || this._timer || this._persist(), this;
|
|
3864
|
+
}
|
|
3865
|
+
unref() {
|
|
3866
|
+
return clearTimeout(this._timer), this._timer = void 0, this;
|
|
3867
|
+
}
|
|
3868
|
+
start(path, persistent = !0, recursive = !1, encoding = fs_node_utils_1.ENCODING_UTF8, ignore) {
|
|
3869
|
+
this._filename = (0, util_3.pathToFilename)(path), this._steps = (0, fs_core_1.filenameToSteps)(this._filename), this._filenameEncoded = (0, fs_node_utils_1.strToEncoding)(this._filename), this._recursive = recursive, this._encoding = encoding, this._ignore = void 0 === ignore ? void 0 : (0, fs_node_utils_1.watchIgnoreToMatcher)(ignore);
|
|
3672
3870
|
try {
|
|
3673
|
-
this.
|
|
3871
|
+
this._watcher = new fs_core_1.CoreWatcher(this._vol._core, this._filename, {
|
|
3872
|
+
recursive
|
|
3873
|
+
});
|
|
3674
3874
|
} catch (err) {
|
|
3675
3875
|
let error = Error(`watch ${this._filename} ${err.code}`);
|
|
3676
3876
|
throw error.code = err.code, error.errno = err.code, error;
|
|
3677
3877
|
}
|
|
3678
|
-
|
|
3679
|
-
let filepath = link.getPath(), node = link.getNode(), onNodeChange = ()=>{
|
|
3680
|
-
let filename = pathRelative(this._filename, filepath);
|
|
3681
|
-
return filename || (filename = this._getName()), this.emit('change', 'change', filename);
|
|
3682
|
-
}, unsub = node.changes.listen(([type])=>{
|
|
3683
|
-
'modify' === type && onNodeChange();
|
|
3684
|
-
}), removers = this._listenerRemovers.get(node.ino) ?? [];
|
|
3685
|
-
removers.push(()=>unsub()), this._listenerRemovers.set(node.ino, removers);
|
|
3686
|
-
}, watchLinkChildrenChanged = (link)=>{
|
|
3687
|
-
let node = link.getNode(), onLinkChildAdd = (l)=>{
|
|
3688
|
-
this.emit('change', 'rename', pathRelative(this._filename, l.getPath())), watchLinkNodeChanged(l), watchLinkChildrenChanged(l);
|
|
3689
|
-
}, onLinkChildDelete = (l)=>{
|
|
3690
|
-
let removeLinkNodeListeners = (curLink)=>{
|
|
3691
|
-
let ino = curLink.getNode().ino, removers = this._listenerRemovers.get(ino);
|
|
3692
|
-
for (let [name, childLink] of (removers && (removers.forEach((r)=>r()), this._listenerRemovers.delete(ino)), curLink.children.entries()))childLink && '.' !== name && '..' !== name && removeLinkNodeListeners(childLink);
|
|
3693
|
-
};
|
|
3694
|
-
removeLinkNodeListeners(l), this.emit('change', 'rename', pathRelative(this._filename, l.getPath()));
|
|
3695
|
-
};
|
|
3696
|
-
for (let [name, childLink] of link.children.entries())childLink && '.' !== name && '..' !== name && watchLinkNodeChanged(childLink);
|
|
3697
|
-
let unsubscribeLinkChanges = link.changes.listen(([type, link])=>{
|
|
3698
|
-
'child:add' === type ? onLinkChildAdd(link) : 'child:del' === type && onLinkChildDelete(link);
|
|
3699
|
-
});
|
|
3700
|
-
if ((this._listenerRemovers.get(node.ino) ?? []).push(()=>{
|
|
3701
|
-
unsubscribeLinkChanges();
|
|
3702
|
-
}), recursive) for (let [name, childLink] of link.children.entries())childLink && '.' !== name && '..' !== name && watchLinkChildrenChanged(childLink);
|
|
3703
|
-
};
|
|
3704
|
-
watchLinkNodeChanged(this._link), watchLinkChildrenChanged(this._link);
|
|
3705
|
-
let parent = this._link.parent;
|
|
3706
|
-
parent && parent.changes.listen(([type, link])=>{
|
|
3707
|
-
'child:del' === type && this._onParentChild(link);
|
|
3708
|
-
}), persistent && this._persist();
|
|
3878
|
+
this._link = this._watcher.link, this._watcher.changes.listen(this._onEvent), persistent && this._persist();
|
|
3709
3879
|
}
|
|
3710
3880
|
close() {
|
|
3711
|
-
clearTimeout(this._timer), this.
|
|
3712
|
-
removers.forEach((r)=>r());
|
|
3713
|
-
}), this._listenerRemovers.clear(), this._parentChangesUnsub?.();
|
|
3881
|
+
clearTimeout(this._timer), this._timer = void 0, this._watcher && !this._closed && (this._closed = !0, this._watcher.close(), queueMicrotask(()=>this.emit('close')));
|
|
3714
3882
|
}
|
|
3715
3883
|
}
|
|
3716
3884
|
exports.FSWatcher = FSWatcher;
|
|
3717
3885
|
},
|
|
3718
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.
|
|
3886
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3719
3887
|
exports.toTreeSync = void 0;
|
|
3720
|
-
let tree_dump_1 = __webpack_require__("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js"), fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3888
|
+
let tree_dump_1 = __webpack_require__("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js"), fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
3721
3889
|
exports.toTreeSync = (fs, opts = {})=>{
|
|
3722
3890
|
let separator = opts.separator || '/', dir = opts.dir || separator;
|
|
3723
3891
|
dir[dir.length - 1] !== separator && (dir += separator);
|
|
@@ -3735,9 +3903,9 @@ __webpack_require__.add({
|
|
|
3735
3903
|
return (0, fs_node_utils_1.basename)(dir, separator) + separator + subtree;
|
|
3736
3904
|
};
|
|
3737
3905
|
},
|
|
3738
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3906
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3739
3907
|
exports.fromSnapshot = exports.toSnapshot = void 0;
|
|
3740
|
-
let shared_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3908
|
+
let shared_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"), toSnapshot = async ({ fs, path = '/', separator = '/' })=>{
|
|
3741
3909
|
let stats = await fs.lstat(path);
|
|
3742
3910
|
if (stats.isDirectory()) {
|
|
3743
3911
|
let list = await fs.readdir(path), entries = {}, dir = path.endsWith(separator) ? path : path + separator, snapshots = await Promise.all(list.map((child)=>(0, exports.toSnapshot)({
|
|
@@ -3800,11 +3968,11 @@ __webpack_require__.add({
|
|
|
3800
3968
|
};
|
|
3801
3969
|
exports.fromSnapshot = fromSnapshot;
|
|
3802
3970
|
},
|
|
3803
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3971
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3804
3972
|
Object.defineProperty(exports, "__esModule", {
|
|
3805
3973
|
value: !0
|
|
3806
3974
|
}), exports.fromBinarySnapshot = exports.toBinarySnapshot = exports.fromBinarySnapshotSync = exports.toBinarySnapshotSync = void 0;
|
|
3807
|
-
let CborEncoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoder.js"), CborDecoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoder.js"), sync_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3975
|
+
let CborEncoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoder.js"), CborDecoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoder.js"), sync_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"), async_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"), shared_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"), encoder = new CborEncoder_1.CborEncoder(shared_1.writer), decoder = new CborDecoder_1.CborDecoder();
|
|
3808
3976
|
exports.toBinarySnapshotSync = (options)=>{
|
|
3809
3977
|
let snapshot = (0, sync_1.toSnapshotSync)(options);
|
|
3810
3978
|
return encoder.encode(snapshot);
|
|
@@ -3819,23 +3987,23 @@ __webpack_require__.add({
|
|
|
3819
3987
|
await (0, async_1.fromSnapshot)(snapshot, options);
|
|
3820
3988
|
};
|
|
3821
3989
|
},
|
|
3822
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3990
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js" (__unused_rspack_module, exports) {
|
|
3823
3991
|
Object.defineProperty(exports, "__esModule", {
|
|
3824
3992
|
value: !0
|
|
3825
3993
|
});
|
|
3826
3994
|
},
|
|
3827
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3995
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3828
3996
|
Object.defineProperty(exports, "__esModule", {
|
|
3829
3997
|
value: !0
|
|
3830
3998
|
});
|
|
3831
3999
|
let tslib_1 = __webpack_require__("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
3832
|
-
tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
4000
|
+
tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js"), exports), tslib_1.__exportStar(__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js"), exports);
|
|
3833
4001
|
},
|
|
3834
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
4002
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3835
4003
|
Object.defineProperty(exports, "__esModule", {
|
|
3836
4004
|
value: !0
|
|
3837
4005
|
}), exports.fromJsonSnapshot = exports.toJsonSnapshot = exports.fromJsonSnapshotSync = exports.toJsonSnapshotSync = void 0;
|
|
3838
|
-
let JsonEncoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonEncoder.js"), JsonDecoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js"), sync_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
4006
|
+
let JsonEncoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonEncoder.js"), JsonDecoder_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js"), sync_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"), async_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"), shared_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"), encoder = new JsonEncoder_1.JsonEncoder(shared_1.writer), decoder = new JsonDecoder_1.JsonDecoder();
|
|
3839
4007
|
exports.toJsonSnapshotSync = (options)=>{
|
|
3840
4008
|
let snapshot = (0, sync_1.toSnapshotSync)(options);
|
|
3841
4009
|
return encoder.encode(snapshot);
|
|
@@ -3850,16 +4018,16 @@ __webpack_require__.add({
|
|
|
3850
4018
|
await (0, async_1.fromSnapshot)(snapshot, options);
|
|
3851
4019
|
};
|
|
3852
4020
|
},
|
|
3853
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
4021
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3854
4022
|
exports.validateEntryName = exports.writer = void 0, exports.writer = new (__webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js")).Writer(32768), exports.validateEntryName = (name)=>{
|
|
3855
4023
|
if (!name || '.' === name || '..' === name || -1 !== name.indexOf('/') || -1 !== name.indexOf('\\')) throw Error(`Invalid snapshot entry name: ${JSON.stringify(name)}`);
|
|
3856
4024
|
};
|
|
3857
4025
|
},
|
|
3858
|
-
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
4026
|
+
"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3859
4027
|
Object.defineProperty(exports, "__esModule", {
|
|
3860
4028
|
value: !0
|
|
3861
4029
|
}), exports.fromSnapshotSync = exports.toSnapshotSync = void 0;
|
|
3862
|
-
let shared_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
4030
|
+
let shared_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js");
|
|
3863
4031
|
exports.toSnapshotSync = ({ fs, path = '/', separator = '/' })=>{
|
|
3864
4032
|
let stats = fs.lstatSync(path);
|
|
3865
4033
|
if (stats.isDirectory()) {
|
|
@@ -5405,18 +5573,18 @@ __webpack_require__.add({
|
|
|
5405
5573
|
return RegExp('^' + regexStr + '$', options?.nocase ? 'i' : '');
|
|
5406
5574
|
};
|
|
5407
5575
|
},
|
|
5408
|
-
"../../node_modules/.pnpm/memfs@4.
|
|
5576
|
+
"../../node_modules/.pnpm/memfs@4.64.0/node_modules/memfs/lib/index.js" (module, exports, __webpack_require__) {
|
|
5409
5577
|
Object.defineProperty(exports, "__esModule", {
|
|
5410
5578
|
value: !0
|
|
5411
5579
|
}), exports.memfs = exports.fs = exports.vol = exports.Volume = void 0, exports.createFsFromVolume = createFsFromVolume;
|
|
5412
|
-
let fs_node_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
5580
|
+
let fs_node_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js");
|
|
5413
5581
|
Object.defineProperty(exports, "Volume", {
|
|
5414
5582
|
enumerable: !0,
|
|
5415
5583
|
get: function() {
|
|
5416
5584
|
return fs_node_1.Volume;
|
|
5417
5585
|
}
|
|
5418
5586
|
});
|
|
5419
|
-
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
5587
|
+
let fs_node_utils_1 = __webpack_require__("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"), { F_OK, R_OK, W_OK, X_OK } = fs_node_utils_1.constants;
|
|
5420
5588
|
function createFsFromVolume(vol) {
|
|
5421
5589
|
let fs = {
|
|
5422
5590
|
F_OK,
|
|
@@ -5522,6 +5690,6 @@ __webpack_require__.add({
|
|
|
5522
5690
|
});
|
|
5523
5691
|
}
|
|
5524
5692
|
});
|
|
5525
|
-
let memfs_lib = __webpack_require__("../../node_modules/.pnpm/memfs@4.
|
|
5693
|
+
let memfs_lib = __webpack_require__("../../node_modules/.pnpm/memfs@4.64.0/node_modules/memfs/lib/index.js");
|
|
5526
5694
|
var Volume = memfs_lib.Volume, createFsFromVolume = memfs_lib.createFsFromVolume, fs = memfs_lib.fs, memfs = memfs_lib.memfs, semantic = memfs_lib.semantic, vol = memfs_lib.vol, lib__esModule = !0;
|
|
5527
5695
|
export { Volume, createFsFromVolume, fs, lib__esModule as __esModule, memfs, semantic, vol };
|