@prisma/migrate 6.5.0-dev.4 → 6.5.0-dev.41
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/bin.js +8 -8
- package/dist/{chunk-J77IRNPE.js → chunk-5VDXAE53.js} +45 -31
- package/dist/{chunk-PSYS5XVH.js → chunk-ANZ73E67.js} +16 -26
- package/dist/{chunk-73OPZA7N.js → chunk-EGPJABTW.js} +136 -81
- package/dist/{chunk-U5JDTUOW.js → chunk-EMWYOLT4.js} +441 -1322
- package/dist/{chunk-D74DU52C.js → chunk-EPC24HZ6.js} +440 -1321
- package/dist/{chunk-4EV2RVXY.js → chunk-TPQ5YBLK.js} +27 -34
- package/dist/commands/DbExecute.js +2 -2
- package/dist/commands/MigrateDev.js +2 -2
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/index.js +6 -6
- package/dist/internals/src/errorReporting.d.ts +1 -0
- package/dist/utils/setupCockroach.js +2 -2
- package/dist/utils/setupMSSQL.js +13 -13
- package/dist/utils/setupMongo.js +3 -3
- package/dist/utils/setupPostgres.js +2 -2
- package/package.json +12 -12
|
@@ -26,11 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_EMWYOLT4_exports = {};
|
|
30
|
+
__export(chunk_EMWYOLT4_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_EMWYOLT4_exports);
|
|
34
34
|
var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
|
|
35
35
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
36
36
|
var import_chunk_CTPONE6G = require("./chunk-CTPONE6G.js");
|
|
@@ -3182,18 +3182,15 @@ var require_main = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
var require_universalify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3185
|
-
"../../node_modules/.pnpm/universalify@2.0.
|
|
3185
|
+
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
3186
3186
|
"use strict";
|
|
3187
3187
|
exports.fromCallback = function(fn) {
|
|
3188
3188
|
return Object.defineProperty(function(...args) {
|
|
3189
3189
|
if (typeof args[args.length - 1] === "function") fn.apply(this, args);
|
|
3190
3190
|
else {
|
|
3191
3191
|
return new Promise((resolve, reject) => {
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
...args,
|
|
3195
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
|
3196
|
-
);
|
|
3192
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
3193
|
+
fn.apply(this, args);
|
|
3197
3194
|
});
|
|
3198
3195
|
}
|
|
3199
3196
|
}, "name", { value: fn.name });
|
|
@@ -3202,13 +3199,16 @@ var require_universalify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3202
3199
|
return Object.defineProperty(function(...args) {
|
|
3203
3200
|
const cb = args[args.length - 1];
|
|
3204
3201
|
if (typeof cb !== "function") return fn.apply(this, args);
|
|
3205
|
-
else
|
|
3202
|
+
else {
|
|
3203
|
+
args.pop();
|
|
3204
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
3205
|
+
}
|
|
3206
3206
|
}, "name", { value: fn.name });
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
});
|
|
3210
3210
|
var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3211
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3211
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
3212
3212
|
"use strict";
|
|
3213
3213
|
var constants = (0, import_chunk_WWAWV7DQ.__require)("constants");
|
|
3214
3214
|
var origCwd = process.cwd;
|
|
@@ -3278,7 +3278,7 @@ var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3278
3278
|
var start = Date.now();
|
|
3279
3279
|
var backoff = 0;
|
|
3280
3280
|
fs$rename(from, to, function CB(er) {
|
|
3281
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
3281
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
3282
3282
|
setTimeout(function() {
|
|
3283
3283
|
fs3.stat(to, function(stater, st) {
|
|
3284
3284
|
if (stater && stater.code === "ENOENT")
|
|
@@ -3495,7 +3495,7 @@ var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3495
3495
|
}
|
|
3496
3496
|
});
|
|
3497
3497
|
var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3498
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3498
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
3499
3499
|
"use strict";
|
|
3500
3500
|
var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
|
|
3501
3501
|
module2.exports = legacy;
|
|
@@ -3590,7 +3590,7 @@ var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3590
3590
|
}
|
|
3591
3591
|
});
|
|
3592
3592
|
var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3593
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3593
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
3594
3594
|
"use strict";
|
|
3595
3595
|
module2.exports = clone;
|
|
3596
3596
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -3611,7 +3611,7 @@ var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3611
3611
|
}
|
|
3612
3612
|
});
|
|
3613
3613
|
var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3614
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
3614
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
3615
3615
|
"use strict";
|
|
3616
3616
|
var fs3 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
3617
3617
|
var polyfills = require_polyfills();
|
|
@@ -3980,7 +3980,7 @@ var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3980
3980
|
}
|
|
3981
3981
|
});
|
|
3982
3982
|
var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3983
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
3983
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
3984
3984
|
"use strict";
|
|
3985
3985
|
var u = require_universalify().fromCallback;
|
|
3986
3986
|
var fs3 = require_graceful_fs();
|
|
@@ -3991,6 +3991,7 @@ var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3991
3991
|
"chown",
|
|
3992
3992
|
"close",
|
|
3993
3993
|
"copyFile",
|
|
3994
|
+
"cp",
|
|
3994
3995
|
"fchmod",
|
|
3995
3996
|
"fchown",
|
|
3996
3997
|
"fdatasync",
|
|
@@ -3998,8 +3999,10 @@ var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3998
3999
|
"fsync",
|
|
3999
4000
|
"ftruncate",
|
|
4000
4001
|
"futimes",
|
|
4002
|
+
"glob",
|
|
4001
4003
|
"lchmod",
|
|
4002
4004
|
"lchown",
|
|
4005
|
+
"lutimes",
|
|
4003
4006
|
"link",
|
|
4004
4007
|
"lstat",
|
|
4005
4008
|
"mkdir",
|
|
@@ -4014,6 +4017,7 @@ var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4014
4017
|
"rm",
|
|
4015
4018
|
"rmdir",
|
|
4016
4019
|
"stat",
|
|
4020
|
+
"statfs",
|
|
4017
4021
|
"symlink",
|
|
4018
4022
|
"truncate",
|
|
4019
4023
|
"unlink",
|
|
@@ -4090,7 +4094,7 @@ var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4090
4094
|
}
|
|
4091
4095
|
});
|
|
4092
4096
|
var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4093
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4097
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
4094
4098
|
"use strict";
|
|
4095
4099
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4096
4100
|
module2.exports.checkPath = function checkPath(pth) {
|
|
@@ -4106,7 +4110,7 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4106
4110
|
}
|
|
4107
4111
|
});
|
|
4108
4112
|
var require_make_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4109
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4113
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
|
|
4110
4114
|
"use strict";
|
|
4111
4115
|
var fs3 = require_fs2();
|
|
4112
4116
|
var { checkPath } = require_utils();
|
|
@@ -4132,7 +4136,7 @@ var require_make_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4132
4136
|
}
|
|
4133
4137
|
});
|
|
4134
4138
|
var require_mkdirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4135
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4139
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) {
|
|
4136
4140
|
"use strict";
|
|
4137
4141
|
var u = require_universalify().fromPromise;
|
|
4138
4142
|
var { makeDir: _makeDir, makeDirSync } = require_make_dir();
|
|
@@ -4149,7 +4153,7 @@ var require_mkdirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4149
4153
|
}
|
|
4150
4154
|
});
|
|
4151
4155
|
var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4152
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4156
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
|
|
4153
4157
|
"use strict";
|
|
4154
4158
|
var u = require_universalify().fromPromise;
|
|
4155
4159
|
var fs3 = require_fs2();
|
|
@@ -4163,18 +4167,25 @@ var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4163
4167
|
}
|
|
4164
4168
|
});
|
|
4165
4169
|
var require_utimes = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4166
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4170
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
4167
4171
|
"use strict";
|
|
4168
|
-
var fs3 =
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4172
|
+
var fs3 = require_fs2();
|
|
4173
|
+
var u = require_universalify().fromPromise;
|
|
4174
|
+
async function utimesMillis(path7, atime, mtime) {
|
|
4175
|
+
const fd = await fs3.open(path7, "r+");
|
|
4176
|
+
let closeErr = null;
|
|
4177
|
+
try {
|
|
4178
|
+
await fs3.futimes(fd, atime, mtime);
|
|
4179
|
+
} finally {
|
|
4180
|
+
try {
|
|
4181
|
+
await fs3.close(fd);
|
|
4182
|
+
} catch (e) {
|
|
4183
|
+
closeErr = e;
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
if (closeErr) {
|
|
4187
|
+
throw closeErr;
|
|
4188
|
+
}
|
|
4178
4189
|
}
|
|
4179
4190
|
function utimesMillisSync(path7, atime, mtime) {
|
|
4180
4191
|
const fd = fs3.openSync(path7, "r+");
|
|
@@ -4182,17 +4193,17 @@ var require_utimes = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4182
4193
|
return fs3.closeSync(fd);
|
|
4183
4194
|
}
|
|
4184
4195
|
module2.exports = {
|
|
4185
|
-
utimesMillis,
|
|
4196
|
+
utimesMillis: u(utimesMillis),
|
|
4186
4197
|
utimesMillisSync
|
|
4187
4198
|
};
|
|
4188
4199
|
}
|
|
4189
4200
|
});
|
|
4190
4201
|
var require_stat = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4191
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4202
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
4192
4203
|
"use strict";
|
|
4193
4204
|
var fs3 = require_fs2();
|
|
4194
4205
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4195
|
-
var
|
|
4206
|
+
var u = require_universalify().fromPromise;
|
|
4196
4207
|
function getStats(src, dest, opts) {
|
|
4197
4208
|
const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
|
|
4198
4209
|
return Promise.all([
|
|
@@ -4215,31 +4226,28 @@ var require_stat = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4215
4226
|
}
|
|
4216
4227
|
return { srcStat, destStat };
|
|
4217
4228
|
}
|
|
4218
|
-
function checkPaths(src, dest, funcName, opts
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
4227
|
-
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
4228
|
-
}
|
|
4229
|
-
return cb(new Error("Source and destination must not be the same."));
|
|
4230
|
-
}
|
|
4231
|
-
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
4232
|
-
return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`));
|
|
4233
|
-
}
|
|
4234
|
-
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
4235
|
-
return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`));
|
|
4229
|
+
async function checkPaths(src, dest, funcName, opts) {
|
|
4230
|
+
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
4231
|
+
if (destStat) {
|
|
4232
|
+
if (areIdentical(srcStat, destStat)) {
|
|
4233
|
+
const srcBaseName = path7.basename(src);
|
|
4234
|
+
const destBaseName = path7.basename(dest);
|
|
4235
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
4236
|
+
return { srcStat, destStat, isChangingCase: true };
|
|
4236
4237
|
}
|
|
4238
|
+
throw new Error("Source and destination must not be the same.");
|
|
4239
|
+
}
|
|
4240
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
4241
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
|
|
4237
4242
|
}
|
|
4238
|
-
if (srcStat.isDirectory() &&
|
|
4239
|
-
|
|
4243
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
4244
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
|
|
4240
4245
|
}
|
|
4241
|
-
|
|
4242
|
-
|
|
4246
|
+
}
|
|
4247
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
4248
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
4249
|
+
}
|
|
4250
|
+
return { srcStat, destStat };
|
|
4243
4251
|
}
|
|
4244
4252
|
function checkPathsSync(src, dest, funcName, opts) {
|
|
4245
4253
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
@@ -4264,20 +4272,21 @@ var require_stat = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4264
4272
|
}
|
|
4265
4273
|
return { srcStat, destStat };
|
|
4266
4274
|
}
|
|
4267
|
-
function checkParentPaths(src, srcStat, dest, funcName
|
|
4275
|
+
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
4268
4276
|
const srcParent = path7.resolve(path7.dirname(src));
|
|
4269
4277
|
const destParent = path7.resolve(path7.dirname(dest));
|
|
4270
|
-
if (destParent === srcParent || destParent === path7.parse(destParent).root) return
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
}
|
|
4278
|
+
if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
|
|
4279
|
+
let destStat;
|
|
4280
|
+
try {
|
|
4281
|
+
destStat = await fs3.stat(destParent, { bigint: true });
|
|
4282
|
+
} catch (err) {
|
|
4283
|
+
if (err.code === "ENOENT") return;
|
|
4284
|
+
throw err;
|
|
4285
|
+
}
|
|
4286
|
+
if (areIdentical(srcStat, destStat)) {
|
|
4287
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
4288
|
+
}
|
|
4289
|
+
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
4281
4290
|
}
|
|
4282
4291
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
4283
4292
|
const srcParent = path7.resolve(path7.dirname(src));
|
|
@@ -4301,40 +4310,37 @@ var require_stat = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4301
4310
|
function isSrcSubdir(src, dest) {
|
|
4302
4311
|
const srcArr = path7.resolve(src).split(path7.sep).filter((i) => i);
|
|
4303
4312
|
const destArr = path7.resolve(dest).split(path7.sep).filter((i) => i);
|
|
4304
|
-
return srcArr.
|
|
4313
|
+
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
4305
4314
|
}
|
|
4306
4315
|
function errMsg(src, dest, funcName) {
|
|
4307
4316
|
return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
|
|
4308
4317
|
}
|
|
4309
4318
|
module2.exports = {
|
|
4310
|
-
checkPaths
|
|
4319
|
+
// checkPaths
|
|
4320
|
+
checkPaths: u(checkPaths),
|
|
4311
4321
|
checkPathsSync,
|
|
4312
|
-
|
|
4322
|
+
// checkParent
|
|
4323
|
+
checkParentPaths: u(checkParentPaths),
|
|
4313
4324
|
checkParentPathsSync,
|
|
4325
|
+
// Misc
|
|
4314
4326
|
isSrcSubdir,
|
|
4315
4327
|
areIdentical
|
|
4316
4328
|
};
|
|
4317
4329
|
}
|
|
4318
4330
|
});
|
|
4319
4331
|
var require_copy2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4320
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4332
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
4321
4333
|
"use strict";
|
|
4322
|
-
var fs3 =
|
|
4334
|
+
var fs3 = require_fs2();
|
|
4323
4335
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4324
|
-
var mkdirs = require_mkdirs()
|
|
4325
|
-
var pathExists = require_path_exists()
|
|
4326
|
-
var utimesMillis = require_utimes()
|
|
4336
|
+
var { mkdirs } = require_mkdirs();
|
|
4337
|
+
var { pathExists } = require_path_exists();
|
|
4338
|
+
var { utimesMillis } = require_utimes();
|
|
4327
4339
|
var stat2 = require_stat();
|
|
4328
|
-
function copy(src, dest, opts
|
|
4329
|
-
if (typeof opts === "function"
|
|
4330
|
-
cb = opts;
|
|
4331
|
-
opts = {};
|
|
4332
|
-
} else if (typeof opts === "function") {
|
|
4340
|
+
async function copy(src, dest, opts = {}) {
|
|
4341
|
+
if (typeof opts === "function") {
|
|
4333
4342
|
opts = { filter: opts };
|
|
4334
4343
|
}
|
|
4335
|
-
cb = cb || function() {
|
|
4336
|
-
};
|
|
4337
|
-
opts = opts || {};
|
|
4338
4344
|
opts.clobber = "clobber" in opts ? !!opts.clobber : true;
|
|
4339
4345
|
opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
|
|
4340
4346
|
if (opts.preserveTimestamps && process.arch === "ia32") {
|
|
@@ -4344,176 +4350,113 @@ var require_copy2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4344
4350
|
"fs-extra-WARN0001"
|
|
4345
4351
|
);
|
|
4346
4352
|
}
|
|
4347
|
-
stat2.checkPaths(src, dest, "copy", opts
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
if (err2) return cb(err2);
|
|
4352
|
-
runFilter(src, dest, opts, (err3, include) => {
|
|
4353
|
-
if (err3) return cb(err3);
|
|
4354
|
-
if (!include) return cb();
|
|
4355
|
-
checkParentDir(destStat, src, dest, opts, cb);
|
|
4356
|
-
});
|
|
4357
|
-
});
|
|
4358
|
-
});
|
|
4359
|
-
}
|
|
4360
|
-
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
4353
|
+
const { srcStat, destStat } = await stat2.checkPaths(src, dest, "copy", opts);
|
|
4354
|
+
await stat2.checkParentPaths(src, srcStat, dest, "copy");
|
|
4355
|
+
const include = await runFilter(src, dest, opts);
|
|
4356
|
+
if (!include) return;
|
|
4361
4357
|
const destParent = path7.dirname(dest);
|
|
4362
|
-
pathExists(destParent
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
return getStats(destStat, src, dest, opts, cb);
|
|
4368
|
-
});
|
|
4369
|
-
});
|
|
4358
|
+
const dirExists = await pathExists(destParent);
|
|
4359
|
+
if (!dirExists) {
|
|
4360
|
+
await mkdirs(destParent);
|
|
4361
|
+
}
|
|
4362
|
+
await getStatsAndPerformCopy(destStat, src, dest, opts);
|
|
4370
4363
|
}
|
|
4371
|
-
function runFilter(src, dest, opts
|
|
4372
|
-
if (!opts.filter) return
|
|
4373
|
-
|
|
4374
|
-
}
|
|
4375
|
-
function getStats(destStat, src, dest, opts, cb) {
|
|
4376
|
-
const stat3 = opts.dereference ? fs3.stat : fs3.lstat;
|
|
4377
|
-
stat3(src, (err, srcStat) => {
|
|
4378
|
-
if (err) return cb(err);
|
|
4379
|
-
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
|
|
4380
|
-
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb);
|
|
4381
|
-
else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb);
|
|
4382
|
-
else if (srcStat.isSocket()) return cb(new Error(`Cannot copy a socket file: ${src}`));
|
|
4383
|
-
else if (srcStat.isFIFO()) return cb(new Error(`Cannot copy a FIFO pipe: ${src}`));
|
|
4384
|
-
return cb(new Error(`Unknown file: ${src}`));
|
|
4385
|
-
});
|
|
4364
|
+
async function runFilter(src, dest, opts) {
|
|
4365
|
+
if (!opts.filter) return true;
|
|
4366
|
+
return opts.filter(src, dest);
|
|
4386
4367
|
}
|
|
4387
|
-
function
|
|
4388
|
-
|
|
4389
|
-
|
|
4368
|
+
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
4369
|
+
const statFn = opts.dereference ? fs3.stat : fs3.lstat;
|
|
4370
|
+
const srcStat = await statFn(src);
|
|
4371
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
4372
|
+
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
4373
|
+
if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
|
|
4374
|
+
if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`);
|
|
4375
|
+
if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`);
|
|
4376
|
+
throw new Error(`Unknown file: ${src}`);
|
|
4390
4377
|
}
|
|
4391
|
-
function
|
|
4378
|
+
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
4379
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts);
|
|
4392
4380
|
if (opts.overwrite) {
|
|
4393
|
-
fs3.unlink(dest
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
} else return cb();
|
|
4400
|
-
}
|
|
4401
|
-
function copyFile(srcStat, src, dest, opts, cb) {
|
|
4402
|
-
fs3.copyFile(src, dest, (err) => {
|
|
4403
|
-
if (err) return cb(err);
|
|
4404
|
-
if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
|
|
4405
|
-
return setDestMode(dest, srcStat.mode, cb);
|
|
4406
|
-
});
|
|
4381
|
+
await fs3.unlink(dest);
|
|
4382
|
+
return copyFile(srcStat, src, dest, opts);
|
|
4383
|
+
}
|
|
4384
|
+
if (opts.errorOnExist) {
|
|
4385
|
+
throw new Error(`'${dest}' already exists`);
|
|
4386
|
+
}
|
|
4407
4387
|
}
|
|
4408
|
-
function
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
}
|
|
4388
|
+
async function copyFile(srcStat, src, dest, opts) {
|
|
4389
|
+
await fs3.copyFile(src, dest);
|
|
4390
|
+
if (opts.preserveTimestamps) {
|
|
4391
|
+
if (fileIsNotWritable(srcStat.mode)) {
|
|
4392
|
+
await makeFileWritable(dest, srcStat.mode);
|
|
4393
|
+
}
|
|
4394
|
+
const updatedSrcStat = await fs3.stat(src);
|
|
4395
|
+
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
4414
4396
|
}
|
|
4415
|
-
return
|
|
4397
|
+
return fs3.chmod(dest, srcStat.mode);
|
|
4416
4398
|
}
|
|
4417
4399
|
function fileIsNotWritable(srcMode) {
|
|
4418
4400
|
return (srcMode & 128) === 0;
|
|
4419
4401
|
}
|
|
4420
|
-
function makeFileWritable(dest, srcMode
|
|
4421
|
-
return
|
|
4422
|
-
}
|
|
4423
|
-
function setDestTimestampsAndMode(srcMode, src, dest, cb) {
|
|
4424
|
-
setDestTimestamps(src, dest, (err) => {
|
|
4425
|
-
if (err) return cb(err);
|
|
4426
|
-
return setDestMode(dest, srcMode, cb);
|
|
4427
|
-
});
|
|
4428
|
-
}
|
|
4429
|
-
function setDestMode(dest, srcMode, cb) {
|
|
4430
|
-
return fs3.chmod(dest, srcMode, cb);
|
|
4431
|
-
}
|
|
4432
|
-
function setDestTimestamps(src, dest, cb) {
|
|
4433
|
-
fs3.stat(src, (err, updatedSrcStat) => {
|
|
4434
|
-
if (err) return cb(err);
|
|
4435
|
-
return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
|
|
4436
|
-
});
|
|
4437
|
-
}
|
|
4438
|
-
function onDir(srcStat, destStat, src, dest, opts, cb) {
|
|
4439
|
-
if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb);
|
|
4440
|
-
return copyDir(src, dest, opts, cb);
|
|
4441
|
-
}
|
|
4442
|
-
function mkDirAndCopy(srcMode, src, dest, opts, cb) {
|
|
4443
|
-
fs3.mkdir(dest, (err) => {
|
|
4444
|
-
if (err) return cb(err);
|
|
4445
|
-
copyDir(src, dest, opts, (err2) => {
|
|
4446
|
-
if (err2) return cb(err2);
|
|
4447
|
-
return setDestMode(dest, srcMode, cb);
|
|
4448
|
-
});
|
|
4449
|
-
});
|
|
4450
|
-
}
|
|
4451
|
-
function copyDir(src, dest, opts, cb) {
|
|
4452
|
-
fs3.readdir(src, (err, items) => {
|
|
4453
|
-
if (err) return cb(err);
|
|
4454
|
-
return copyDirItems(items, src, dest, opts, cb);
|
|
4455
|
-
});
|
|
4456
|
-
}
|
|
4457
|
-
function copyDirItems(items, src, dest, opts, cb) {
|
|
4458
|
-
const item = items.pop();
|
|
4459
|
-
if (!item) return cb();
|
|
4460
|
-
return copyDirItem(items, item, src, dest, opts, cb);
|
|
4461
|
-
}
|
|
4462
|
-
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
4463
|
-
const srcItem = path7.join(src, item);
|
|
4464
|
-
const destItem = path7.join(dest, item);
|
|
4465
|
-
runFilter(srcItem, destItem, opts, (err, include) => {
|
|
4466
|
-
if (err) return cb(err);
|
|
4467
|
-
if (!include) return copyDirItems(items, src, dest, opts, cb);
|
|
4468
|
-
stat2.checkPaths(srcItem, destItem, "copy", opts, (err2, stats) => {
|
|
4469
|
-
if (err2) return cb(err2);
|
|
4470
|
-
const { destStat } = stats;
|
|
4471
|
-
getStats(destStat, srcItem, destItem, opts, (err3) => {
|
|
4472
|
-
if (err3) return cb(err3);
|
|
4473
|
-
return copyDirItems(items, src, dest, opts, cb);
|
|
4474
|
-
});
|
|
4475
|
-
});
|
|
4476
|
-
});
|
|
4402
|
+
function makeFileWritable(dest, srcMode) {
|
|
4403
|
+
return fs3.chmod(dest, srcMode | 128);
|
|
4477
4404
|
}
|
|
4478
|
-
function
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
if (
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
if (opts.dereference) {
|
|
4493
|
-
resolvedDest = path7.resolve(process.cwd(), resolvedDest);
|
|
4494
|
-
}
|
|
4495
|
-
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
4496
|
-
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
4497
|
-
}
|
|
4498
|
-
if (stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
4499
|
-
return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
|
|
4405
|
+
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
4406
|
+
if (!destStat) {
|
|
4407
|
+
await fs3.mkdir(dest);
|
|
4408
|
+
}
|
|
4409
|
+
const promises = [];
|
|
4410
|
+
for await (const item of await fs3.opendir(src)) {
|
|
4411
|
+
const srcItem = path7.join(src, item.name);
|
|
4412
|
+
const destItem = path7.join(dest, item.name);
|
|
4413
|
+
promises.push(
|
|
4414
|
+
runFilter(srcItem, destItem, opts).then((include) => {
|
|
4415
|
+
if (include) {
|
|
4416
|
+
return stat2.checkPaths(srcItem, destItem, "copy", opts).then(({ destStat: destStat2 }) => {
|
|
4417
|
+
return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
|
|
4418
|
+
});
|
|
4500
4419
|
}
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4420
|
+
})
|
|
4421
|
+
);
|
|
4422
|
+
}
|
|
4423
|
+
await Promise.all(promises);
|
|
4424
|
+
if (!destStat) {
|
|
4425
|
+
await fs3.chmod(dest, srcStat.mode);
|
|
4426
|
+
}
|
|
4505
4427
|
}
|
|
4506
|
-
function
|
|
4507
|
-
fs3.
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
}
|
|
4428
|
+
async function onLink(destStat, src, dest, opts) {
|
|
4429
|
+
let resolvedSrc = await fs3.readlink(src);
|
|
4430
|
+
if (opts.dereference) {
|
|
4431
|
+
resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
|
|
4432
|
+
}
|
|
4433
|
+
if (!destStat) {
|
|
4434
|
+
return fs3.symlink(resolvedSrc, dest);
|
|
4435
|
+
}
|
|
4436
|
+
let resolvedDest = null;
|
|
4437
|
+
try {
|
|
4438
|
+
resolvedDest = await fs3.readlink(dest);
|
|
4439
|
+
} catch (e) {
|
|
4440
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs3.symlink(resolvedSrc, dest);
|
|
4441
|
+
throw e;
|
|
4442
|
+
}
|
|
4443
|
+
if (opts.dereference) {
|
|
4444
|
+
resolvedDest = path7.resolve(process.cwd(), resolvedDest);
|
|
4445
|
+
}
|
|
4446
|
+
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
4447
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
4448
|
+
}
|
|
4449
|
+
if (stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
4450
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
4451
|
+
}
|
|
4452
|
+
await fs3.unlink(dest);
|
|
4453
|
+
return fs3.symlink(resolvedSrc, dest);
|
|
4511
4454
|
}
|
|
4512
4455
|
module2.exports = copy;
|
|
4513
4456
|
}
|
|
4514
4457
|
});
|
|
4515
4458
|
var require_copy_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4516
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4459
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
4517
4460
|
"use strict";
|
|
4518
4461
|
var fs3 = require_graceful_fs();
|
|
4519
4462
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
@@ -4595,7 +4538,15 @@ var require_copy_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4595
4538
|
return setDestMode(dest, srcMode);
|
|
4596
4539
|
}
|
|
4597
4540
|
function copyDir(src, dest, opts) {
|
|
4598
|
-
fs3.
|
|
4541
|
+
const dir = fs3.opendirSync(src);
|
|
4542
|
+
try {
|
|
4543
|
+
let dirent;
|
|
4544
|
+
while ((dirent = dir.readSync()) !== null) {
|
|
4545
|
+
copyDirItem(dirent.name, src, dest, opts);
|
|
4546
|
+
}
|
|
4547
|
+
} finally {
|
|
4548
|
+
dir.closeSync();
|
|
4549
|
+
}
|
|
4599
4550
|
}
|
|
4600
4551
|
function copyDirItem(item, src, dest, opts) {
|
|
4601
4552
|
const srcItem = path7.join(src, item);
|
|
@@ -4639,9 +4590,9 @@ var require_copy_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4639
4590
|
}
|
|
4640
4591
|
});
|
|
4641
4592
|
var require_copy3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4642
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4593
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/index.js"(exports, module2) {
|
|
4643
4594
|
"use strict";
|
|
4644
|
-
var u = require_universalify().
|
|
4595
|
+
var u = require_universalify().fromPromise;
|
|
4645
4596
|
module2.exports = {
|
|
4646
4597
|
copy: u(require_copy2()),
|
|
4647
4598
|
copySync: require_copy_sync()
|
|
@@ -4649,7 +4600,7 @@ var require_copy3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4649
4600
|
}
|
|
4650
4601
|
});
|
|
4651
4602
|
var require_remove2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4652
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4603
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
|
|
4653
4604
|
"use strict";
|
|
4654
4605
|
var fs3 = require_graceful_fs();
|
|
4655
4606
|
var u = require_universalify().fromCallback;
|
|
@@ -4666,7 +4617,7 @@ var require_remove2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4666
4617
|
}
|
|
4667
4618
|
});
|
|
4668
4619
|
var require_empty = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4669
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4620
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
|
|
4670
4621
|
"use strict";
|
|
4671
4622
|
var u = require_universalify().fromPromise;
|
|
4672
4623
|
var fs3 = require_fs2();
|
|
@@ -4703,40 +4654,37 @@ var require_empty = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4703
4654
|
}
|
|
4704
4655
|
});
|
|
4705
4656
|
var require_file2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4706
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4657
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
4707
4658
|
"use strict";
|
|
4708
|
-
var u = require_universalify().
|
|
4659
|
+
var u = require_universalify().fromPromise;
|
|
4709
4660
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4710
|
-
var fs3 =
|
|
4661
|
+
var fs3 = require_fs2();
|
|
4711
4662
|
var mkdir = require_mkdirs();
|
|
4712
|
-
function createFile(file
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4663
|
+
async function createFile(file) {
|
|
4664
|
+
let stats;
|
|
4665
|
+
try {
|
|
4666
|
+
stats = await fs3.stat(file);
|
|
4667
|
+
} catch {
|
|
4668
|
+
}
|
|
4669
|
+
if (stats && stats.isFile()) return;
|
|
4670
|
+
const dir = path7.dirname(file);
|
|
4671
|
+
let dirStats = null;
|
|
4672
|
+
try {
|
|
4673
|
+
dirStats = await fs3.stat(dir);
|
|
4674
|
+
} catch (err) {
|
|
4675
|
+
if (err.code === "ENOENT") {
|
|
4676
|
+
await mkdir.mkdirs(dir);
|
|
4677
|
+
await fs3.writeFile(file, "");
|
|
4678
|
+
return;
|
|
4679
|
+
} else {
|
|
4680
|
+
throw err;
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4683
|
+
if (dirStats.isDirectory()) {
|
|
4684
|
+
await fs3.writeFile(file, "");
|
|
4685
|
+
} else {
|
|
4686
|
+
await fs3.readdir(dir);
|
|
4718
4687
|
}
|
|
4719
|
-
fs3.stat(file, (err, stats) => {
|
|
4720
|
-
if (!err && stats.isFile()) return callback();
|
|
4721
|
-
const dir = path7.dirname(file);
|
|
4722
|
-
fs3.stat(dir, (err2, stats2) => {
|
|
4723
|
-
if (err2) {
|
|
4724
|
-
if (err2.code === "ENOENT") {
|
|
4725
|
-
return mkdir.mkdirs(dir, (err3) => {
|
|
4726
|
-
if (err3) return callback(err3);
|
|
4727
|
-
makeFile();
|
|
4728
|
-
});
|
|
4729
|
-
}
|
|
4730
|
-
return callback(err2);
|
|
4731
|
-
}
|
|
4732
|
-
if (stats2.isDirectory()) makeFile();
|
|
4733
|
-
else {
|
|
4734
|
-
fs3.readdir(dir, (err3) => {
|
|
4735
|
-
if (err3) return callback(err3);
|
|
4736
|
-
});
|
|
4737
|
-
}
|
|
4738
|
-
});
|
|
4739
|
-
});
|
|
4740
4688
|
}
|
|
4741
4689
|
function createFileSync(file) {
|
|
4742
4690
|
let stats;
|
|
@@ -4763,39 +4711,34 @@ var require_file2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4763
4711
|
}
|
|
4764
4712
|
});
|
|
4765
4713
|
var require_link = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4766
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4714
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
4767
4715
|
"use strict";
|
|
4768
|
-
var u = require_universalify().
|
|
4716
|
+
var u = require_universalify().fromPromise;
|
|
4769
4717
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4770
|
-
var fs3 =
|
|
4718
|
+
var fs3 = require_fs2();
|
|
4771
4719
|
var mkdir = require_mkdirs();
|
|
4772
|
-
var pathExists = require_path_exists()
|
|
4720
|
+
var { pathExists } = require_path_exists();
|
|
4773
4721
|
var { areIdentical } = require_stat();
|
|
4774
|
-
function createLink(srcpath, dstpath
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
});
|
|
4722
|
+
async function createLink(srcpath, dstpath) {
|
|
4723
|
+
let dstStat;
|
|
4724
|
+
try {
|
|
4725
|
+
dstStat = await fs3.lstat(dstpath);
|
|
4726
|
+
} catch {
|
|
4780
4727
|
}
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
});
|
|
4796
|
-
});
|
|
4797
|
-
});
|
|
4798
|
-
});
|
|
4728
|
+
let srcStat;
|
|
4729
|
+
try {
|
|
4730
|
+
srcStat = await fs3.lstat(srcpath);
|
|
4731
|
+
} catch (err) {
|
|
4732
|
+
err.message = err.message.replace("lstat", "ensureLink");
|
|
4733
|
+
throw err;
|
|
4734
|
+
}
|
|
4735
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
4736
|
+
const dir = path7.dirname(dstpath);
|
|
4737
|
+
const dirExists = await pathExists(dir);
|
|
4738
|
+
if (!dirExists) {
|
|
4739
|
+
await mkdir.mkdirs(dir);
|
|
4740
|
+
}
|
|
4741
|
+
await fs3.link(srcpath, dstpath);
|
|
4799
4742
|
}
|
|
4800
4743
|
function createLinkSync(srcpath, dstpath) {
|
|
4801
4744
|
let dstStat;
|
|
@@ -4823,99 +4766,94 @@ var require_link = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4823
4766
|
}
|
|
4824
4767
|
});
|
|
4825
4768
|
var require_symlink_paths = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4826
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4769
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
4827
4770
|
"use strict";
|
|
4828
4771
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4829
|
-
var fs3 =
|
|
4830
|
-
var pathExists = require_path_exists()
|
|
4831
|
-
|
|
4772
|
+
var fs3 = require_fs2();
|
|
4773
|
+
var { pathExists } = require_path_exists();
|
|
4774
|
+
var u = require_universalify().fromPromise;
|
|
4775
|
+
async function symlinkPaths(srcpath, dstpath) {
|
|
4832
4776
|
if (path7.isAbsolute(srcpath)) {
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
}
|
|
4843
|
-
}
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
}
|
|
4859
|
-
return callback(null, {
|
|
4860
|
-
toCwd: srcpath,
|
|
4861
|
-
toDst: path7.relative(dstdir, srcpath)
|
|
4862
|
-
});
|
|
4863
|
-
});
|
|
4864
|
-
}
|
|
4865
|
-
});
|
|
4777
|
+
try {
|
|
4778
|
+
await fs3.lstat(srcpath);
|
|
4779
|
+
} catch (err) {
|
|
4780
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
4781
|
+
throw err;
|
|
4782
|
+
}
|
|
4783
|
+
return {
|
|
4784
|
+
toCwd: srcpath,
|
|
4785
|
+
toDst: srcpath
|
|
4786
|
+
};
|
|
4787
|
+
}
|
|
4788
|
+
const dstdir = path7.dirname(dstpath);
|
|
4789
|
+
const relativeToDst = path7.join(dstdir, srcpath);
|
|
4790
|
+
const exists = await pathExists(relativeToDst);
|
|
4791
|
+
if (exists) {
|
|
4792
|
+
return {
|
|
4793
|
+
toCwd: relativeToDst,
|
|
4794
|
+
toDst: srcpath
|
|
4795
|
+
};
|
|
4796
|
+
}
|
|
4797
|
+
try {
|
|
4798
|
+
await fs3.lstat(srcpath);
|
|
4799
|
+
} catch (err) {
|
|
4800
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
4801
|
+
throw err;
|
|
4866
4802
|
}
|
|
4803
|
+
return {
|
|
4804
|
+
toCwd: srcpath,
|
|
4805
|
+
toDst: path7.relative(dstdir, srcpath)
|
|
4806
|
+
};
|
|
4867
4807
|
}
|
|
4868
4808
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
4869
|
-
let exists;
|
|
4870
4809
|
if (path7.isAbsolute(srcpath)) {
|
|
4871
|
-
|
|
4872
|
-
if (!
|
|
4810
|
+
const exists2 = fs3.existsSync(srcpath);
|
|
4811
|
+
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
4873
4812
|
return {
|
|
4874
4813
|
toCwd: srcpath,
|
|
4875
4814
|
toDst: srcpath
|
|
4876
4815
|
};
|
|
4877
|
-
} else {
|
|
4878
|
-
const dstdir = path7.dirname(dstpath);
|
|
4879
|
-
const relativeToDst = path7.join(dstdir, srcpath);
|
|
4880
|
-
exists = fs3.existsSync(relativeToDst);
|
|
4881
|
-
if (exists) {
|
|
4882
|
-
return {
|
|
4883
|
-
toCwd: relativeToDst,
|
|
4884
|
-
toDst: srcpath
|
|
4885
|
-
};
|
|
4886
|
-
} else {
|
|
4887
|
-
exists = fs3.existsSync(srcpath);
|
|
4888
|
-
if (!exists) throw new Error("relative srcpath does not exist");
|
|
4889
|
-
return {
|
|
4890
|
-
toCwd: srcpath,
|
|
4891
|
-
toDst: path7.relative(dstdir, srcpath)
|
|
4892
|
-
};
|
|
4893
|
-
}
|
|
4894
4816
|
}
|
|
4817
|
+
const dstdir = path7.dirname(dstpath);
|
|
4818
|
+
const relativeToDst = path7.join(dstdir, srcpath);
|
|
4819
|
+
const exists = fs3.existsSync(relativeToDst);
|
|
4820
|
+
if (exists) {
|
|
4821
|
+
return {
|
|
4822
|
+
toCwd: relativeToDst,
|
|
4823
|
+
toDst: srcpath
|
|
4824
|
+
};
|
|
4825
|
+
}
|
|
4826
|
+
const srcExists = fs3.existsSync(srcpath);
|
|
4827
|
+
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
4828
|
+
return {
|
|
4829
|
+
toCwd: srcpath,
|
|
4830
|
+
toDst: path7.relative(dstdir, srcpath)
|
|
4831
|
+
};
|
|
4895
4832
|
}
|
|
4896
4833
|
module2.exports = {
|
|
4897
|
-
symlinkPaths,
|
|
4834
|
+
symlinkPaths: u(symlinkPaths),
|
|
4898
4835
|
symlinkPathsSync
|
|
4899
4836
|
};
|
|
4900
4837
|
}
|
|
4901
4838
|
});
|
|
4902
4839
|
var require_symlink_type = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4903
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4840
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
|
|
4904
4841
|
"use strict";
|
|
4905
|
-
var fs3 =
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
}
|
|
4842
|
+
var fs3 = require_fs2();
|
|
4843
|
+
var u = require_universalify().fromPromise;
|
|
4844
|
+
async function symlinkType(srcpath, type) {
|
|
4845
|
+
if (type) return type;
|
|
4846
|
+
let stats;
|
|
4847
|
+
try {
|
|
4848
|
+
stats = await fs3.lstat(srcpath);
|
|
4849
|
+
} catch {
|
|
4850
|
+
return "file";
|
|
4851
|
+
}
|
|
4852
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
4915
4853
|
}
|
|
4916
4854
|
function symlinkTypeSync(srcpath, type) {
|
|
4917
|
-
let stats;
|
|
4918
4855
|
if (type) return type;
|
|
4856
|
+
let stats;
|
|
4919
4857
|
try {
|
|
4920
4858
|
stats = fs3.lstatSync(srcpath);
|
|
4921
4859
|
} catch {
|
|
@@ -4924,882 +4862,93 @@ var require_symlink_type = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4924
4862
|
return stats && stats.isDirectory() ? "dir" : "file";
|
|
4925
4863
|
}
|
|
4926
4864
|
module2.exports = {
|
|
4927
|
-
symlinkType,
|
|
4865
|
+
symlinkType: u(symlinkType),
|
|
4928
4866
|
symlinkTypeSync
|
|
4929
4867
|
};
|
|
4930
4868
|
}
|
|
4931
4869
|
});
|
|
4932
4870
|
var require_symlink2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4933
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
4871
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
4934
4872
|
"use strict";
|
|
4935
|
-
var u = require_universalify().
|
|
4873
|
+
var u = require_universalify().fromPromise;
|
|
4936
4874
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
4937
4875
|
var fs3 = require_fs2();
|
|
4938
|
-
var
|
|
4939
|
-
var
|
|
4940
|
-
var
|
|
4941
|
-
var
|
|
4942
|
-
var symlinkPaths = _symlinkPaths.symlinkPaths;
|
|
4943
|
-
var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
|
|
4944
|
-
var _symlinkType = require_symlink_type();
|
|
4945
|
-
var symlinkType = _symlinkType.symlinkType;
|
|
4946
|
-
var symlinkTypeSync = _symlinkType.symlinkTypeSync;
|
|
4947
|
-
var pathExists = require_path_exists().pathExists;
|
|
4876
|
+
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
4877
|
+
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
4878
|
+
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
4879
|
+
var { pathExists } = require_path_exists();
|
|
4948
4880
|
var { areIdentical } = require_stat();
|
|
4949
|
-
function createSymlink(srcpath, dstpath, type
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
Promise.all([
|
|
4955
|
-
fs3.stat(srcpath),
|
|
4956
|
-
fs3.stat(dstpath)
|
|
4957
|
-
]).then(([srcStat, dstStat]) => {
|
|
4958
|
-
if (areIdentical(srcStat, dstStat)) return callback(null);
|
|
4959
|
-
_createSymlink(srcpath, dstpath, type, callback);
|
|
4960
|
-
});
|
|
4961
|
-
} else _createSymlink(srcpath, dstpath, type, callback);
|
|
4962
|
-
});
|
|
4963
|
-
}
|
|
4964
|
-
function _createSymlink(srcpath, dstpath, type, callback) {
|
|
4965
|
-
symlinkPaths(srcpath, dstpath, (err, relative) => {
|
|
4966
|
-
if (err) return callback(err);
|
|
4967
|
-
srcpath = relative.toDst;
|
|
4968
|
-
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
4969
|
-
if (err2) return callback(err2);
|
|
4970
|
-
const dir = path7.dirname(dstpath);
|
|
4971
|
-
pathExists(dir, (err3, dirExists) => {
|
|
4972
|
-
if (err3) return callback(err3);
|
|
4973
|
-
if (dirExists) return fs3.symlink(srcpath, dstpath, type2, callback);
|
|
4974
|
-
mkdirs(dir, (err4) => {
|
|
4975
|
-
if (err4) return callback(err4);
|
|
4976
|
-
fs3.symlink(srcpath, dstpath, type2, callback);
|
|
4977
|
-
});
|
|
4978
|
-
});
|
|
4979
|
-
});
|
|
4980
|
-
});
|
|
4981
|
-
}
|
|
4982
|
-
function createSymlinkSync(srcpath, dstpath, type) {
|
|
4983
|
-
let stats;
|
|
4984
|
-
try {
|
|
4985
|
-
stats = fs3.lstatSync(dstpath);
|
|
4986
|
-
} catch {
|
|
4987
|
-
}
|
|
4988
|
-
if (stats && stats.isSymbolicLink()) {
|
|
4989
|
-
const srcStat = fs3.statSync(srcpath);
|
|
4990
|
-
const dstStat = fs3.statSync(dstpath);
|
|
4991
|
-
if (areIdentical(srcStat, dstStat)) return;
|
|
4992
|
-
}
|
|
4993
|
-
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
4994
|
-
srcpath = relative.toDst;
|
|
4995
|
-
type = symlinkTypeSync(relative.toCwd, type);
|
|
4996
|
-
const dir = path7.dirname(dstpath);
|
|
4997
|
-
const exists = fs3.existsSync(dir);
|
|
4998
|
-
if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
|
|
4999
|
-
mkdirsSync(dir);
|
|
5000
|
-
return fs3.symlinkSync(srcpath, dstpath, type);
|
|
5001
|
-
}
|
|
5002
|
-
module2.exports = {
|
|
5003
|
-
createSymlink: u(createSymlink),
|
|
5004
|
-
createSymlinkSync
|
|
5005
|
-
};
|
|
5006
|
-
}
|
|
5007
|
-
});
|
|
5008
|
-
var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5009
|
-
"../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
|
|
5010
|
-
"use strict";
|
|
5011
|
-
var { createFile, createFileSync } = require_file2();
|
|
5012
|
-
var { createLink, createLinkSync } = require_link();
|
|
5013
|
-
var { createSymlink, createSymlinkSync } = require_symlink2();
|
|
5014
|
-
module2.exports = {
|
|
5015
|
-
// file
|
|
5016
|
-
createFile,
|
|
5017
|
-
createFileSync,
|
|
5018
|
-
ensureFile: createFile,
|
|
5019
|
-
ensureFileSync: createFileSync,
|
|
5020
|
-
// link
|
|
5021
|
-
createLink,
|
|
5022
|
-
createLinkSync,
|
|
5023
|
-
ensureLink: createLink,
|
|
5024
|
-
ensureLinkSync: createLinkSync,
|
|
5025
|
-
// symlink
|
|
5026
|
-
createSymlink,
|
|
5027
|
-
createSymlinkSync,
|
|
5028
|
-
ensureSymlink: createSymlink,
|
|
5029
|
-
ensureSymlinkSync: createSymlinkSync
|
|
5030
|
-
};
|
|
5031
|
-
}
|
|
5032
|
-
});
|
|
5033
|
-
var require_polyfills2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5034
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
5035
|
-
"use strict";
|
|
5036
|
-
var constants = (0, import_chunk_WWAWV7DQ.__require)("constants");
|
|
5037
|
-
var origCwd = process.cwd;
|
|
5038
|
-
var cwd = null;
|
|
5039
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
5040
|
-
process.cwd = function() {
|
|
5041
|
-
if (!cwd)
|
|
5042
|
-
cwd = origCwd.call(process);
|
|
5043
|
-
return cwd;
|
|
5044
|
-
};
|
|
5045
|
-
try {
|
|
5046
|
-
process.cwd();
|
|
5047
|
-
} catch (er) {
|
|
5048
|
-
}
|
|
5049
|
-
if (typeof process.chdir === "function") {
|
|
5050
|
-
chdir = process.chdir;
|
|
5051
|
-
process.chdir = function(d) {
|
|
5052
|
-
cwd = null;
|
|
5053
|
-
chdir.call(process, d);
|
|
5054
|
-
};
|
|
5055
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
5056
|
-
}
|
|
5057
|
-
var chdir;
|
|
5058
|
-
module2.exports = patch;
|
|
5059
|
-
function patch(fs3) {
|
|
5060
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
5061
|
-
patchLchmod(fs3);
|
|
5062
|
-
}
|
|
5063
|
-
if (!fs3.lutimes) {
|
|
5064
|
-
patchLutimes(fs3);
|
|
5065
|
-
}
|
|
5066
|
-
fs3.chown = chownFix(fs3.chown);
|
|
5067
|
-
fs3.fchown = chownFix(fs3.fchown);
|
|
5068
|
-
fs3.lchown = chownFix(fs3.lchown);
|
|
5069
|
-
fs3.chmod = chmodFix(fs3.chmod);
|
|
5070
|
-
fs3.fchmod = chmodFix(fs3.fchmod);
|
|
5071
|
-
fs3.lchmod = chmodFix(fs3.lchmod);
|
|
5072
|
-
fs3.chownSync = chownFixSync(fs3.chownSync);
|
|
5073
|
-
fs3.fchownSync = chownFixSync(fs3.fchownSync);
|
|
5074
|
-
fs3.lchownSync = chownFixSync(fs3.lchownSync);
|
|
5075
|
-
fs3.chmodSync = chmodFixSync(fs3.chmodSync);
|
|
5076
|
-
fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
|
|
5077
|
-
fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
|
|
5078
|
-
fs3.stat = statFix(fs3.stat);
|
|
5079
|
-
fs3.fstat = statFix(fs3.fstat);
|
|
5080
|
-
fs3.lstat = statFix(fs3.lstat);
|
|
5081
|
-
fs3.statSync = statFixSync(fs3.statSync);
|
|
5082
|
-
fs3.fstatSync = statFixSync(fs3.fstatSync);
|
|
5083
|
-
fs3.lstatSync = statFixSync(fs3.lstatSync);
|
|
5084
|
-
if (fs3.chmod && !fs3.lchmod) {
|
|
5085
|
-
fs3.lchmod = function(path7, mode, cb) {
|
|
5086
|
-
if (cb) process.nextTick(cb);
|
|
5087
|
-
};
|
|
5088
|
-
fs3.lchmodSync = function() {
|
|
5089
|
-
};
|
|
5090
|
-
}
|
|
5091
|
-
if (fs3.chown && !fs3.lchown) {
|
|
5092
|
-
fs3.lchown = function(path7, uid, gid, cb) {
|
|
5093
|
-
if (cb) process.nextTick(cb);
|
|
5094
|
-
};
|
|
5095
|
-
fs3.lchownSync = function() {
|
|
5096
|
-
};
|
|
5097
|
-
}
|
|
5098
|
-
if (platform === "win32") {
|
|
5099
|
-
fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
|
|
5100
|
-
function rename(from, to, cb) {
|
|
5101
|
-
var start = Date.now();
|
|
5102
|
-
var backoff = 0;
|
|
5103
|
-
fs$rename(from, to, function CB(er) {
|
|
5104
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
5105
|
-
setTimeout(function() {
|
|
5106
|
-
fs3.stat(to, function(stater, st) {
|
|
5107
|
-
if (stater && stater.code === "ENOENT")
|
|
5108
|
-
fs$rename(from, to, CB);
|
|
5109
|
-
else
|
|
5110
|
-
cb(er);
|
|
5111
|
-
});
|
|
5112
|
-
}, backoff);
|
|
5113
|
-
if (backoff < 100)
|
|
5114
|
-
backoff += 10;
|
|
5115
|
-
return;
|
|
5116
|
-
}
|
|
5117
|
-
if (cb) cb(er);
|
|
5118
|
-
});
|
|
5119
|
-
}
|
|
5120
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
5121
|
-
return rename;
|
|
5122
|
-
}(fs3.rename);
|
|
5123
|
-
}
|
|
5124
|
-
fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
|
|
5125
|
-
function read(fd, buffer, offset, length, position, callback_) {
|
|
5126
|
-
var callback;
|
|
5127
|
-
if (callback_ && typeof callback_ === "function") {
|
|
5128
|
-
var eagCounter = 0;
|
|
5129
|
-
callback = function(er, _, __) {
|
|
5130
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
5131
|
-
eagCounter++;
|
|
5132
|
-
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
5133
|
-
}
|
|
5134
|
-
callback_.apply(this, arguments);
|
|
5135
|
-
};
|
|
5136
|
-
}
|
|
5137
|
-
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
5138
|
-
}
|
|
5139
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
5140
|
-
return read;
|
|
5141
|
-
}(fs3.read);
|
|
5142
|
-
fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
5143
|
-
return function(fd, buffer, offset, length, position) {
|
|
5144
|
-
var eagCounter = 0;
|
|
5145
|
-
while (true) {
|
|
5146
|
-
try {
|
|
5147
|
-
return fs$readSync.call(fs3, fd, buffer, offset, length, position);
|
|
5148
|
-
} catch (er) {
|
|
5149
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
5150
|
-
eagCounter++;
|
|
5151
|
-
continue;
|
|
5152
|
-
}
|
|
5153
|
-
throw er;
|
|
5154
|
-
}
|
|
5155
|
-
}
|
|
5156
|
-
};
|
|
5157
|
-
}(fs3.readSync);
|
|
5158
|
-
function patchLchmod(fs4) {
|
|
5159
|
-
fs4.lchmod = function(path7, mode, callback) {
|
|
5160
|
-
fs4.open(
|
|
5161
|
-
path7,
|
|
5162
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
|
5163
|
-
mode,
|
|
5164
|
-
function(err, fd) {
|
|
5165
|
-
if (err) {
|
|
5166
|
-
if (callback) callback(err);
|
|
5167
|
-
return;
|
|
5168
|
-
}
|
|
5169
|
-
fs4.fchmod(fd, mode, function(err2) {
|
|
5170
|
-
fs4.close(fd, function(err22) {
|
|
5171
|
-
if (callback) callback(err2 || err22);
|
|
5172
|
-
});
|
|
5173
|
-
});
|
|
5174
|
-
}
|
|
5175
|
-
);
|
|
5176
|
-
};
|
|
5177
|
-
fs4.lchmodSync = function(path7, mode) {
|
|
5178
|
-
var fd = fs4.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
5179
|
-
var threw = true;
|
|
5180
|
-
var ret;
|
|
5181
|
-
try {
|
|
5182
|
-
ret = fs4.fchmodSync(fd, mode);
|
|
5183
|
-
threw = false;
|
|
5184
|
-
} finally {
|
|
5185
|
-
if (threw) {
|
|
5186
|
-
try {
|
|
5187
|
-
fs4.closeSync(fd);
|
|
5188
|
-
} catch (er) {
|
|
5189
|
-
}
|
|
5190
|
-
} else {
|
|
5191
|
-
fs4.closeSync(fd);
|
|
5192
|
-
}
|
|
5193
|
-
}
|
|
5194
|
-
return ret;
|
|
5195
|
-
};
|
|
5196
|
-
}
|
|
5197
|
-
function patchLutimes(fs4) {
|
|
5198
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
|
|
5199
|
-
fs4.lutimes = function(path7, at, mt, cb) {
|
|
5200
|
-
fs4.open(path7, constants.O_SYMLINK, function(er, fd) {
|
|
5201
|
-
if (er) {
|
|
5202
|
-
if (cb) cb(er);
|
|
5203
|
-
return;
|
|
5204
|
-
}
|
|
5205
|
-
fs4.futimes(fd, at, mt, function(er2) {
|
|
5206
|
-
fs4.close(fd, function(er22) {
|
|
5207
|
-
if (cb) cb(er2 || er22);
|
|
5208
|
-
});
|
|
5209
|
-
});
|
|
5210
|
-
});
|
|
5211
|
-
};
|
|
5212
|
-
fs4.lutimesSync = function(path7, at, mt) {
|
|
5213
|
-
var fd = fs4.openSync(path7, constants.O_SYMLINK);
|
|
5214
|
-
var ret;
|
|
5215
|
-
var threw = true;
|
|
5216
|
-
try {
|
|
5217
|
-
ret = fs4.futimesSync(fd, at, mt);
|
|
5218
|
-
threw = false;
|
|
5219
|
-
} finally {
|
|
5220
|
-
if (threw) {
|
|
5221
|
-
try {
|
|
5222
|
-
fs4.closeSync(fd);
|
|
5223
|
-
} catch (er) {
|
|
5224
|
-
}
|
|
5225
|
-
} else {
|
|
5226
|
-
fs4.closeSync(fd);
|
|
5227
|
-
}
|
|
5228
|
-
}
|
|
5229
|
-
return ret;
|
|
5230
|
-
};
|
|
5231
|
-
} else if (fs4.futimes) {
|
|
5232
|
-
fs4.lutimes = function(_a, _b, _c, cb) {
|
|
5233
|
-
if (cb) process.nextTick(cb);
|
|
5234
|
-
};
|
|
5235
|
-
fs4.lutimesSync = function() {
|
|
5236
|
-
};
|
|
5237
|
-
}
|
|
5238
|
-
}
|
|
5239
|
-
function chmodFix(orig) {
|
|
5240
|
-
if (!orig) return orig;
|
|
5241
|
-
return function(target, mode, cb) {
|
|
5242
|
-
return orig.call(fs3, target, mode, function(er) {
|
|
5243
|
-
if (chownErOk(er)) er = null;
|
|
5244
|
-
if (cb) cb.apply(this, arguments);
|
|
5245
|
-
});
|
|
5246
|
-
};
|
|
5247
|
-
}
|
|
5248
|
-
function chmodFixSync(orig) {
|
|
5249
|
-
if (!orig) return orig;
|
|
5250
|
-
return function(target, mode) {
|
|
5251
|
-
try {
|
|
5252
|
-
return orig.call(fs3, target, mode);
|
|
5253
|
-
} catch (er) {
|
|
5254
|
-
if (!chownErOk(er)) throw er;
|
|
5255
|
-
}
|
|
5256
|
-
};
|
|
5257
|
-
}
|
|
5258
|
-
function chownFix(orig) {
|
|
5259
|
-
if (!orig) return orig;
|
|
5260
|
-
return function(target, uid, gid, cb) {
|
|
5261
|
-
return orig.call(fs3, target, uid, gid, function(er) {
|
|
5262
|
-
if (chownErOk(er)) er = null;
|
|
5263
|
-
if (cb) cb.apply(this, arguments);
|
|
5264
|
-
});
|
|
5265
|
-
};
|
|
5266
|
-
}
|
|
5267
|
-
function chownFixSync(orig) {
|
|
5268
|
-
if (!orig) return orig;
|
|
5269
|
-
return function(target, uid, gid) {
|
|
5270
|
-
try {
|
|
5271
|
-
return orig.call(fs3, target, uid, gid);
|
|
5272
|
-
} catch (er) {
|
|
5273
|
-
if (!chownErOk(er)) throw er;
|
|
5274
|
-
}
|
|
5275
|
-
};
|
|
5276
|
-
}
|
|
5277
|
-
function statFix(orig) {
|
|
5278
|
-
if (!orig) return orig;
|
|
5279
|
-
return function(target, options, cb) {
|
|
5280
|
-
if (typeof options === "function") {
|
|
5281
|
-
cb = options;
|
|
5282
|
-
options = null;
|
|
5283
|
-
}
|
|
5284
|
-
function callback(er, stats) {
|
|
5285
|
-
if (stats) {
|
|
5286
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
|
5287
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
|
5288
|
-
}
|
|
5289
|
-
if (cb) cb.apply(this, arguments);
|
|
5290
|
-
}
|
|
5291
|
-
return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
|
|
5292
|
-
};
|
|
5293
|
-
}
|
|
5294
|
-
function statFixSync(orig) {
|
|
5295
|
-
if (!orig) return orig;
|
|
5296
|
-
return function(target, options) {
|
|
5297
|
-
var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
|
|
5298
|
-
if (stats) {
|
|
5299
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
|
5300
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
|
5301
|
-
}
|
|
5302
|
-
return stats;
|
|
5303
|
-
};
|
|
5304
|
-
}
|
|
5305
|
-
function chownErOk(er) {
|
|
5306
|
-
if (!er)
|
|
5307
|
-
return true;
|
|
5308
|
-
if (er.code === "ENOSYS")
|
|
5309
|
-
return true;
|
|
5310
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
5311
|
-
if (nonroot) {
|
|
5312
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
5313
|
-
return true;
|
|
5314
|
-
}
|
|
5315
|
-
return false;
|
|
5316
|
-
}
|
|
5317
|
-
}
|
|
5318
|
-
}
|
|
5319
|
-
});
|
|
5320
|
-
var require_legacy_streams2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5321
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
5322
|
-
"use strict";
|
|
5323
|
-
var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
|
|
5324
|
-
module2.exports = legacy;
|
|
5325
|
-
function legacy(fs3) {
|
|
5326
|
-
return {
|
|
5327
|
-
ReadStream,
|
|
5328
|
-
WriteStream
|
|
5329
|
-
};
|
|
5330
|
-
function ReadStream(path7, options) {
|
|
5331
|
-
if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
|
|
5332
|
-
Stream.call(this);
|
|
5333
|
-
var self = this;
|
|
5334
|
-
this.path = path7;
|
|
5335
|
-
this.fd = null;
|
|
5336
|
-
this.readable = true;
|
|
5337
|
-
this.paused = false;
|
|
5338
|
-
this.flags = "r";
|
|
5339
|
-
this.mode = 438;
|
|
5340
|
-
this.bufferSize = 64 * 1024;
|
|
5341
|
-
options = options || {};
|
|
5342
|
-
var keys = Object.keys(options);
|
|
5343
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
5344
|
-
var key = keys[index];
|
|
5345
|
-
this[key] = options[key];
|
|
5346
|
-
}
|
|
5347
|
-
if (this.encoding) this.setEncoding(this.encoding);
|
|
5348
|
-
if (this.start !== void 0) {
|
|
5349
|
-
if ("number" !== typeof this.start) {
|
|
5350
|
-
throw TypeError("start must be a Number");
|
|
5351
|
-
}
|
|
5352
|
-
if (this.end === void 0) {
|
|
5353
|
-
this.end = Infinity;
|
|
5354
|
-
} else if ("number" !== typeof this.end) {
|
|
5355
|
-
throw TypeError("end must be a Number");
|
|
5356
|
-
}
|
|
5357
|
-
if (this.start > this.end) {
|
|
5358
|
-
throw new Error("start must be <= end");
|
|
5359
|
-
}
|
|
5360
|
-
this.pos = this.start;
|
|
5361
|
-
}
|
|
5362
|
-
if (this.fd !== null) {
|
|
5363
|
-
process.nextTick(function() {
|
|
5364
|
-
self._read();
|
|
5365
|
-
});
|
|
5366
|
-
return;
|
|
5367
|
-
}
|
|
5368
|
-
fs3.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
5369
|
-
if (err) {
|
|
5370
|
-
self.emit("error", err);
|
|
5371
|
-
self.readable = false;
|
|
5372
|
-
return;
|
|
5373
|
-
}
|
|
5374
|
-
self.fd = fd;
|
|
5375
|
-
self.emit("open", fd);
|
|
5376
|
-
self._read();
|
|
5377
|
-
});
|
|
5378
|
-
}
|
|
5379
|
-
function WriteStream(path7, options) {
|
|
5380
|
-
if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
|
|
5381
|
-
Stream.call(this);
|
|
5382
|
-
this.path = path7;
|
|
5383
|
-
this.fd = null;
|
|
5384
|
-
this.writable = true;
|
|
5385
|
-
this.flags = "w";
|
|
5386
|
-
this.encoding = "binary";
|
|
5387
|
-
this.mode = 438;
|
|
5388
|
-
this.bytesWritten = 0;
|
|
5389
|
-
options = options || {};
|
|
5390
|
-
var keys = Object.keys(options);
|
|
5391
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
5392
|
-
var key = keys[index];
|
|
5393
|
-
this[key] = options[key];
|
|
5394
|
-
}
|
|
5395
|
-
if (this.start !== void 0) {
|
|
5396
|
-
if ("number" !== typeof this.start) {
|
|
5397
|
-
throw TypeError("start must be a Number");
|
|
5398
|
-
}
|
|
5399
|
-
if (this.start < 0) {
|
|
5400
|
-
throw new Error("start must be >= zero");
|
|
5401
|
-
}
|
|
5402
|
-
this.pos = this.start;
|
|
5403
|
-
}
|
|
5404
|
-
this.busy = false;
|
|
5405
|
-
this._queue = [];
|
|
5406
|
-
if (this.fd === null) {
|
|
5407
|
-
this._open = fs3.open;
|
|
5408
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
5409
|
-
this.flush();
|
|
5410
|
-
}
|
|
5411
|
-
}
|
|
5412
|
-
}
|
|
5413
|
-
}
|
|
5414
|
-
});
|
|
5415
|
-
var require_clone2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5416
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
5417
|
-
"use strict";
|
|
5418
|
-
module2.exports = clone;
|
|
5419
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
5420
|
-
return obj.__proto__;
|
|
5421
|
-
};
|
|
5422
|
-
function clone(obj) {
|
|
5423
|
-
if (obj === null || typeof obj !== "object")
|
|
5424
|
-
return obj;
|
|
5425
|
-
if (obj instanceof Object)
|
|
5426
|
-
var copy = { __proto__: getPrototypeOf(obj) };
|
|
5427
|
-
else
|
|
5428
|
-
var copy = /* @__PURE__ */ Object.create(null);
|
|
5429
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
5430
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
5431
|
-
});
|
|
5432
|
-
return copy;
|
|
5433
|
-
}
|
|
5434
|
-
}
|
|
5435
|
-
});
|
|
5436
|
-
var require_graceful_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5437
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
5438
|
-
"use strict";
|
|
5439
|
-
var fs3 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
5440
|
-
var polyfills = require_polyfills2();
|
|
5441
|
-
var legacy = require_legacy_streams2();
|
|
5442
|
-
var clone = require_clone2();
|
|
5443
|
-
var util = (0, import_chunk_WWAWV7DQ.__require)("util");
|
|
5444
|
-
var gracefulQueue;
|
|
5445
|
-
var previousSymbol;
|
|
5446
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
5447
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
5448
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
5449
|
-
} else {
|
|
5450
|
-
gracefulQueue = "___graceful-fs.queue";
|
|
5451
|
-
previousSymbol = "___graceful-fs.previous";
|
|
5452
|
-
}
|
|
5453
|
-
function noop() {
|
|
5454
|
-
}
|
|
5455
|
-
function publishQueue(context, queue2) {
|
|
5456
|
-
Object.defineProperty(context, gracefulQueue, {
|
|
5457
|
-
get: function() {
|
|
5458
|
-
return queue2;
|
|
5459
|
-
}
|
|
5460
|
-
});
|
|
5461
|
-
}
|
|
5462
|
-
var debug4 = noop;
|
|
5463
|
-
if (util.debuglog)
|
|
5464
|
-
debug4 = util.debuglog("gfs4");
|
|
5465
|
-
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
5466
|
-
debug4 = function() {
|
|
5467
|
-
var m = util.format.apply(util, arguments);
|
|
5468
|
-
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
5469
|
-
console.error(m);
|
|
5470
|
-
};
|
|
5471
|
-
if (!fs3[gracefulQueue]) {
|
|
5472
|
-
queue = global[gracefulQueue] || [];
|
|
5473
|
-
publishQueue(fs3, queue);
|
|
5474
|
-
fs3.close = function(fs$close) {
|
|
5475
|
-
function close(fd, cb) {
|
|
5476
|
-
return fs$close.call(fs3, fd, function(err) {
|
|
5477
|
-
if (!err) {
|
|
5478
|
-
resetQueue();
|
|
5479
|
-
}
|
|
5480
|
-
if (typeof cb === "function")
|
|
5481
|
-
cb.apply(this, arguments);
|
|
5482
|
-
});
|
|
5483
|
-
}
|
|
5484
|
-
Object.defineProperty(close, previousSymbol, {
|
|
5485
|
-
value: fs$close
|
|
5486
|
-
});
|
|
5487
|
-
return close;
|
|
5488
|
-
}(fs3.close);
|
|
5489
|
-
fs3.closeSync = function(fs$closeSync) {
|
|
5490
|
-
function closeSync(fd) {
|
|
5491
|
-
fs$closeSync.apply(fs3, arguments);
|
|
5492
|
-
resetQueue();
|
|
5493
|
-
}
|
|
5494
|
-
Object.defineProperty(closeSync, previousSymbol, {
|
|
5495
|
-
value: fs$closeSync
|
|
5496
|
-
});
|
|
5497
|
-
return closeSync;
|
|
5498
|
-
}(fs3.closeSync);
|
|
5499
|
-
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
5500
|
-
process.on("exit", function() {
|
|
5501
|
-
debug4(fs3[gracefulQueue]);
|
|
5502
|
-
(0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs3[gracefulQueue].length, 0);
|
|
5503
|
-
});
|
|
5504
|
-
}
|
|
5505
|
-
}
|
|
5506
|
-
var queue;
|
|
5507
|
-
if (!global[gracefulQueue]) {
|
|
5508
|
-
publishQueue(global, fs3[gracefulQueue]);
|
|
5509
|
-
}
|
|
5510
|
-
module2.exports = patch(clone(fs3));
|
|
5511
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
|
|
5512
|
-
module2.exports = patch(fs3);
|
|
5513
|
-
fs3.__patched = true;
|
|
5514
|
-
}
|
|
5515
|
-
function patch(fs4) {
|
|
5516
|
-
polyfills(fs4);
|
|
5517
|
-
fs4.gracefulify = patch;
|
|
5518
|
-
fs4.createReadStream = createReadStream;
|
|
5519
|
-
fs4.createWriteStream = createWriteStream;
|
|
5520
|
-
var fs$readFile = fs4.readFile;
|
|
5521
|
-
fs4.readFile = readFile2;
|
|
5522
|
-
function readFile2(path7, options, cb) {
|
|
5523
|
-
if (typeof options === "function")
|
|
5524
|
-
cb = options, options = null;
|
|
5525
|
-
return go$readFile(path7, options, cb);
|
|
5526
|
-
function go$readFile(path8, options2, cb2, startTime) {
|
|
5527
|
-
return fs$readFile(path8, options2, function(err) {
|
|
5528
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5529
|
-
enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5530
|
-
else {
|
|
5531
|
-
if (typeof cb2 === "function")
|
|
5532
|
-
cb2.apply(this, arguments);
|
|
5533
|
-
}
|
|
5534
|
-
});
|
|
5535
|
-
}
|
|
5536
|
-
}
|
|
5537
|
-
var fs$writeFile = fs4.writeFile;
|
|
5538
|
-
fs4.writeFile = writeFile;
|
|
5539
|
-
function writeFile(path7, data, options, cb) {
|
|
5540
|
-
if (typeof options === "function")
|
|
5541
|
-
cb = options, options = null;
|
|
5542
|
-
return go$writeFile(path7, data, options, cb);
|
|
5543
|
-
function go$writeFile(path8, data2, options2, cb2, startTime) {
|
|
5544
|
-
return fs$writeFile(path8, data2, options2, function(err) {
|
|
5545
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5546
|
-
enqueue([go$writeFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5547
|
-
else {
|
|
5548
|
-
if (typeof cb2 === "function")
|
|
5549
|
-
cb2.apply(this, arguments);
|
|
5550
|
-
}
|
|
5551
|
-
});
|
|
5552
|
-
}
|
|
5553
|
-
}
|
|
5554
|
-
var fs$appendFile = fs4.appendFile;
|
|
5555
|
-
if (fs$appendFile)
|
|
5556
|
-
fs4.appendFile = appendFile;
|
|
5557
|
-
function appendFile(path7, data, options, cb) {
|
|
5558
|
-
if (typeof options === "function")
|
|
5559
|
-
cb = options, options = null;
|
|
5560
|
-
return go$appendFile(path7, data, options, cb);
|
|
5561
|
-
function go$appendFile(path8, data2, options2, cb2, startTime) {
|
|
5562
|
-
return fs$appendFile(path8, data2, options2, function(err) {
|
|
5563
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5564
|
-
enqueue([go$appendFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5565
|
-
else {
|
|
5566
|
-
if (typeof cb2 === "function")
|
|
5567
|
-
cb2.apply(this, arguments);
|
|
5568
|
-
}
|
|
5569
|
-
});
|
|
5570
|
-
}
|
|
5571
|
-
}
|
|
5572
|
-
var fs$copyFile = fs4.copyFile;
|
|
5573
|
-
if (fs$copyFile)
|
|
5574
|
-
fs4.copyFile = copyFile;
|
|
5575
|
-
function copyFile(src, dest, flags, cb) {
|
|
5576
|
-
if (typeof flags === "function") {
|
|
5577
|
-
cb = flags;
|
|
5578
|
-
flags = 0;
|
|
5579
|
-
}
|
|
5580
|
-
return go$copyFile(src, dest, flags, cb);
|
|
5581
|
-
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
5582
|
-
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
5583
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5584
|
-
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5585
|
-
else {
|
|
5586
|
-
if (typeof cb2 === "function")
|
|
5587
|
-
cb2.apply(this, arguments);
|
|
5588
|
-
}
|
|
5589
|
-
});
|
|
5590
|
-
}
|
|
5591
|
-
}
|
|
5592
|
-
var fs$readdir = fs4.readdir;
|
|
5593
|
-
fs4.readdir = readdir;
|
|
5594
|
-
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
5595
|
-
function readdir(path7, options, cb) {
|
|
5596
|
-
if (typeof options === "function")
|
|
5597
|
-
cb = options, options = null;
|
|
5598
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
|
|
5599
|
-
return fs$readdir(path8, fs$readdirCallback(
|
|
5600
|
-
path8,
|
|
5601
|
-
options2,
|
|
5602
|
-
cb2,
|
|
5603
|
-
startTime
|
|
5604
|
-
));
|
|
5605
|
-
} : function go$readdir2(path8, options2, cb2, startTime) {
|
|
5606
|
-
return fs$readdir(path8, options2, fs$readdirCallback(
|
|
5607
|
-
path8,
|
|
5608
|
-
options2,
|
|
5609
|
-
cb2,
|
|
5610
|
-
startTime
|
|
5611
|
-
));
|
|
5612
|
-
};
|
|
5613
|
-
return go$readdir(path7, options, cb);
|
|
5614
|
-
function fs$readdirCallback(path8, options2, cb2, startTime) {
|
|
5615
|
-
return function(err, files) {
|
|
5616
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5617
|
-
enqueue([
|
|
5618
|
-
go$readdir,
|
|
5619
|
-
[path8, options2, cb2],
|
|
5620
|
-
err,
|
|
5621
|
-
startTime || Date.now(),
|
|
5622
|
-
Date.now()
|
|
5623
|
-
]);
|
|
5624
|
-
else {
|
|
5625
|
-
if (files && files.sort)
|
|
5626
|
-
files.sort();
|
|
5627
|
-
if (typeof cb2 === "function")
|
|
5628
|
-
cb2.call(this, err, files);
|
|
5629
|
-
}
|
|
5630
|
-
};
|
|
5631
|
-
}
|
|
5632
|
-
}
|
|
5633
|
-
if (process.version.substr(0, 4) === "v0.8") {
|
|
5634
|
-
var legStreams = legacy(fs4);
|
|
5635
|
-
ReadStream = legStreams.ReadStream;
|
|
5636
|
-
WriteStream = legStreams.WriteStream;
|
|
5637
|
-
}
|
|
5638
|
-
var fs$ReadStream = fs4.ReadStream;
|
|
5639
|
-
if (fs$ReadStream) {
|
|
5640
|
-
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
5641
|
-
ReadStream.prototype.open = ReadStream$open;
|
|
5642
|
-
}
|
|
5643
|
-
var fs$WriteStream = fs4.WriteStream;
|
|
5644
|
-
if (fs$WriteStream) {
|
|
5645
|
-
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
5646
|
-
WriteStream.prototype.open = WriteStream$open;
|
|
5647
|
-
}
|
|
5648
|
-
Object.defineProperty(fs4, "ReadStream", {
|
|
5649
|
-
get: function() {
|
|
5650
|
-
return ReadStream;
|
|
5651
|
-
},
|
|
5652
|
-
set: function(val) {
|
|
5653
|
-
ReadStream = val;
|
|
5654
|
-
},
|
|
5655
|
-
enumerable: true,
|
|
5656
|
-
configurable: true
|
|
5657
|
-
});
|
|
5658
|
-
Object.defineProperty(fs4, "WriteStream", {
|
|
5659
|
-
get: function() {
|
|
5660
|
-
return WriteStream;
|
|
5661
|
-
},
|
|
5662
|
-
set: function(val) {
|
|
5663
|
-
WriteStream = val;
|
|
5664
|
-
},
|
|
5665
|
-
enumerable: true,
|
|
5666
|
-
configurable: true
|
|
5667
|
-
});
|
|
5668
|
-
var FileReadStream = ReadStream;
|
|
5669
|
-
Object.defineProperty(fs4, "FileReadStream", {
|
|
5670
|
-
get: function() {
|
|
5671
|
-
return FileReadStream;
|
|
5672
|
-
},
|
|
5673
|
-
set: function(val) {
|
|
5674
|
-
FileReadStream = val;
|
|
5675
|
-
},
|
|
5676
|
-
enumerable: true,
|
|
5677
|
-
configurable: true
|
|
5678
|
-
});
|
|
5679
|
-
var FileWriteStream = WriteStream;
|
|
5680
|
-
Object.defineProperty(fs4, "FileWriteStream", {
|
|
5681
|
-
get: function() {
|
|
5682
|
-
return FileWriteStream;
|
|
5683
|
-
},
|
|
5684
|
-
set: function(val) {
|
|
5685
|
-
FileWriteStream = val;
|
|
5686
|
-
},
|
|
5687
|
-
enumerable: true,
|
|
5688
|
-
configurable: true
|
|
5689
|
-
});
|
|
5690
|
-
function ReadStream(path7, options) {
|
|
5691
|
-
if (this instanceof ReadStream)
|
|
5692
|
-
return fs$ReadStream.apply(this, arguments), this;
|
|
5693
|
-
else
|
|
5694
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
5695
|
-
}
|
|
5696
|
-
function ReadStream$open() {
|
|
5697
|
-
var that = this;
|
|
5698
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
5699
|
-
if (err) {
|
|
5700
|
-
if (that.autoClose)
|
|
5701
|
-
that.destroy();
|
|
5702
|
-
that.emit("error", err);
|
|
5703
|
-
} else {
|
|
5704
|
-
that.fd = fd;
|
|
5705
|
-
that.emit("open", fd);
|
|
5706
|
-
that.read();
|
|
5707
|
-
}
|
|
5708
|
-
});
|
|
5709
|
-
}
|
|
5710
|
-
function WriteStream(path7, options) {
|
|
5711
|
-
if (this instanceof WriteStream)
|
|
5712
|
-
return fs$WriteStream.apply(this, arguments), this;
|
|
5713
|
-
else
|
|
5714
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
5715
|
-
}
|
|
5716
|
-
function WriteStream$open() {
|
|
5717
|
-
var that = this;
|
|
5718
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
5719
|
-
if (err) {
|
|
5720
|
-
that.destroy();
|
|
5721
|
-
that.emit("error", err);
|
|
5722
|
-
} else {
|
|
5723
|
-
that.fd = fd;
|
|
5724
|
-
that.emit("open", fd);
|
|
5725
|
-
}
|
|
5726
|
-
});
|
|
5727
|
-
}
|
|
5728
|
-
function createReadStream(path7, options) {
|
|
5729
|
-
return new fs4.ReadStream(path7, options);
|
|
5730
|
-
}
|
|
5731
|
-
function createWriteStream(path7, options) {
|
|
5732
|
-
return new fs4.WriteStream(path7, options);
|
|
4881
|
+
async function createSymlink(srcpath, dstpath, type) {
|
|
4882
|
+
let stats;
|
|
4883
|
+
try {
|
|
4884
|
+
stats = await fs3.lstat(dstpath);
|
|
4885
|
+
} catch {
|
|
5733
4886
|
}
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
function go$open(path8, flags2, mode2, cb2, startTime) {
|
|
5741
|
-
return fs$open(path8, flags2, mode2, function(err, fd) {
|
|
5742
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5743
|
-
enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5744
|
-
else {
|
|
5745
|
-
if (typeof cb2 === "function")
|
|
5746
|
-
cb2.apply(this, arguments);
|
|
5747
|
-
}
|
|
5748
|
-
});
|
|
5749
|
-
}
|
|
4887
|
+
if (stats && stats.isSymbolicLink()) {
|
|
4888
|
+
const [srcStat, dstStat] = await Promise.all([
|
|
4889
|
+
fs3.stat(srcpath),
|
|
4890
|
+
fs3.stat(dstpath)
|
|
4891
|
+
]);
|
|
4892
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
5750
4893
|
}
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
}
|
|
5758
|
-
var retryTimer;
|
|
5759
|
-
function resetQueue() {
|
|
5760
|
-
var now = Date.now();
|
|
5761
|
-
for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
|
|
5762
|
-
if (fs3[gracefulQueue][i].length > 2) {
|
|
5763
|
-
fs3[gracefulQueue][i][3] = now;
|
|
5764
|
-
fs3[gracefulQueue][i][4] = now;
|
|
5765
|
-
}
|
|
4894
|
+
const relative = await symlinkPaths(srcpath, dstpath);
|
|
4895
|
+
srcpath = relative.toDst;
|
|
4896
|
+
const toType = await symlinkType(relative.toCwd, type);
|
|
4897
|
+
const dir = path7.dirname(dstpath);
|
|
4898
|
+
if (!await pathExists(dir)) {
|
|
4899
|
+
await mkdirs(dir);
|
|
5766
4900
|
}
|
|
5767
|
-
|
|
4901
|
+
return fs3.symlink(srcpath, dstpath, toType);
|
|
5768
4902
|
}
|
|
5769
|
-
function
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
var elem = fs3[gracefulQueue].shift();
|
|
5775
|
-
var fn = elem[0];
|
|
5776
|
-
var args = elem[1];
|
|
5777
|
-
var err = elem[2];
|
|
5778
|
-
var startTime = elem[3];
|
|
5779
|
-
var lastTime = elem[4];
|
|
5780
|
-
if (startTime === void 0) {
|
|
5781
|
-
debug4("RETRY", fn.name, args);
|
|
5782
|
-
fn.apply(null, args);
|
|
5783
|
-
} else if (Date.now() - startTime >= 6e4) {
|
|
5784
|
-
debug4("TIMEOUT", fn.name, args);
|
|
5785
|
-
var cb = args.pop();
|
|
5786
|
-
if (typeof cb === "function")
|
|
5787
|
-
cb.call(null, err);
|
|
5788
|
-
} else {
|
|
5789
|
-
var sinceAttempt = Date.now() - lastTime;
|
|
5790
|
-
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
5791
|
-
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
5792
|
-
if (sinceAttempt >= desiredDelay) {
|
|
5793
|
-
debug4("RETRY", fn.name, args);
|
|
5794
|
-
fn.apply(null, args.concat([startTime]));
|
|
5795
|
-
} else {
|
|
5796
|
-
fs3[gracefulQueue].push(elem);
|
|
5797
|
-
}
|
|
4903
|
+
function createSymlinkSync(srcpath, dstpath, type) {
|
|
4904
|
+
let stats;
|
|
4905
|
+
try {
|
|
4906
|
+
stats = fs3.lstatSync(dstpath);
|
|
4907
|
+
} catch {
|
|
5798
4908
|
}
|
|
5799
|
-
if (
|
|
5800
|
-
|
|
4909
|
+
if (stats && stats.isSymbolicLink()) {
|
|
4910
|
+
const srcStat = fs3.statSync(srcpath);
|
|
4911
|
+
const dstStat = fs3.statSync(dstpath);
|
|
4912
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
5801
4913
|
}
|
|
4914
|
+
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
4915
|
+
srcpath = relative.toDst;
|
|
4916
|
+
type = symlinkTypeSync(relative.toCwd, type);
|
|
4917
|
+
const dir = path7.dirname(dstpath);
|
|
4918
|
+
const exists = fs3.existsSync(dir);
|
|
4919
|
+
if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
|
|
4920
|
+
mkdirsSync(dir);
|
|
4921
|
+
return fs3.symlinkSync(srcpath, dstpath, type);
|
|
5802
4922
|
}
|
|
4923
|
+
module2.exports = {
|
|
4924
|
+
createSymlink: u(createSymlink),
|
|
4925
|
+
createSymlinkSync
|
|
4926
|
+
};
|
|
4927
|
+
}
|
|
4928
|
+
});
|
|
4929
|
+
var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4930
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
|
|
4931
|
+
"use strict";
|
|
4932
|
+
var { createFile, createFileSync } = require_file2();
|
|
4933
|
+
var { createLink, createLinkSync } = require_link();
|
|
4934
|
+
var { createSymlink, createSymlinkSync } = require_symlink2();
|
|
4935
|
+
module2.exports = {
|
|
4936
|
+
// file
|
|
4937
|
+
createFile,
|
|
4938
|
+
createFileSync,
|
|
4939
|
+
ensureFile: createFile,
|
|
4940
|
+
ensureFileSync: createFileSync,
|
|
4941
|
+
// link
|
|
4942
|
+
createLink,
|
|
4943
|
+
createLinkSync,
|
|
4944
|
+
ensureLink: createLink,
|
|
4945
|
+
ensureLinkSync: createLinkSync,
|
|
4946
|
+
// symlink
|
|
4947
|
+
createSymlink,
|
|
4948
|
+
createSymlinkSync,
|
|
4949
|
+
ensureSymlink: createSymlink,
|
|
4950
|
+
ensureSymlinkSync: createSymlinkSync
|
|
4951
|
+
};
|
|
5803
4952
|
}
|
|
5804
4953
|
});
|
|
5805
4954
|
var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
@@ -5822,7 +4971,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5822
4971
|
"use strict";
|
|
5823
4972
|
var _fs;
|
|
5824
4973
|
try {
|
|
5825
|
-
_fs =
|
|
4974
|
+
_fs = require_graceful_fs();
|
|
5826
4975
|
} catch (_) {
|
|
5827
4976
|
_fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
5828
4977
|
}
|
|
@@ -5890,7 +5039,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5890
5039
|
}
|
|
5891
5040
|
});
|
|
5892
5041
|
var require_jsonfile2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5893
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5042
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) {
|
|
5894
5043
|
"use strict";
|
|
5895
5044
|
var jsonFile = require_jsonfile();
|
|
5896
5045
|
module2.exports = {
|
|
@@ -5903,34 +5052,25 @@ var require_jsonfile2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5903
5052
|
}
|
|
5904
5053
|
});
|
|
5905
5054
|
var require_output_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5906
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5055
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) {
|
|
5907
5056
|
"use strict";
|
|
5908
|
-
var u = require_universalify().
|
|
5909
|
-
var fs3 =
|
|
5057
|
+
var u = require_universalify().fromPromise;
|
|
5058
|
+
var fs3 = require_fs2();
|
|
5910
5059
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
5911
5060
|
var mkdir = require_mkdirs();
|
|
5912
5061
|
var pathExists = require_path_exists().pathExists;
|
|
5913
|
-
function outputFile(file, data, encoding
|
|
5914
|
-
if (typeof encoding === "function") {
|
|
5915
|
-
callback = encoding;
|
|
5916
|
-
encoding = "utf8";
|
|
5917
|
-
}
|
|
5062
|
+
async function outputFile(file, data, encoding = "utf-8") {
|
|
5918
5063
|
const dir = path7.dirname(file);
|
|
5919
|
-
pathExists(dir
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
if (err2) return callback(err2);
|
|
5924
|
-
fs3.writeFile(file, data, encoding, callback);
|
|
5925
|
-
});
|
|
5926
|
-
});
|
|
5064
|
+
if (!await pathExists(dir)) {
|
|
5065
|
+
await mkdir.mkdirs(dir);
|
|
5066
|
+
}
|
|
5067
|
+
return fs3.writeFile(file, data, encoding);
|
|
5927
5068
|
}
|
|
5928
5069
|
function outputFileSync(file, ...args) {
|
|
5929
5070
|
const dir = path7.dirname(file);
|
|
5930
|
-
if (fs3.existsSync(dir)) {
|
|
5931
|
-
|
|
5071
|
+
if (!fs3.existsSync(dir)) {
|
|
5072
|
+
mkdir.mkdirsSync(dir);
|
|
5932
5073
|
}
|
|
5933
|
-
mkdir.mkdirsSync(dir);
|
|
5934
5074
|
fs3.writeFileSync(file, ...args);
|
|
5935
5075
|
}
|
|
5936
5076
|
module2.exports = {
|
|
@@ -5940,7 +5080,7 @@ var require_output_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5940
5080
|
}
|
|
5941
5081
|
});
|
|
5942
5082
|
var require_output_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5943
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5083
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
|
|
5944
5084
|
"use strict";
|
|
5945
5085
|
var { stringify } = require_utils2();
|
|
5946
5086
|
var { outputFile } = require_output_file();
|
|
@@ -5952,7 +5092,7 @@ var require_output_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5952
5092
|
}
|
|
5953
5093
|
});
|
|
5954
5094
|
var require_output_json_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5955
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5095
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
|
|
5956
5096
|
"use strict";
|
|
5957
5097
|
var { stringify } = require_utils2();
|
|
5958
5098
|
var { outputFileSync } = require_output_file();
|
|
@@ -5964,7 +5104,7 @@ var require_output_json_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5964
5104
|
}
|
|
5965
5105
|
});
|
|
5966
5106
|
var require_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5967
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5107
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/index.js"(exports, module2) {
|
|
5968
5108
|
"use strict";
|
|
5969
5109
|
var u = require_universalify().fromPromise;
|
|
5970
5110
|
var jsonFile = require_jsonfile2();
|
|
@@ -5980,77 +5120,57 @@ var require_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5980
5120
|
}
|
|
5981
5121
|
});
|
|
5982
5122
|
var require_move2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5983
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5123
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
5984
5124
|
"use strict";
|
|
5985
|
-
var fs3 =
|
|
5125
|
+
var fs3 = require_fs2();
|
|
5986
5126
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
5987
|
-
var copy = require_copy3()
|
|
5988
|
-
var remove = require_remove2()
|
|
5989
|
-
var mkdirp = require_mkdirs()
|
|
5990
|
-
var pathExists = require_path_exists()
|
|
5127
|
+
var { copy } = require_copy3();
|
|
5128
|
+
var { remove } = require_remove2();
|
|
5129
|
+
var { mkdirp } = require_mkdirs();
|
|
5130
|
+
var { pathExists } = require_path_exists();
|
|
5991
5131
|
var stat2 = require_stat();
|
|
5992
|
-
function move(src, dest, opts
|
|
5993
|
-
if (typeof opts === "function") {
|
|
5994
|
-
cb = opts;
|
|
5995
|
-
opts = {};
|
|
5996
|
-
}
|
|
5997
|
-
opts = opts || {};
|
|
5132
|
+
async function move(src, dest, opts = {}) {
|
|
5998
5133
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
5999
|
-
stat2.checkPaths(src, dest, "move", opts
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
mkdirp(path7.dirname(dest), (err3) => {
|
|
6006
|
-
if (err3) return cb(err3);
|
|
6007
|
-
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
6008
|
-
});
|
|
6009
|
-
});
|
|
6010
|
-
});
|
|
6011
|
-
}
|
|
6012
|
-
function isParentRoot(dest) {
|
|
6013
|
-
const parent = path7.dirname(dest);
|
|
6014
|
-
const parsedPath = path7.parse(parent);
|
|
6015
|
-
return parsedPath.root === parent;
|
|
6016
|
-
}
|
|
6017
|
-
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
6018
|
-
if (isChangingCase) return rename(src, dest, overwrite, cb);
|
|
6019
|
-
if (overwrite) {
|
|
6020
|
-
return remove(dest, (err) => {
|
|
6021
|
-
if (err) return cb(err);
|
|
6022
|
-
return rename(src, dest, overwrite, cb);
|
|
6023
|
-
});
|
|
5134
|
+
const { srcStat, isChangingCase = false } = await stat2.checkPaths(src, dest, "move", opts);
|
|
5135
|
+
await stat2.checkParentPaths(src, srcStat, dest, "move");
|
|
5136
|
+
const destParent = path7.dirname(dest);
|
|
5137
|
+
const parsedParentPath = path7.parse(destParent);
|
|
5138
|
+
if (parsedParentPath.root !== destParent) {
|
|
5139
|
+
await mkdirp(destParent);
|
|
6024
5140
|
}
|
|
6025
|
-
|
|
6026
|
-
if (err) return cb(err);
|
|
6027
|
-
if (destExists) return cb(new Error("dest already exists."));
|
|
6028
|
-
return rename(src, dest, overwrite, cb);
|
|
6029
|
-
});
|
|
5141
|
+
return doRename(src, dest, overwrite, isChangingCase);
|
|
6030
5142
|
}
|
|
6031
|
-
function
|
|
6032
|
-
|
|
6033
|
-
if (
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
5143
|
+
async function doRename(src, dest, overwrite, isChangingCase) {
|
|
5144
|
+
if (!isChangingCase) {
|
|
5145
|
+
if (overwrite) {
|
|
5146
|
+
await remove(dest);
|
|
5147
|
+
} else if (await pathExists(dest)) {
|
|
5148
|
+
throw new Error("dest already exists.");
|
|
5149
|
+
}
|
|
5150
|
+
}
|
|
5151
|
+
try {
|
|
5152
|
+
await fs3.rename(src, dest);
|
|
5153
|
+
} catch (err) {
|
|
5154
|
+
if (err.code !== "EXDEV") {
|
|
5155
|
+
throw err;
|
|
5156
|
+
}
|
|
5157
|
+
await moveAcrossDevice(src, dest, overwrite);
|
|
5158
|
+
}
|
|
6037
5159
|
}
|
|
6038
|
-
function moveAcrossDevice(src, dest, overwrite
|
|
5160
|
+
async function moveAcrossDevice(src, dest, overwrite) {
|
|
6039
5161
|
const opts = {
|
|
6040
5162
|
overwrite,
|
|
6041
5163
|
errorOnExist: true,
|
|
6042
5164
|
preserveTimestamps: true
|
|
6043
5165
|
};
|
|
6044
|
-
copy(src, dest, opts
|
|
6045
|
-
|
|
6046
|
-
return remove(src, cb);
|
|
6047
|
-
});
|
|
5166
|
+
await copy(src, dest, opts);
|
|
5167
|
+
return remove(src);
|
|
6048
5168
|
}
|
|
6049
5169
|
module2.exports = move;
|
|
6050
5170
|
}
|
|
6051
5171
|
});
|
|
6052
5172
|
var require_move_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6053
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5173
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
6054
5174
|
"use strict";
|
|
6055
5175
|
var fs3 = require_graceful_fs();
|
|
6056
5176
|
var path7 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
@@ -6101,9 +5221,9 @@ var require_move_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6101
5221
|
}
|
|
6102
5222
|
});
|
|
6103
5223
|
var require_move3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6104
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5224
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/index.js"(exports, module2) {
|
|
6105
5225
|
"use strict";
|
|
6106
|
-
var u = require_universalify().
|
|
5226
|
+
var u = require_universalify().fromPromise;
|
|
6107
5227
|
module2.exports = {
|
|
6108
5228
|
move: u(require_move2()),
|
|
6109
5229
|
moveSync: require_move_sync()
|
|
@@ -6111,7 +5231,7 @@ var require_move3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6111
5231
|
}
|
|
6112
5232
|
});
|
|
6113
5233
|
var require_lib = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6114
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
5234
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/index.js"(exports, module2) {
|
|
6115
5235
|
"use strict";
|
|
6116
5236
|
module2.exports = {
|
|
6117
5237
|
// Export promiseified graceful-fs:
|
|
@@ -6436,7 +5556,7 @@ var require_js_tokens = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6436
5556
|
}
|
|
6437
5557
|
});
|
|
6438
5558
|
var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6439
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
5559
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
|
6440
5560
|
"use strict";
|
|
6441
5561
|
Object.defineProperty(exports, "__esModule", {
|
|
6442
5562
|
value: true
|
|
@@ -6444,13 +5564,13 @@ var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6444
5564
|
exports.isIdentifierChar = isIdentifierChar;
|
|
6445
5565
|
exports.isIdentifierName = isIdentifierName;
|
|
6446
5566
|
exports.isIdentifierStart = isIdentifierStart;
|
|
6447
|
-
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\
|
|
6448
|
-
var nonASCIIidentifierChars = "\
|
|
5567
|
+
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
5568
|
+
var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
6449
5569
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
6450
5570
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
6451
5571
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
6452
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1,
|
|
6453
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9,
|
|
5572
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
5573
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
6454
5574
|
function isInAstralSet(code, set) {
|
|
6455
5575
|
let pos = 65536;
|
|
6456
5576
|
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
@@ -6507,7 +5627,7 @@ var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6507
5627
|
}
|
|
6508
5628
|
});
|
|
6509
5629
|
var require_keyword = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6510
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
5630
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
|
6511
5631
|
"use strict";
|
|
6512
5632
|
Object.defineProperty(exports, "__esModule", {
|
|
6513
5633
|
value: true
|
|
@@ -6543,7 +5663,7 @@ var require_keyword = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6543
5663
|
}
|
|
6544
5664
|
});
|
|
6545
5665
|
var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6546
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
5666
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
6547
5667
|
"use strict";
|
|
6548
5668
|
Object.defineProperty(exports, "__esModule", {
|
|
6549
5669
|
value: true
|
|
@@ -11135,7 +10255,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11135
10255
|
"../internals/package.json"(exports, module2) {
|
|
11136
10256
|
module2.exports = {
|
|
11137
10257
|
name: "@prisma/internals",
|
|
11138
|
-
version: "6.5.0-dev.
|
|
10258
|
+
version: "6.5.0-dev.41",
|
|
11139
10259
|
description: "This package is intended for Prisma's internal use",
|
|
11140
10260
|
main: "dist/index.js",
|
|
11141
10261
|
types: "dist/index.d.ts",
|
|
@@ -11163,13 +10283,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11163
10283
|
],
|
|
11164
10284
|
devDependencies: {
|
|
11165
10285
|
"@antfu/ni": "0.21.12",
|
|
11166
|
-
"@babel/helper-validator-identifier": "7.
|
|
10286
|
+
"@babel/helper-validator-identifier": "7.25.9",
|
|
11167
10287
|
"@opentelemetry/api": "1.9.0",
|
|
11168
|
-
"@swc/core": "1.
|
|
10288
|
+
"@swc/core": "1.11.5",
|
|
11169
10289
|
"@swc/jest": "0.2.37",
|
|
11170
10290
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
|
11171
10291
|
"@types/jest": "29.5.14",
|
|
11172
|
-
"@types/node": "18.19.
|
|
10292
|
+
"@types/node": "18.19.76",
|
|
11173
10293
|
"@types/resolve": "1.20.6",
|
|
11174
10294
|
archiver: "6.0.2",
|
|
11175
10295
|
"checkpoint-client": "1.1.33",
|
|
@@ -11181,7 +10301,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11181
10301
|
"fast-glob": "3.3.3",
|
|
11182
10302
|
"find-up": "5.0.0",
|
|
11183
10303
|
"fp-ts": "2.16.9",
|
|
11184
|
-
"fs-extra": "11.
|
|
10304
|
+
"fs-extra": "11.3.0",
|
|
11185
10305
|
"fs-jetpack": "5.1.0",
|
|
11186
10306
|
"global-dirs": "4.0.0",
|
|
11187
10307
|
globby: "11.1.0",
|
|
@@ -11199,7 +10319,6 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11199
10319
|
open: "7.4.2",
|
|
11200
10320
|
"p-map": "4.0.0",
|
|
11201
10321
|
"read-package-up": "11.0.0",
|
|
11202
|
-
"replace-string": "3.1.0",
|
|
11203
10322
|
resolve: "1.22.10",
|
|
11204
10323
|
"string-width": "4.2.3",
|
|
11205
10324
|
"strip-ansi": "6.0.1",
|