@kubb/core 0.37.7 → 0.37.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.
|
@@ -3966,818 +3966,11 @@
|
|
|
3966
3966
|
}
|
|
3967
3967
|
});
|
|
3968
3968
|
|
|
3969
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
3970
|
-
var require_polyfills = __commonJS({
|
|
3971
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module) {
|
|
3972
|
-
var constants = __require("constants");
|
|
3973
|
-
var origCwd = process.cwd;
|
|
3974
|
-
var cwd = null;
|
|
3975
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
3976
|
-
process.cwd = function() {
|
|
3977
|
-
if (!cwd)
|
|
3978
|
-
cwd = origCwd.call(process);
|
|
3979
|
-
return cwd;
|
|
3980
|
-
};
|
|
3981
|
-
try {
|
|
3982
|
-
process.cwd();
|
|
3983
|
-
} catch (er) {
|
|
3984
|
-
}
|
|
3985
|
-
if (typeof process.chdir === "function") {
|
|
3986
|
-
chdir = process.chdir;
|
|
3987
|
-
process.chdir = function(d) {
|
|
3988
|
-
cwd = null;
|
|
3989
|
-
chdir.call(process, d);
|
|
3990
|
-
};
|
|
3991
|
-
if (Object.setPrototypeOf)
|
|
3992
|
-
Object.setPrototypeOf(process.chdir, chdir);
|
|
3993
|
-
}
|
|
3994
|
-
var chdir;
|
|
3995
|
-
module.exports = patch;
|
|
3996
|
-
function patch(fs) {
|
|
3997
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
3998
|
-
patchLchmod(fs);
|
|
3999
|
-
}
|
|
4000
|
-
if (!fs.lutimes) {
|
|
4001
|
-
patchLutimes(fs);
|
|
4002
|
-
}
|
|
4003
|
-
fs.chown = chownFix(fs.chown);
|
|
4004
|
-
fs.fchown = chownFix(fs.fchown);
|
|
4005
|
-
fs.lchown = chownFix(fs.lchown);
|
|
4006
|
-
fs.chmod = chmodFix(fs.chmod);
|
|
4007
|
-
fs.fchmod = chmodFix(fs.fchmod);
|
|
4008
|
-
fs.lchmod = chmodFix(fs.lchmod);
|
|
4009
|
-
fs.chownSync = chownFixSync(fs.chownSync);
|
|
4010
|
-
fs.fchownSync = chownFixSync(fs.fchownSync);
|
|
4011
|
-
fs.lchownSync = chownFixSync(fs.lchownSync);
|
|
4012
|
-
fs.chmodSync = chmodFixSync(fs.chmodSync);
|
|
4013
|
-
fs.fchmodSync = chmodFixSync(fs.fchmodSync);
|
|
4014
|
-
fs.lchmodSync = chmodFixSync(fs.lchmodSync);
|
|
4015
|
-
fs.stat = statFix(fs.stat);
|
|
4016
|
-
fs.fstat = statFix(fs.fstat);
|
|
4017
|
-
fs.lstat = statFix(fs.lstat);
|
|
4018
|
-
fs.statSync = statFixSync(fs.statSync);
|
|
4019
|
-
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
4020
|
-
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
4021
|
-
if (fs.chmod && !fs.lchmod) {
|
|
4022
|
-
fs.lchmod = function(path, mode, cb) {
|
|
4023
|
-
if (cb)
|
|
4024
|
-
process.nextTick(cb);
|
|
4025
|
-
};
|
|
4026
|
-
fs.lchmodSync = function() {
|
|
4027
|
-
};
|
|
4028
|
-
}
|
|
4029
|
-
if (fs.chown && !fs.lchown) {
|
|
4030
|
-
fs.lchown = function(path, uid, gid, cb) {
|
|
4031
|
-
if (cb)
|
|
4032
|
-
process.nextTick(cb);
|
|
4033
|
-
};
|
|
4034
|
-
fs.lchownSync = function() {
|
|
4035
|
-
};
|
|
4036
|
-
}
|
|
4037
|
-
if (platform === "win32") {
|
|
4038
|
-
fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
|
|
4039
|
-
function rename(from, to, cb) {
|
|
4040
|
-
var start = Date.now();
|
|
4041
|
-
var backoff = 0;
|
|
4042
|
-
fs$rename(from, to, function CB(er) {
|
|
4043
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
4044
|
-
setTimeout(function() {
|
|
4045
|
-
fs.stat(to, function(stater, st) {
|
|
4046
|
-
if (stater && stater.code === "ENOENT")
|
|
4047
|
-
fs$rename(from, to, CB);
|
|
4048
|
-
else
|
|
4049
|
-
cb(er);
|
|
4050
|
-
});
|
|
4051
|
-
}, backoff);
|
|
4052
|
-
if (backoff < 100)
|
|
4053
|
-
backoff += 10;
|
|
4054
|
-
return;
|
|
4055
|
-
}
|
|
4056
|
-
if (cb)
|
|
4057
|
-
cb(er);
|
|
4058
|
-
});
|
|
4059
|
-
}
|
|
4060
|
-
if (Object.setPrototypeOf)
|
|
4061
|
-
Object.setPrototypeOf(rename, fs$rename);
|
|
4062
|
-
return rename;
|
|
4063
|
-
}(fs.rename);
|
|
4064
|
-
}
|
|
4065
|
-
fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) {
|
|
4066
|
-
function read2(fd, buffer, offset, length, position, callback_) {
|
|
4067
|
-
var callback;
|
|
4068
|
-
if (callback_ && typeof callback_ === "function") {
|
|
4069
|
-
var eagCounter = 0;
|
|
4070
|
-
callback = function(er, _, __) {
|
|
4071
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
4072
|
-
eagCounter++;
|
|
4073
|
-
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
4074
|
-
}
|
|
4075
|
-
callback_.apply(this, arguments);
|
|
4076
|
-
};
|
|
4077
|
-
}
|
|
4078
|
-
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
4079
|
-
}
|
|
4080
|
-
if (Object.setPrototypeOf)
|
|
4081
|
-
Object.setPrototypeOf(read2, fs$read);
|
|
4082
|
-
return read2;
|
|
4083
|
-
}(fs.read);
|
|
4084
|
-
fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) {
|
|
4085
|
-
return function(fd, buffer, offset, length, position) {
|
|
4086
|
-
var eagCounter = 0;
|
|
4087
|
-
while (true) {
|
|
4088
|
-
try {
|
|
4089
|
-
return fs$readSync.call(fs, fd, buffer, offset, length, position);
|
|
4090
|
-
} catch (er) {
|
|
4091
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
4092
|
-
eagCounter++;
|
|
4093
|
-
continue;
|
|
4094
|
-
}
|
|
4095
|
-
throw er;
|
|
4096
|
-
}
|
|
4097
|
-
}
|
|
4098
|
-
};
|
|
4099
|
-
}(fs.readSync);
|
|
4100
|
-
function patchLchmod(fs2) {
|
|
4101
|
-
fs2.lchmod = function(path, mode, callback) {
|
|
4102
|
-
fs2.open(
|
|
4103
|
-
path,
|
|
4104
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
|
4105
|
-
mode,
|
|
4106
|
-
function(err, fd) {
|
|
4107
|
-
if (err) {
|
|
4108
|
-
if (callback)
|
|
4109
|
-
callback(err);
|
|
4110
|
-
return;
|
|
4111
|
-
}
|
|
4112
|
-
fs2.fchmod(fd, mode, function(err2) {
|
|
4113
|
-
fs2.close(fd, function(err22) {
|
|
4114
|
-
if (callback)
|
|
4115
|
-
callback(err2 || err22);
|
|
4116
|
-
});
|
|
4117
|
-
});
|
|
4118
|
-
}
|
|
4119
|
-
);
|
|
4120
|
-
};
|
|
4121
|
-
fs2.lchmodSync = function(path, mode) {
|
|
4122
|
-
var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
4123
|
-
var threw = true;
|
|
4124
|
-
var ret;
|
|
4125
|
-
try {
|
|
4126
|
-
ret = fs2.fchmodSync(fd, mode);
|
|
4127
|
-
threw = false;
|
|
4128
|
-
} finally {
|
|
4129
|
-
if (threw) {
|
|
4130
|
-
try {
|
|
4131
|
-
fs2.closeSync(fd);
|
|
4132
|
-
} catch (er) {
|
|
4133
|
-
}
|
|
4134
|
-
} else {
|
|
4135
|
-
fs2.closeSync(fd);
|
|
4136
|
-
}
|
|
4137
|
-
}
|
|
4138
|
-
return ret;
|
|
4139
|
-
};
|
|
4140
|
-
}
|
|
4141
|
-
function patchLutimes(fs2) {
|
|
4142
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
4143
|
-
fs2.lutimes = function(path, at, mt, cb) {
|
|
4144
|
-
fs2.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
4145
|
-
if (er) {
|
|
4146
|
-
if (cb)
|
|
4147
|
-
cb(er);
|
|
4148
|
-
return;
|
|
4149
|
-
}
|
|
4150
|
-
fs2.futimes(fd, at, mt, function(er2) {
|
|
4151
|
-
fs2.close(fd, function(er22) {
|
|
4152
|
-
if (cb)
|
|
4153
|
-
cb(er2 || er22);
|
|
4154
|
-
});
|
|
4155
|
-
});
|
|
4156
|
-
});
|
|
4157
|
-
};
|
|
4158
|
-
fs2.lutimesSync = function(path, at, mt) {
|
|
4159
|
-
var fd = fs2.openSync(path, constants.O_SYMLINK);
|
|
4160
|
-
var ret;
|
|
4161
|
-
var threw = true;
|
|
4162
|
-
try {
|
|
4163
|
-
ret = fs2.futimesSync(fd, at, mt);
|
|
4164
|
-
threw = false;
|
|
4165
|
-
} finally {
|
|
4166
|
-
if (threw) {
|
|
4167
|
-
try {
|
|
4168
|
-
fs2.closeSync(fd);
|
|
4169
|
-
} catch (er) {
|
|
4170
|
-
}
|
|
4171
|
-
} else {
|
|
4172
|
-
fs2.closeSync(fd);
|
|
4173
|
-
}
|
|
4174
|
-
}
|
|
4175
|
-
return ret;
|
|
4176
|
-
};
|
|
4177
|
-
} else if (fs2.futimes) {
|
|
4178
|
-
fs2.lutimes = function(_a, _b, _c, cb) {
|
|
4179
|
-
if (cb)
|
|
4180
|
-
process.nextTick(cb);
|
|
4181
|
-
};
|
|
4182
|
-
fs2.lutimesSync = function() {
|
|
4183
|
-
};
|
|
4184
|
-
}
|
|
4185
|
-
}
|
|
4186
|
-
function chmodFix(orig) {
|
|
4187
|
-
if (!orig)
|
|
4188
|
-
return orig;
|
|
4189
|
-
return function(target, mode, cb) {
|
|
4190
|
-
return orig.call(fs, target, mode, function(er) {
|
|
4191
|
-
if (chownErOk(er))
|
|
4192
|
-
er = null;
|
|
4193
|
-
if (cb)
|
|
4194
|
-
cb.apply(this, arguments);
|
|
4195
|
-
});
|
|
4196
|
-
};
|
|
4197
|
-
}
|
|
4198
|
-
function chmodFixSync(orig) {
|
|
4199
|
-
if (!orig)
|
|
4200
|
-
return orig;
|
|
4201
|
-
return function(target, mode) {
|
|
4202
|
-
try {
|
|
4203
|
-
return orig.call(fs, target, mode);
|
|
4204
|
-
} catch (er) {
|
|
4205
|
-
if (!chownErOk(er))
|
|
4206
|
-
throw er;
|
|
4207
|
-
}
|
|
4208
|
-
};
|
|
4209
|
-
}
|
|
4210
|
-
function chownFix(orig) {
|
|
4211
|
-
if (!orig)
|
|
4212
|
-
return orig;
|
|
4213
|
-
return function(target, uid, gid, cb) {
|
|
4214
|
-
return orig.call(fs, target, uid, gid, function(er) {
|
|
4215
|
-
if (chownErOk(er))
|
|
4216
|
-
er = null;
|
|
4217
|
-
if (cb)
|
|
4218
|
-
cb.apply(this, arguments);
|
|
4219
|
-
});
|
|
4220
|
-
};
|
|
4221
|
-
}
|
|
4222
|
-
function chownFixSync(orig) {
|
|
4223
|
-
if (!orig)
|
|
4224
|
-
return orig;
|
|
4225
|
-
return function(target, uid, gid) {
|
|
4226
|
-
try {
|
|
4227
|
-
return orig.call(fs, target, uid, gid);
|
|
4228
|
-
} catch (er) {
|
|
4229
|
-
if (!chownErOk(er))
|
|
4230
|
-
throw er;
|
|
4231
|
-
}
|
|
4232
|
-
};
|
|
4233
|
-
}
|
|
4234
|
-
function statFix(orig) {
|
|
4235
|
-
if (!orig)
|
|
4236
|
-
return orig;
|
|
4237
|
-
return function(target, options, cb) {
|
|
4238
|
-
if (typeof options === "function") {
|
|
4239
|
-
cb = options;
|
|
4240
|
-
options = null;
|
|
4241
|
-
}
|
|
4242
|
-
function callback(er, stats) {
|
|
4243
|
-
if (stats) {
|
|
4244
|
-
if (stats.uid < 0)
|
|
4245
|
-
stats.uid += 4294967296;
|
|
4246
|
-
if (stats.gid < 0)
|
|
4247
|
-
stats.gid += 4294967296;
|
|
4248
|
-
}
|
|
4249
|
-
if (cb)
|
|
4250
|
-
cb.apply(this, arguments);
|
|
4251
|
-
}
|
|
4252
|
-
return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
|
|
4253
|
-
};
|
|
4254
|
-
}
|
|
4255
|
-
function statFixSync(orig) {
|
|
4256
|
-
if (!orig)
|
|
4257
|
-
return orig;
|
|
4258
|
-
return function(target, options) {
|
|
4259
|
-
var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
|
|
4260
|
-
if (stats) {
|
|
4261
|
-
if (stats.uid < 0)
|
|
4262
|
-
stats.uid += 4294967296;
|
|
4263
|
-
if (stats.gid < 0)
|
|
4264
|
-
stats.gid += 4294967296;
|
|
4265
|
-
}
|
|
4266
|
-
return stats;
|
|
4267
|
-
};
|
|
4268
|
-
}
|
|
4269
|
-
function chownErOk(er) {
|
|
4270
|
-
if (!er)
|
|
4271
|
-
return true;
|
|
4272
|
-
if (er.code === "ENOSYS")
|
|
4273
|
-
return true;
|
|
4274
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
4275
|
-
if (nonroot) {
|
|
4276
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
4277
|
-
return true;
|
|
4278
|
-
}
|
|
4279
|
-
return false;
|
|
4280
|
-
}
|
|
4281
|
-
}
|
|
4282
|
-
}
|
|
4283
|
-
});
|
|
4284
|
-
|
|
4285
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
4286
|
-
var require_legacy_streams = __commonJS({
|
|
4287
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module) {
|
|
4288
|
-
var Stream = __require("stream").Stream;
|
|
4289
|
-
module.exports = legacy;
|
|
4290
|
-
function legacy(fs) {
|
|
4291
|
-
return {
|
|
4292
|
-
ReadStream,
|
|
4293
|
-
WriteStream
|
|
4294
|
-
};
|
|
4295
|
-
function ReadStream(path, options) {
|
|
4296
|
-
if (!(this instanceof ReadStream))
|
|
4297
|
-
return new ReadStream(path, options);
|
|
4298
|
-
Stream.call(this);
|
|
4299
|
-
var self2 = this;
|
|
4300
|
-
this.path = path;
|
|
4301
|
-
this.fd = null;
|
|
4302
|
-
this.readable = true;
|
|
4303
|
-
this.paused = false;
|
|
4304
|
-
this.flags = "r";
|
|
4305
|
-
this.mode = 438;
|
|
4306
|
-
this.bufferSize = 64 * 1024;
|
|
4307
|
-
options = options || {};
|
|
4308
|
-
var keys2 = Object.keys(options);
|
|
4309
|
-
for (var index = 0, length = keys2.length; index < length; index++) {
|
|
4310
|
-
var key = keys2[index];
|
|
4311
|
-
this[key] = options[key];
|
|
4312
|
-
}
|
|
4313
|
-
if (this.encoding)
|
|
4314
|
-
this.setEncoding(this.encoding);
|
|
4315
|
-
if (this.start !== void 0) {
|
|
4316
|
-
if ("number" !== typeof this.start) {
|
|
4317
|
-
throw TypeError("start must be a Number");
|
|
4318
|
-
}
|
|
4319
|
-
if (this.end === void 0) {
|
|
4320
|
-
this.end = Infinity;
|
|
4321
|
-
} else if ("number" !== typeof this.end) {
|
|
4322
|
-
throw TypeError("end must be a Number");
|
|
4323
|
-
}
|
|
4324
|
-
if (this.start > this.end) {
|
|
4325
|
-
throw new Error("start must be <= end");
|
|
4326
|
-
}
|
|
4327
|
-
this.pos = this.start;
|
|
4328
|
-
}
|
|
4329
|
-
if (this.fd !== null) {
|
|
4330
|
-
process.nextTick(function() {
|
|
4331
|
-
self2._read();
|
|
4332
|
-
});
|
|
4333
|
-
return;
|
|
4334
|
-
}
|
|
4335
|
-
fs.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
4336
|
-
if (err) {
|
|
4337
|
-
self2.emit("error", err);
|
|
4338
|
-
self2.readable = false;
|
|
4339
|
-
return;
|
|
4340
|
-
}
|
|
4341
|
-
self2.fd = fd;
|
|
4342
|
-
self2.emit("open", fd);
|
|
4343
|
-
self2._read();
|
|
4344
|
-
});
|
|
4345
|
-
}
|
|
4346
|
-
function WriteStream(path, options) {
|
|
4347
|
-
if (!(this instanceof WriteStream))
|
|
4348
|
-
return new WriteStream(path, options);
|
|
4349
|
-
Stream.call(this);
|
|
4350
|
-
this.path = path;
|
|
4351
|
-
this.fd = null;
|
|
4352
|
-
this.writable = true;
|
|
4353
|
-
this.flags = "w";
|
|
4354
|
-
this.encoding = "binary";
|
|
4355
|
-
this.mode = 438;
|
|
4356
|
-
this.bytesWritten = 0;
|
|
4357
|
-
options = options || {};
|
|
4358
|
-
var keys2 = Object.keys(options);
|
|
4359
|
-
for (var index = 0, length = keys2.length; index < length; index++) {
|
|
4360
|
-
var key = keys2[index];
|
|
4361
|
-
this[key] = options[key];
|
|
4362
|
-
}
|
|
4363
|
-
if (this.start !== void 0) {
|
|
4364
|
-
if ("number" !== typeof this.start) {
|
|
4365
|
-
throw TypeError("start must be a Number");
|
|
4366
|
-
}
|
|
4367
|
-
if (this.start < 0) {
|
|
4368
|
-
throw new Error("start must be >= zero");
|
|
4369
|
-
}
|
|
4370
|
-
this.pos = this.start;
|
|
4371
|
-
}
|
|
4372
|
-
this.busy = false;
|
|
4373
|
-
this._queue = [];
|
|
4374
|
-
if (this.fd === null) {
|
|
4375
|
-
this._open = fs.open;
|
|
4376
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
4377
|
-
this.flush();
|
|
4378
|
-
}
|
|
4379
|
-
}
|
|
4380
|
-
}
|
|
4381
|
-
}
|
|
4382
|
-
});
|
|
4383
|
-
|
|
4384
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js
|
|
4385
|
-
var require_clone = __commonJS({
|
|
4386
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module) {
|
|
4387
|
-
module.exports = clone;
|
|
4388
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
4389
|
-
return obj.__proto__;
|
|
4390
|
-
};
|
|
4391
|
-
function clone(obj) {
|
|
4392
|
-
if (obj === null || typeof obj !== "object")
|
|
4393
|
-
return obj;
|
|
4394
|
-
if (obj instanceof Object)
|
|
4395
|
-
var copy = { __proto__: getPrototypeOf(obj) };
|
|
4396
|
-
else
|
|
4397
|
-
var copy = /* @__PURE__ */ Object.create(null);
|
|
4398
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
4399
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
4400
|
-
});
|
|
4401
|
-
return copy;
|
|
4402
|
-
}
|
|
4403
|
-
}
|
|
4404
|
-
});
|
|
4405
|
-
|
|
4406
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
4407
|
-
var require_graceful_fs = __commonJS({
|
|
4408
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
4409
|
-
var fs = require_lib();
|
|
4410
|
-
var polyfills = require_polyfills();
|
|
4411
|
-
var legacy = require_legacy_streams();
|
|
4412
|
-
var clone = require_clone();
|
|
4413
|
-
var util = __require("util");
|
|
4414
|
-
var gracefulQueue;
|
|
4415
|
-
var previousSymbol;
|
|
4416
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
4417
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
4418
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
4419
|
-
} else {
|
|
4420
|
-
gracefulQueue = "___graceful-fs.queue";
|
|
4421
|
-
previousSymbol = "___graceful-fs.previous";
|
|
4422
|
-
}
|
|
4423
|
-
function noop() {
|
|
4424
|
-
}
|
|
4425
|
-
function publishQueue(context, queue2) {
|
|
4426
|
-
Object.defineProperty(context, gracefulQueue, {
|
|
4427
|
-
get: function() {
|
|
4428
|
-
return queue2;
|
|
4429
|
-
}
|
|
4430
|
-
});
|
|
4431
|
-
}
|
|
4432
|
-
var debug = noop;
|
|
4433
|
-
if (util.debuglog)
|
|
4434
|
-
debug = util.debuglog("gfs4");
|
|
4435
|
-
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
4436
|
-
debug = function() {
|
|
4437
|
-
var m = util.format.apply(util, arguments);
|
|
4438
|
-
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
4439
|
-
console.error(m);
|
|
4440
|
-
};
|
|
4441
|
-
if (!fs[gracefulQueue]) {
|
|
4442
|
-
queue = global[gracefulQueue] || [];
|
|
4443
|
-
publishQueue(fs, queue);
|
|
4444
|
-
fs.close = function(fs$close) {
|
|
4445
|
-
function close(fd, cb) {
|
|
4446
|
-
return fs$close.call(fs, fd, function(err) {
|
|
4447
|
-
if (!err) {
|
|
4448
|
-
resetQueue();
|
|
4449
|
-
}
|
|
4450
|
-
if (typeof cb === "function")
|
|
4451
|
-
cb.apply(this, arguments);
|
|
4452
|
-
});
|
|
4453
|
-
}
|
|
4454
|
-
Object.defineProperty(close, previousSymbol, {
|
|
4455
|
-
value: fs$close
|
|
4456
|
-
});
|
|
4457
|
-
return close;
|
|
4458
|
-
}(fs.close);
|
|
4459
|
-
fs.closeSync = function(fs$closeSync) {
|
|
4460
|
-
function closeSync(fd) {
|
|
4461
|
-
fs$closeSync.apply(fs, arguments);
|
|
4462
|
-
resetQueue();
|
|
4463
|
-
}
|
|
4464
|
-
Object.defineProperty(closeSync, previousSymbol, {
|
|
4465
|
-
value: fs$closeSync
|
|
4466
|
-
});
|
|
4467
|
-
return closeSync;
|
|
4468
|
-
}(fs.closeSync);
|
|
4469
|
-
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
4470
|
-
process.on("exit", function() {
|
|
4471
|
-
debug(fs[gracefulQueue]);
|
|
4472
|
-
__require("assert").equal(fs[gracefulQueue].length, 0);
|
|
4473
|
-
});
|
|
4474
|
-
}
|
|
4475
|
-
}
|
|
4476
|
-
var queue;
|
|
4477
|
-
if (!global[gracefulQueue]) {
|
|
4478
|
-
publishQueue(global, fs[gracefulQueue]);
|
|
4479
|
-
}
|
|
4480
|
-
module.exports = patch(clone(fs));
|
|
4481
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
4482
|
-
module.exports = patch(fs);
|
|
4483
|
-
fs.__patched = true;
|
|
4484
|
-
}
|
|
4485
|
-
function patch(fs2) {
|
|
4486
|
-
polyfills(fs2);
|
|
4487
|
-
fs2.gracefulify = patch;
|
|
4488
|
-
fs2.createReadStream = createReadStream;
|
|
4489
|
-
fs2.createWriteStream = createWriteStream;
|
|
4490
|
-
var fs$readFile = fs2.readFile;
|
|
4491
|
-
fs2.readFile = readFile;
|
|
4492
|
-
function readFile(path, options, cb) {
|
|
4493
|
-
if (typeof options === "function")
|
|
4494
|
-
cb = options, options = null;
|
|
4495
|
-
return go$readFile(path, options, cb);
|
|
4496
|
-
function go$readFile(path2, options2, cb2, startTime) {
|
|
4497
|
-
return fs$readFile(path2, options2, function(err) {
|
|
4498
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4499
|
-
enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4500
|
-
else {
|
|
4501
|
-
if (typeof cb2 === "function")
|
|
4502
|
-
cb2.apply(this, arguments);
|
|
4503
|
-
}
|
|
4504
|
-
});
|
|
4505
|
-
}
|
|
4506
|
-
}
|
|
4507
|
-
var fs$writeFile = fs2.writeFile;
|
|
4508
|
-
fs2.writeFile = writeFile;
|
|
4509
|
-
function writeFile(path, data, options, cb) {
|
|
4510
|
-
if (typeof options === "function")
|
|
4511
|
-
cb = options, options = null;
|
|
4512
|
-
return go$writeFile(path, data, options, cb);
|
|
4513
|
-
function go$writeFile(path2, data2, options2, cb2, startTime) {
|
|
4514
|
-
return fs$writeFile(path2, data2, options2, function(err) {
|
|
4515
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4516
|
-
enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4517
|
-
else {
|
|
4518
|
-
if (typeof cb2 === "function")
|
|
4519
|
-
cb2.apply(this, arguments);
|
|
4520
|
-
}
|
|
4521
|
-
});
|
|
4522
|
-
}
|
|
4523
|
-
}
|
|
4524
|
-
var fs$appendFile = fs2.appendFile;
|
|
4525
|
-
if (fs$appendFile)
|
|
4526
|
-
fs2.appendFile = appendFile;
|
|
4527
|
-
function appendFile(path, data, options, cb) {
|
|
4528
|
-
if (typeof options === "function")
|
|
4529
|
-
cb = options, options = null;
|
|
4530
|
-
return go$appendFile(path, data, options, cb);
|
|
4531
|
-
function go$appendFile(path2, data2, options2, cb2, startTime) {
|
|
4532
|
-
return fs$appendFile(path2, data2, options2, function(err) {
|
|
4533
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4534
|
-
enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4535
|
-
else {
|
|
4536
|
-
if (typeof cb2 === "function")
|
|
4537
|
-
cb2.apply(this, arguments);
|
|
4538
|
-
}
|
|
4539
|
-
});
|
|
4540
|
-
}
|
|
4541
|
-
}
|
|
4542
|
-
var fs$copyFile = fs2.copyFile;
|
|
4543
|
-
if (fs$copyFile)
|
|
4544
|
-
fs2.copyFile = copyFile;
|
|
4545
|
-
function copyFile(src, dest, flags, cb) {
|
|
4546
|
-
if (typeof flags === "function") {
|
|
4547
|
-
cb = flags;
|
|
4548
|
-
flags = 0;
|
|
4549
|
-
}
|
|
4550
|
-
return go$copyFile(src, dest, flags, cb);
|
|
4551
|
-
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
4552
|
-
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
4553
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4554
|
-
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4555
|
-
else {
|
|
4556
|
-
if (typeof cb2 === "function")
|
|
4557
|
-
cb2.apply(this, arguments);
|
|
4558
|
-
}
|
|
4559
|
-
});
|
|
4560
|
-
}
|
|
4561
|
-
}
|
|
4562
|
-
var fs$readdir = fs2.readdir;
|
|
4563
|
-
fs2.readdir = readdir;
|
|
4564
|
-
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
4565
|
-
function readdir(path, options, cb) {
|
|
4566
|
-
if (typeof options === "function")
|
|
4567
|
-
cb = options, options = null;
|
|
4568
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
|
|
4569
|
-
return fs$readdir(path2, fs$readdirCallback(
|
|
4570
|
-
path2,
|
|
4571
|
-
options2,
|
|
4572
|
-
cb2,
|
|
4573
|
-
startTime
|
|
4574
|
-
));
|
|
4575
|
-
} : function go$readdir2(path2, options2, cb2, startTime) {
|
|
4576
|
-
return fs$readdir(path2, options2, fs$readdirCallback(
|
|
4577
|
-
path2,
|
|
4578
|
-
options2,
|
|
4579
|
-
cb2,
|
|
4580
|
-
startTime
|
|
4581
|
-
));
|
|
4582
|
-
};
|
|
4583
|
-
return go$readdir(path, options, cb);
|
|
4584
|
-
function fs$readdirCallback(path2, options2, cb2, startTime) {
|
|
4585
|
-
return function(err, files) {
|
|
4586
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4587
|
-
enqueue([
|
|
4588
|
-
go$readdir,
|
|
4589
|
-
[path2, options2, cb2],
|
|
4590
|
-
err,
|
|
4591
|
-
startTime || Date.now(),
|
|
4592
|
-
Date.now()
|
|
4593
|
-
]);
|
|
4594
|
-
else {
|
|
4595
|
-
if (files && files.sort)
|
|
4596
|
-
files.sort();
|
|
4597
|
-
if (typeof cb2 === "function")
|
|
4598
|
-
cb2.call(this, err, files);
|
|
4599
|
-
}
|
|
4600
|
-
};
|
|
4601
|
-
}
|
|
4602
|
-
}
|
|
4603
|
-
if (process.version.substr(0, 4) === "v0.8") {
|
|
4604
|
-
var legStreams = legacy(fs2);
|
|
4605
|
-
ReadStream = legStreams.ReadStream;
|
|
4606
|
-
WriteStream = legStreams.WriteStream;
|
|
4607
|
-
}
|
|
4608
|
-
var fs$ReadStream = fs2.ReadStream;
|
|
4609
|
-
if (fs$ReadStream) {
|
|
4610
|
-
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
4611
|
-
ReadStream.prototype.open = ReadStream$open;
|
|
4612
|
-
}
|
|
4613
|
-
var fs$WriteStream = fs2.WriteStream;
|
|
4614
|
-
if (fs$WriteStream) {
|
|
4615
|
-
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
4616
|
-
WriteStream.prototype.open = WriteStream$open;
|
|
4617
|
-
}
|
|
4618
|
-
Object.defineProperty(fs2, "ReadStream", {
|
|
4619
|
-
get: function() {
|
|
4620
|
-
return ReadStream;
|
|
4621
|
-
},
|
|
4622
|
-
set: function(val) {
|
|
4623
|
-
ReadStream = val;
|
|
4624
|
-
},
|
|
4625
|
-
enumerable: true,
|
|
4626
|
-
configurable: true
|
|
4627
|
-
});
|
|
4628
|
-
Object.defineProperty(fs2, "WriteStream", {
|
|
4629
|
-
get: function() {
|
|
4630
|
-
return WriteStream;
|
|
4631
|
-
},
|
|
4632
|
-
set: function(val) {
|
|
4633
|
-
WriteStream = val;
|
|
4634
|
-
},
|
|
4635
|
-
enumerable: true,
|
|
4636
|
-
configurable: true
|
|
4637
|
-
});
|
|
4638
|
-
var FileReadStream = ReadStream;
|
|
4639
|
-
Object.defineProperty(fs2, "FileReadStream", {
|
|
4640
|
-
get: function() {
|
|
4641
|
-
return FileReadStream;
|
|
4642
|
-
},
|
|
4643
|
-
set: function(val) {
|
|
4644
|
-
FileReadStream = val;
|
|
4645
|
-
},
|
|
4646
|
-
enumerable: true,
|
|
4647
|
-
configurable: true
|
|
4648
|
-
});
|
|
4649
|
-
var FileWriteStream = WriteStream;
|
|
4650
|
-
Object.defineProperty(fs2, "FileWriteStream", {
|
|
4651
|
-
get: function() {
|
|
4652
|
-
return FileWriteStream;
|
|
4653
|
-
},
|
|
4654
|
-
set: function(val) {
|
|
4655
|
-
FileWriteStream = val;
|
|
4656
|
-
},
|
|
4657
|
-
enumerable: true,
|
|
4658
|
-
configurable: true
|
|
4659
|
-
});
|
|
4660
|
-
function ReadStream(path, options) {
|
|
4661
|
-
if (this instanceof ReadStream)
|
|
4662
|
-
return fs$ReadStream.apply(this, arguments), this;
|
|
4663
|
-
else
|
|
4664
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
4665
|
-
}
|
|
4666
|
-
function ReadStream$open() {
|
|
4667
|
-
var that = this;
|
|
4668
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
4669
|
-
if (err) {
|
|
4670
|
-
if (that.autoClose)
|
|
4671
|
-
that.destroy();
|
|
4672
|
-
that.emit("error", err);
|
|
4673
|
-
} else {
|
|
4674
|
-
that.fd = fd;
|
|
4675
|
-
that.emit("open", fd);
|
|
4676
|
-
that.read();
|
|
4677
|
-
}
|
|
4678
|
-
});
|
|
4679
|
-
}
|
|
4680
|
-
function WriteStream(path, options) {
|
|
4681
|
-
if (this instanceof WriteStream)
|
|
4682
|
-
return fs$WriteStream.apply(this, arguments), this;
|
|
4683
|
-
else
|
|
4684
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
4685
|
-
}
|
|
4686
|
-
function WriteStream$open() {
|
|
4687
|
-
var that = this;
|
|
4688
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
4689
|
-
if (err) {
|
|
4690
|
-
that.destroy();
|
|
4691
|
-
that.emit("error", err);
|
|
4692
|
-
} else {
|
|
4693
|
-
that.fd = fd;
|
|
4694
|
-
that.emit("open", fd);
|
|
4695
|
-
}
|
|
4696
|
-
});
|
|
4697
|
-
}
|
|
4698
|
-
function createReadStream(path, options) {
|
|
4699
|
-
return new fs2.ReadStream(path, options);
|
|
4700
|
-
}
|
|
4701
|
-
function createWriteStream(path, options) {
|
|
4702
|
-
return new fs2.WriteStream(path, options);
|
|
4703
|
-
}
|
|
4704
|
-
var fs$open = fs2.open;
|
|
4705
|
-
fs2.open = open;
|
|
4706
|
-
function open(path, flags, mode, cb) {
|
|
4707
|
-
if (typeof mode === "function")
|
|
4708
|
-
cb = mode, mode = null;
|
|
4709
|
-
return go$open(path, flags, mode, cb);
|
|
4710
|
-
function go$open(path2, flags2, mode2, cb2, startTime) {
|
|
4711
|
-
return fs$open(path2, flags2, mode2, function(err, fd) {
|
|
4712
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4713
|
-
enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4714
|
-
else {
|
|
4715
|
-
if (typeof cb2 === "function")
|
|
4716
|
-
cb2.apply(this, arguments);
|
|
4717
|
-
}
|
|
4718
|
-
});
|
|
4719
|
-
}
|
|
4720
|
-
}
|
|
4721
|
-
return fs2;
|
|
4722
|
-
}
|
|
4723
|
-
function enqueue(elem) {
|
|
4724
|
-
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
4725
|
-
fs[gracefulQueue].push(elem);
|
|
4726
|
-
retry();
|
|
4727
|
-
}
|
|
4728
|
-
var retryTimer;
|
|
4729
|
-
function resetQueue() {
|
|
4730
|
-
var now = Date.now();
|
|
4731
|
-
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
4732
|
-
if (fs[gracefulQueue][i].length > 2) {
|
|
4733
|
-
fs[gracefulQueue][i][3] = now;
|
|
4734
|
-
fs[gracefulQueue][i][4] = now;
|
|
4735
|
-
}
|
|
4736
|
-
}
|
|
4737
|
-
retry();
|
|
4738
|
-
}
|
|
4739
|
-
function retry() {
|
|
4740
|
-
clearTimeout(retryTimer);
|
|
4741
|
-
retryTimer = void 0;
|
|
4742
|
-
if (fs[gracefulQueue].length === 0)
|
|
4743
|
-
return;
|
|
4744
|
-
var elem = fs[gracefulQueue].shift();
|
|
4745
|
-
var fn = elem[0];
|
|
4746
|
-
var args = elem[1];
|
|
4747
|
-
var err = elem[2];
|
|
4748
|
-
var startTime = elem[3];
|
|
4749
|
-
var lastTime = elem[4];
|
|
4750
|
-
if (startTime === void 0) {
|
|
4751
|
-
debug("RETRY", fn.name, args);
|
|
4752
|
-
fn.apply(null, args);
|
|
4753
|
-
} else if (Date.now() - startTime >= 6e4) {
|
|
4754
|
-
debug("TIMEOUT", fn.name, args);
|
|
4755
|
-
var cb = args.pop();
|
|
4756
|
-
if (typeof cb === "function")
|
|
4757
|
-
cb.call(null, err);
|
|
4758
|
-
} else {
|
|
4759
|
-
var sinceAttempt = Date.now() - lastTime;
|
|
4760
|
-
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
4761
|
-
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
4762
|
-
if (sinceAttempt >= desiredDelay) {
|
|
4763
|
-
debug("RETRY", fn.name, args);
|
|
4764
|
-
fn.apply(null, args.concat([startTime]));
|
|
4765
|
-
} else {
|
|
4766
|
-
fs[gracefulQueue].push(elem);
|
|
4767
|
-
}
|
|
4768
|
-
}
|
|
4769
|
-
if (retryTimer === void 0) {
|
|
4770
|
-
retryTimer = setTimeout(retry, 0);
|
|
4771
|
-
}
|
|
4772
|
-
}
|
|
4773
|
-
}
|
|
4774
|
-
});
|
|
4775
|
-
|
|
4776
3969
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js
|
|
4777
3970
|
var require_fs = __commonJS({
|
|
4778
3971
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
4779
3972
|
var u = require_universalify().fromCallback;
|
|
4780
|
-
var fs =
|
|
3973
|
+
var fs = require_lib();
|
|
4781
3974
|
var api = [
|
|
4782
3975
|
"access",
|
|
4783
3976
|
"appendFile",
|
|
@@ -4968,7 +4161,7 @@
|
|
|
4968
4161
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/utimes.js
|
|
4969
4162
|
var require_utimes = __commonJS({
|
|
4970
4163
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
|
|
4971
|
-
var fs =
|
|
4164
|
+
var fs = require_lib();
|
|
4972
4165
|
function utimesMillis(path, atime, mtime, callback) {
|
|
4973
4166
|
fs.open(path, "r+", (err, fd) => {
|
|
4974
4167
|
if (err)
|
|
@@ -5133,7 +4326,7 @@
|
|
|
5133
4326
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js
|
|
5134
4327
|
var require_copy = __commonJS({
|
|
5135
4328
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
5136
|
-
var fs =
|
|
4329
|
+
var fs = require_lib();
|
|
5137
4330
|
var path = require_path_browserify();
|
|
5138
4331
|
var mkdirs = require_mkdirs().mkdirs;
|
|
5139
4332
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -5364,7 +4557,7 @@
|
|
|
5364
4557
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js
|
|
5365
4558
|
var require_copy_sync = __commonJS({
|
|
5366
4559
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
5367
|
-
var fs =
|
|
4560
|
+
var fs = require_lib();
|
|
5368
4561
|
var path = require_path_browserify();
|
|
5369
4562
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
5370
4563
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
@@ -5515,7 +4708,7 @@
|
|
|
5515
4708
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/remove/index.js
|
|
5516
4709
|
var require_remove = __commonJS({
|
|
5517
4710
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
|
|
5518
|
-
var fs =
|
|
4711
|
+
var fs = require_lib();
|
|
5519
4712
|
var u = require_universalify().fromCallback;
|
|
5520
4713
|
function remove(path, callback) {
|
|
5521
4714
|
fs.rm(path, { recursive: true, force: true }, callback);
|
|
@@ -5573,7 +4766,7 @@
|
|
|
5573
4766
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
5574
4767
|
var u = require_universalify().fromCallback;
|
|
5575
4768
|
var path = require_path_browserify();
|
|
5576
|
-
var fs =
|
|
4769
|
+
var fs = require_lib();
|
|
5577
4770
|
var mkdir = require_mkdirs();
|
|
5578
4771
|
function createFile(file, callback) {
|
|
5579
4772
|
function makeFile() {
|
|
@@ -5642,7 +4835,7 @@
|
|
|
5642
4835
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
5643
4836
|
var u = require_universalify().fromCallback;
|
|
5644
4837
|
var path = require_path_browserify();
|
|
5645
|
-
var fs =
|
|
4838
|
+
var fs = require_lib();
|
|
5646
4839
|
var mkdir = require_mkdirs();
|
|
5647
4840
|
var pathExists = require_path_exists().pathExists;
|
|
5648
4841
|
var { areIdentical } = require_stat();
|
|
@@ -5709,7 +4902,7 @@
|
|
|
5709
4902
|
var require_symlink_paths = __commonJS({
|
|
5710
4903
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
5711
4904
|
var path = require_path_browserify();
|
|
5712
|
-
var fs =
|
|
4905
|
+
var fs = require_lib();
|
|
5713
4906
|
var pathExists = require_path_exists().pathExists;
|
|
5714
4907
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
5715
4908
|
if (path.isAbsolute(srcpath)) {
|
|
@@ -5789,7 +4982,7 @@
|
|
|
5789
4982
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
5790
4983
|
var require_symlink_type = __commonJS({
|
|
5791
4984
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
|
|
5792
|
-
var fs =
|
|
4985
|
+
var fs = require_lib();
|
|
5793
4986
|
function symlinkType(srcpath, type, callback) {
|
|
5794
4987
|
callback = typeof type === "function" ? type : callback;
|
|
5795
4988
|
type = typeof type === "function" ? false : type;
|
|
@@ -5951,7 +5144,7 @@
|
|
|
5951
5144
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module) {
|
|
5952
5145
|
var _fs;
|
|
5953
5146
|
try {
|
|
5954
|
-
_fs =
|
|
5147
|
+
_fs = require_lib();
|
|
5955
5148
|
} catch (_) {
|
|
5956
5149
|
_fs = require_lib();
|
|
5957
5150
|
}
|
|
@@ -6036,7 +5229,7 @@
|
|
|
6036
5229
|
var require_output_file = __commonJS({
|
|
6037
5230
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
|
|
6038
5231
|
var u = require_universalify().fromCallback;
|
|
6039
|
-
var fs =
|
|
5232
|
+
var fs = require_lib();
|
|
6040
5233
|
var path = require_path_browserify();
|
|
6041
5234
|
var mkdir = require_mkdirs();
|
|
6042
5235
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -6119,7 +5312,7 @@
|
|
|
6119
5312
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js
|
|
6120
5313
|
var require_move = __commonJS({
|
|
6121
5314
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
6122
|
-
var fs =
|
|
5315
|
+
var fs = require_lib();
|
|
6123
5316
|
var path = require_path_browserify();
|
|
6124
5317
|
var copy = require_copy2().copy;
|
|
6125
5318
|
var remove = require_remove().remove;
|
|
@@ -6200,7 +5393,7 @@
|
|
|
6200
5393
|
// ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js
|
|
6201
5394
|
var require_move_sync = __commonJS({
|
|
6202
5395
|
"../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
6203
|
-
var fs =
|
|
5396
|
+
var fs = require_lib();
|
|
6204
5397
|
var path = require_path_browserify();
|
|
6205
5398
|
var copySync = require_copy2().copySync;
|
|
6206
5399
|
var removeSync = require_remove().removeSync;
|