@rspack/dev-middleware 2.0.0-beta.2 → 2.0.1
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/README.md +99 -82
- package/dist/index.js +358 -337
- package/package.json +21 -21
- package/types/index.d.ts +15 -14
- package/types/middleware.d.ts +9 -2
- package/types/utils/compatibleAPI.d.ts +8 -8
- package/types/utils/getFilenameFromUrl.d.ts +23 -11
- package/types/utils/getPaths.d.ts +7 -4
- package/types/utils/memorize.d.ts +1 -1
- package/dist/rslib-runtime.js +0 -29
package/dist/index.js
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
|
-
import * as __rspack_external_async_hooks from "async_hooks";
|
|
3
|
-
import * as __rspack_external_node_buffer_fb286294 from "node:buffer";
|
|
4
|
-
import * as __rspack_external_node_events_0a6aefe7 from "node:events";
|
|
5
|
-
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
6
|
-
import * as __rspack_external_node_stream_444d1c2b from "node:stream";
|
|
7
|
-
import * as __rspack_external_process from "process";
|
|
8
|
-
import * as __rspack_external_url from "url";
|
|
9
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
10
2
|
import node_path from "node:path";
|
|
11
3
|
import node_crypto from "node:crypto";
|
|
12
4
|
import node_querystring from "node:querystring";
|
|
13
|
-
import { parse } from "node:url";
|
|
14
5
|
import node_fs from "node:fs";
|
|
6
|
+
import { createRequire as __rspack_createRequire } from "node:module";
|
|
7
|
+
const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
8
|
+
var __webpack_modules__ = {};
|
|
9
|
+
var __webpack_module_cache__ = {};
|
|
10
|
+
function __webpack_require__(moduleId) {
|
|
11
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
12
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
13
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
14
|
+
exports: {}
|
|
15
|
+
};
|
|
16
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
17
|
+
return module.exports;
|
|
18
|
+
}
|
|
19
|
+
__webpack_require__.m = __webpack_modules__;
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
22
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: definition[key]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
(()=>{
|
|
29
|
+
__webpack_require__.add = function(modules) {
|
|
30
|
+
Object.assign(__webpack_require__.m, modules);
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
(()=>{
|
|
34
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
35
|
+
})();
|
|
15
36
|
__webpack_require__.add({
|
|
16
37
|
"./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) {
|
|
17
38
|
exports.alphabet = void 0;
|
|
@@ -817,12 +838,12 @@ __webpack_require__.add({
|
|
|
817
838
|
const CachedUtf8Decoder_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/CachedUtf8Decoder.js");
|
|
818
839
|
exports["default"] = new CachedUtf8Decoder_1.CachedUtf8Decoder();
|
|
819
840
|
},
|
|
820
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
841
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
821
842
|
Object.defineProperty(exports, "__esModule", {
|
|
822
843
|
value: true
|
|
823
844
|
});
|
|
824
845
|
exports.File = void 0;
|
|
825
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
846
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
826
847
|
const { O_APPEND } = fs_node_utils_1.constants;
|
|
827
848
|
class File {
|
|
828
849
|
constructor(link, node, flags, fd){
|
|
@@ -875,12 +896,12 @@ __webpack_require__.add({
|
|
|
875
896
|
}
|
|
876
897
|
exports.File = File;
|
|
877
898
|
},
|
|
878
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
899
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
879
900
|
Object.defineProperty(exports, "__esModule", {
|
|
880
901
|
value: true
|
|
881
902
|
});
|
|
882
903
|
exports.Link = void 0;
|
|
883
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
904
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
884
905
|
const fanout_1 = __webpack_require__("./node_modules/.pnpm/thingies@2.5.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js");
|
|
885
906
|
const { S_IFREG } = fs_node_utils_1.constants;
|
|
886
907
|
class Link {
|
|
@@ -982,21 +1003,21 @@ __webpack_require__.add({
|
|
|
982
1003
|
}
|
|
983
1004
|
exports.Link = Link;
|
|
984
1005
|
},
|
|
985
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1006
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
986
1007
|
Object.defineProperty(exports, "__esModule", {
|
|
987
1008
|
value: true
|
|
988
1009
|
});
|
|
989
1010
|
exports.Node = void 0;
|
|
990
1011
|
const fanout_1 = __webpack_require__("./node_modules/.pnpm/thingies@2.5.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js");
|
|
991
|
-
const process_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
992
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
993
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1012
|
+
const process_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js");
|
|
1013
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
1014
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
994
1015
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } = fs_node_utils_1.constants;
|
|
995
1016
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
996
1017
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
997
1018
|
const EMPTY_BUFFER = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
998
1019
|
class Node {
|
|
999
|
-
constructor(ino, mode = 438){
|
|
1020
|
+
constructor(ino, mode = 438, uid = getuid(), gid = getgid()){
|
|
1000
1021
|
this.changes = new fanout_1.FanOut();
|
|
1001
1022
|
this._uid = getuid();
|
|
1002
1023
|
this._gid = getgid();
|
|
@@ -1010,6 +1031,8 @@ __webpack_require__.add({
|
|
|
1010
1031
|
this._nlink = 1;
|
|
1011
1032
|
this.mode = mode;
|
|
1012
1033
|
this.ino = ino;
|
|
1034
|
+
this._uid = uid;
|
|
1035
|
+
this._gid = gid;
|
|
1013
1036
|
}
|
|
1014
1037
|
set ctime(ctime) {
|
|
1015
1038
|
this._ctime = ctime;
|
|
@@ -1224,38 +1247,38 @@ __webpack_require__.add({
|
|
|
1224
1247
|
}
|
|
1225
1248
|
exports.Node = Node;
|
|
1226
1249
|
},
|
|
1227
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1250
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1228
1251
|
Object.defineProperty(exports, "__esModule", {
|
|
1229
1252
|
value: true
|
|
1230
1253
|
});
|
|
1231
1254
|
exports.Superblock = void 0;
|
|
1232
|
-
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1233
|
-
const Node_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1234
|
-
const Link_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1235
|
-
const File_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1236
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1237
|
-
const process_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1238
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1239
|
-
const fs_node_utils_2 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1240
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1241
|
-
const json_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1242
|
-
const result_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1255
|
+
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js");
|
|
1256
|
+
const Node_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js");
|
|
1257
|
+
const Link_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js");
|
|
1258
|
+
const File_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js");
|
|
1259
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
1260
|
+
const process_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js");
|
|
1261
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
1262
|
+
const fs_node_utils_2 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
1263
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");
|
|
1264
|
+
const json_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js");
|
|
1265
|
+
const result_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js");
|
|
1243
1266
|
const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
1244
1267
|
const pathRelative = path_1.posix ? path_1.posix.relative : path_1.relative;
|
|
1245
1268
|
const pathJoin = path_1.posix ? path_1.posix.join : path_1.join;
|
|
1246
1269
|
const { O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_EXCL, O_TRUNC, O_APPEND, O_DIRECTORY } = fs_node_utils_1.constants;
|
|
1247
1270
|
class Superblock {
|
|
1248
|
-
static fromJSON(json, cwd) {
|
|
1249
|
-
const vol = new Superblock();
|
|
1271
|
+
static fromJSON(json, cwd, opts) {
|
|
1272
|
+
const vol = new Superblock(opts);
|
|
1250
1273
|
vol.fromJSON(json, cwd);
|
|
1251
1274
|
return vol;
|
|
1252
1275
|
}
|
|
1253
|
-
static fromNestedJSON(json, cwd) {
|
|
1254
|
-
const vol = new Superblock();
|
|
1276
|
+
static fromNestedJSON(json, cwd, opts) {
|
|
1277
|
+
const vol = new Superblock(opts);
|
|
1255
1278
|
vol.fromNestedJSON(json, cwd);
|
|
1256
1279
|
return vol;
|
|
1257
1280
|
}
|
|
1258
|
-
constructor(
|
|
1281
|
+
constructor(opts = {}){
|
|
1259
1282
|
this.ino = 0;
|
|
1260
1283
|
this.inodes = {};
|
|
1261
1284
|
this.releasedInos = [];
|
|
@@ -1437,6 +1460,7 @@ __webpack_require__.add({
|
|
|
1437
1460
|
const file = this.getFileByFdOrThrow(fd, 'close');
|
|
1438
1461
|
this.closeFile(file);
|
|
1439
1462
|
};
|
|
1463
|
+
this.process = opts.process ?? process_1.default;
|
|
1440
1464
|
const root = this.createLink();
|
|
1441
1465
|
root.setNode(this.createNode(511 | fs_node_utils_1.constants.S_IFDIR));
|
|
1442
1466
|
root.setChild('.', root);
|
|
@@ -1473,7 +1497,9 @@ __webpack_require__.add({
|
|
|
1473
1497
|
return 'number' == typeof releasedFd ? releasedFd : Superblock.fd--;
|
|
1474
1498
|
}
|
|
1475
1499
|
createNode(mode) {
|
|
1476
|
-
const
|
|
1500
|
+
const uid = this.process.getuid?.() ?? 0;
|
|
1501
|
+
const gid = this.process.getgid?.() ?? 0;
|
|
1502
|
+
const node = new Node_1.Node(this.newInoNumber(), mode, uid, gid);
|
|
1477
1503
|
this.inodes[node.ino] = node;
|
|
1478
1504
|
return node;
|
|
1479
1505
|
}
|
|
@@ -1497,10 +1523,12 @@ __webpack_require__.add({
|
|
|
1497
1523
|
}
|
|
1498
1524
|
let curr = this.root;
|
|
1499
1525
|
let i = 0;
|
|
1526
|
+
const uid = this.process.getuid?.() ?? 0;
|
|
1527
|
+
const gid = this.process.getgid?.() ?? 0;
|
|
1500
1528
|
while(i < steps.length){
|
|
1501
1529
|
let node = curr.getNode();
|
|
1502
1530
|
if (node.isDirectory()) {
|
|
1503
|
-
if (checkAccess && !node.canExecute()) return (0, result_1.Err)((0, util_1.createStatError)("EACCES", funcName, filename));
|
|
1531
|
+
if (checkAccess && !node.canExecute(uid, gid)) return (0, result_1.Err)((0, util_1.createStatError)("EACCES", funcName, filename));
|
|
1504
1532
|
} else if (i < steps.length - 1) return (0, result_1.Err)((0, util_1.createStatError)("ENOTDIR", funcName, filename));
|
|
1505
1533
|
curr = curr.getChild(steps[i]) ?? null;
|
|
1506
1534
|
if (!curr) if (checkExistence) return (0, result_1.Err)((0, util_1.createStatError)("ENOENT", funcName, filename));
|
|
@@ -1514,7 +1542,7 @@ __webpack_require__.add({
|
|
|
1514
1542
|
continue;
|
|
1515
1543
|
}
|
|
1516
1544
|
if (checkExistence && !node.isDirectory() && i < steps.length - 1) {
|
|
1517
|
-
const errorCode = 'win32' ===
|
|
1545
|
+
const errorCode = 'win32' === this.process.platform ? "ENOENT" : "ENOTDIR";
|
|
1518
1546
|
return (0, result_1.Err)((0, util_1.createStatError)(errorCode, funcName, filename));
|
|
1519
1547
|
}
|
|
1520
1548
|
i++;
|
|
@@ -1618,7 +1646,7 @@ __webpack_require__.add({
|
|
|
1618
1646
|
for (const link of links)this._toJSON(link, json, isRelative ? link.getPath() : '', asBuffer);
|
|
1619
1647
|
return json;
|
|
1620
1648
|
}
|
|
1621
|
-
fromJSON(json, cwd =
|
|
1649
|
+
fromJSON(json, cwd = this.process.cwd()) {
|
|
1622
1650
|
for(let filename in json){
|
|
1623
1651
|
const data = json[filename];
|
|
1624
1652
|
filename = (0, util_1.resolve)(filename, cwd);
|
|
@@ -1701,69 +1729,56 @@ __webpack_require__.add({
|
|
|
1701
1729
|
exports.Superblock = Superblock;
|
|
1702
1730
|
Superblock.fd = 0x7fffffff;
|
|
1703
1731
|
},
|
|
1704
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1732
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js" (__unused_rspack_module, exports) {
|
|
1705
1733
|
Object.defineProperty(exports, "__esModule", {
|
|
1706
1734
|
value: true
|
|
1707
1735
|
});
|
|
1708
1736
|
},
|
|
1709
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1710
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1711
|
-
value: true
|
|
1712
|
-
});
|
|
1737
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1713
1738
|
exports.ENCODING_UTF8 = void 0;
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.56.11_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
1717
|
-
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.56.11_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
1739
|
+
__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
1740
|
+
__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
1718
1741
|
exports.ENCODING_UTF8 = 'utf8';
|
|
1719
|
-
function assertEncoding(encoding) {
|
|
1720
|
-
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
1721
|
-
}
|
|
1722
|
-
function strToEncoding(str, encoding) {
|
|
1723
|
-
if (!encoding || encoding === exports.ENCODING_UTF8) return str;
|
|
1724
|
-
if ('buffer' === encoding) return new buffer_1.Buffer(str);
|
|
1725
|
-
return new buffer_1.Buffer(str).toString(encoding);
|
|
1726
|
-
}
|
|
1727
1742
|
},
|
|
1728
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1743
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1729
1744
|
Object.defineProperty(exports, "__esModule", {
|
|
1730
1745
|
value: true
|
|
1731
1746
|
});
|
|
1732
1747
|
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;
|
|
1733
1748
|
const tslib_1 = __webpack_require__("./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
1734
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1735
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1736
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1737
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1738
|
-
var Node_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1749
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js"), exports);
|
|
1750
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"), exports);
|
|
1751
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js"), exports);
|
|
1752
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"), exports);
|
|
1753
|
+
var Node_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js");
|
|
1739
1754
|
Object.defineProperty(exports, "Node", {
|
|
1740
1755
|
enumerable: true,
|
|
1741
1756
|
get: function() {
|
|
1742
1757
|
return Node_1.Node;
|
|
1743
1758
|
}
|
|
1744
1759
|
});
|
|
1745
|
-
var Link_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1760
|
+
var Link_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js");
|
|
1746
1761
|
Object.defineProperty(exports, "Link", {
|
|
1747
1762
|
enumerable: true,
|
|
1748
1763
|
get: function() {
|
|
1749
1764
|
return Link_1.Link;
|
|
1750
1765
|
}
|
|
1751
1766
|
});
|
|
1752
|
-
var File_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1767
|
+
var File_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js");
|
|
1753
1768
|
Object.defineProperty(exports, "File", {
|
|
1754
1769
|
enumerable: true,
|
|
1755
1770
|
get: function() {
|
|
1756
1771
|
return File_1.File;
|
|
1757
1772
|
}
|
|
1758
1773
|
});
|
|
1759
|
-
var Superblock_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1774
|
+
var Superblock_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js");
|
|
1760
1775
|
Object.defineProperty(exports, "Superblock", {
|
|
1761
1776
|
enumerable: true,
|
|
1762
1777
|
get: function() {
|
|
1763
1778
|
return Superblock_1.Superblock;
|
|
1764
1779
|
}
|
|
1765
1780
|
});
|
|
1766
|
-
var util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1781
|
+
var util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");
|
|
1767
1782
|
Object.defineProperty(exports, "dataToBuffer", {
|
|
1768
1783
|
enumerable: true,
|
|
1769
1784
|
get: function() {
|
|
@@ -1813,13 +1828,13 @@ __webpack_require__.add({
|
|
|
1813
1828
|
}
|
|
1814
1829
|
});
|
|
1815
1830
|
},
|
|
1816
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1831
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1817
1832
|
Object.defineProperty(exports, "__esModule", {
|
|
1818
1833
|
value: true
|
|
1819
1834
|
});
|
|
1820
1835
|
exports.flattenJSON = void 0;
|
|
1821
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1822
|
-
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1836
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
1837
|
+
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js");
|
|
1823
1838
|
const pathJoin = path_1.posix ? path_1.posix.join : path_1.join;
|
|
1824
1839
|
const flattenJSON = (nestedJSON)=>{
|
|
1825
1840
|
const flatJSON = {};
|
|
@@ -1837,7 +1852,7 @@ __webpack_require__.add({
|
|
|
1837
1852
|
};
|
|
1838
1853
|
exports.flattenJSON = flattenJSON;
|
|
1839
1854
|
},
|
|
1840
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1855
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1841
1856
|
const maybeReturnProcess = ()=>{
|
|
1842
1857
|
if ("u" > typeof process) return process;
|
|
1843
1858
|
try {
|
|
@@ -1857,7 +1872,7 @@ __webpack_require__.add({
|
|
|
1857
1872
|
}
|
|
1858
1873
|
exports["default"] = createProcess();
|
|
1859
1874
|
},
|
|
1860
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1875
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js" (__unused_rspack_module, exports) {
|
|
1861
1876
|
Object.defineProperty(exports, "__esModule", {
|
|
1862
1877
|
value: true
|
|
1863
1878
|
});
|
|
@@ -1876,12 +1891,12 @@ __webpack_require__.add({
|
|
|
1876
1891
|
};
|
|
1877
1892
|
}
|
|
1878
1893
|
},
|
|
1879
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1894
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js" (__unused_rspack_module, exports) {
|
|
1880
1895
|
Object.defineProperty(exports, "__esModule", {
|
|
1881
1896
|
value: true
|
|
1882
1897
|
});
|
|
1883
1898
|
},
|
|
1884
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1899
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1885
1900
|
Object.defineProperty(exports, "__esModule", {
|
|
1886
1901
|
value: true
|
|
1887
1902
|
});
|
|
@@ -1893,12 +1908,12 @@ __webpack_require__.add({
|
|
|
1893
1908
|
exports.pathToFilename = pathToFilename;
|
|
1894
1909
|
exports.createError = createError;
|
|
1895
1910
|
exports.createStatError = createStatError;
|
|
1896
|
-
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1897
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1898
|
-
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
1899
|
-
const process_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1900
|
-
const encoding_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
1901
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
1911
|
+
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js");
|
|
1912
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
1913
|
+
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
1914
|
+
const process_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js");
|
|
1915
|
+
const encoding_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js");
|
|
1916
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
1902
1917
|
exports.isWin = 'win32' === process_1.default.platform;
|
|
1903
1918
|
const resolveCrossPlatform = path_1.resolve;
|
|
1904
1919
|
const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
@@ -2055,7 +2070,7 @@ __webpack_require__.add({
|
|
|
2055
2070
|
};
|
|
2056
2071
|
}
|
|
2057
2072
|
},
|
|
2058
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2073
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2059
2074
|
exports.Buffer = void 0;
|
|
2060
2075
|
var node_buffer_1 = __webpack_require__("node:buffer");
|
|
2061
2076
|
Object.defineProperty(exports, "Buffer", {
|
|
@@ -2065,7 +2080,7 @@ __webpack_require__.add({
|
|
|
2065
2080
|
}
|
|
2066
2081
|
});
|
|
2067
2082
|
},
|
|
2068
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2083
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2069
2084
|
exports.EventEmitter = void 0;
|
|
2070
2085
|
var node_events_1 = __webpack_require__("node:events");
|
|
2071
2086
|
Object.defineProperty(exports, "EventEmitter", {
|
|
@@ -2075,9 +2090,9 @@ __webpack_require__.add({
|
|
|
2075
2090
|
}
|
|
2076
2091
|
});
|
|
2077
2092
|
},
|
|
2078
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2093
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2079
2094
|
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
2080
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2095
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js");
|
|
2081
2096
|
Object.defineProperty(exports, "Buffer", {
|
|
2082
2097
|
enumerable: true,
|
|
2083
2098
|
get: function() {
|
|
@@ -2092,14 +2107,9 @@ __webpack_require__.add({
|
|
|
2092
2107
|
const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
2093
2108
|
exports.bufferFrom = bufferFrom;
|
|
2094
2109
|
},
|
|
2095
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
});
|
|
2099
|
-
exports.AssertionError = exports.RangeError = exports.TypeError = exports.Error = void 0;
|
|
2100
|
-
exports.message = message;
|
|
2101
|
-
exports.E = E;
|
|
2102
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.56.11_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js");
|
|
2110
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2111
|
+
exports.TypeError = exports.Error = void 0;
|
|
2112
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js");
|
|
2103
2113
|
const kCode = "u" < typeof Symbol ? '_kCode' : Symbol('code');
|
|
2104
2114
|
const messages = {};
|
|
2105
2115
|
function makeNodeError(Base) {
|
|
@@ -2113,21 +2123,7 @@ __webpack_require__.add({
|
|
|
2113
2123
|
};
|
|
2114
2124
|
}
|
|
2115
2125
|
const g = "u" > typeof globalThis ? globalThis : global;
|
|
2116
|
-
|
|
2117
|
-
constructor(options){
|
|
2118
|
-
if ('object' != typeof options || null === options) throw new exports.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
2119
|
-
if (options.message) super(options.message);
|
|
2120
|
-
else super(`${(0, util_1.inspect)(options.actual).slice(0, 128)} ${options.operator} ${(0, util_1.inspect)(options.expected).slice(0, 128)}`);
|
|
2121
|
-
this.generatedMessage = !options.message;
|
|
2122
|
-
this.name = 'AssertionError [ERR_ASSERTION]';
|
|
2123
|
-
this.code = 'ERR_ASSERTION';
|
|
2124
|
-
this.actual = options.actual;
|
|
2125
|
-
this.expected = options.expected;
|
|
2126
|
-
this.operator = options.operator;
|
|
2127
|
-
exports.Error.captureStackTrace(this, options.stackStartFunction);
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
exports.AssertionError = AssertionError;
|
|
2126
|
+
g.Error;
|
|
2131
2127
|
function message(key, args) {
|
|
2132
2128
|
if ('string' != typeof key) throw new exports.Error('Error message key must be a string');
|
|
2133
2129
|
const msg = messages[key];
|
|
@@ -2146,7 +2142,7 @@ __webpack_require__.add({
|
|
|
2146
2142
|
}
|
|
2147
2143
|
exports.Error = makeNodeError(g.Error);
|
|
2148
2144
|
exports.TypeError = makeNodeError(g.TypeError);
|
|
2149
|
-
|
|
2145
|
+
makeNodeError(g.RangeError);
|
|
2150
2146
|
E('ERR_DIR_CLOSED', 'Directory handle was closed');
|
|
2151
2147
|
E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent asynchronous operations');
|
|
2152
2148
|
E('ERR_INVALID_FILE_URL_HOST', 'File URL host must be "localhost" or empty on %s');
|
|
@@ -2155,9 +2151,9 @@ __webpack_require__.add({
|
|
|
2155
2151
|
E('ERR_INVALID_OPT_VALUE_ENCODING', (value)=>`The value "${String(value)}" is invalid for option "encoding"`);
|
|
2156
2152
|
E('ERR_INVALID_ARG_VALUE', 'Unable to open file as blob');
|
|
2157
2153
|
},
|
|
2158
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2154
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2159
2155
|
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
2160
|
-
var node_path_1 = __webpack_require__("node:path?
|
|
2156
|
+
var node_path_1 = __webpack_require__("node:path?435f");
|
|
2161
2157
|
Object.defineProperty(exports, "resolve", {
|
|
2162
2158
|
enumerable: true,
|
|
2163
2159
|
get: function() {
|
|
@@ -2213,7 +2209,7 @@ __webpack_require__.add({
|
|
|
2213
2209
|
}
|
|
2214
2210
|
});
|
|
2215
2211
|
},
|
|
2216
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2212
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2217
2213
|
exports.Writable = exports.Readable = void 0;
|
|
2218
2214
|
var node_stream_1 = __webpack_require__("node:stream");
|
|
2219
2215
|
Object.defineProperty(exports, "Readable", {
|
|
@@ -2229,7 +2225,7 @@ __webpack_require__.add({
|
|
|
2229
2225
|
}
|
|
2230
2226
|
});
|
|
2231
2227
|
},
|
|
2232
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2228
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js" (__unused_rspack_module, exports) {
|
|
2233
2229
|
exports.inherits = inherits;
|
|
2234
2230
|
exports.inspect = inspect;
|
|
2235
2231
|
exports.format = format;
|
|
@@ -2289,7 +2285,7 @@ __webpack_require__.add({
|
|
|
2289
2285
|
return result;
|
|
2290
2286
|
}
|
|
2291
2287
|
},
|
|
2292
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2288
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js" (__unused_rspack_module, exports) {
|
|
2293
2289
|
Object.defineProperty(exports, "__esModule", {
|
|
2294
2290
|
value: true
|
|
2295
2291
|
});
|
|
@@ -2383,12 +2379,12 @@ __webpack_require__.add({
|
|
|
2383
2379
|
FLAGS[FLAGS["xa+"] = FLAGS['ax+']] = "xa+";
|
|
2384
2380
|
})(FLAGS || (exports.FLAGS = FLAGS = {}));
|
|
2385
2381
|
},
|
|
2386
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2382
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js" (__unused_rspack_module, exports) {
|
|
2387
2383
|
Object.defineProperty(exports, "__esModule", {
|
|
2388
2384
|
value: true
|
|
2389
2385
|
});
|
|
2390
2386
|
},
|
|
2391
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2387
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js" (__unused_rspack_module, exports) {
|
|
2392
2388
|
Object.defineProperty(exports, "__esModule", {
|
|
2393
2389
|
value: true
|
|
2394
2390
|
});
|
|
@@ -2417,15 +2413,15 @@ __webpack_require__.add({
|
|
|
2417
2413
|
FLAG[FLAG["O_NDELAY"] = 2048] = "O_NDELAY";
|
|
2418
2414
|
})(FLAG || (exports.FLAG = FLAG = {}));
|
|
2419
2415
|
},
|
|
2420
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2416
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2421
2417
|
Object.defineProperty(exports, "__esModule", {
|
|
2422
2418
|
value: true
|
|
2423
2419
|
});
|
|
2424
2420
|
exports.ENCODING_UTF8 = void 0;
|
|
2425
2421
|
exports.assertEncoding = assertEncoding;
|
|
2426
2422
|
exports.strToEncoding = strToEncoding;
|
|
2427
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2428
|
-
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2423
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
2424
|
+
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
2429
2425
|
exports.ENCODING_UTF8 = 'utf8';
|
|
2430
2426
|
function assertEncoding(encoding) {
|
|
2431
2427
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
@@ -2436,19 +2432,19 @@ __webpack_require__.add({
|
|
|
2436
2432
|
return new buffer_1.Buffer(str).toString(encoding);
|
|
2437
2433
|
}
|
|
2438
2434
|
},
|
|
2439
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2435
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2440
2436
|
Object.defineProperty(exports, "__esModule", {
|
|
2441
2437
|
value: true
|
|
2442
2438
|
});
|
|
2443
2439
|
const tslib_1 = __webpack_require__("./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
2444
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2445
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2446
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2447
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2448
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2449
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2440
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js"), exports);
|
|
2441
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js"), exports);
|
|
2442
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js"), exports);
|
|
2443
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js"), exports);
|
|
2444
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js"), exports);
|
|
2445
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js"), exports);
|
|
2450
2446
|
},
|
|
2451
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2447
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js" (__unused_rspack_module, exports) {
|
|
2452
2448
|
Object.defineProperty(exports, "__esModule", {
|
|
2453
2449
|
value: true
|
|
2454
2450
|
});
|
|
@@ -2460,7 +2456,7 @@ __webpack_require__.add({
|
|
|
2460
2456
|
};
|
|
2461
2457
|
exports.basename = basename;
|
|
2462
2458
|
},
|
|
2463
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2459
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js" (__unused_rspack_module, exports) {
|
|
2464
2460
|
function setTimeoutUnref(callback, time, args) {
|
|
2465
2461
|
const ref = setTimeout.apply("u" > typeof globalThis ? globalThis : global, arguments);
|
|
2466
2462
|
if (ref && 'object' == typeof ref && 'function' == typeof ref.unref) ref.unref();
|
|
@@ -2468,19 +2464,19 @@ __webpack_require__.add({
|
|
|
2468
2464
|
}
|
|
2469
2465
|
exports["default"] = setTimeoutUnref;
|
|
2470
2466
|
},
|
|
2471
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2467
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js" (__unused_rspack_module, exports) {
|
|
2472
2468
|
Object.defineProperty(exports, "__esModule", {
|
|
2473
2469
|
value: true
|
|
2474
2470
|
});
|
|
2475
2471
|
},
|
|
2476
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2472
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2477
2473
|
Object.defineProperty(exports, "__esModule", {
|
|
2478
2474
|
value: true
|
|
2479
2475
|
});
|
|
2480
2476
|
exports.Dir = void 0;
|
|
2481
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2482
|
-
const Dirent_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2483
|
-
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2477
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js");
|
|
2478
|
+
const Dirent_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js");
|
|
2479
|
+
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
2484
2480
|
class Dir {
|
|
2485
2481
|
constructor(link, options){
|
|
2486
2482
|
this.link = link;
|
|
@@ -2609,12 +2605,12 @@ __webpack_require__.add({
|
|
|
2609
2605
|
}
|
|
2610
2606
|
exports.Dir = Dir;
|
|
2611
2607
|
},
|
|
2612
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2608
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2613
2609
|
Object.defineProperty(exports, "__esModule", {
|
|
2614
2610
|
value: true
|
|
2615
2611
|
});
|
|
2616
2612
|
exports.Dirent = void 0;
|
|
2617
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2613
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
2618
2614
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, S_IFSOCK } = fs_node_utils_1.constants;
|
|
2619
2615
|
class Dirent {
|
|
2620
2616
|
constructor(){
|
|
@@ -2660,13 +2656,13 @@ __webpack_require__.add({
|
|
|
2660
2656
|
exports.Dirent = Dirent;
|
|
2661
2657
|
exports["default"] = Dirent;
|
|
2662
2658
|
},
|
|
2663
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2659
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2664
2660
|
Object.defineProperty(exports, "__esModule", {
|
|
2665
2661
|
value: true
|
|
2666
2662
|
});
|
|
2667
2663
|
exports.FileHandle = void 0;
|
|
2668
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2669
|
-
const events_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
2664
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js");
|
|
2665
|
+
const events_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js");
|
|
2670
2666
|
class FileHandle extends events_1.EventEmitter {
|
|
2671
2667
|
constructor(fs, fd){
|
|
2672
2668
|
super();
|
|
@@ -2839,13 +2835,13 @@ __webpack_require__.add({
|
|
|
2839
2835
|
}
|
|
2840
2836
|
exports.FileHandle = FileHandle;
|
|
2841
2837
|
},
|
|
2842
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2838
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
2843
2839
|
Object.defineProperty(exports, "__esModule", {
|
|
2844
2840
|
value: true
|
|
2845
2841
|
});
|
|
2846
2842
|
exports.FsPromises = void 0;
|
|
2847
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2848
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
2843
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js");
|
|
2844
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
2849
2845
|
class FSWatchAsyncIterator {
|
|
2850
2846
|
constructor(fs, path, options = {}){
|
|
2851
2847
|
this.fs = fs;
|
|
@@ -2992,7 +2988,7 @@ __webpack_require__.add({
|
|
|
2992
2988
|
}
|
|
2993
2989
|
exports.FsPromises = FsPromises;
|
|
2994
2990
|
},
|
|
2995
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
2991
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js" (__unused_rspack_module, exports) {
|
|
2996
2992
|
Object.defineProperty(exports, "__esModule", {
|
|
2997
2993
|
value: true
|
|
2998
2994
|
});
|
|
@@ -3019,12 +3015,12 @@ __webpack_require__.add({
|
|
|
3019
3015
|
exports.StatFs = StatFs;
|
|
3020
3016
|
exports["default"] = StatFs;
|
|
3021
3017
|
},
|
|
3022
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3018
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3023
3019
|
Object.defineProperty(exports, "__esModule", {
|
|
3024
3020
|
value: true
|
|
3025
3021
|
});
|
|
3026
3022
|
exports.Stats = void 0;
|
|
3027
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3023
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
3028
3024
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, S_IFSOCK } = fs_node_utils_1.constants;
|
|
3029
3025
|
class Stats {
|
|
3030
3026
|
static build(node, bigint = false) {
|
|
@@ -3087,14 +3083,14 @@ __webpack_require__.add({
|
|
|
3087
3083
|
exports.Stats = Stats;
|
|
3088
3084
|
exports["default"] = Stats;
|
|
3089
3085
|
},
|
|
3090
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3086
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3091
3087
|
Object.defineProperty(exports, "__esModule", {
|
|
3092
3088
|
value: true
|
|
3093
3089
|
});
|
|
3094
3090
|
exports.globSync = globSync;
|
|
3095
|
-
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3091
|
+
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js");
|
|
3096
3092
|
const 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");
|
|
3097
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3093
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js");
|
|
3098
3094
|
const pathJoin = path_1.posix.join;
|
|
3099
3095
|
const pathRelative = path_1.posix.relative;
|
|
3100
3096
|
const pathResolve = path_1.posix.resolve;
|
|
@@ -3166,13 +3162,13 @@ __webpack_require__.add({
|
|
|
3166
3162
|
return results;
|
|
3167
3163
|
}
|
|
3168
3164
|
},
|
|
3169
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3165
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3170
3166
|
Object.defineProperty(exports, "__esModule", {
|
|
3171
3167
|
value: true
|
|
3172
3168
|
});
|
|
3173
3169
|
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;
|
|
3174
3170
|
const tslib_1 = __webpack_require__("./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
3175
|
-
var volume_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3171
|
+
var volume_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js");
|
|
3176
3172
|
Object.defineProperty(exports, "Volume", {
|
|
3177
3173
|
enumerable: true,
|
|
3178
3174
|
get: function() {
|
|
@@ -3197,66 +3193,66 @@ __webpack_require__.add({
|
|
|
3197
3193
|
return volume_1.toUnixTimestamp;
|
|
3198
3194
|
}
|
|
3199
3195
|
});
|
|
3200
|
-
var Stats_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3196
|
+
var Stats_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js");
|
|
3201
3197
|
Object.defineProperty(exports, "Stats", {
|
|
3202
3198
|
enumerable: true,
|
|
3203
3199
|
get: function() {
|
|
3204
3200
|
return Stats_1.default;
|
|
3205
3201
|
}
|
|
3206
3202
|
});
|
|
3207
|
-
var Dirent_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3203
|
+
var Dirent_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js");
|
|
3208
3204
|
Object.defineProperty(exports, "Dirent", {
|
|
3209
3205
|
enumerable: true,
|
|
3210
3206
|
get: function() {
|
|
3211
3207
|
return Dirent_1.default;
|
|
3212
3208
|
}
|
|
3213
3209
|
});
|
|
3214
|
-
var StatFs_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3210
|
+
var StatFs_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js");
|
|
3215
3211
|
Object.defineProperty(exports, "StatFs", {
|
|
3216
3212
|
enumerable: true,
|
|
3217
3213
|
get: function() {
|
|
3218
3214
|
return StatFs_1.default;
|
|
3219
3215
|
}
|
|
3220
3216
|
});
|
|
3221
|
-
var FileHandle_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3217
|
+
var FileHandle_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js");
|
|
3222
3218
|
Object.defineProperty(exports, "FileHandle", {
|
|
3223
3219
|
enumerable: true,
|
|
3224
3220
|
get: function() {
|
|
3225
3221
|
return FileHandle_1.FileHandle;
|
|
3226
3222
|
}
|
|
3227
3223
|
});
|
|
3228
|
-
var Dir_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3224
|
+
var Dir_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js");
|
|
3229
3225
|
Object.defineProperty(exports, "Dir", {
|
|
3230
3226
|
enumerable: true,
|
|
3231
3227
|
get: function() {
|
|
3232
3228
|
return Dir_1.Dir;
|
|
3233
3229
|
}
|
|
3234
3230
|
});
|
|
3235
|
-
var FsPromises_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3231
|
+
var FsPromises_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js");
|
|
3236
3232
|
Object.defineProperty(exports, "FsPromises", {
|
|
3237
3233
|
enumerable: true,
|
|
3238
3234
|
get: function() {
|
|
3239
3235
|
return FsPromises_1.FsPromises;
|
|
3240
3236
|
}
|
|
3241
3237
|
});
|
|
3242
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3243
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3244
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3245
|
-
var fsCallbackApiList_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3238
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"), exports);
|
|
3239
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"), exports);
|
|
3240
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js"), exports);
|
|
3241
|
+
var fsCallbackApiList_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js");
|
|
3246
3242
|
Object.defineProperty(exports, "fsCallbackApiList", {
|
|
3247
3243
|
enumerable: true,
|
|
3248
3244
|
get: function() {
|
|
3249
3245
|
return fsCallbackApiList_1.fsCallbackApiList;
|
|
3250
3246
|
}
|
|
3251
3247
|
});
|
|
3252
|
-
var fsSynchronousApiList_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3248
|
+
var fsSynchronousApiList_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js");
|
|
3253
3249
|
Object.defineProperty(exports, "fsSynchronousApiList", {
|
|
3254
3250
|
enumerable: true,
|
|
3255
3251
|
get: function() {
|
|
3256
3252
|
return fsSynchronousApiList_1.fsSynchronousApiList;
|
|
3257
3253
|
}
|
|
3258
3254
|
});
|
|
3259
|
-
var fsCommonObjectsList_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3255
|
+
var fsCommonObjectsList_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js");
|
|
3260
3256
|
Object.defineProperty(exports, "fsCommonObjectsList", {
|
|
3261
3257
|
enumerable: true,
|
|
3262
3258
|
get: function() {
|
|
@@ -3264,7 +3260,7 @@ __webpack_require__.add({
|
|
|
3264
3260
|
}
|
|
3265
3261
|
});
|
|
3266
3262
|
},
|
|
3267
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3263
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js" (__unused_rspack_module, exports) {
|
|
3268
3264
|
Object.defineProperty(exports, "__esModule", {
|
|
3269
3265
|
value: true
|
|
3270
3266
|
});
|
|
@@ -3321,7 +3317,7 @@ __webpack_require__.add({
|
|
|
3321
3317
|
'writeFile'
|
|
3322
3318
|
];
|
|
3323
3319
|
},
|
|
3324
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3320
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js" (__unused_rspack_module, exports) {
|
|
3325
3321
|
Object.defineProperty(exports, "__esModule", {
|
|
3326
3322
|
value: true
|
|
3327
3323
|
});
|
|
@@ -3342,7 +3338,7 @@ __webpack_require__.add({
|
|
|
3342
3338
|
'WriteStream'
|
|
3343
3339
|
];
|
|
3344
3340
|
},
|
|
3345
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3341
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js" (__unused_rspack_module, exports) {
|
|
3346
3342
|
Object.defineProperty(exports, "__esModule", {
|
|
3347
3343
|
value: true
|
|
3348
3344
|
});
|
|
@@ -3391,7 +3387,7 @@ __webpack_require__.add({
|
|
|
3391
3387
|
'writevSync'
|
|
3392
3388
|
];
|
|
3393
3389
|
},
|
|
3394
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3390
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3395
3391
|
Object.defineProperty(exports, "__esModule", {
|
|
3396
3392
|
value: true
|
|
3397
3393
|
});
|
|
@@ -3399,8 +3395,8 @@ __webpack_require__.add({
|
|
|
3399
3395
|
exports.getOptions = getOptions;
|
|
3400
3396
|
exports.optsGenerator = optsGenerator;
|
|
3401
3397
|
exports.optsAndCbGenerator = optsAndCbGenerator;
|
|
3402
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3403
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3398
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
3399
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js");
|
|
3404
3400
|
const mkdirDefaults = {
|
|
3405
3401
|
mode: 511,
|
|
3406
3402
|
recursive: false
|
|
@@ -3519,7 +3515,7 @@ __webpack_require__.add({
|
|
|
3519
3515
|
};
|
|
3520
3516
|
exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
3521
3517
|
},
|
|
3522
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3518
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3523
3519
|
Object.defineProperty(exports, "__esModule", {
|
|
3524
3520
|
value: true
|
|
3525
3521
|
});
|
|
@@ -3536,10 +3532,10 @@ __webpack_require__.add({
|
|
|
3536
3532
|
exports.streamToBuffer = streamToBuffer;
|
|
3537
3533
|
exports.bufferToEncoding = bufferToEncoding;
|
|
3538
3534
|
exports.isReadableStream = isReadableStream;
|
|
3539
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3540
|
-
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3541
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3542
|
-
const fs_core_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
3535
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
3536
|
+
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
3537
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
3538
|
+
const fs_core_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js");
|
|
3543
3539
|
function promisify(fs, fn, getResult = (input)=>input) {
|
|
3544
3540
|
return (...args)=>new Promise((resolve, reject)=>{
|
|
3545
3541
|
fs[fn].bind(fs)(...args, (error, result)=>{
|
|
@@ -3780,7 +3776,7 @@ __webpack_require__.add({
|
|
|
3780
3776
|
return null !== stream && 'object' == typeof stream && 'function' == typeof stream.pipe && 'function' == typeof stream.on && true === stream.readable;
|
|
3781
3777
|
}
|
|
3782
3778
|
},
|
|
3783
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3779
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
3784
3780
|
Object.defineProperty(exports, "__esModule", {
|
|
3785
3781
|
value: true
|
|
3786
3782
|
});
|
|
@@ -3788,27 +3784,27 @@ __webpack_require__.add({
|
|
|
3788
3784
|
exports.pathToSteps = pathToSteps;
|
|
3789
3785
|
exports.dataToStr = dataToStr;
|
|
3790
3786
|
exports.toUnixTimestamp = toUnixTimestamp;
|
|
3791
|
-
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3792
|
-
const fs_core_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
3793
|
-
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.
|
|
3794
|
-
const Stats_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3795
|
-
const Dirent_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3796
|
-
const StatFs_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3797
|
-
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3798
|
-
const setTimeoutUnref_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3799
|
-
const stream_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3800
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3801
|
-
const events_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3802
|
-
const FileHandle_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3803
|
-
const util_2 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3804
|
-
const FsPromises_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3805
|
-
const fs_print_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-print@4.
|
|
3806
|
-
const fsSnapshot = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
3807
|
-
const fs_node_utils_2 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
3808
|
-
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.
|
|
3809
|
-
const options_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3810
|
-
const util_3 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3811
|
-
const Dir_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
3787
|
+
const path_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js");
|
|
3788
|
+
const fs_core_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js");
|
|
3789
|
+
const util_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-core@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");
|
|
3790
|
+
const Stats_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js");
|
|
3791
|
+
const Dirent_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js");
|
|
3792
|
+
const StatFs_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js");
|
|
3793
|
+
const buffer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js");
|
|
3794
|
+
const setTimeoutUnref_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js");
|
|
3795
|
+
const stream_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js");
|
|
3796
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
3797
|
+
const events_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js");
|
|
3798
|
+
const FileHandle_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js");
|
|
3799
|
+
const util_2 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js");
|
|
3800
|
+
const FsPromises_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js");
|
|
3801
|
+
const fs_print_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-print@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js");
|
|
3802
|
+
const fsSnapshot = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js");
|
|
3803
|
+
const fs_node_utils_2 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
3804
|
+
const errors = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");
|
|
3805
|
+
const options_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js");
|
|
3806
|
+
const util_3 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js");
|
|
3807
|
+
const Dir_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js");
|
|
3812
3808
|
const resolveCrossPlatform = path_1.resolve;
|
|
3813
3809
|
const { O_SYMLINK, F_OK, R_OK, W_OK, X_OK, COPYFILE_EXCL, COPYFILE_FICLONE_FORCE } = fs_node_utils_1.constants;
|
|
3814
3810
|
path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
@@ -4610,7 +4606,7 @@ __webpack_require__.add({
|
|
|
4610
4606
|
};
|
|
4611
4607
|
this.globSync = (pattern, options = {})=>this._globSync(pattern, options);
|
|
4612
4608
|
this._globSync = (pattern, options = {})=>{
|
|
4613
|
-
const { globSync } = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
4609
|
+
const { globSync } = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js");
|
|
4614
4610
|
return globSync(this, pattern, options);
|
|
4615
4611
|
};
|
|
4616
4612
|
this._opendir = (filename, options)=>{
|
|
@@ -4939,8 +4935,8 @@ __webpack_require__.add({
|
|
|
4939
4935
|
}
|
|
4940
4936
|
}
|
|
4941
4937
|
exports.Volume = Volume;
|
|
4942
|
-
Volume.fromJSON = (json, cwd)=>new Volume(fs_core_1.Superblock.fromJSON(json, cwd));
|
|
4943
|
-
Volume.fromNestedJSON = (json, cwd)=>new Volume(fs_core_1.Superblock.fromNestedJSON(json, cwd));
|
|
4938
|
+
Volume.fromJSON = (json, cwd, opts)=>new Volume(fs_core_1.Superblock.fromJSON(json, cwd, opts));
|
|
4939
|
+
Volume.fromNestedJSON = (json, cwd, opts)=>new Volume(fs_core_1.Superblock.fromNestedJSON(json, cwd, opts));
|
|
4944
4940
|
function emitStop(self) {
|
|
4945
4941
|
self.emit('stop');
|
|
4946
4942
|
}
|
|
@@ -4997,6 +4993,7 @@ __webpack_require__.add({
|
|
|
4997
4993
|
if (void 0 === options.highWaterMark) options.highWaterMark = 65536;
|
|
4998
4994
|
stream_1.Readable.call(this, options);
|
|
4999
4995
|
this.path = (0, util_3.pathToFilename)(path);
|
|
4996
|
+
this._fileHandle = options.fd && 'number' != typeof options.fd ? options.fd : null;
|
|
5000
4997
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
5001
4998
|
this.flags = void 0 === options.flags ? 'r' : options.flags;
|
|
5002
4999
|
this.mode = void 0 === options.mode ? 438 : options.mode;
|
|
@@ -5076,7 +5073,8 @@ __webpack_require__.add({
|
|
|
5076
5073
|
}
|
|
5077
5074
|
if ('boolean' == typeof this._readableState?.closed) this._readableState.closed = true;
|
|
5078
5075
|
else this.closed = true;
|
|
5079
|
-
this.
|
|
5076
|
+
if (this._fileHandle) this._fileHandle.close().then(()=>this.emit('close'), (er)=>this.emit('error', er));
|
|
5077
|
+
else this._vol.close(this.fd, (er)=>{
|
|
5080
5078
|
if (er) this.emit('error', er);
|
|
5081
5079
|
else this.emit('close');
|
|
5082
5080
|
});
|
|
@@ -5093,6 +5091,7 @@ __webpack_require__.add({
|
|
|
5093
5091
|
options = Object.assign({}, (0, options_1.getOptions)(options, {}));
|
|
5094
5092
|
stream_1.Writable.call(this, options);
|
|
5095
5093
|
this.path = (0, util_3.pathToFilename)(path);
|
|
5094
|
+
this._fileHandle = options.fd && 'number' != typeof options.fd ? options.fd : null;
|
|
5096
5095
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
5097
5096
|
this.flags = void 0 === options.flags ? 'w' : options.flags;
|
|
5098
5097
|
this.mode = void 0 === options.mode ? 438 : options.mode;
|
|
@@ -5172,7 +5171,8 @@ __webpack_require__.add({
|
|
|
5172
5171
|
}
|
|
5173
5172
|
if ('boolean' == typeof this._writableState?.closed) this._writableState.closed = true;
|
|
5174
5173
|
else this.closed = true;
|
|
5175
|
-
this.
|
|
5174
|
+
if (this._fileHandle) this._fileHandle.close().then(()=>this.emit('close'), (er)=>this.emit('error', er));
|
|
5175
|
+
else this._vol.close(this.fd, (er)=>{
|
|
5176
5176
|
if (er) this.emit('error', er);
|
|
5177
5177
|
else this.emit('close');
|
|
5178
5178
|
});
|
|
@@ -5283,13 +5283,10 @@ __webpack_require__.add({
|
|
|
5283
5283
|
}
|
|
5284
5284
|
exports.FSWatcher = FSWatcher;
|
|
5285
5285
|
},
|
|
5286
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-print@4.
|
|
5287
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5288
|
-
value: true
|
|
5289
|
-
});
|
|
5286
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-print@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5290
5287
|
exports.toTreeSync = void 0;
|
|
5291
5288
|
const tree_dump_1 = __webpack_require__("./node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js");
|
|
5292
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
5289
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
5293
5290
|
const toTreeSync = (fs, opts = {})=>{
|
|
5294
5291
|
const separator = opts.separator || '/';
|
|
5295
5292
|
let dir = opts.dir || separator;
|
|
@@ -5323,10 +5320,7 @@ __webpack_require__.add({
|
|
|
5323
5320
|
};
|
|
5324
5321
|
exports.toTreeSync = toTreeSync;
|
|
5325
5322
|
},
|
|
5326
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5327
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5328
|
-
value: true
|
|
5329
|
-
});
|
|
5323
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js" (__unused_rspack_module, exports) {
|
|
5330
5324
|
exports.fromSnapshot = exports.toSnapshot = void 0;
|
|
5331
5325
|
const toSnapshot = async ({ fs, path = '/', separator = '/' })=>{
|
|
5332
5326
|
const stats = await fs.lstat(path);
|
|
@@ -5399,16 +5393,16 @@ __webpack_require__.add({
|
|
|
5399
5393
|
};
|
|
5400
5394
|
exports.fromSnapshot = fromSnapshot;
|
|
5401
5395
|
},
|
|
5402
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5396
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5403
5397
|
Object.defineProperty(exports, "__esModule", {
|
|
5404
5398
|
value: true
|
|
5405
5399
|
});
|
|
5406
5400
|
exports.fromBinarySnapshot = exports.toBinarySnapshot = exports.fromBinarySnapshotSync = exports.toBinarySnapshotSync = void 0;
|
|
5407
5401
|
const 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");
|
|
5408
5402
|
const 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");
|
|
5409
|
-
const sync_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5410
|
-
const async_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5411
|
-
const shared_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5403
|
+
const sync_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js");
|
|
5404
|
+
const async_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js");
|
|
5405
|
+
const shared_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js");
|
|
5412
5406
|
const encoder = new CborEncoder_1.CborEncoder(shared_1.writer);
|
|
5413
5407
|
const decoder = new CborDecoder_1.CborDecoder();
|
|
5414
5408
|
const toBinarySnapshotSync = (options)=>{
|
|
@@ -5432,31 +5426,31 @@ __webpack_require__.add({
|
|
|
5432
5426
|
};
|
|
5433
5427
|
exports.fromBinarySnapshot = fromBinarySnapshot;
|
|
5434
5428
|
},
|
|
5435
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5429
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js" (__unused_rspack_module, exports) {
|
|
5436
5430
|
Object.defineProperty(exports, "__esModule", {
|
|
5437
5431
|
value: true
|
|
5438
5432
|
});
|
|
5439
5433
|
},
|
|
5440
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5434
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5441
5435
|
Object.defineProperty(exports, "__esModule", {
|
|
5442
5436
|
value: true
|
|
5443
5437
|
});
|
|
5444
5438
|
const tslib_1 = __webpack_require__("./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");
|
|
5445
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5446
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5447
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5448
|
-
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5439
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js"), exports);
|
|
5440
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"), exports);
|
|
5441
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js"), exports);
|
|
5442
|
+
tslib_1.__exportStar(__webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js"), exports);
|
|
5449
5443
|
},
|
|
5450
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5444
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5451
5445
|
Object.defineProperty(exports, "__esModule", {
|
|
5452
5446
|
value: true
|
|
5453
5447
|
});
|
|
5454
5448
|
exports.fromJsonSnapshot = exports.toJsonSnapshot = exports.fromJsonSnapshotSync = exports.toJsonSnapshotSync = void 0;
|
|
5455
5449
|
const 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");
|
|
5456
5450
|
const 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");
|
|
5457
|
-
const sync_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5458
|
-
const async_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5459
|
-
const shared_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5451
|
+
const sync_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js");
|
|
5452
|
+
const async_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js");
|
|
5453
|
+
const shared_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js");
|
|
5460
5454
|
const encoder = new JsonEncoder_1.JsonEncoder(shared_1.writer);
|
|
5461
5455
|
const decoder = new JsonDecoder_1.JsonDecoder();
|
|
5462
5456
|
const toJsonSnapshotSync = (options)=>{
|
|
@@ -5480,12 +5474,12 @@ __webpack_require__.add({
|
|
|
5480
5474
|
};
|
|
5481
5475
|
exports.fromJsonSnapshot = fromJsonSnapshot;
|
|
5482
5476
|
},
|
|
5483
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5477
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5484
5478
|
exports.writer = void 0;
|
|
5485
5479
|
const Writer_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js");
|
|
5486
5480
|
exports.writer = new Writer_1.Writer(32768);
|
|
5487
5481
|
},
|
|
5488
|
-
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.
|
|
5482
|
+
"./node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js" (__unused_rspack_module, exports) {
|
|
5489
5483
|
Object.defineProperty(exports, "__esModule", {
|
|
5490
5484
|
value: true
|
|
5491
5485
|
});
|
|
@@ -6538,10 +6532,7 @@ __webpack_require__.add({
|
|
|
6538
6532
|
exports.CborEncoderFast = CborEncoderFast;
|
|
6539
6533
|
},
|
|
6540
6534
|
"./node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
6541
|
-
|
|
6542
|
-
value: true
|
|
6543
|
-
});
|
|
6544
|
-
exports.JsonDecoder = exports.readKey = void 0;
|
|
6535
|
+
exports.JsonDecoder = exports.Y = void 0;
|
|
6545
6536
|
const decodeUtf8_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js");
|
|
6546
6537
|
const Reader_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js");
|
|
6547
6538
|
const fromBase64Bin_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/fromBase64Bin.js");
|
|
@@ -6638,7 +6629,7 @@ __webpack_require__.add({
|
|
|
6638
6629
|
reader.x = x;
|
|
6639
6630
|
return fromCharCode.apply(String, points);
|
|
6640
6631
|
};
|
|
6641
|
-
exports.
|
|
6632
|
+
exports.Y = readKey;
|
|
6642
6633
|
class JsonDecoder {
|
|
6643
6634
|
constructor(){
|
|
6644
6635
|
this.reader = new Reader_1.Reader();
|
|
@@ -7000,7 +6991,7 @@ __webpack_require__.add({
|
|
|
7000
6991
|
this.skipWhitespace();
|
|
7001
6992
|
char = uint8[reader.x++];
|
|
7002
6993
|
if (0x22 !== char) throw new Error('Invalid JSON');
|
|
7003
|
-
const key = (0, exports.
|
|
6994
|
+
const key = (0, exports.Y)(reader);
|
|
7004
6995
|
if ('__proto__' === key) throw new Error('Invalid JSON');
|
|
7005
6996
|
this.skipWhitespace();
|
|
7006
6997
|
if (0x3a !== reader.u8()) throw new Error('Invalid JSON');
|
|
@@ -7334,10 +7325,7 @@ __webpack_require__.add({
|
|
|
7334
7325
|
}
|
|
7335
7326
|
},
|
|
7336
7327
|
"./node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js" (__unused_rspack_module, exports) {
|
|
7337
|
-
|
|
7338
|
-
value: true
|
|
7339
|
-
});
|
|
7340
|
-
exports.toMatcher = exports.toRegex = void 0;
|
|
7328
|
+
exports.toRegex = void 0;
|
|
7341
7329
|
const escapeRe = (ch)=>/[.^$+{}()|\\]/.test(ch) ? `\\${ch}` : ch;
|
|
7342
7330
|
const parseExtGlob = (pattern, startIdx, prefix, options)=>{
|
|
7343
7331
|
let i = startIdx;
|
|
@@ -7518,37 +7506,21 @@ __webpack_require__.add({
|
|
|
7518
7506
|
return new RegExp('^' + regexStr + '$', flags);
|
|
7519
7507
|
};
|
|
7520
7508
|
exports.toRegex = toRegex;
|
|
7521
|
-
const isRegExp = /^\/(.{1,4096})\/([gimsuy]{0,6})$/;
|
|
7522
|
-
const toMatcher = (pattern, options)=>{
|
|
7523
|
-
const regexes = [];
|
|
7524
|
-
const patterns = Array.isArray(pattern) ? pattern : [
|
|
7525
|
-
pattern
|
|
7526
|
-
];
|
|
7527
|
-
for (const pat of patterns)if ('string' == typeof pat) {
|
|
7528
|
-
const match = isRegExp.exec(pat);
|
|
7529
|
-
if (match) {
|
|
7530
|
-
const [, expr, flags] = match;
|
|
7531
|
-
regexes.push(new RegExp(expr, flags));
|
|
7532
|
-
} else regexes.push((0, exports.toRegex)(pat, options));
|
|
7533
|
-
} else regexes.push(pat);
|
|
7534
|
-
return regexes.length ? new Function('p', 'return ' + regexes.map((r)=>r + '.test(p)').join('||')) : ()=>false;
|
|
7535
|
-
};
|
|
7536
|
-
exports.toMatcher = toMatcher;
|
|
7537
7509
|
},
|
|
7538
|
-
"./node_modules/.pnpm/memfs@4.
|
|
7510
|
+
"./node_modules/.pnpm/memfs@4.57.1_tslib@2.8.1/node_modules/memfs/lib/index.js" (module, exports, __webpack_require__) {
|
|
7539
7511
|
Object.defineProperty(exports, "__esModule", {
|
|
7540
7512
|
value: true
|
|
7541
7513
|
});
|
|
7542
7514
|
exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
|
|
7543
7515
|
exports.createFsFromVolume = createFsFromVolume;
|
|
7544
|
-
const fs_node_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.
|
|
7516
|
+
const fs_node_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js");
|
|
7545
7517
|
Object.defineProperty(exports, "Volume", {
|
|
7546
7518
|
enumerable: true,
|
|
7547
7519
|
get: function() {
|
|
7548
7520
|
return fs_node_1.Volume;
|
|
7549
7521
|
}
|
|
7550
7522
|
});
|
|
7551
|
-
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.
|
|
7523
|
+
const fs_node_utils_1 = __webpack_require__("./node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");
|
|
7552
7524
|
const { F_OK, R_OK, W_OK, X_OK } = fs_node_utils_1.constants;
|
|
7553
7525
|
exports.vol = new fs_node_1.Volume();
|
|
7554
7526
|
function createFsFromVolume(vol) {
|
|
@@ -7581,8 +7553,14 @@ __webpack_require__.add({
|
|
|
7581
7553
|
return fs;
|
|
7582
7554
|
}
|
|
7583
7555
|
exports.fs = createFsFromVolume(exports.vol);
|
|
7584
|
-
const memfs = (json = {},
|
|
7585
|
-
const
|
|
7556
|
+
const memfs = (json = {}, cwdOrOpts = '/')=>{
|
|
7557
|
+
const opts = 'string' == typeof cwdOrOpts ? {
|
|
7558
|
+
cwd: cwdOrOpts
|
|
7559
|
+
} : cwdOrOpts;
|
|
7560
|
+
const cwd = opts.cwd ?? (opts.process ? void 0 : '/');
|
|
7561
|
+
const vol = fs_node_1.Volume.fromNestedJSON(json, cwd, {
|
|
7562
|
+
process: opts.process
|
|
7563
|
+
});
|
|
7586
7564
|
const fs = createFsFromVolume(vol);
|
|
7587
7565
|
return {
|
|
7588
7566
|
fs,
|
|
@@ -7833,25 +7811,25 @@ __webpack_require__.add({
|
|
|
7833
7811
|
exports.printTree = printTree;
|
|
7834
7812
|
},
|
|
7835
7813
|
async_hooks (module) {
|
|
7836
|
-
module.exports =
|
|
7814
|
+
module.exports = __rspack_createRequire_require("async_hooks");
|
|
7837
7815
|
},
|
|
7838
7816
|
"node:buffer" (module) {
|
|
7839
|
-
module.exports =
|
|
7817
|
+
module.exports = __rspack_createRequire_require("node:buffer");
|
|
7840
7818
|
},
|
|
7841
7819
|
"node:events" (module) {
|
|
7842
|
-
module.exports =
|
|
7820
|
+
module.exports = __rspack_createRequire_require("node:events");
|
|
7843
7821
|
},
|
|
7844
|
-
"node:path?
|
|
7845
|
-
module.exports =
|
|
7822
|
+
"node:path?435f" (module) {
|
|
7823
|
+
module.exports = __rspack_createRequire_require("node:path");
|
|
7846
7824
|
},
|
|
7847
7825
|
"node:stream" (module) {
|
|
7848
|
-
module.exports =
|
|
7826
|
+
module.exports = __rspack_createRequire_require("node:stream");
|
|
7849
7827
|
},
|
|
7850
7828
|
process (module) {
|
|
7851
|
-
module.exports =
|
|
7829
|
+
module.exports = __rspack_createRequire_require("process");
|
|
7852
7830
|
},
|
|
7853
7831
|
url (module) {
|
|
7854
|
-
module.exports =
|
|
7832
|
+
module.exports = __rspack_createRequire_require("url");
|
|
7855
7833
|
},
|
|
7856
7834
|
"./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
7857
7835
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -8493,14 +8471,12 @@ function getPaths(context) {
|
|
|
8493
8471
|
if (false === compilation.options.devServer) continue;
|
|
8494
8472
|
const outputPath = compilation.getPath(compilation.outputOptions.path || "");
|
|
8495
8473
|
const publicPath = options.publicPath ? compilation.getPath(options.publicPath) : compilation.outputOptions.publicPath ? compilation.getPath(compilation.outputOptions.publicPath) : "";
|
|
8496
|
-
const
|
|
8497
|
-
asset.name,
|
|
8498
|
-
asset.info
|
|
8499
|
-
]));
|
|
8474
|
+
const { outputFileSystem } = compilation.compiler;
|
|
8500
8475
|
publicPaths.push({
|
|
8476
|
+
compilation,
|
|
8501
8477
|
outputPath,
|
|
8502
|
-
|
|
8503
|
-
|
|
8478
|
+
outputFileSystem,
|
|
8479
|
+
publicPath
|
|
8504
8480
|
});
|
|
8505
8481
|
}
|
|
8506
8482
|
return publicPaths;
|
|
@@ -8526,70 +8502,115 @@ const utils_memorize = memorize;
|
|
|
8526
8502
|
function decode(input) {
|
|
8527
8503
|
return node_querystring.unescape(input);
|
|
8528
8504
|
}
|
|
8529
|
-
const memoizedParse = utils_memorize(
|
|
8530
|
-
|
|
8531
|
-
return
|
|
8505
|
+
const memoizedParse = utils_memorize((url)=>{
|
|
8506
|
+
const urlObject = new URL(url, "http://localhost");
|
|
8507
|
+
return {
|
|
8508
|
+
...urlObject,
|
|
8509
|
+
pathname: decode(urlObject.pathname)
|
|
8510
|
+
};
|
|
8532
8511
|
});
|
|
8533
8512
|
const UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
8534
|
-
|
|
8513
|
+
class FilenameError extends Error {
|
|
8514
|
+
constructor(message, code){
|
|
8515
|
+
super(message);
|
|
8516
|
+
this.name = "FilenameError";
|
|
8517
|
+
this.statusCode = code;
|
|
8518
|
+
}
|
|
8519
|
+
}
|
|
8520
|
+
function isNotFoundError(error) {
|
|
8521
|
+
switch(error.code){
|
|
8522
|
+
case "ENAMETOOLONG":
|
|
8523
|
+
case "ENOENT":
|
|
8524
|
+
case "ENOTDIR":
|
|
8525
|
+
return true;
|
|
8526
|
+
default:
|
|
8527
|
+
return false;
|
|
8528
|
+
}
|
|
8529
|
+
}
|
|
8530
|
+
function getFilenameFromUrl(context, url) {
|
|
8535
8531
|
const { options } = context;
|
|
8536
8532
|
const paths = utils_getPaths(context);
|
|
8537
|
-
|
|
8533
|
+
const index = false === options.index ? [] : void 0 === options.index || true === options.index ? [
|
|
8534
|
+
"index.html"
|
|
8535
|
+
] : [
|
|
8536
|
+
options.index
|
|
8537
|
+
];
|
|
8538
8538
|
let urlObject;
|
|
8539
8539
|
try {
|
|
8540
|
-
urlObject = memoizedParse(url
|
|
8540
|
+
urlObject = memoizedParse(url);
|
|
8541
8541
|
} catch {
|
|
8542
8542
|
return;
|
|
8543
8543
|
}
|
|
8544
|
-
for (const { publicPath, outputPath,
|
|
8544
|
+
for (const { compilation, publicPath, outputPath, outputFileSystem } of paths){
|
|
8545
8545
|
let filename;
|
|
8546
8546
|
let publicPathObject;
|
|
8547
8547
|
try {
|
|
8548
|
-
publicPathObject = memoizedParse("auto" !== publicPath && publicPath ? publicPath : "/"
|
|
8548
|
+
publicPathObject = memoizedParse("auto" !== publicPath && publicPath ? publicPath : "/");
|
|
8549
8549
|
} catch {
|
|
8550
8550
|
continue;
|
|
8551
8551
|
}
|
|
8552
8552
|
const { pathname } = urlObject;
|
|
8553
8553
|
const { pathname: publicPathPathname } = publicPathObject;
|
|
8554
8554
|
if (pathname && publicPathPathname && pathname.startsWith(publicPathPathname)) {
|
|
8555
|
-
if (pathname.includes("\0"))
|
|
8556
|
-
|
|
8557
|
-
return;
|
|
8558
|
-
}
|
|
8559
|
-
if (UP_PATH_REGEXP.test(node_path.normalize(`./${pathname}`))) {
|
|
8560
|
-
extra.errorCode = 403;
|
|
8561
|
-
return;
|
|
8562
|
-
}
|
|
8555
|
+
if (pathname.includes("\0")) throw new FilenameError("Bad Request", 400);
|
|
8556
|
+
if (UP_PATH_REGEXP.test(node_path.normalize(`./${pathname}`))) throw new FilenameError("Forbidden", 403);
|
|
8563
8557
|
filename = node_path.join(outputPath, pathname.slice(publicPathPathname.length));
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
const
|
|
8579
|
-
|
|
8558
|
+
let immutable;
|
|
8559
|
+
const createExtra = (stats)=>({
|
|
8560
|
+
get immutable () {
|
|
8561
|
+
if (void 0 === immutable) {
|
|
8562
|
+
const assetName = pathname.slice(publicPathPathname.length);
|
|
8563
|
+
immutable = Boolean(compilation.getAsset(assetName)?.info?.immutable);
|
|
8564
|
+
}
|
|
8565
|
+
return immutable;
|
|
8566
|
+
},
|
|
8567
|
+
outputFileSystem,
|
|
8568
|
+
stats
|
|
8569
|
+
});
|
|
8570
|
+
const resolveIndex = (filename, visited = new Set())=>{
|
|
8571
|
+
if (0 === index.length) return;
|
|
8572
|
+
const nextFilename = node_path.join(filename, index[0]);
|
|
8573
|
+
if (visited.has(nextFilename)) return;
|
|
8574
|
+
visited.add(nextFilename);
|
|
8575
|
+
filename = nextFilename;
|
|
8576
|
+
let stats;
|
|
8580
8577
|
try {
|
|
8581
|
-
|
|
8582
|
-
} catch
|
|
8583
|
-
|
|
8578
|
+
stats = outputFileSystem.statSync(filename);
|
|
8579
|
+
} catch (error) {
|
|
8580
|
+
if (isNotFoundError(error)) return;
|
|
8581
|
+
throw error;
|
|
8584
8582
|
}
|
|
8585
|
-
if (
|
|
8586
|
-
|
|
8587
|
-
|
|
8583
|
+
if (stats.isDirectory()) return resolveIndex(filename, visited);
|
|
8584
|
+
return {
|
|
8585
|
+
filename,
|
|
8586
|
+
extra: createExtra(stats)
|
|
8587
|
+
};
|
|
8588
|
+
};
|
|
8589
|
+
const resolveFile = (filename)=>{
|
|
8590
|
+
let stats;
|
|
8591
|
+
try {
|
|
8592
|
+
stats = outputFileSystem.statSync(filename);
|
|
8593
|
+
} catch (error) {
|
|
8594
|
+
if (isNotFoundError(error)) return;
|
|
8595
|
+
throw error;
|
|
8588
8596
|
}
|
|
8597
|
+
if (stats.isDirectory()) return resolveIndex(filename);
|
|
8598
|
+
if (filename.endsWith(node_path.sep)) return;
|
|
8599
|
+
return {
|
|
8600
|
+
filename,
|
|
8601
|
+
extra: createExtra(stats)
|
|
8602
|
+
};
|
|
8603
|
+
};
|
|
8604
|
+
if (index.length > 0 && pathname.endsWith("/")) {
|
|
8605
|
+
const result = resolveIndex(filename);
|
|
8606
|
+
if (!result) continue;
|
|
8607
|
+
return result;
|
|
8589
8608
|
}
|
|
8609
|
+
const result = resolveFile(filename);
|
|
8610
|
+
if (!result) continue;
|
|
8611
|
+
return result;
|
|
8590
8612
|
}
|
|
8591
8613
|
}
|
|
8592
|
-
return foundFilename;
|
|
8593
8614
|
}
|
|
8594
8615
|
const utils_getFilenameFromUrl = getFilenameFromUrl;
|
|
8595
8616
|
function parseTokenList(str) {
|
|
@@ -8735,7 +8756,7 @@ function wrapper(context) {
|
|
|
8735
8756
|
setResponseHeader(res, "Content-Length", byteLength);
|
|
8736
8757
|
finish(res, document);
|
|
8737
8758
|
}
|
|
8738
|
-
async function errorHandler(error) {
|
|
8759
|
+
async function errorHandler(error, message, code) {
|
|
8739
8760
|
switch(error.code){
|
|
8740
8761
|
case "ENAMETOOLONG":
|
|
8741
8762
|
case "ENOENT":
|
|
@@ -8745,7 +8766,7 @@ function wrapper(context) {
|
|
|
8745
8766
|
});
|
|
8746
8767
|
break;
|
|
8747
8768
|
default:
|
|
8748
|
-
await sendError(error.message, 500, {
|
|
8769
|
+
await sendError(message || error.message, code || 500, {
|
|
8749
8770
|
modifyResponseData: context.options.modifyResponseData
|
|
8750
8771
|
});
|
|
8751
8772
|
break;
|
|
@@ -8834,17 +8855,19 @@ function wrapper(context) {
|
|
|
8834
8855
|
];
|
|
8835
8856
|
}
|
|
8836
8857
|
async function processRequest() {
|
|
8837
|
-
|
|
8838
|
-
const
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
});
|
|
8858
|
+
let resolved;
|
|
8859
|
+
const requestUrl = getRequestURL(req);
|
|
8860
|
+
try {
|
|
8861
|
+
resolved = utils_getFilenameFromUrl(context, requestUrl);
|
|
8862
|
+
} catch (error) {
|
|
8863
|
+
const errorCode = "object" == typeof error && null !== error && void 0 !== error.statusCode ? error.statusCode : void 0;
|
|
8864
|
+
if (403 === errorCode) context.logger.error(`Malicious path "${requestUrl}".`);
|
|
8865
|
+
await errorHandler(error, 400 === errorCode ? "Bad Request" : 403 === errorCode ? "Forbidden" : void 0, errorCode);
|
|
8844
8866
|
return;
|
|
8845
8867
|
}
|
|
8846
|
-
if (!
|
|
8868
|
+
if (!resolved) return void await goNext();
|
|
8847
8869
|
if (getHeadersSent(res)) return void await goNext();
|
|
8870
|
+
const { extra, filename } = resolved;
|
|
8848
8871
|
const { size } = extra.stats;
|
|
8849
8872
|
let len = size;
|
|
8850
8873
|
let offset = 0;
|
|
@@ -8865,23 +8888,21 @@ function wrapper(context) {
|
|
|
8865
8888
|
}
|
|
8866
8889
|
if (!getResponseHeader(res, "Accept-Ranges")) setResponseHeader(res, "Accept-Ranges", "bytes");
|
|
8867
8890
|
if (!getResponseHeader(res, "Cache-Control")) {
|
|
8868
|
-
const cacheControl = context.options
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
if (
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
setResponseHeader(res, "Cache-Control", cacheControlValue);
|
|
8884
|
-
}
|
|
8891
|
+
const { cacheControl, cacheImmutable } = context.options;
|
|
8892
|
+
const useImmutableCache = true === cacheImmutable && extra.immutable;
|
|
8893
|
+
let cacheControlValue;
|
|
8894
|
+
if (useImmutableCache) cacheControlValue = `public, max-age=${Math.floor(MAX_MAX_AGE / 1000)}, immutable`;
|
|
8895
|
+
else if (true === cacheControl) cacheControlValue = `public, max-age=${Math.floor(MAX_MAX_AGE / 1000)}`;
|
|
8896
|
+
else if ("number" == typeof cacheControl) {
|
|
8897
|
+
const maxAge = Math.min(Math.max(0, cacheControl), MAX_MAX_AGE);
|
|
8898
|
+
cacheControlValue = `public, max-age=${Math.floor(maxAge / 1000)}`;
|
|
8899
|
+
} else if ("string" == typeof cacheControl) cacheControlValue = cacheControl;
|
|
8900
|
+
else if (cacheControl) {
|
|
8901
|
+
const maxAge = void 0 !== cacheControl.maxAge ? Math.min(Math.max(0, cacheControl.maxAge), MAX_MAX_AGE) : MAX_MAX_AGE;
|
|
8902
|
+
cacheControlValue = `public, max-age=${Math.floor(maxAge / 1000)}`;
|
|
8903
|
+
if (cacheControl.immutable) cacheControlValue += ", immutable";
|
|
8904
|
+
}
|
|
8905
|
+
if (cacheControlValue) setResponseHeader(res, "Cache-Control", cacheControlValue);
|
|
8885
8906
|
}
|
|
8886
8907
|
if (context.options.lastModified && !getResponseHeader(res, "Last-Modified")) {
|
|
8887
8908
|
const modified = extra.stats.mtime.toUTCString();
|
|
@@ -8901,7 +8922,7 @@ function wrapper(context) {
|
|
|
8901
8922
|
}
|
|
8902
8923
|
[start, end] = calcStartAndEnd(offset, len);
|
|
8903
8924
|
try {
|
|
8904
|
-
const result = createReadStreamOrReadFileSync(filename,
|
|
8925
|
+
const result = createReadStreamOrReadFileSync(filename, extra.outputFileSystem, start, end);
|
|
8905
8926
|
({ bufferOrStream, byteLength } = result);
|
|
8906
8927
|
} catch (error) {
|
|
8907
8928
|
await errorHandler(error);
|
|
@@ -8963,7 +8984,7 @@ function wrapper(context) {
|
|
|
8963
8984
|
if (!bufferOrStream) {
|
|
8964
8985
|
[start, end] = calcStartAndEnd(offset, len);
|
|
8965
8986
|
try {
|
|
8966
|
-
({ bufferOrStream, byteLength } = createReadStreamOrReadFileSync(filename,
|
|
8987
|
+
({ bufferOrStream, byteLength } = createReadStreamOrReadFileSync(filename, extra.outputFileSystem, start, end));
|
|
8967
8988
|
} catch (error) {
|
|
8968
8989
|
await errorHandler(error);
|
|
8969
8990
|
return;
|
|
@@ -9026,7 +9047,7 @@ function setupHooks(context) {
|
|
|
9026
9047
|
compiler.hooks.done.tap("rspack-dev-middleware", done);
|
|
9027
9048
|
}
|
|
9028
9049
|
const utils_setupHooks = setupHooks;
|
|
9029
|
-
const memfs_lib = __webpack_require__("./node_modules/.pnpm/memfs@4.
|
|
9050
|
+
const memfs_lib = __webpack_require__("./node_modules/.pnpm/memfs@4.57.1_tslib@2.8.1/node_modules/memfs/lib/index.js");
|
|
9030
9051
|
function setupOutputFileSystem(context) {
|
|
9031
9052
|
let outputFileSystem;
|
|
9032
9053
|
if (context.options.outputFileSystem) {
|
|
@@ -9120,7 +9141,7 @@ function rdm(compiler, options = {}) {
|
|
|
9120
9141
|
}
|
|
9121
9142
|
const filledContext = context;
|
|
9122
9143
|
const instance = src_middleware(filledContext);
|
|
9123
|
-
instance.getFilenameFromUrl = (url
|
|
9144
|
+
instance.getFilenameFromUrl = (url)=>utils_getFilenameFromUrl(filledContext, url);
|
|
9124
9145
|
instance.waitUntilValid = (callback = noop)=>{
|
|
9125
9146
|
utils_ready(filledContext, callback);
|
|
9126
9147
|
};
|