@rspack-debug/browser 2.0.0-beta.6 → 2.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Compilation.d.ts +2 -0
- package/dist/builtin-loader/swc/types.d.ts +8 -0
- package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +25 -0
- package/dist/config/devServer.d.ts +15 -22
- package/dist/config/types.d.ts +1 -6
- package/dist/index.js +753 -768
- package/dist/napi-binding.d.ts +28 -11
- package/dist/rslib-runtime.js +5 -8
- package/dist/wasi-worker-browser.mjs +290 -182
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*! LICENSE: wasi-worker-browser.mjs.LICENSE.txt */
|
|
2
2
|
(()=>{
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js" (module) {
|
|
@@ -139,7 +139,6 @@
|
|
|
139
139
|
return module.exports;
|
|
140
140
|
}
|
|
141
141
|
(()=>{
|
|
142
|
-
"use strict";
|
|
143
142
|
var wasi_threads_esm_bundler_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
144
143
|
var _WebAssembly = "u" > typeof WebAssembly ? WebAssembly : "u" > typeof WXWebAssembly ? WXWebAssembly : void 0;
|
|
145
144
|
var wasi_threads_esm_bundler_ENVIRONMENT_IS_NODE = 'object' == typeof wasi_threads_esm_bundler_process && null !== wasi_threads_esm_bundler_process && 'object' == typeof wasi_threads_esm_bundler_process.versions && null !== wasi_threads_esm_bundler_process.versions && 'string' == typeof wasi_threads_esm_bundler_process.versions.node;
|
|
@@ -5346,7 +5345,7 @@
|
|
|
5346
5345
|
if (1 === key_mode) break;
|
|
5347
5346
|
obj = Object.getPrototypeOf(obj);
|
|
5348
5347
|
own = false;
|
|
5349
|
-
}while (obj)
|
|
5348
|
+
}while (obj)
|
|
5350
5349
|
var ret = [];
|
|
5351
5350
|
var addName = function(ret, name, key_filter, conversion_mode) {
|
|
5352
5351
|
if (-1 !== ret.indexOf(name)) return;
|
|
@@ -8245,7 +8244,7 @@
|
|
|
8245
8244
|
const pathString = wasm_util_esm_bundler_decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
8246
8245
|
const fs = getFs(this);
|
|
8247
8246
|
const resolved_path = resolvePathSync(fs, fileDescriptor, pathString, dirflags);
|
|
8248
|
-
const r = fs.openSync(resolved_path, flagsRes,
|
|
8247
|
+
const r = fs.openSync(resolved_path, flagsRes, 0o666);
|
|
8249
8248
|
const filetype = wasi.fds.getFileTypeByFd(r);
|
|
8250
8249
|
if (3 !== filetype && ((2 & o_flags) !== 0 || resolved_path.endsWith('/'))) return 54;
|
|
8251
8250
|
const { base: max_base, inheriting: max_inheriting } = getRights(wasi.fds.stdio, r, flagsRes, filetype);
|
|
@@ -8275,7 +8274,7 @@
|
|
|
8275
8274
|
const pathString = wasm_util_esm_bundler_decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
8276
8275
|
const fs = getFs(this);
|
|
8277
8276
|
const resolved_path = await resolvePathAsync(fs, fileDescriptor, pathString, dirflags);
|
|
8278
|
-
const r = await fs.promises.open(resolved_path, flagsRes,
|
|
8277
|
+
const r = await fs.promises.open(resolved_path, flagsRes, 0o666);
|
|
8279
8278
|
const filetype = await wasi.fds.getFileTypeByFd(r);
|
|
8280
8279
|
if ((2 & o_flags) !== 0 && 3 !== filetype) return 54;
|
|
8281
8280
|
const { base: max_base, inheriting: max_inheriting } = getRights(wasi.fds.stdio, r.fd, flagsRes, filetype);
|
|
@@ -8525,7 +8524,7 @@
|
|
|
8525
8524
|
const _this = new WASI$1(args, env, fds, false, fs);
|
|
8526
8525
|
if (preopens.length > 0) for(let i = 0; i < preopens.length; ++i){
|
|
8527
8526
|
const realPath = fs.realpathSync(preopens[i].realPath, 'utf8');
|
|
8528
|
-
const fd = fs.openSync(realPath, 'r',
|
|
8527
|
+
const fd = fs.openSync(realPath, 'r', 0o666);
|
|
8529
8528
|
fds.insertPreopen(fd, preopens[i].mappedPath, realPath);
|
|
8530
8529
|
}
|
|
8531
8530
|
return _this;
|
|
@@ -8543,7 +8542,7 @@
|
|
|
8543
8542
|
if (preopens.length > 0) for(let i = 0; i < preopens.length; ++i){
|
|
8544
8543
|
const entry = preopens[i];
|
|
8545
8544
|
const realPath = await fs.promises.realpath(entry.realPath);
|
|
8546
|
-
const fd = await fs.promises.open(realPath, 'r',
|
|
8545
|
+
const fd = await fs.promises.open(realPath, 'r', 0o666);
|
|
8547
8546
|
await fds.insertPreopen(fd, entry.mappedPath, realPath);
|
|
8548
8547
|
}
|
|
8549
8548
|
return _this;
|
|
@@ -10383,13 +10382,13 @@
|
|
|
10383
10382
|
function requireBuffer$1() {
|
|
10384
10383
|
if (hasRequiredBuffer$1) return buffer$1;
|
|
10385
10384
|
hasRequiredBuffer$1 = 1;
|
|
10386
|
-
(function(exports) {
|
|
10387
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10385
|
+
(function(exports$1) {
|
|
10386
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
10388
10387
|
value: true
|
|
10389
10388
|
});
|
|
10390
|
-
exports.Buffer = void 0;
|
|
10389
|
+
exports$1.Buffer = void 0;
|
|
10391
10390
|
var node_buffer_1 = require$$0$2;
|
|
10392
|
-
Object.defineProperty(exports, "Buffer", {
|
|
10391
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
10393
10392
|
enumerable: true,
|
|
10394
10393
|
get: function() {
|
|
10395
10394
|
return node_buffer_1.Buffer;
|
|
@@ -10402,13 +10401,13 @@
|
|
|
10402
10401
|
function requireBuffer() {
|
|
10403
10402
|
if (hasRequiredBuffer) return buffer$2;
|
|
10404
10403
|
hasRequiredBuffer = 1;
|
|
10405
|
-
(function(exports) {
|
|
10406
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10404
|
+
(function(exports$1) {
|
|
10405
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
10407
10406
|
value: true
|
|
10408
10407
|
});
|
|
10409
|
-
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
10408
|
+
exports$1.bufferFrom = exports$1.bufferAllocUnsafe = exports$1.Buffer = void 0;
|
|
10410
10409
|
const buffer_1 = requireBuffer$1();
|
|
10411
|
-
Object.defineProperty(exports, "Buffer", {
|
|
10410
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
10412
10411
|
enumerable: true,
|
|
10413
10412
|
get: function() {
|
|
10414
10413
|
return buffer_1.Buffer;
|
|
@@ -10418,9 +10417,9 @@
|
|
|
10418
10417
|
return new buffer_1.Buffer(arg0, ...args);
|
|
10419
10418
|
}
|
|
10420
10419
|
const bufferAllocUnsafe = buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
|
|
10421
|
-
exports.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
10420
|
+
exports$1.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
10422
10421
|
const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
10423
|
-
exports.bufferFrom = bufferFrom;
|
|
10422
|
+
exports$1.bufferFrom = bufferFrom;
|
|
10424
10423
|
})(buffer$2);
|
|
10425
10424
|
return buffer$2;
|
|
10426
10425
|
}
|
|
@@ -10509,13 +10508,13 @@
|
|
|
10509
10508
|
function requireErrors$1() {
|
|
10510
10509
|
if (hasRequiredErrors$1) return errors$1;
|
|
10511
10510
|
hasRequiredErrors$1 = 1;
|
|
10512
|
-
(function(exports) {
|
|
10513
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10511
|
+
(function(exports$1) {
|
|
10512
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
10514
10513
|
value: true
|
|
10515
10514
|
});
|
|
10516
|
-
exports.AssertionError = exports.RangeError = exports.TypeError = exports.Error = void 0;
|
|
10517
|
-
exports.message = message;
|
|
10518
|
-
exports.E = E;
|
|
10515
|
+
exports$1.AssertionError = exports$1.RangeError = exports$1.TypeError = exports$1.Error = void 0;
|
|
10516
|
+
exports$1.message = message;
|
|
10517
|
+
exports$1.E = E;
|
|
10519
10518
|
const util_1 = requireUtil$4();
|
|
10520
10519
|
const kCode = "u" < typeof Symbol ? '_kCode' : Symbol('code');
|
|
10521
10520
|
const messages = {};
|
|
@@ -10532,7 +10531,7 @@
|
|
|
10532
10531
|
const g = "u" > typeof globalThis ? globalThis : commonjsGlobal;
|
|
10533
10532
|
class AssertionError extends g.Error {
|
|
10534
10533
|
constructor(options){
|
|
10535
|
-
if ('object' != typeof options || null === options) throw new exports.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
10534
|
+
if ('object' != typeof options || null === options) throw new exports$1.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
10536
10535
|
if (options.message) super(options.message);
|
|
10537
10536
|
else super(`${(0, util_1.inspect)(options.actual).slice(0, 128)} ${options.operator} ${(0, util_1.inspect)(options.expected).slice(0, 128)}`);
|
|
10538
10537
|
this.generatedMessage = !options.message;
|
|
@@ -10541,14 +10540,14 @@
|
|
|
10541
10540
|
this.actual = options.actual;
|
|
10542
10541
|
this.expected = options.expected;
|
|
10543
10542
|
this.operator = options.operator;
|
|
10544
|
-
exports.Error.captureStackTrace(this, options.stackStartFunction);
|
|
10543
|
+
exports$1.Error.captureStackTrace(this, options.stackStartFunction);
|
|
10545
10544
|
}
|
|
10546
10545
|
}
|
|
10547
|
-
exports.AssertionError = AssertionError;
|
|
10546
|
+
exports$1.AssertionError = AssertionError;
|
|
10548
10547
|
function message(key, args) {
|
|
10549
|
-
if ('string' != typeof key) throw new exports.Error('Error message key must be a string');
|
|
10548
|
+
if ('string' != typeof key) throw new exports$1.Error('Error message key must be a string');
|
|
10550
10549
|
const msg = messages[key];
|
|
10551
|
-
if (!msg) throw new exports.Error(`An invalid error message key was used: ${key}.`);
|
|
10550
|
+
if (!msg) throw new exports$1.Error(`An invalid error message key was used: ${key}.`);
|
|
10552
10551
|
let fmt;
|
|
10553
10552
|
if ('function' == typeof msg) fmt = msg;
|
|
10554
10553
|
else {
|
|
@@ -10561,9 +10560,9 @@
|
|
|
10561
10560
|
function E(sym, val) {
|
|
10562
10561
|
messages[sym] = 'function' == typeof val ? val : String(val);
|
|
10563
10562
|
}
|
|
10564
|
-
exports.Error = makeNodeError(g.Error);
|
|
10565
|
-
exports.TypeError = makeNodeError(g.TypeError);
|
|
10566
|
-
exports.RangeError = makeNodeError(g.RangeError);
|
|
10563
|
+
exports$1.Error = makeNodeError(g.Error);
|
|
10564
|
+
exports$1.TypeError = makeNodeError(g.TypeError);
|
|
10565
|
+
exports$1.RangeError = makeNodeError(g.RangeError);
|
|
10567
10566
|
E('ERR_DIR_CLOSED', 'Directory handle was closed');
|
|
10568
10567
|
E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent asynchronous operations');
|
|
10569
10568
|
E('ERR_INVALID_FILE_URL_HOST', 'File URL host must be "localhost" or empty on %s');
|
|
@@ -10578,21 +10577,21 @@
|
|
|
10578
10577
|
function requireEncoding() {
|
|
10579
10578
|
if (hasRequiredEncoding) return fs_encoding;
|
|
10580
10579
|
hasRequiredEncoding = 1;
|
|
10581
|
-
(function(exports) {
|
|
10582
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10580
|
+
(function(exports$1) {
|
|
10581
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
10583
10582
|
value: true
|
|
10584
10583
|
});
|
|
10585
|
-
exports.ENCODING_UTF8 = void 0;
|
|
10586
|
-
exports.assertEncoding = assertEncoding;
|
|
10587
|
-
exports.strToEncoding = strToEncoding;
|
|
10584
|
+
exports$1.ENCODING_UTF8 = void 0;
|
|
10585
|
+
exports$1.assertEncoding = assertEncoding;
|
|
10586
|
+
exports$1.strToEncoding = strToEncoding;
|
|
10588
10587
|
const buffer_1 = requireBuffer();
|
|
10589
10588
|
const errors = requireErrors$1();
|
|
10590
|
-
exports.ENCODING_UTF8 = 'utf8';
|
|
10589
|
+
exports$1.ENCODING_UTF8 = 'utf8';
|
|
10591
10590
|
function assertEncoding(encoding) {
|
|
10592
10591
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
10593
10592
|
}
|
|
10594
10593
|
function strToEncoding(str, encoding) {
|
|
10595
|
-
if (!encoding || encoding === exports.ENCODING_UTF8) return str;
|
|
10594
|
+
if (!encoding || encoding === exports$1.ENCODING_UTF8) return str;
|
|
10596
10595
|
if ('buffer' === encoding) return new buffer_1.Buffer(str);
|
|
10597
10596
|
return new buffer_1.Buffer(str).toString(encoding);
|
|
10598
10597
|
}
|
|
@@ -11126,61 +11125,61 @@
|
|
|
11126
11125
|
function requirePath() {
|
|
11127
11126
|
if (hasRequiredPath) return fs_path;
|
|
11128
11127
|
hasRequiredPath = 1;
|
|
11129
|
-
(function(exports) {
|
|
11130
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11128
|
+
(function(exports$1) {
|
|
11129
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
11131
11130
|
value: true
|
|
11132
11131
|
});
|
|
11133
|
-
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
11132
|
+
exports$1.basename = exports$1.isAbsolute = exports$1.normalize = exports$1.dirname = exports$1.relative = exports$1.join = exports$1.posix = exports$1.sep = exports$1.resolve = void 0;
|
|
11134
11133
|
var node_path_1 = requirePathBrowserify();
|
|
11135
|
-
Object.defineProperty(exports, "resolve", {
|
|
11134
|
+
Object.defineProperty(exports$1, "resolve", {
|
|
11136
11135
|
enumerable: true,
|
|
11137
11136
|
get: function() {
|
|
11138
11137
|
return node_path_1.resolve;
|
|
11139
11138
|
}
|
|
11140
11139
|
});
|
|
11141
|
-
Object.defineProperty(exports, "sep", {
|
|
11140
|
+
Object.defineProperty(exports$1, "sep", {
|
|
11142
11141
|
enumerable: true,
|
|
11143
11142
|
get: function() {
|
|
11144
11143
|
return node_path_1.sep;
|
|
11145
11144
|
}
|
|
11146
11145
|
});
|
|
11147
|
-
Object.defineProperty(exports, "posix", {
|
|
11146
|
+
Object.defineProperty(exports$1, "posix", {
|
|
11148
11147
|
enumerable: true,
|
|
11149
11148
|
get: function() {
|
|
11150
11149
|
return node_path_1.posix;
|
|
11151
11150
|
}
|
|
11152
11151
|
});
|
|
11153
|
-
Object.defineProperty(exports, "join", {
|
|
11152
|
+
Object.defineProperty(exports$1, "join", {
|
|
11154
11153
|
enumerable: true,
|
|
11155
11154
|
get: function() {
|
|
11156
11155
|
return node_path_1.join;
|
|
11157
11156
|
}
|
|
11158
11157
|
});
|
|
11159
|
-
Object.defineProperty(exports, "relative", {
|
|
11158
|
+
Object.defineProperty(exports$1, "relative", {
|
|
11160
11159
|
enumerable: true,
|
|
11161
11160
|
get: function() {
|
|
11162
11161
|
return node_path_1.relative;
|
|
11163
11162
|
}
|
|
11164
11163
|
});
|
|
11165
|
-
Object.defineProperty(exports, "dirname", {
|
|
11164
|
+
Object.defineProperty(exports$1, "dirname", {
|
|
11166
11165
|
enumerable: true,
|
|
11167
11166
|
get: function() {
|
|
11168
11167
|
return node_path_1.dirname;
|
|
11169
11168
|
}
|
|
11170
11169
|
});
|
|
11171
|
-
Object.defineProperty(exports, "normalize", {
|
|
11170
|
+
Object.defineProperty(exports$1, "normalize", {
|
|
11172
11171
|
enumerable: true,
|
|
11173
11172
|
get: function() {
|
|
11174
11173
|
return node_path_1.normalize;
|
|
11175
11174
|
}
|
|
11176
11175
|
});
|
|
11177
|
-
Object.defineProperty(exports, "isAbsolute", {
|
|
11176
|
+
Object.defineProperty(exports$1, "isAbsolute", {
|
|
11178
11177
|
enumerable: true,
|
|
11179
11178
|
get: function() {
|
|
11180
11179
|
return node_path_1.isAbsolute;
|
|
11181
11180
|
}
|
|
11182
11181
|
});
|
|
11183
|
-
Object.defineProperty(exports, "basename", {
|
|
11182
|
+
Object.defineProperty(exports$1, "basename", {
|
|
11184
11183
|
enumerable: true,
|
|
11185
11184
|
get: function() {
|
|
11186
11185
|
return node_path_1.basename;
|
|
@@ -11860,14 +11859,18 @@
|
|
|
11860
11859
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } = constants_1.constants;
|
|
11861
11860
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
11862
11861
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
11862
|
+
const EMPTY_BUFFER = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
11863
11863
|
let Node$1 = class {
|
|
11864
|
-
constructor(ino, mode =
|
|
11864
|
+
constructor(ino, mode = 0o666){
|
|
11865
11865
|
this.changes = new fanout_1.FanOut();
|
|
11866
11866
|
this._uid = getuid();
|
|
11867
11867
|
this._gid = getgid();
|
|
11868
11868
|
this._atime = new Date();
|
|
11869
11869
|
this._mtime = new Date();
|
|
11870
11870
|
this._ctime = new Date();
|
|
11871
|
+
this.buf = EMPTY_BUFFER;
|
|
11872
|
+
this.capacity = 0;
|
|
11873
|
+
this.size = 0;
|
|
11871
11874
|
this.rdev = 0;
|
|
11872
11875
|
this._nlink = 1;
|
|
11873
11876
|
this.mode = mode;
|
|
@@ -11925,20 +11928,26 @@
|
|
|
11925
11928
|
return this.getBuffer().toString(encoding);
|
|
11926
11929
|
}
|
|
11927
11930
|
setString(str) {
|
|
11928
|
-
this.
|
|
11929
|
-
this.touch();
|
|
11931
|
+
this._setBuf((0, buffer_1.bufferFrom)(str, 'utf8'));
|
|
11930
11932
|
}
|
|
11931
11933
|
getBuffer() {
|
|
11932
11934
|
this.atime = new Date();
|
|
11933
11935
|
if (!this.buf) this.buf = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
11934
|
-
return (0, buffer_1.bufferFrom)(this.buf);
|
|
11936
|
+
return (0, buffer_1.bufferFrom)(this.buf.subarray(0, this.size));
|
|
11935
11937
|
}
|
|
11936
11938
|
setBuffer(buf) {
|
|
11937
|
-
|
|
11939
|
+
const copy = (0, buffer_1.bufferFrom)(buf);
|
|
11940
|
+
this._setBuf(copy);
|
|
11941
|
+
}
|
|
11942
|
+
_setBuf(buf) {
|
|
11943
|
+
const size = buf.length;
|
|
11944
|
+
this.buf = buf;
|
|
11945
|
+
this.capacity = size;
|
|
11946
|
+
this.size = size;
|
|
11938
11947
|
this.touch();
|
|
11939
11948
|
}
|
|
11940
11949
|
getSize() {
|
|
11941
|
-
return this.
|
|
11950
|
+
return this.size;
|
|
11942
11951
|
}
|
|
11943
11952
|
setModeProperty(property) {
|
|
11944
11953
|
this.mode = property;
|
|
@@ -11956,42 +11965,60 @@
|
|
|
11956
11965
|
return (this.mode & S_IFMT) === S_IFCHR;
|
|
11957
11966
|
}
|
|
11958
11967
|
makeSymlink(symlink) {
|
|
11959
|
-
this.mode =
|
|
11968
|
+
this.mode = 0o666 | S_IFLNK;
|
|
11960
11969
|
this.symlink = symlink;
|
|
11961
11970
|
}
|
|
11962
11971
|
write(buf, off = 0, len = buf.length, pos = 0) {
|
|
11963
|
-
|
|
11964
|
-
if (
|
|
11965
|
-
|
|
11966
|
-
|
|
11972
|
+
const bufLength = buf.length;
|
|
11973
|
+
if (off + len > bufLength) len = bufLength - off;
|
|
11974
|
+
if (len <= 0) return 0;
|
|
11975
|
+
const requiredSize = pos + len;
|
|
11976
|
+
if (requiredSize > this.capacity) {
|
|
11977
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
11978
|
+
while(newCapacity < requiredSize)newCapacity *= 2;
|
|
11979
|
+
const newBuf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
11980
|
+
if (this.size > 0) this.buf.copy(newBuf, 0, 0, this.size);
|
|
11967
11981
|
this.buf = newBuf;
|
|
11982
|
+
this.capacity = newCapacity;
|
|
11968
11983
|
}
|
|
11984
|
+
if (pos > this.size) this.buf.fill(0, this.size, pos);
|
|
11969
11985
|
buf.copy(this.buf, pos, off, off + len);
|
|
11986
|
+
if (requiredSize > this.size) this.size = requiredSize;
|
|
11970
11987
|
this.touch();
|
|
11971
11988
|
return len;
|
|
11972
11989
|
}
|
|
11973
11990
|
read(buf, off = 0, len = buf.byteLength, pos = 0) {
|
|
11974
11991
|
this.atime = new Date();
|
|
11975
|
-
if (
|
|
11976
|
-
if (pos >= this.buf.length) return 0;
|
|
11992
|
+
if (pos >= this.size) return 0;
|
|
11977
11993
|
let actualLen = len;
|
|
11978
11994
|
if (actualLen > buf.byteLength) actualLen = buf.byteLength;
|
|
11979
|
-
if (actualLen + pos > this.
|
|
11995
|
+
if (actualLen + pos > this.size) actualLen = this.size - pos;
|
|
11996
|
+
if (actualLen <= 0) return 0;
|
|
11980
11997
|
const buf2 = buf instanceof buffer_1.Buffer ? buf : buffer_1.Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
11981
11998
|
this.buf.copy(buf2, off, pos, pos + actualLen);
|
|
11982
11999
|
return actualLen;
|
|
11983
12000
|
}
|
|
11984
12001
|
truncate(len = 0) {
|
|
11985
|
-
if (len) {
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
11990
|
-
|
|
11991
|
-
|
|
12002
|
+
if (!len) {
|
|
12003
|
+
this.buf = EMPTY_BUFFER;
|
|
12004
|
+
this.capacity = 0;
|
|
12005
|
+
this.size = 0;
|
|
12006
|
+
this.touch();
|
|
12007
|
+
return;
|
|
12008
|
+
}
|
|
12009
|
+
if (len <= this.size) this.size = len;
|
|
12010
|
+
else {
|
|
12011
|
+
if (len > this.capacity) {
|
|
12012
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
12013
|
+
while(newCapacity < len)newCapacity *= 2;
|
|
12014
|
+
const buf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
12015
|
+
if (this.size > 0) this.buf.copy(buf, 0, 0, this.size);
|
|
12016
|
+
buf.fill(0, this.size, len);
|
|
11992
12017
|
this.buf = buf;
|
|
11993
|
-
|
|
11994
|
-
|
|
12018
|
+
this.capacity = newCapacity;
|
|
12019
|
+
} else this.buf.fill(0, this.size, len);
|
|
12020
|
+
this.size = len;
|
|
12021
|
+
}
|
|
11995
12022
|
this.touch();
|
|
11996
12023
|
}
|
|
11997
12024
|
chmod(perm) {
|
|
@@ -12101,7 +12128,7 @@
|
|
|
12101
12128
|
getNode() {
|
|
12102
12129
|
return this.node;
|
|
12103
12130
|
}
|
|
12104
|
-
createChild(name, node = this.vol.createNode(
|
|
12131
|
+
createChild(name, node = this.vol.createNode(0o666 | S_IFREG)) {
|
|
12105
12132
|
const link = new Link(this.vol, this, name);
|
|
12106
12133
|
link.setNode(node);
|
|
12107
12134
|
if (node.isDirectory()) {
|
|
@@ -12305,25 +12332,25 @@
|
|
|
12305
12332
|
function requireUtil$3() {
|
|
12306
12333
|
if (hasRequiredUtil$3) return util$2;
|
|
12307
12334
|
hasRequiredUtil$3 = 1;
|
|
12308
|
-
(function(exports) {
|
|
12309
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12335
|
+
(function(exports$1) {
|
|
12336
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
12310
12337
|
value: true
|
|
12311
12338
|
});
|
|
12312
|
-
exports.filenameToSteps = exports.resolve = exports.unixify = exports.isWin = void 0;
|
|
12313
|
-
exports.isFd = isFd;
|
|
12314
|
-
exports.validateFd = validateFd;
|
|
12315
|
-
exports.dataToBuffer = dataToBuffer;
|
|
12339
|
+
exports$1.filenameToSteps = exports$1.resolve = exports$1.unixify = exports$1.isWin = void 0;
|
|
12340
|
+
exports$1.isFd = isFd;
|
|
12341
|
+
exports$1.validateFd = validateFd;
|
|
12342
|
+
exports$1.dataToBuffer = dataToBuffer;
|
|
12316
12343
|
const path_1 = requirePath();
|
|
12317
12344
|
const buffer_1 = requireBuffer();
|
|
12318
12345
|
const process_1 = requireProcess();
|
|
12319
12346
|
const encoding_1 = requireEncoding();
|
|
12320
12347
|
const constants_1 = requireConstants();
|
|
12321
|
-
exports.isWin = 'win32' === process_1.default.platform;
|
|
12348
|
+
exports$1.isWin = 'win32' === process_1.default.platform;
|
|
12322
12349
|
const resolveCrossPlatform = path_1.resolve;
|
|
12323
12350
|
const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
12324
12351
|
const isSeparator = (str, i)=>{
|
|
12325
12352
|
let char = str[i];
|
|
12326
|
-
return i > 0 && ('/' === char || exports.isWin && '\\' === char);
|
|
12353
|
+
return i > 0 && ('/' === char || exports$1.isWin && '\\' === char);
|
|
12327
12354
|
};
|
|
12328
12355
|
const removeTrailingSeparator = (str)=>{
|
|
12329
12356
|
let i = str.length - 1;
|
|
@@ -12338,18 +12365,18 @@
|
|
|
12338
12365
|
return str;
|
|
12339
12366
|
};
|
|
12340
12367
|
const unixify = (filepath, stripTrailing = true)=>{
|
|
12341
|
-
if (exports.isWin) {
|
|
12368
|
+
if (exports$1.isWin) {
|
|
12342
12369
|
filepath = normalizePath(filepath, stripTrailing);
|
|
12343
12370
|
return filepath.replace(/^([a-zA-Z]+:|\.\/)/, '');
|
|
12344
12371
|
}
|
|
12345
12372
|
return filepath;
|
|
12346
12373
|
};
|
|
12347
|
-
exports.unixify = unixify;
|
|
12374
|
+
exports$1.unixify = unixify;
|
|
12348
12375
|
let resolve = (filename, base = process_1.default.cwd())=>resolveCrossPlatform(base, filename);
|
|
12349
|
-
exports.resolve = resolve;
|
|
12350
|
-
if (exports.isWin) {
|
|
12376
|
+
exports$1.resolve = resolve;
|
|
12377
|
+
if (exports$1.isWin) {
|
|
12351
12378
|
const _resolve = resolve;
|
|
12352
|
-
exports.resolve = resolve = (filename, base)=>(0, exports.unixify)(_resolve(filename, base));
|
|
12379
|
+
exports$1.resolve = resolve = (filename, base)=>(0, exports$1.unixify)(_resolve(filename, base));
|
|
12353
12380
|
}
|
|
12354
12381
|
const filenameToSteps = (filename, base)=>{
|
|
12355
12382
|
const fullPath = resolve(filename, base);
|
|
@@ -12357,7 +12384,7 @@
|
|
|
12357
12384
|
if (!fullPathSansSlash) return [];
|
|
12358
12385
|
return fullPathSansSlash.split(pathSep);
|
|
12359
12386
|
};
|
|
12360
|
-
exports.filenameToSteps = filenameToSteps;
|
|
12387
|
+
exports$1.filenameToSteps = filenameToSteps;
|
|
12361
12388
|
function isFd(path) {
|
|
12362
12389
|
return path >>> 0 === path;
|
|
12363
12390
|
}
|
|
@@ -12382,9 +12409,9 @@
|
|
|
12382
12409
|
function requirePunycode() {
|
|
12383
12410
|
if (hasRequiredPunycode) return punycode$1.exports;
|
|
12384
12411
|
hasRequiredPunycode = 1;
|
|
12385
|
-
(function(module, exports) {
|
|
12412
|
+
(function(module, exports$1) {
|
|
12386
12413
|
(function(root) {
|
|
12387
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
12414
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
12388
12415
|
var freeModule = module && !module.nodeType && module;
|
|
12389
12416
|
var freeGlobal = 'object' == typeof commonjsGlobal && commonjsGlobal;
|
|
12390
12417
|
if (freeGlobal.undefined === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) root = freeGlobal;
|
|
@@ -15579,7 +15606,7 @@
|
|
|
15579
15606
|
this.closeFile(file);
|
|
15580
15607
|
};
|
|
15581
15608
|
const root = this.createLink();
|
|
15582
|
-
root.setNode(this.createNode(
|
|
15609
|
+
root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
15583
15610
|
root.setChild('.', root);
|
|
15584
15611
|
root.getNode().nlink++;
|
|
15585
15612
|
root.setChild('..', root);
|
|
@@ -15589,7 +15616,7 @@
|
|
|
15589
15616
|
createLink(parent, name, isDirectory = false, mode) {
|
|
15590
15617
|
if (!parent) return new Link_1.Link(this, void 0, '');
|
|
15591
15618
|
if (!name) throw new Error('createLink: name cannot be empty');
|
|
15592
|
-
const finalPerm = mode ?? (isDirectory ?
|
|
15619
|
+
const finalPerm = mode ?? (isDirectory ? 0o777 : 0o666);
|
|
15593
15620
|
const hasFileType = mode && mode & constants_1.constants.S_IFMT;
|
|
15594
15621
|
const modeType = hasFileType ? mode & constants_1.constants.S_IFMT : isDirectory ? constants_1.constants.S_IFDIR : constants_1.constants.S_IFREG;
|
|
15595
15622
|
const finalMode = finalPerm & ~constants_1.constants.S_IFMT | modeType;
|
|
@@ -15769,7 +15796,7 @@
|
|
|
15769
15796
|
this.releasedFds = [];
|
|
15770
15797
|
this.openFiles = 0;
|
|
15771
15798
|
this.root = this.createLink();
|
|
15772
|
-
this.root.setNode(this.createNode(
|
|
15799
|
+
this.root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
15773
15800
|
}
|
|
15774
15801
|
mountSync(mountpoint, json) {
|
|
15775
15802
|
this.fromJSON(json, mountpoint);
|
|
@@ -15807,7 +15834,7 @@
|
|
|
15807
15834
|
const dirNode = dirLink.getNode();
|
|
15808
15835
|
if (!dirNode.isDirectory()) throw (0, util_1.createError)("ENOTDIR", 'open', filename);
|
|
15809
15836
|
if (!dirNode.canExecute() || !dirNode.canWrite()) throw (0, util_1.createError)("EACCES", 'open', filename);
|
|
15810
|
-
modeNum ?? (modeNum =
|
|
15837
|
+
modeNum ?? (modeNum = 0o666);
|
|
15811
15838
|
link = this.createLink(dirLink, steps[steps.length - 1], false, modeNum);
|
|
15812
15839
|
} else throw err;
|
|
15813
15840
|
}
|
|
@@ -15834,37 +15861,37 @@
|
|
|
15834
15861
|
function requireCore() {
|
|
15835
15862
|
if (hasRequiredCore) return fs_core;
|
|
15836
15863
|
hasRequiredCore = 1;
|
|
15837
|
-
(function(exports) {
|
|
15838
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15864
|
+
(function(exports$1) {
|
|
15865
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
15839
15866
|
value: true
|
|
15840
15867
|
});
|
|
15841
|
-
exports.Superblock = exports.File = exports.Link = exports.Node = void 0;
|
|
15868
|
+
exports$1.Superblock = exports$1.File = exports$1.Link = exports$1.Node = void 0;
|
|
15842
15869
|
const tslib_1 = require$$0$1;
|
|
15843
|
-
tslib_1.__exportStar(requireTypes(), exports);
|
|
15844
|
-
tslib_1.__exportStar(requireJson(), exports);
|
|
15870
|
+
tslib_1.__exportStar(requireTypes(), exports$1);
|
|
15871
|
+
tslib_1.__exportStar(requireJson(), exports$1);
|
|
15845
15872
|
var Node_1 = requireNode();
|
|
15846
|
-
Object.defineProperty(exports, "Node", {
|
|
15873
|
+
Object.defineProperty(exports$1, "Node", {
|
|
15847
15874
|
enumerable: true,
|
|
15848
15875
|
get: function() {
|
|
15849
15876
|
return Node_1.Node;
|
|
15850
15877
|
}
|
|
15851
15878
|
});
|
|
15852
15879
|
var Link_1 = requireLink();
|
|
15853
|
-
Object.defineProperty(exports, "Link", {
|
|
15880
|
+
Object.defineProperty(exports$1, "Link", {
|
|
15854
15881
|
enumerable: true,
|
|
15855
15882
|
get: function() {
|
|
15856
15883
|
return Link_1.Link;
|
|
15857
15884
|
}
|
|
15858
15885
|
});
|
|
15859
15886
|
var File_1 = requireFile();
|
|
15860
|
-
Object.defineProperty(exports, "File", {
|
|
15887
|
+
Object.defineProperty(exports$1, "File", {
|
|
15861
15888
|
enumerable: true,
|
|
15862
15889
|
get: function() {
|
|
15863
15890
|
return File_1.File;
|
|
15864
15891
|
}
|
|
15865
15892
|
});
|
|
15866
15893
|
var Superblock_1 = requireSuperblock();
|
|
15867
|
-
Object.defineProperty(exports, "Superblock", {
|
|
15894
|
+
Object.defineProperty(exports$1, "Superblock", {
|
|
15868
15895
|
enumerable: true,
|
|
15869
15896
|
get: function() {
|
|
15870
15897
|
return Superblock_1.Superblock;
|
|
@@ -17760,7 +17787,7 @@
|
|
|
17760
17787
|
break;
|
|
17761
17788
|
}
|
|
17762
17789
|
++c;
|
|
17763
|
-
}while (null !== (p = p.next))
|
|
17790
|
+
}while (null !== (p = p.next))
|
|
17764
17791
|
this.length -= c;
|
|
17765
17792
|
return ret;
|
|
17766
17793
|
}
|
|
@@ -17788,7 +17815,7 @@
|
|
|
17788
17815
|
break;
|
|
17789
17816
|
}
|
|
17790
17817
|
++c;
|
|
17791
|
-
}while (null !== (p = p.next))
|
|
17818
|
+
}while (null !== (p = p.next))
|
|
17792
17819
|
this.length -= c;
|
|
17793
17820
|
return ret;
|
|
17794
17821
|
}
|
|
@@ -17849,7 +17876,7 @@
|
|
|
17849
17876
|
function requireSafeBuffer() {
|
|
17850
17877
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
17851
17878
|
hasRequiredSafeBuffer = 1;
|
|
17852
|
-
(function(module, exports) {
|
|
17879
|
+
(function(module, exports$1) {
|
|
17853
17880
|
var buffer = require$$0$2;
|
|
17854
17881
|
var Buffer = buffer.Buffer;
|
|
17855
17882
|
function copyProps(src, dst) {
|
|
@@ -17857,8 +17884,8 @@
|
|
|
17857
17884
|
}
|
|
17858
17885
|
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
|
|
17859
17886
|
else {
|
|
17860
|
-
copyProps(buffer, exports);
|
|
17861
|
-
exports.Buffer = SafeBuffer;
|
|
17887
|
+
copyProps(buffer, exports$1);
|
|
17888
|
+
exports$1.Buffer = SafeBuffer;
|
|
17862
17889
|
}
|
|
17863
17890
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
17864
17891
|
return Buffer(arg, encodingOrOffset, length);
|
|
@@ -19324,7 +19351,7 @@
|
|
|
19324
19351
|
buffered[i++] = null;
|
|
19325
19352
|
const len = objectMode ? 1 : chunk.length;
|
|
19326
19353
|
doWrite(stream, state, false, len, chunk, encoding, callback);
|
|
19327
|
-
}while (i < buffered.length && !state.writing)
|
|
19354
|
+
}while (i < buffered.length && !state.writing)
|
|
19328
19355
|
if (i === buffered.length) resetBuffer(state);
|
|
19329
19356
|
else if (i > 256) {
|
|
19330
19357
|
buffered.splice(0, i);
|
|
@@ -20979,19 +21006,19 @@
|
|
|
20979
21006
|
function requireStream() {
|
|
20980
21007
|
if (hasRequiredStream) return stream$1;
|
|
20981
21008
|
hasRequiredStream = 1;
|
|
20982
|
-
(function(exports) {
|
|
20983
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21009
|
+
(function(exports$1) {
|
|
21010
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
20984
21011
|
value: true
|
|
20985
21012
|
});
|
|
20986
|
-
exports.Writable = exports.Readable = void 0;
|
|
21013
|
+
exports$1.Writable = exports$1.Readable = void 0;
|
|
20987
21014
|
var node_stream_1 = requireBrowser();
|
|
20988
|
-
Object.defineProperty(exports, "Readable", {
|
|
21015
|
+
Object.defineProperty(exports$1, "Readable", {
|
|
20989
21016
|
enumerable: true,
|
|
20990
21017
|
get: function() {
|
|
20991
21018
|
return node_stream_1.Readable;
|
|
20992
21019
|
}
|
|
20993
21020
|
});
|
|
20994
|
-
Object.defineProperty(exports, "Writable", {
|
|
21021
|
+
Object.defineProperty(exports$1, "Writable", {
|
|
20995
21022
|
enumerable: true,
|
|
20996
21023
|
get: function() {
|
|
20997
21024
|
return node_stream_1.Writable;
|
|
@@ -21005,13 +21032,13 @@
|
|
|
21005
21032
|
function requireEvents() {
|
|
21006
21033
|
if (hasRequiredEvents) return fs_events;
|
|
21007
21034
|
hasRequiredEvents = 1;
|
|
21008
|
-
(function(exports) {
|
|
21009
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21035
|
+
(function(exports$1) {
|
|
21036
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
21010
21037
|
value: true
|
|
21011
21038
|
});
|
|
21012
|
-
exports.EventEmitter = void 0;
|
|
21039
|
+
exports$1.EventEmitter = void 0;
|
|
21013
21040
|
var node_events_1 = requireEvents$1();
|
|
21014
|
-
Object.defineProperty(exports, "EventEmitter", {
|
|
21041
|
+
Object.defineProperty(exports$1, "EventEmitter", {
|
|
21015
21042
|
enumerable: true,
|
|
21016
21043
|
get: function() {
|
|
21017
21044
|
return node_events_1.EventEmitter;
|
|
@@ -21429,14 +21456,14 @@
|
|
|
21429
21456
|
function requireLib$2() {
|
|
21430
21457
|
if (hasRequiredLib$2) return lib$1;
|
|
21431
21458
|
hasRequiredLib$2 = 1;
|
|
21432
|
-
(function(exports) {
|
|
21433
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21459
|
+
(function(exports$1) {
|
|
21460
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
21434
21461
|
value: true
|
|
21435
21462
|
});
|
|
21436
21463
|
const tslib_1 = require$$0$1;
|
|
21437
|
-
tslib_1.__exportStar(requirePrintTree(), exports);
|
|
21438
|
-
tslib_1.__exportStar(requirePrintBinary(), exports);
|
|
21439
|
-
tslib_1.__exportStar(requirePrintJson(), exports);
|
|
21464
|
+
tslib_1.__exportStar(requirePrintTree(), exports$1);
|
|
21465
|
+
tslib_1.__exportStar(requirePrintBinary(), exports$1);
|
|
21466
|
+
tslib_1.__exportStar(requirePrintJson(), exports$1);
|
|
21440
21467
|
})(lib$1);
|
|
21441
21468
|
return lib$1;
|
|
21442
21469
|
}
|
|
@@ -21484,11 +21511,11 @@
|
|
|
21484
21511
|
function requirePrint() {
|
|
21485
21512
|
if (hasRequiredPrint) return fs_print;
|
|
21486
21513
|
hasRequiredPrint = 1;
|
|
21487
|
-
(function(exports) {
|
|
21488
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21514
|
+
(function(exports$1) {
|
|
21515
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
21489
21516
|
value: true
|
|
21490
21517
|
});
|
|
21491
|
-
exports.toTreeSync = void 0;
|
|
21518
|
+
exports$1.toTreeSync = void 0;
|
|
21492
21519
|
const tree_dump_1 = requireLib$2();
|
|
21493
21520
|
const util_1 = requireUtil();
|
|
21494
21521
|
const toTreeSync = (fs, opts = {})=>{
|
|
@@ -21497,13 +21524,20 @@
|
|
|
21497
21524
|
if (dir[dir.length - 1] !== separator) dir += separator;
|
|
21498
21525
|
const tab = opts.tab || '';
|
|
21499
21526
|
const depth = opts.depth ?? 10;
|
|
21527
|
+
const sort = opts.sort ?? true;
|
|
21500
21528
|
let subtree = ' (...)';
|
|
21501
21529
|
if (depth > 0) {
|
|
21502
21530
|
const list = fs.readdirSync(dir, {
|
|
21503
21531
|
withFileTypes: true
|
|
21504
21532
|
});
|
|
21533
|
+
if (sort) list.sort((a, b)=>{
|
|
21534
|
+
if (a.isDirectory() && b.isDirectory()) return a.name.toString().localeCompare(b.name.toString());
|
|
21535
|
+
if (a.isDirectory()) return -1;
|
|
21536
|
+
if (b.isDirectory()) return 1;
|
|
21537
|
+
return a.name.toString().localeCompare(b.name.toString());
|
|
21538
|
+
});
|
|
21505
21539
|
subtree = (0, tree_dump_1.printTree)(tab, list.map((entry)=>(tab)=>{
|
|
21506
|
-
if (entry.isDirectory()) return (0, exports.toTreeSync)(fs, {
|
|
21540
|
+
if (entry.isDirectory()) return (0, exports$1.toTreeSync)(fs, {
|
|
21507
21541
|
dir: dir + entry.name,
|
|
21508
21542
|
depth: depth - 1,
|
|
21509
21543
|
tab
|
|
@@ -21515,7 +21549,7 @@
|
|
|
21515
21549
|
const base = (0, util_1.basename)(dir, separator) + separator;
|
|
21516
21550
|
return base + subtree;
|
|
21517
21551
|
};
|
|
21518
|
-
exports.toTreeSync = toTreeSync;
|
|
21552
|
+
exports$1.toTreeSync = toTreeSync;
|
|
21519
21553
|
})(fs_print);
|
|
21520
21554
|
return fs_print;
|
|
21521
21555
|
}
|
|
@@ -21524,14 +21558,14 @@
|
|
|
21524
21558
|
function requireOptions() {
|
|
21525
21559
|
if (hasRequiredOptions) return fs_options;
|
|
21526
21560
|
hasRequiredOptions = 1;
|
|
21527
|
-
(function(exports) {
|
|
21528
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21561
|
+
(function(exports$1) {
|
|
21562
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
21529
21563
|
value: true
|
|
21530
21564
|
});
|
|
21531
|
-
exports.getWriteFileOptions = exports.writeFileDefaults = exports.getRealpathOptsAndCb = exports.getRealpathOptions = exports.getStatfsOptsAndCb = exports.getStatfsOptions = exports.getStatOptsAndCb = exports.getStatOptions = exports.getAppendFileOptsAndCb = exports.getAppendFileOpts = exports.getOpendirOptsAndCb = exports.getOpendirOptions = exports.getReaddirOptsAndCb = exports.getReaddirOptions = exports.getReadFileOptions = exports.getRmOptsAndCb = exports.getRmdirOptions = exports.getDefaultOptsAndCb = exports.getDefaultOpts = exports.optsDefaults = exports.getMkdirOptions = void 0;
|
|
21532
|
-
exports.getOptions = getOptions;
|
|
21533
|
-
exports.optsGenerator = optsGenerator;
|
|
21534
|
-
exports.optsAndCbGenerator = optsAndCbGenerator;
|
|
21565
|
+
exports$1.getWriteFileOptions = exports$1.writeFileDefaults = exports$1.getRealpathOptsAndCb = exports$1.getRealpathOptions = exports$1.getStatfsOptsAndCb = exports$1.getStatfsOptions = exports$1.getStatOptsAndCb = exports$1.getStatOptions = exports$1.getAppendFileOptsAndCb = exports$1.getAppendFileOpts = exports$1.getOpendirOptsAndCb = exports$1.getOpendirOptions = exports$1.getReaddirOptsAndCb = exports$1.getReaddirOptions = exports$1.getReadFileOptions = exports$1.getRmOptsAndCb = exports$1.getRmdirOptions = exports$1.getDefaultOptsAndCb = exports$1.getDefaultOpts = exports$1.optsDefaults = exports$1.getMkdirOptions = void 0;
|
|
21566
|
+
exports$1.getOptions = getOptions;
|
|
21567
|
+
exports$1.optsGenerator = optsGenerator;
|
|
21568
|
+
exports$1.optsAndCbGenerator = optsAndCbGenerator;
|
|
21535
21569
|
const constants_1 = requireConstants();
|
|
21536
21570
|
const encoding_1 = requireEncoding();
|
|
21537
21571
|
const util_1 = requireUtil$2();
|
|
@@ -21545,7 +21579,7 @@
|
|
|
21545
21579
|
});
|
|
21546
21580
|
return Object.assign({}, mkdirDefaults, options);
|
|
21547
21581
|
};
|
|
21548
|
-
exports.getMkdirOptions = getMkdirOptions;
|
|
21582
|
+
exports$1.getMkdirOptions = getMkdirOptions;
|
|
21549
21583
|
const ERRSTR_OPTS = (tipeof)=>`Expected options to be either an object or a string, but got ${tipeof} instead`;
|
|
21550
21584
|
function getOptions(defaults, options) {
|
|
21551
21585
|
let opts;
|
|
@@ -21580,78 +21614,78 @@
|
|
|
21580
21614
|
(0, util_1.validateCallback)(callback)
|
|
21581
21615
|
];
|
|
21582
21616
|
}
|
|
21583
|
-
exports.optsDefaults = {
|
|
21617
|
+
exports$1.optsDefaults = {
|
|
21584
21618
|
encoding: 'utf8'
|
|
21585
21619
|
};
|
|
21586
|
-
exports.getDefaultOpts = optsGenerator(exports.optsDefaults);
|
|
21587
|
-
exports.getDefaultOptsAndCb = optsAndCbGenerator(exports.getDefaultOpts);
|
|
21620
|
+
exports$1.getDefaultOpts = optsGenerator(exports$1.optsDefaults);
|
|
21621
|
+
exports$1.getDefaultOptsAndCb = optsAndCbGenerator(exports$1.getDefaultOpts);
|
|
21588
21622
|
const rmdirDefaults = {
|
|
21589
21623
|
recursive: false
|
|
21590
21624
|
};
|
|
21591
21625
|
const getRmdirOptions = (options)=>Object.assign({}, rmdirDefaults, options);
|
|
21592
|
-
exports.getRmdirOptions = getRmdirOptions;
|
|
21593
|
-
const getRmOpts = optsGenerator(exports.optsDefaults);
|
|
21594
|
-
exports.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
21626
|
+
exports$1.getRmdirOptions = getRmdirOptions;
|
|
21627
|
+
const getRmOpts = optsGenerator(exports$1.optsDefaults);
|
|
21628
|
+
exports$1.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
21595
21629
|
const readFileOptsDefaults = {
|
|
21596
21630
|
flag: 'r'
|
|
21597
21631
|
};
|
|
21598
|
-
exports.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
21632
|
+
exports$1.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
21599
21633
|
const readdirDefaults = {
|
|
21600
21634
|
encoding: 'utf8',
|
|
21601
21635
|
recursive: false,
|
|
21602
21636
|
withFileTypes: false
|
|
21603
21637
|
};
|
|
21604
|
-
exports.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
21605
|
-
exports.getReaddirOptsAndCb = optsAndCbGenerator(exports.getReaddirOptions);
|
|
21638
|
+
exports$1.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
21639
|
+
exports$1.getReaddirOptsAndCb = optsAndCbGenerator(exports$1.getReaddirOptions);
|
|
21606
21640
|
const opendirDefaults = {
|
|
21607
21641
|
encoding: 'utf8',
|
|
21608
21642
|
bufferSize: 32,
|
|
21609
21643
|
recursive: false
|
|
21610
21644
|
};
|
|
21611
|
-
exports.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
21612
|
-
exports.getOpendirOptsAndCb = optsAndCbGenerator(exports.getOpendirOptions);
|
|
21645
|
+
exports$1.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
21646
|
+
exports$1.getOpendirOptsAndCb = optsAndCbGenerator(exports$1.getOpendirOptions);
|
|
21613
21647
|
const appendFileDefaults = {
|
|
21614
21648
|
encoding: 'utf8',
|
|
21615
21649
|
mode: 438,
|
|
21616
21650
|
flag: constants_1.FLAGS[constants_1.FLAGS.a]
|
|
21617
21651
|
};
|
|
21618
|
-
exports.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
21619
|
-
exports.getAppendFileOptsAndCb = optsAndCbGenerator(exports.getAppendFileOpts);
|
|
21652
|
+
exports$1.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
21653
|
+
exports$1.getAppendFileOptsAndCb = optsAndCbGenerator(exports$1.getAppendFileOpts);
|
|
21620
21654
|
const statDefaults = {
|
|
21621
21655
|
bigint: false
|
|
21622
21656
|
};
|
|
21623
21657
|
const getStatOptions = (options = {})=>Object.assign({}, statDefaults, options);
|
|
21624
|
-
exports.getStatOptions = getStatOptions;
|
|
21658
|
+
exports$1.getStatOptions = getStatOptions;
|
|
21625
21659
|
const getStatOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
21626
|
-
(0, exports.getStatOptions)(),
|
|
21660
|
+
(0, exports$1.getStatOptions)(),
|
|
21627
21661
|
options
|
|
21628
21662
|
] : [
|
|
21629
|
-
(0, exports.getStatOptions)(options),
|
|
21663
|
+
(0, exports$1.getStatOptions)(options),
|
|
21630
21664
|
(0, util_1.validateCallback)(callback)
|
|
21631
21665
|
];
|
|
21632
|
-
exports.getStatOptsAndCb = getStatOptsAndCb;
|
|
21666
|
+
exports$1.getStatOptsAndCb = getStatOptsAndCb;
|
|
21633
21667
|
const statfsDefaults = {
|
|
21634
21668
|
bigint: false
|
|
21635
21669
|
};
|
|
21636
21670
|
const getStatfsOptions = (options = {})=>Object.assign({}, statfsDefaults, options);
|
|
21637
|
-
exports.getStatfsOptions = getStatfsOptions;
|
|
21671
|
+
exports$1.getStatfsOptions = getStatfsOptions;
|
|
21638
21672
|
const getStatfsOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
21639
|
-
(0, exports.getStatfsOptions)(),
|
|
21673
|
+
(0, exports$1.getStatfsOptions)(),
|
|
21640
21674
|
options
|
|
21641
21675
|
] : [
|
|
21642
|
-
(0, exports.getStatfsOptions)(options),
|
|
21676
|
+
(0, exports$1.getStatfsOptions)(options),
|
|
21643
21677
|
(0, util_1.validateCallback)(callback)
|
|
21644
21678
|
];
|
|
21645
|
-
exports.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
21646
|
-
const realpathDefaults = exports.optsDefaults;
|
|
21647
|
-
exports.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
21648
|
-
exports.getRealpathOptsAndCb = optsAndCbGenerator(exports.getRealpathOptions);
|
|
21649
|
-
exports.writeFileDefaults = {
|
|
21679
|
+
exports$1.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
21680
|
+
const realpathDefaults = exports$1.optsDefaults;
|
|
21681
|
+
exports$1.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
21682
|
+
exports$1.getRealpathOptsAndCb = optsAndCbGenerator(exports$1.getRealpathOptions);
|
|
21683
|
+
exports$1.writeFileDefaults = {
|
|
21650
21684
|
encoding: 'utf8',
|
|
21651
21685
|
mode: 438,
|
|
21652
21686
|
flag: constants_1.FLAGS[constants_1.FLAGS.w]
|
|
21653
21687
|
};
|
|
21654
|
-
exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
21688
|
+
exports$1.getWriteFileOptions = optsGenerator(exports$1.writeFileDefaults);
|
|
21655
21689
|
})(fs_options);
|
|
21656
21690
|
return fs_options;
|
|
21657
21691
|
}
|
|
@@ -21688,7 +21722,7 @@
|
|
|
21688
21722
|
({ done, value } = iteratorInfo[iteratorInfo.length - 1].next());
|
|
21689
21723
|
if (done) break;
|
|
21690
21724
|
[name, link] = value;
|
|
21691
|
-
}while ('.' === name || '..' === name)
|
|
21725
|
+
}while ('.' === name || '..' === name)
|
|
21692
21726
|
if (done) {
|
|
21693
21727
|
iteratorInfo.pop();
|
|
21694
21728
|
if (0 === iteratorInfo.length) break;
|
|
@@ -21697,7 +21731,7 @@
|
|
|
21697
21731
|
if (this.options.recursive && link.children.size) iteratorInfo.push(link.children[Symbol.iterator]());
|
|
21698
21732
|
return Dirent_1.default.build(link, this.options.encoding);
|
|
21699
21733
|
}
|
|
21700
|
-
}while (!done)
|
|
21734
|
+
}while (!done)
|
|
21701
21735
|
return null;
|
|
21702
21736
|
}
|
|
21703
21737
|
close(callback) {
|
|
@@ -21796,12 +21830,73 @@
|
|
|
21796
21830
|
function requireLib$1() {
|
|
21797
21831
|
if (hasRequiredLib$1) return lib;
|
|
21798
21832
|
hasRequiredLib$1 = 1;
|
|
21799
|
-
(function(exports) {
|
|
21800
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21833
|
+
(function(exports$1) {
|
|
21834
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
21801
21835
|
value: true
|
|
21802
21836
|
});
|
|
21803
|
-
exports.toMatcher = exports.toRegex = void 0;
|
|
21837
|
+
exports$1.toMatcher = exports$1.toRegex = void 0;
|
|
21804
21838
|
const escapeRe = (ch)=>/[.^$+{}()|\\]/.test(ch) ? `\\${ch}` : ch;
|
|
21839
|
+
const parseExtGlob = (pattern, startIdx, prefix, options)=>{
|
|
21840
|
+
let i = startIdx;
|
|
21841
|
+
const parts = [];
|
|
21842
|
+
let cur = '';
|
|
21843
|
+
let depth = 1;
|
|
21844
|
+
while(i < pattern.length && depth > 0){
|
|
21845
|
+
const ch = pattern[i];
|
|
21846
|
+
if ('(' === ch) {
|
|
21847
|
+
depth++;
|
|
21848
|
+
cur += ch;
|
|
21849
|
+
i++;
|
|
21850
|
+
} else if (')' === ch) {
|
|
21851
|
+
depth--;
|
|
21852
|
+
if (0 === depth) {
|
|
21853
|
+
parts.push(cur);
|
|
21854
|
+
i++;
|
|
21855
|
+
break;
|
|
21856
|
+
}
|
|
21857
|
+
cur += ch;
|
|
21858
|
+
i++;
|
|
21859
|
+
} else if ('|' === ch && 1 === depth) {
|
|
21860
|
+
parts.push(cur);
|
|
21861
|
+
cur = '';
|
|
21862
|
+
i++;
|
|
21863
|
+
} else {
|
|
21864
|
+
cur += ch;
|
|
21865
|
+
i++;
|
|
21866
|
+
}
|
|
21867
|
+
}
|
|
21868
|
+
if (0 !== depth) return;
|
|
21869
|
+
let alternatives = '';
|
|
21870
|
+
const length = parts.length;
|
|
21871
|
+
for(let j = 0; j < length; j++)alternatives += (alternatives ? '|' : '') + (0, exports$1.toRegex)(parts[j], options).source.replace(/^\^/, '').replace(/\$$/, '');
|
|
21872
|
+
switch(prefix){
|
|
21873
|
+
case '?':
|
|
21874
|
+
return [
|
|
21875
|
+
`(?:${alternatives})?`,
|
|
21876
|
+
i
|
|
21877
|
+
];
|
|
21878
|
+
case '*':
|
|
21879
|
+
return [
|
|
21880
|
+
`(?:${alternatives})*`,
|
|
21881
|
+
i
|
|
21882
|
+
];
|
|
21883
|
+
case '+':
|
|
21884
|
+
return [
|
|
21885
|
+
`(?:${alternatives})+`,
|
|
21886
|
+
i
|
|
21887
|
+
];
|
|
21888
|
+
case '@':
|
|
21889
|
+
return [
|
|
21890
|
+
`(?:${alternatives})`,
|
|
21891
|
+
i
|
|
21892
|
+
];
|
|
21893
|
+
case '!':
|
|
21894
|
+
return [
|
|
21895
|
+
`(?!${alternatives})[^/]*`,
|
|
21896
|
+
i
|
|
21897
|
+
];
|
|
21898
|
+
}
|
|
21899
|
+
};
|
|
21805
21900
|
const toRegex = (pattern, options)=>{
|
|
21806
21901
|
let regexStr = '';
|
|
21807
21902
|
let i = 0;
|
|
@@ -21828,11 +21923,22 @@
|
|
|
21828
21923
|
i++;
|
|
21829
21924
|
}
|
|
21830
21925
|
if (!closed) return '\\{' + escapeRe(cur);
|
|
21831
|
-
const alt = parts.map((p)=>(0, exports.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
21926
|
+
const alt = parts.map((p)=>(0, exports$1.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
21832
21927
|
return `(?:${alt})`;
|
|
21833
21928
|
};
|
|
21929
|
+
const extglob = !!options?.extglob;
|
|
21834
21930
|
while(i < pattern.length){
|
|
21835
21931
|
const char = pattern[i];
|
|
21932
|
+
if (extglob && '(' === pattern[i + 1]) {
|
|
21933
|
+
if ('?' === char || '*' === char || '+' === char || '@' === char || '!' === char) {
|
|
21934
|
+
const result = parseExtGlob(pattern, i + 2, char, options);
|
|
21935
|
+
if (result) {
|
|
21936
|
+
regexStr += result[0];
|
|
21937
|
+
i = result[1];
|
|
21938
|
+
continue;
|
|
21939
|
+
}
|
|
21940
|
+
}
|
|
21941
|
+
}
|
|
21836
21942
|
switch(char){
|
|
21837
21943
|
case '*':
|
|
21838
21944
|
if ('*' === pattern[i + 1]) {
|
|
@@ -21908,7 +22014,7 @@
|
|
|
21908
22014
|
const flags = options?.nocase ? 'i' : '';
|
|
21909
22015
|
return new RegExp('^' + regexStr + '$', flags);
|
|
21910
22016
|
};
|
|
21911
|
-
exports.toRegex = toRegex;
|
|
22017
|
+
exports$1.toRegex = toRegex;
|
|
21912
22018
|
const isRegExp = /^\/(.{1,4096})\/([gimsuy]{0,6})$/;
|
|
21913
22019
|
const toMatcher = (pattern, options)=>{
|
|
21914
22020
|
const regexes = [];
|
|
@@ -21920,11 +22026,11 @@
|
|
|
21920
22026
|
if (match) {
|
|
21921
22027
|
const [, expr, flags] = match;
|
|
21922
22028
|
regexes.push(new RegExp(expr, flags));
|
|
21923
|
-
} else regexes.push((0, exports.toRegex)(pat, options));
|
|
22029
|
+
} else regexes.push((0, exports$1.toRegex)(pat, options));
|
|
21924
22030
|
} else regexes.push(pat);
|
|
21925
22031
|
return regexes.length ? new Function('p', 'return ' + regexes.map((r)=>r + '.test(p)').join('||')) : ()=>false;
|
|
21926
22032
|
};
|
|
21927
|
-
exports.toMatcher = toMatcher;
|
|
22033
|
+
exports$1.toMatcher = toMatcher;
|
|
21928
22034
|
})(lib);
|
|
21929
22035
|
return lib;
|
|
21930
22036
|
}
|
|
@@ -22594,7 +22700,7 @@
|
|
|
22594
22700
|
};
|
|
22595
22701
|
this.mkdirSync = (path, options)=>{
|
|
22596
22702
|
const opts = (0, options_1.getMkdirOptions)(options);
|
|
22597
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
22703
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
22598
22704
|
const filename = (0, util_2.pathToFilename)(path);
|
|
22599
22705
|
if (opts.recursive) return this._core.mkdirp(filename, modeNum);
|
|
22600
22706
|
this._core.mkdir(filename, modeNum);
|
|
@@ -22602,7 +22708,7 @@
|
|
|
22602
22708
|
this.mkdir = (path, a, b)=>{
|
|
22603
22709
|
const opts = (0, options_1.getMkdirOptions)(a);
|
|
22604
22710
|
const callback = (0, util_2.validateCallback)('function' == typeof a ? a : b);
|
|
22605
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
22711
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
22606
22712
|
const filename = (0, util_2.pathToFilename)(path);
|
|
22607
22713
|
if (opts.recursive) this.wrapAsync(this._core.mkdirp, [
|
|
22608
22714
|
filename,
|
|
@@ -23191,7 +23297,7 @@
|
|
|
23191
23297
|
this.path = (0, util_2.pathToFilename)(path);
|
|
23192
23298
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
23193
23299
|
this.flags = void 0 === options.flags ? 'r' : options.flags;
|
|
23194
|
-
this.mode = void 0 === options.mode ?
|
|
23300
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
23195
23301
|
this.start = options.start;
|
|
23196
23302
|
this.end = options.end;
|
|
23197
23303
|
this.autoClose = void 0 === options.autoClose ? true : options.autoClose;
|
|
@@ -23287,7 +23393,7 @@
|
|
|
23287
23393
|
this.path = (0, util_2.pathToFilename)(path);
|
|
23288
23394
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
23289
23395
|
this.flags = void 0 === options.flags ? 'w' : options.flags;
|
|
23290
|
-
this.mode = void 0 === options.mode ?
|
|
23396
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
23291
23397
|
this.start = options.start;
|
|
23292
23398
|
this.autoClose = void 0 === options.autoClose ? true : !!options.autoClose;
|
|
23293
23399
|
this.pos = void 0;
|
|
@@ -23500,6 +23606,7 @@
|
|
|
23500
23606
|
'fsyncSync',
|
|
23501
23607
|
'ftruncateSync',
|
|
23502
23608
|
'futimesSync',
|
|
23609
|
+
'globSync',
|
|
23503
23610
|
'lchmodSync',
|
|
23504
23611
|
'lchownSync',
|
|
23505
23612
|
'linkSync',
|
|
@@ -23556,6 +23663,7 @@
|
|
|
23556
23663
|
'fsync',
|
|
23557
23664
|
'ftruncate',
|
|
23558
23665
|
'futimes',
|
|
23666
|
+
'glob',
|
|
23559
23667
|
'lchmod',
|
|
23560
23668
|
'lchown',
|
|
23561
23669
|
'link',
|
|
@@ -23594,16 +23702,16 @@
|
|
|
23594
23702
|
function requireLib() {
|
|
23595
23703
|
if (hasRequiredLib) return lib$3.exports;
|
|
23596
23704
|
hasRequiredLib = 1;
|
|
23597
|
-
(function(module, exports) {
|
|
23598
|
-
Object.defineProperty(exports, "__esModule", {
|
|
23705
|
+
(function(module, exports$1) {
|
|
23706
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
23599
23707
|
value: true
|
|
23600
23708
|
});
|
|
23601
|
-
exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
|
|
23602
|
-
exports.createFsFromVolume = createFsFromVolume;
|
|
23709
|
+
exports$1.memfs = exports$1.fs = exports$1.vol = exports$1.Volume = void 0;
|
|
23710
|
+
exports$1.createFsFromVolume = createFsFromVolume;
|
|
23603
23711
|
const Stats_1 = requireStats();
|
|
23604
23712
|
const Dirent_1 = requireDirent();
|
|
23605
23713
|
const volume_1 = requireVolume();
|
|
23606
|
-
Object.defineProperty(exports, "Volume", {
|
|
23714
|
+
Object.defineProperty(exports$1, "Volume", {
|
|
23607
23715
|
enumerable: true,
|
|
23608
23716
|
get: function() {
|
|
23609
23717
|
return volume_1.Volume;
|
|
@@ -23613,7 +23721,7 @@
|
|
|
23613
23721
|
const fsSynchronousApiList_1 = requireFsSynchronousApiList();
|
|
23614
23722
|
const fsCallbackApiList_1 = requireFsCallbackApiList();
|
|
23615
23723
|
const { F_OK, R_OK, W_OK, X_OK } = constants_1.constants;
|
|
23616
|
-
exports.vol = new volume_1.Volume();
|
|
23724
|
+
exports$1.vol = new volume_1.Volume();
|
|
23617
23725
|
function createFsFromVolume(vol) {
|
|
23618
23726
|
const fs = {
|
|
23619
23727
|
F_OK,
|
|
@@ -23643,7 +23751,7 @@
|
|
|
23643
23751
|
fs.__vol = vol;
|
|
23644
23752
|
return fs;
|
|
23645
23753
|
}
|
|
23646
|
-
exports.fs = createFsFromVolume(exports.vol);
|
|
23754
|
+
exports$1.fs = createFsFromVolume(exports$1.vol);
|
|
23647
23755
|
const memfs = (json = {}, cwd = '/')=>{
|
|
23648
23756
|
const vol = volume_1.Volume.fromNestedJSON(json, cwd);
|
|
23649
23757
|
const fs = createFsFromVolume(vol);
|
|
@@ -23652,10 +23760,10 @@
|
|
|
23652
23760
|
vol
|
|
23653
23761
|
};
|
|
23654
23762
|
};
|
|
23655
|
-
exports.memfs = memfs;
|
|
23763
|
+
exports$1.memfs = memfs;
|
|
23656
23764
|
module.exports = {
|
|
23657
23765
|
...module.exports,
|
|
23658
|
-
...exports.fs
|
|
23766
|
+
...exports$1.fs
|
|
23659
23767
|
};
|
|
23660
23768
|
module.exports.semantic = true;
|
|
23661
23769
|
})(lib$3, lib$3.exports);
|