@prisma/client 6.20.0-integration-next.10 → 6.20.0-integration-next.11
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/generator-build/index.js +242 -274
- package/package.json +28 -28
- package/runtime/client.js +2 -2
- package/runtime/client.js.map +1 -1
- package/runtime/client.mjs +2 -2
- package/runtime/client.mjs.map +1 -1
- package/runtime/wasm-compiler-edge.js +2 -2
- package/runtime/wasm-compiler-edge.js.map +2 -2
- package/runtime/wasm-compiler-edge.mjs +2 -2
- package/runtime/wasm-compiler-edge.mjs.map +2 -2
- package/scripts/default-index.js +1 -1
package/generator-build/index.js
CHANGED
|
@@ -466,14 +466,14 @@ var require_polyfills = __commonJS({
|
|
|
466
466
|
fs4.fstatSync = statFixSync(fs4.fstatSync);
|
|
467
467
|
fs4.lstatSync = statFixSync(fs4.lstatSync);
|
|
468
468
|
if (fs4.chmod && !fs4.lchmod) {
|
|
469
|
-
fs4.lchmod = function(
|
|
469
|
+
fs4.lchmod = function(path10, mode2, cb) {
|
|
470
470
|
if (cb) process.nextTick(cb);
|
|
471
471
|
};
|
|
472
472
|
fs4.lchmodSync = function() {
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
475
|
if (fs4.chown && !fs4.lchown) {
|
|
476
|
-
fs4.lchown = function(
|
|
476
|
+
fs4.lchown = function(path10, uid, gid, cb) {
|
|
477
477
|
if (cb) process.nextTick(cb);
|
|
478
478
|
};
|
|
479
479
|
fs4.lchownSync = function() {
|
|
@@ -540,9 +540,9 @@ var require_polyfills = __commonJS({
|
|
|
540
540
|
};
|
|
541
541
|
}(fs4.readSync);
|
|
542
542
|
function patchLchmod(fs5) {
|
|
543
|
-
fs5.lchmod = function(
|
|
543
|
+
fs5.lchmod = function(path10, mode2, callback) {
|
|
544
544
|
fs5.open(
|
|
545
|
-
|
|
545
|
+
path10,
|
|
546
546
|
constants2.O_WRONLY | constants2.O_SYMLINK,
|
|
547
547
|
mode2,
|
|
548
548
|
function(err, fd) {
|
|
@@ -558,8 +558,8 @@ var require_polyfills = __commonJS({
|
|
|
558
558
|
}
|
|
559
559
|
);
|
|
560
560
|
};
|
|
561
|
-
fs5.lchmodSync = function(
|
|
562
|
-
var fd = fs5.openSync(
|
|
561
|
+
fs5.lchmodSync = function(path10, mode2) {
|
|
562
|
+
var fd = fs5.openSync(path10, constants2.O_WRONLY | constants2.O_SYMLINK, mode2);
|
|
563
563
|
var threw = true;
|
|
564
564
|
var ret;
|
|
565
565
|
try {
|
|
@@ -580,8 +580,8 @@ var require_polyfills = __commonJS({
|
|
|
580
580
|
}
|
|
581
581
|
function patchLutimes(fs5) {
|
|
582
582
|
if (constants2.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
|
|
583
|
-
fs5.lutimes = function(
|
|
584
|
-
fs5.open(
|
|
583
|
+
fs5.lutimes = function(path10, at, mt, cb) {
|
|
584
|
+
fs5.open(path10, constants2.O_SYMLINK, function(er, fd) {
|
|
585
585
|
if (er) {
|
|
586
586
|
if (cb) cb(er);
|
|
587
587
|
return;
|
|
@@ -593,8 +593,8 @@ var require_polyfills = __commonJS({
|
|
|
593
593
|
});
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
|
-
fs5.lutimesSync = function(
|
|
597
|
-
var fd = fs5.openSync(
|
|
596
|
+
fs5.lutimesSync = function(path10, at, mt) {
|
|
597
|
+
var fd = fs5.openSync(path10, constants2.O_SYMLINK);
|
|
598
598
|
var ret;
|
|
599
599
|
var threw = true;
|
|
600
600
|
try {
|
|
@@ -713,11 +713,11 @@ var require_legacy_streams = __commonJS({
|
|
|
713
713
|
ReadStream,
|
|
714
714
|
WriteStream
|
|
715
715
|
};
|
|
716
|
-
function ReadStream(
|
|
717
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
716
|
+
function ReadStream(path10, options2) {
|
|
717
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path10, options2);
|
|
718
718
|
Stream.call(this);
|
|
719
719
|
var self2 = this;
|
|
720
|
-
this.path =
|
|
720
|
+
this.path = path10;
|
|
721
721
|
this.fd = null;
|
|
722
722
|
this.readable = true;
|
|
723
723
|
this.paused = false;
|
|
@@ -762,10 +762,10 @@ var require_legacy_streams = __commonJS({
|
|
|
762
762
|
self2._read();
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
|
-
function WriteStream(
|
|
766
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
765
|
+
function WriteStream(path10, options2) {
|
|
766
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path10, options2);
|
|
767
767
|
Stream.call(this);
|
|
768
|
-
this.path =
|
|
768
|
+
this.path = path10;
|
|
769
769
|
this.fd = null;
|
|
770
770
|
this.writable = true;
|
|
771
771
|
this.flags = "w";
|
|
@@ -909,14 +909,14 @@ var require_graceful_fs = __commonJS({
|
|
|
909
909
|
fs5.createWriteStream = createWriteStream2;
|
|
910
910
|
var fs$readFile = fs5.readFile;
|
|
911
911
|
fs5.readFile = readFile;
|
|
912
|
-
function readFile(
|
|
912
|
+
function readFile(path10, options2, cb) {
|
|
913
913
|
if (typeof options2 === "function")
|
|
914
914
|
cb = options2, options2 = null;
|
|
915
|
-
return go$readFile(
|
|
916
|
-
function go$readFile(
|
|
917
|
-
return fs$readFile(
|
|
915
|
+
return go$readFile(path10, options2, cb);
|
|
916
|
+
function go$readFile(path11, options3, cb2, startTime) {
|
|
917
|
+
return fs$readFile(path11, options3, function(err) {
|
|
918
918
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
919
|
-
enqueue([go$readFile, [
|
|
919
|
+
enqueue([go$readFile, [path11, options3, cb2], err, startTime || Date.now(), Date.now()]);
|
|
920
920
|
else {
|
|
921
921
|
if (typeof cb2 === "function")
|
|
922
922
|
cb2.apply(this, arguments);
|
|
@@ -926,14 +926,14 @@ var require_graceful_fs = __commonJS({
|
|
|
926
926
|
}
|
|
927
927
|
var fs$writeFile = fs5.writeFile;
|
|
928
928
|
fs5.writeFile = writeFile;
|
|
929
|
-
function writeFile(
|
|
929
|
+
function writeFile(path10, data, options2, cb) {
|
|
930
930
|
if (typeof options2 === "function")
|
|
931
931
|
cb = options2, options2 = null;
|
|
932
|
-
return go$writeFile(
|
|
933
|
-
function go$writeFile(
|
|
934
|
-
return fs$writeFile(
|
|
932
|
+
return go$writeFile(path10, data, options2, cb);
|
|
933
|
+
function go$writeFile(path11, data2, options3, cb2, startTime) {
|
|
934
|
+
return fs$writeFile(path11, data2, options3, function(err) {
|
|
935
935
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
936
|
-
enqueue([go$writeFile, [
|
|
936
|
+
enqueue([go$writeFile, [path11, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
|
|
937
937
|
else {
|
|
938
938
|
if (typeof cb2 === "function")
|
|
939
939
|
cb2.apply(this, arguments);
|
|
@@ -944,14 +944,14 @@ var require_graceful_fs = __commonJS({
|
|
|
944
944
|
var fs$appendFile = fs5.appendFile;
|
|
945
945
|
if (fs$appendFile)
|
|
946
946
|
fs5.appendFile = appendFile;
|
|
947
|
-
function appendFile(
|
|
947
|
+
function appendFile(path10, data, options2, cb) {
|
|
948
948
|
if (typeof options2 === "function")
|
|
949
949
|
cb = options2, options2 = null;
|
|
950
|
-
return go$appendFile(
|
|
951
|
-
function go$appendFile(
|
|
952
|
-
return fs$appendFile(
|
|
950
|
+
return go$appendFile(path10, data, options2, cb);
|
|
951
|
+
function go$appendFile(path11, data2, options3, cb2, startTime) {
|
|
952
|
+
return fs$appendFile(path11, data2, options3, function(err) {
|
|
953
953
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
954
|
-
enqueue([go$appendFile, [
|
|
954
|
+
enqueue([go$appendFile, [path11, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
|
|
955
955
|
else {
|
|
956
956
|
if (typeof cb2 === "function")
|
|
957
957
|
cb2.apply(this, arguments);
|
|
@@ -982,31 +982,31 @@ var require_graceful_fs = __commonJS({
|
|
|
982
982
|
var fs$readdir = fs5.readdir;
|
|
983
983
|
fs5.readdir = readdir;
|
|
984
984
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
985
|
-
function readdir(
|
|
985
|
+
function readdir(path10, options2, cb) {
|
|
986
986
|
if (typeof options2 === "function")
|
|
987
987
|
cb = options2, options2 = null;
|
|
988
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
989
|
-
return fs$readdir(
|
|
990
|
-
|
|
988
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path11, options3, cb2, startTime) {
|
|
989
|
+
return fs$readdir(path11, fs$readdirCallback(
|
|
990
|
+
path11,
|
|
991
991
|
options3,
|
|
992
992
|
cb2,
|
|
993
993
|
startTime
|
|
994
994
|
));
|
|
995
|
-
} : function go$readdir2(
|
|
996
|
-
return fs$readdir(
|
|
997
|
-
|
|
995
|
+
} : function go$readdir2(path11, options3, cb2, startTime) {
|
|
996
|
+
return fs$readdir(path11, options3, fs$readdirCallback(
|
|
997
|
+
path11,
|
|
998
998
|
options3,
|
|
999
999
|
cb2,
|
|
1000
1000
|
startTime
|
|
1001
1001
|
));
|
|
1002
1002
|
};
|
|
1003
|
-
return go$readdir(
|
|
1004
|
-
function fs$readdirCallback(
|
|
1003
|
+
return go$readdir(path10, options2, cb);
|
|
1004
|
+
function fs$readdirCallback(path11, options3, cb2, startTime) {
|
|
1005
1005
|
return function(err, files) {
|
|
1006
1006
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
1007
1007
|
enqueue([
|
|
1008
1008
|
go$readdir,
|
|
1009
|
-
[
|
|
1009
|
+
[path11, options3, cb2],
|
|
1010
1010
|
err,
|
|
1011
1011
|
startTime || Date.now(),
|
|
1012
1012
|
Date.now()
|
|
@@ -1077,7 +1077,7 @@ var require_graceful_fs = __commonJS({
|
|
|
1077
1077
|
enumerable: true,
|
|
1078
1078
|
configurable: true
|
|
1079
1079
|
});
|
|
1080
|
-
function ReadStream(
|
|
1080
|
+
function ReadStream(path10, options2) {
|
|
1081
1081
|
if (this instanceof ReadStream)
|
|
1082
1082
|
return fs$ReadStream.apply(this, arguments), this;
|
|
1083
1083
|
else
|
|
@@ -1097,7 +1097,7 @@ var require_graceful_fs = __commonJS({
|
|
|
1097
1097
|
}
|
|
1098
1098
|
});
|
|
1099
1099
|
}
|
|
1100
|
-
function WriteStream(
|
|
1100
|
+
function WriteStream(path10, options2) {
|
|
1101
1101
|
if (this instanceof WriteStream)
|
|
1102
1102
|
return fs$WriteStream.apply(this, arguments), this;
|
|
1103
1103
|
else
|
|
@@ -1115,22 +1115,22 @@ var require_graceful_fs = __commonJS({
|
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
function createReadStream2(
|
|
1119
|
-
return new fs5.ReadStream(
|
|
1118
|
+
function createReadStream2(path10, options2) {
|
|
1119
|
+
return new fs5.ReadStream(path10, options2);
|
|
1120
1120
|
}
|
|
1121
|
-
function createWriteStream2(
|
|
1122
|
-
return new fs5.WriteStream(
|
|
1121
|
+
function createWriteStream2(path10, options2) {
|
|
1122
|
+
return new fs5.WriteStream(path10, options2);
|
|
1123
1123
|
}
|
|
1124
1124
|
var fs$open = fs5.open;
|
|
1125
1125
|
fs5.open = open;
|
|
1126
|
-
function open(
|
|
1126
|
+
function open(path10, flags, mode2, cb) {
|
|
1127
1127
|
if (typeof mode2 === "function")
|
|
1128
1128
|
cb = mode2, mode2 = null;
|
|
1129
|
-
return go$open(
|
|
1130
|
-
function go$open(
|
|
1131
|
-
return fs$open(
|
|
1129
|
+
return go$open(path10, flags, mode2, cb);
|
|
1130
|
+
function go$open(path11, flags2, mode3, cb2, startTime) {
|
|
1131
|
+
return fs$open(path11, flags2, mode3, function(err, fd) {
|
|
1132
1132
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
1133
|
-
enqueue([go$open, [
|
|
1133
|
+
enqueue([go$open, [path11, flags2, mode3, cb2], err, startTime || Date.now(), Date.now()]);
|
|
1134
1134
|
else {
|
|
1135
1135
|
if (typeof cb2 === "function")
|
|
1136
1136
|
cb2.apply(this, arguments);
|
|
@@ -1313,10 +1313,10 @@ var require_fs = __commonJS({
|
|
|
1313
1313
|
var require_utils = __commonJS({
|
|
1314
1314
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
1315
1315
|
"use strict";
|
|
1316
|
-
var
|
|
1316
|
+
var path10 = require("path");
|
|
1317
1317
|
module2.exports.checkPath = function checkPath(pth) {
|
|
1318
1318
|
if (process.platform === "win32") {
|
|
1319
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
1319
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path10.parse(pth).root, ""));
|
|
1320
1320
|
if (pathHasInvalidWinCharacters) {
|
|
1321
1321
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
1322
1322
|
error.code = "EINVAL";
|
|
@@ -1380,8 +1380,8 @@ var require_path_exists = __commonJS({
|
|
|
1380
1380
|
"use strict";
|
|
1381
1381
|
var u = require_universalify().fromPromise;
|
|
1382
1382
|
var fs4 = require_fs();
|
|
1383
|
-
function pathExists(
|
|
1384
|
-
return fs4.access(
|
|
1383
|
+
function pathExists(path10) {
|
|
1384
|
+
return fs4.access(path10).then(() => true).catch(() => false);
|
|
1385
1385
|
}
|
|
1386
1386
|
module2.exports = {
|
|
1387
1387
|
pathExists: u(pathExists),
|
|
@@ -1396,8 +1396,8 @@ var require_utimes = __commonJS({
|
|
|
1396
1396
|
"use strict";
|
|
1397
1397
|
var fs4 = require_fs();
|
|
1398
1398
|
var u = require_universalify().fromPromise;
|
|
1399
|
-
async function utimesMillis(
|
|
1400
|
-
const fd = await fs4.open(
|
|
1399
|
+
async function utimesMillis(path10, atime, mtime) {
|
|
1400
|
+
const fd = await fs4.open(path10, "r+");
|
|
1401
1401
|
let closeErr = null;
|
|
1402
1402
|
try {
|
|
1403
1403
|
await fs4.futimes(fd, atime, mtime);
|
|
@@ -1412,8 +1412,8 @@ var require_utimes = __commonJS({
|
|
|
1412
1412
|
throw closeErr;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
function utimesMillisSync(
|
|
1416
|
-
const fd = fs4.openSync(
|
|
1415
|
+
function utimesMillisSync(path10, atime, mtime) {
|
|
1416
|
+
const fd = fs4.openSync(path10, "r+");
|
|
1417
1417
|
fs4.futimesSync(fd, atime, mtime);
|
|
1418
1418
|
return fs4.closeSync(fd);
|
|
1419
1419
|
}
|
|
@@ -1429,7 +1429,7 @@ var require_stat = __commonJS({
|
|
|
1429
1429
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
1430
1430
|
"use strict";
|
|
1431
1431
|
var fs4 = require_fs();
|
|
1432
|
-
var
|
|
1432
|
+
var path10 = require("path");
|
|
1433
1433
|
var u = require_universalify().fromPromise;
|
|
1434
1434
|
function getStats(src2, dest, opts) {
|
|
1435
1435
|
const statFunc = opts.dereference ? (file2) => fs4.stat(file2, { bigint: true }) : (file2) => fs4.lstat(file2, { bigint: true });
|
|
@@ -1457,8 +1457,8 @@ var require_stat = __commonJS({
|
|
|
1457
1457
|
const { srcStat, destStat } = await getStats(src2, dest, opts);
|
|
1458
1458
|
if (destStat) {
|
|
1459
1459
|
if (areIdentical(srcStat, destStat)) {
|
|
1460
|
-
const srcBaseName =
|
|
1461
|
-
const destBaseName =
|
|
1460
|
+
const srcBaseName = path10.basename(src2);
|
|
1461
|
+
const destBaseName = path10.basename(dest);
|
|
1462
1462
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1463
1463
|
return { srcStat, destStat, isChangingCase: true };
|
|
1464
1464
|
}
|
|
@@ -1480,8 +1480,8 @@ var require_stat = __commonJS({
|
|
|
1480
1480
|
const { srcStat, destStat } = getStatsSync(src2, dest, opts);
|
|
1481
1481
|
if (destStat) {
|
|
1482
1482
|
if (areIdentical(srcStat, destStat)) {
|
|
1483
|
-
const srcBaseName =
|
|
1484
|
-
const destBaseName =
|
|
1483
|
+
const srcBaseName = path10.basename(src2);
|
|
1484
|
+
const destBaseName = path10.basename(dest);
|
|
1485
1485
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1486
1486
|
return { srcStat, destStat, isChangingCase: true };
|
|
1487
1487
|
}
|
|
@@ -1500,9 +1500,9 @@ var require_stat = __commonJS({
|
|
|
1500
1500
|
return { srcStat, destStat };
|
|
1501
1501
|
}
|
|
1502
1502
|
async function checkParentPaths(src2, srcStat, dest, funcName) {
|
|
1503
|
-
const srcParent =
|
|
1504
|
-
const destParent =
|
|
1505
|
-
if (destParent === srcParent || destParent ===
|
|
1503
|
+
const srcParent = path10.resolve(path10.dirname(src2));
|
|
1504
|
+
const destParent = path10.resolve(path10.dirname(dest));
|
|
1505
|
+
if (destParent === srcParent || destParent === path10.parse(destParent).root) return;
|
|
1506
1506
|
let destStat;
|
|
1507
1507
|
try {
|
|
1508
1508
|
destStat = await fs4.stat(destParent, { bigint: true });
|
|
@@ -1516,9 +1516,9 @@ var require_stat = __commonJS({
|
|
|
1516
1516
|
return checkParentPaths(src2, srcStat, destParent, funcName);
|
|
1517
1517
|
}
|
|
1518
1518
|
function checkParentPathsSync(src2, srcStat, dest, funcName) {
|
|
1519
|
-
const srcParent =
|
|
1520
|
-
const destParent =
|
|
1521
|
-
if (destParent === srcParent || destParent ===
|
|
1519
|
+
const srcParent = path10.resolve(path10.dirname(src2));
|
|
1520
|
+
const destParent = path10.resolve(path10.dirname(dest));
|
|
1521
|
+
if (destParent === srcParent || destParent === path10.parse(destParent).root) return;
|
|
1522
1522
|
let destStat;
|
|
1523
1523
|
try {
|
|
1524
1524
|
destStat = fs4.statSync(destParent, { bigint: true });
|
|
@@ -1535,8 +1535,8 @@ var require_stat = __commonJS({
|
|
|
1535
1535
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1536
1536
|
}
|
|
1537
1537
|
function isSrcSubdir(src2, dest) {
|
|
1538
|
-
const srcArr =
|
|
1539
|
-
const destArr =
|
|
1538
|
+
const srcArr = path10.resolve(src2).split(path10.sep).filter((i) => i);
|
|
1539
|
+
const destArr = path10.resolve(dest).split(path10.sep).filter((i) => i);
|
|
1540
1540
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1541
1541
|
}
|
|
1542
1542
|
function errMsg(src2, dest, funcName) {
|
|
@@ -1561,7 +1561,7 @@ var require_copy = __commonJS({
|
|
|
1561
1561
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
1562
1562
|
"use strict";
|
|
1563
1563
|
var fs4 = require_fs();
|
|
1564
|
-
var
|
|
1564
|
+
var path10 = require("path");
|
|
1565
1565
|
var { mkdirs } = require_mkdirs();
|
|
1566
1566
|
var { pathExists } = require_path_exists();
|
|
1567
1567
|
var { utimesMillis } = require_utimes();
|
|
@@ -1583,7 +1583,7 @@ var require_copy = __commonJS({
|
|
|
1583
1583
|
await stat.checkParentPaths(src2, srcStat, dest, "copy");
|
|
1584
1584
|
const include = await runFilter(src2, dest, opts);
|
|
1585
1585
|
if (!include) return;
|
|
1586
|
-
const destParent =
|
|
1586
|
+
const destParent = path10.dirname(dest);
|
|
1587
1587
|
const dirExists = await pathExists(destParent);
|
|
1588
1588
|
if (!dirExists) {
|
|
1589
1589
|
await mkdirs(destParent);
|
|
@@ -1637,8 +1637,8 @@ var require_copy = __commonJS({
|
|
|
1637
1637
|
}
|
|
1638
1638
|
const promises2 = [];
|
|
1639
1639
|
for await (const item2 of await fs4.opendir(src2)) {
|
|
1640
|
-
const srcItem =
|
|
1641
|
-
const destItem =
|
|
1640
|
+
const srcItem = path10.join(src2, item2.name);
|
|
1641
|
+
const destItem = path10.join(dest, item2.name);
|
|
1642
1642
|
promises2.push(
|
|
1643
1643
|
runFilter(srcItem, destItem, opts).then((include) => {
|
|
1644
1644
|
if (include) {
|
|
@@ -1657,7 +1657,7 @@ var require_copy = __commonJS({
|
|
|
1657
1657
|
async function onLink(destStat, src2, dest, opts) {
|
|
1658
1658
|
let resolvedSrc = await fs4.readlink(src2);
|
|
1659
1659
|
if (opts.dereference) {
|
|
1660
|
-
resolvedSrc =
|
|
1660
|
+
resolvedSrc = path10.resolve(process.cwd(), resolvedSrc);
|
|
1661
1661
|
}
|
|
1662
1662
|
if (!destStat) {
|
|
1663
1663
|
return fs4.symlink(resolvedSrc, dest);
|
|
@@ -1670,7 +1670,7 @@ var require_copy = __commonJS({
|
|
|
1670
1670
|
throw e;
|
|
1671
1671
|
}
|
|
1672
1672
|
if (opts.dereference) {
|
|
1673
|
-
resolvedDest =
|
|
1673
|
+
resolvedDest = path10.resolve(process.cwd(), resolvedDest);
|
|
1674
1674
|
}
|
|
1675
1675
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1676
1676
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1690,7 +1690,7 @@ var require_copy_sync = __commonJS({
|
|
|
1690
1690
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
1691
1691
|
"use strict";
|
|
1692
1692
|
var fs4 = require_graceful_fs();
|
|
1693
|
-
var
|
|
1693
|
+
var path10 = require("path");
|
|
1694
1694
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1695
1695
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1696
1696
|
var stat = require_stat();
|
|
@@ -1711,7 +1711,7 @@ var require_copy_sync = __commonJS({
|
|
|
1711
1711
|
const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts);
|
|
1712
1712
|
stat.checkParentPathsSync(src2, srcStat, dest, "copy");
|
|
1713
1713
|
if (opts.filter && !opts.filter(src2, dest)) return;
|
|
1714
|
-
const destParent =
|
|
1714
|
+
const destParent = path10.dirname(dest);
|
|
1715
1715
|
if (!fs4.existsSync(destParent)) mkdirsSync(destParent);
|
|
1716
1716
|
return getStats(destStat, src2, dest, opts);
|
|
1717
1717
|
}
|
|
@@ -1780,8 +1780,8 @@ var require_copy_sync = __commonJS({
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
function copyDirItem(item2, src2, dest, opts) {
|
|
1783
|
-
const srcItem =
|
|
1784
|
-
const destItem =
|
|
1783
|
+
const srcItem = path10.join(src2, item2);
|
|
1784
|
+
const destItem = path10.join(dest, item2);
|
|
1785
1785
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
1786
1786
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
1787
1787
|
return getStats(destStat, srcItem, destItem, opts);
|
|
@@ -1789,7 +1789,7 @@ var require_copy_sync = __commonJS({
|
|
|
1789
1789
|
function onLink(destStat, src2, dest, opts) {
|
|
1790
1790
|
let resolvedSrc = fs4.readlinkSync(src2);
|
|
1791
1791
|
if (opts.dereference) {
|
|
1792
|
-
resolvedSrc =
|
|
1792
|
+
resolvedSrc = path10.resolve(process.cwd(), resolvedSrc);
|
|
1793
1793
|
}
|
|
1794
1794
|
if (!destStat) {
|
|
1795
1795
|
return fs4.symlinkSync(resolvedSrc, dest);
|
|
@@ -1802,7 +1802,7 @@ var require_copy_sync = __commonJS({
|
|
|
1802
1802
|
throw err;
|
|
1803
1803
|
}
|
|
1804
1804
|
if (opts.dereference) {
|
|
1805
|
-
resolvedDest =
|
|
1805
|
+
resolvedDest = path10.resolve(process.cwd(), resolvedDest);
|
|
1806
1806
|
}
|
|
1807
1807
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1808
1808
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1839,11 +1839,11 @@ var require_remove = __commonJS({
|
|
|
1839
1839
|
"use strict";
|
|
1840
1840
|
var fs4 = require_graceful_fs();
|
|
1841
1841
|
var u = require_universalify().fromCallback;
|
|
1842
|
-
function remove2(
|
|
1843
|
-
fs4.rm(
|
|
1842
|
+
function remove2(path10, callback) {
|
|
1843
|
+
fs4.rm(path10, { recursive: true, force: true }, callback);
|
|
1844
1844
|
}
|
|
1845
|
-
function removeSync(
|
|
1846
|
-
fs4.rmSync(
|
|
1845
|
+
function removeSync(path10) {
|
|
1846
|
+
fs4.rmSync(path10, { recursive: true, force: true });
|
|
1847
1847
|
}
|
|
1848
1848
|
module2.exports = {
|
|
1849
1849
|
remove: u(remove2),
|
|
@@ -1858,7 +1858,7 @@ var require_empty = __commonJS({
|
|
|
1858
1858
|
"use strict";
|
|
1859
1859
|
var u = require_universalify().fromPromise;
|
|
1860
1860
|
var fs4 = require_fs();
|
|
1861
|
-
var
|
|
1861
|
+
var path10 = require("path");
|
|
1862
1862
|
var mkdir = require_mkdirs();
|
|
1863
1863
|
var remove2 = require_remove();
|
|
1864
1864
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -1868,7 +1868,7 @@ var require_empty = __commonJS({
|
|
|
1868
1868
|
} catch {
|
|
1869
1869
|
return mkdir.mkdirs(dir);
|
|
1870
1870
|
}
|
|
1871
|
-
return Promise.all(items.map((item2) => remove2.remove(
|
|
1871
|
+
return Promise.all(items.map((item2) => remove2.remove(path10.join(dir, item2))));
|
|
1872
1872
|
});
|
|
1873
1873
|
function emptyDirSync(dir) {
|
|
1874
1874
|
let items;
|
|
@@ -1878,7 +1878,7 @@ var require_empty = __commonJS({
|
|
|
1878
1878
|
return mkdir.mkdirsSync(dir);
|
|
1879
1879
|
}
|
|
1880
1880
|
items.forEach((item2) => {
|
|
1881
|
-
item2 =
|
|
1881
|
+
item2 = path10.join(dir, item2);
|
|
1882
1882
|
remove2.removeSync(item2);
|
|
1883
1883
|
});
|
|
1884
1884
|
}
|
|
@@ -1896,7 +1896,7 @@ var require_file = __commonJS({
|
|
|
1896
1896
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
1897
1897
|
"use strict";
|
|
1898
1898
|
var u = require_universalify().fromPromise;
|
|
1899
|
-
var
|
|
1899
|
+
var path10 = require("path");
|
|
1900
1900
|
var fs4 = require_fs();
|
|
1901
1901
|
var mkdir = require_mkdirs();
|
|
1902
1902
|
async function createFile(file2) {
|
|
@@ -1906,7 +1906,7 @@ var require_file = __commonJS({
|
|
|
1906
1906
|
} catch {
|
|
1907
1907
|
}
|
|
1908
1908
|
if (stats && stats.isFile()) return;
|
|
1909
|
-
const dir =
|
|
1909
|
+
const dir = path10.dirname(file2);
|
|
1910
1910
|
let dirStats = null;
|
|
1911
1911
|
try {
|
|
1912
1912
|
dirStats = await fs4.stat(dir);
|
|
@@ -1932,7 +1932,7 @@ var require_file = __commonJS({
|
|
|
1932
1932
|
} catch {
|
|
1933
1933
|
}
|
|
1934
1934
|
if (stats && stats.isFile()) return;
|
|
1935
|
-
const dir =
|
|
1935
|
+
const dir = path10.dirname(file2);
|
|
1936
1936
|
try {
|
|
1937
1937
|
if (!fs4.statSync(dir).isDirectory()) {
|
|
1938
1938
|
fs4.readdirSync(dir);
|
|
@@ -1955,7 +1955,7 @@ var require_link = __commonJS({
|
|
|
1955
1955
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
1956
1956
|
"use strict";
|
|
1957
1957
|
var u = require_universalify().fromPromise;
|
|
1958
|
-
var
|
|
1958
|
+
var path10 = require("path");
|
|
1959
1959
|
var fs4 = require_fs();
|
|
1960
1960
|
var mkdir = require_mkdirs();
|
|
1961
1961
|
var { pathExists } = require_path_exists();
|
|
@@ -1974,7 +1974,7 @@ var require_link = __commonJS({
|
|
|
1974
1974
|
throw err;
|
|
1975
1975
|
}
|
|
1976
1976
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1977
|
-
const dir =
|
|
1977
|
+
const dir = path10.dirname(dstpath);
|
|
1978
1978
|
const dirExists = await pathExists(dir);
|
|
1979
1979
|
if (!dirExists) {
|
|
1980
1980
|
await mkdir.mkdirs(dir);
|
|
@@ -1994,7 +1994,7 @@ var require_link = __commonJS({
|
|
|
1994
1994
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1995
1995
|
throw err;
|
|
1996
1996
|
}
|
|
1997
|
-
const dir =
|
|
1997
|
+
const dir = path10.dirname(dstpath);
|
|
1998
1998
|
const dirExists = fs4.existsSync(dir);
|
|
1999
1999
|
if (dirExists) return fs4.linkSync(srcpath, dstpath);
|
|
2000
2000
|
mkdir.mkdirsSync(dir);
|
|
@@ -2011,12 +2011,12 @@ var require_link = __commonJS({
|
|
|
2011
2011
|
var require_symlink_paths = __commonJS({
|
|
2012
2012
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
2013
2013
|
"use strict";
|
|
2014
|
-
var
|
|
2014
|
+
var path10 = require("path");
|
|
2015
2015
|
var fs4 = require_fs();
|
|
2016
2016
|
var { pathExists } = require_path_exists();
|
|
2017
2017
|
var u = require_universalify().fromPromise;
|
|
2018
2018
|
async function symlinkPaths(srcpath, dstpath) {
|
|
2019
|
-
if (
|
|
2019
|
+
if (path10.isAbsolute(srcpath)) {
|
|
2020
2020
|
try {
|
|
2021
2021
|
await fs4.lstat(srcpath);
|
|
2022
2022
|
} catch (err) {
|
|
@@ -2028,8 +2028,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2028
2028
|
toDst: srcpath
|
|
2029
2029
|
};
|
|
2030
2030
|
}
|
|
2031
|
-
const dstdir =
|
|
2032
|
-
const relativeToDst =
|
|
2031
|
+
const dstdir = path10.dirname(dstpath);
|
|
2032
|
+
const relativeToDst = path10.join(dstdir, srcpath);
|
|
2033
2033
|
const exists = await pathExists(relativeToDst);
|
|
2034
2034
|
if (exists) {
|
|
2035
2035
|
return {
|
|
@@ -2045,11 +2045,11 @@ var require_symlink_paths = __commonJS({
|
|
|
2045
2045
|
}
|
|
2046
2046
|
return {
|
|
2047
2047
|
toCwd: srcpath,
|
|
2048
|
-
toDst:
|
|
2048
|
+
toDst: path10.relative(dstdir, srcpath)
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
2051
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
2052
|
-
if (
|
|
2052
|
+
if (path10.isAbsolute(srcpath)) {
|
|
2053
2053
|
const exists2 = fs4.existsSync(srcpath);
|
|
2054
2054
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
2055
2055
|
return {
|
|
@@ -2057,8 +2057,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2057
2057
|
toDst: srcpath
|
|
2058
2058
|
};
|
|
2059
2059
|
}
|
|
2060
|
-
const dstdir =
|
|
2061
|
-
const relativeToDst =
|
|
2060
|
+
const dstdir = path10.dirname(dstpath);
|
|
2061
|
+
const relativeToDst = path10.join(dstdir, srcpath);
|
|
2062
2062
|
const exists = fs4.existsSync(relativeToDst);
|
|
2063
2063
|
if (exists) {
|
|
2064
2064
|
return {
|
|
@@ -2070,7 +2070,7 @@ var require_symlink_paths = __commonJS({
|
|
|
2070
2070
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
2071
2071
|
return {
|
|
2072
2072
|
toCwd: srcpath,
|
|
2073
|
-
toDst:
|
|
2073
|
+
toDst: path10.relative(dstdir, srcpath)
|
|
2074
2074
|
};
|
|
2075
2075
|
}
|
|
2076
2076
|
module2.exports = {
|
|
@@ -2118,7 +2118,7 @@ var require_symlink = __commonJS({
|
|
|
2118
2118
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
2119
2119
|
"use strict";
|
|
2120
2120
|
var u = require_universalify().fromPromise;
|
|
2121
|
-
var
|
|
2121
|
+
var path10 = require("path");
|
|
2122
2122
|
var fs4 = require_fs();
|
|
2123
2123
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
2124
2124
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -2141,7 +2141,7 @@ var require_symlink = __commonJS({
|
|
|
2141
2141
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
2142
2142
|
srcpath = relative.toDst;
|
|
2143
2143
|
const toType = await symlinkType(relative.toCwd, type);
|
|
2144
|
-
const dir =
|
|
2144
|
+
const dir = path10.dirname(dstpath);
|
|
2145
2145
|
if (!await pathExists(dir)) {
|
|
2146
2146
|
await mkdirs(dir);
|
|
2147
2147
|
}
|
|
@@ -2161,7 +2161,7 @@ var require_symlink = __commonJS({
|
|
|
2161
2161
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
2162
2162
|
srcpath = relative.toDst;
|
|
2163
2163
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
2164
|
-
const dir =
|
|
2164
|
+
const dir = path10.dirname(dstpath);
|
|
2165
2165
|
const exists = fs4.existsSync(dir);
|
|
2166
2166
|
if (exists) return fs4.symlinkSync(srcpath, dstpath, type);
|
|
2167
2167
|
mkdirsSync(dir);
|
|
@@ -2312,18 +2312,18 @@ var require_output_file = __commonJS({
|
|
|
2312
2312
|
"use strict";
|
|
2313
2313
|
var u = require_universalify().fromPromise;
|
|
2314
2314
|
var fs4 = require_fs();
|
|
2315
|
-
var
|
|
2315
|
+
var path10 = require("path");
|
|
2316
2316
|
var mkdir = require_mkdirs();
|
|
2317
2317
|
var pathExists = require_path_exists().pathExists;
|
|
2318
2318
|
async function outputFile(file2, data, encoding = "utf-8") {
|
|
2319
|
-
const dir =
|
|
2319
|
+
const dir = path10.dirname(file2);
|
|
2320
2320
|
if (!await pathExists(dir)) {
|
|
2321
2321
|
await mkdir.mkdirs(dir);
|
|
2322
2322
|
}
|
|
2323
2323
|
return fs4.writeFile(file2, data, encoding);
|
|
2324
2324
|
}
|
|
2325
2325
|
function outputFileSync(file2, ...args) {
|
|
2326
|
-
const dir =
|
|
2326
|
+
const dir = path10.dirname(file2);
|
|
2327
2327
|
if (!fs4.existsSync(dir)) {
|
|
2328
2328
|
mkdir.mkdirsSync(dir);
|
|
2329
2329
|
}
|
|
@@ -2387,7 +2387,7 @@ var require_move = __commonJS({
|
|
|
2387
2387
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
2388
2388
|
"use strict";
|
|
2389
2389
|
var fs4 = require_fs();
|
|
2390
|
-
var
|
|
2390
|
+
var path10 = require("path");
|
|
2391
2391
|
var { copy } = require_copy2();
|
|
2392
2392
|
var { remove: remove2 } = require_remove();
|
|
2393
2393
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2397,8 +2397,8 @@ var require_move = __commonJS({
|
|
|
2397
2397
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2398
2398
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts);
|
|
2399
2399
|
await stat.checkParentPaths(src2, srcStat, dest, "move");
|
|
2400
|
-
const destParent =
|
|
2401
|
-
const parsedParentPath =
|
|
2400
|
+
const destParent = path10.dirname(dest);
|
|
2401
|
+
const parsedParentPath = path10.parse(destParent);
|
|
2402
2402
|
if (parsedParentPath.root !== destParent) {
|
|
2403
2403
|
await mkdirp(destParent);
|
|
2404
2404
|
}
|
|
@@ -2439,7 +2439,7 @@ var require_move_sync = __commonJS({
|
|
|
2439
2439
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
2440
2440
|
"use strict";
|
|
2441
2441
|
var fs4 = require_graceful_fs();
|
|
2442
|
-
var
|
|
2442
|
+
var path10 = require("path");
|
|
2443
2443
|
var copySync = require_copy2().copySync;
|
|
2444
2444
|
var removeSync = require_remove().removeSync;
|
|
2445
2445
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2449,12 +2449,12 @@ var require_move_sync = __commonJS({
|
|
|
2449
2449
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2450
2450
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts);
|
|
2451
2451
|
stat.checkParentPathsSync(src2, srcStat, dest, "move");
|
|
2452
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2452
|
+
if (!isParentRoot(dest)) mkdirpSync(path10.dirname(dest));
|
|
2453
2453
|
return doRename(src2, dest, overwrite, isChangingCase);
|
|
2454
2454
|
}
|
|
2455
2455
|
function isParentRoot(dest) {
|
|
2456
|
-
const parent =
|
|
2457
|
-
const parsedPath =
|
|
2456
|
+
const parent = path10.dirname(dest);
|
|
2457
|
+
const parsedPath = path10.parse(parent);
|
|
2458
2458
|
return parsedPath.root === parent;
|
|
2459
2459
|
}
|
|
2460
2460
|
function doRename(src2, dest, overwrite, isChangingCase) {
|
|
@@ -2699,8 +2699,8 @@ var require_path_parse = __commonJS({
|
|
|
2699
2699
|
var require_node_modules_paths = __commonJS({
|
|
2700
2700
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/node-modules-paths.js"(exports2, module2) {
|
|
2701
2701
|
"use strict";
|
|
2702
|
-
var
|
|
2703
|
-
var parse2 =
|
|
2702
|
+
var path10 = require("path");
|
|
2703
|
+
var parse2 = path10.parse || require_path_parse();
|
|
2704
2704
|
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
|
2705
2705
|
var prefix = "/";
|
|
2706
2706
|
if (/^([A-Za-z]:)/.test(absoluteStart)) {
|
|
@@ -2716,7 +2716,7 @@ var require_node_modules_paths = __commonJS({
|
|
|
2716
2716
|
}
|
|
2717
2717
|
return paths2.reduce(function(dirs, aPath) {
|
|
2718
2718
|
return dirs.concat(modules.map(function(moduleDir) {
|
|
2719
|
-
return
|
|
2719
|
+
return path10.resolve(prefix, aPath, moduleDir);
|
|
2720
2720
|
}));
|
|
2721
2721
|
}, []);
|
|
2722
2722
|
};
|
|
@@ -3081,7 +3081,7 @@ var require_async = __commonJS({
|
|
|
3081
3081
|
"use strict";
|
|
3082
3082
|
var fs4 = require("fs");
|
|
3083
3083
|
var getHomedir = require_homedir();
|
|
3084
|
-
var
|
|
3084
|
+
var path10 = require("path");
|
|
3085
3085
|
var caller = require_caller();
|
|
3086
3086
|
var nodeModulesPaths = require_node_modules_paths();
|
|
3087
3087
|
var normalizeOptions = require_normalize_options();
|
|
@@ -3090,8 +3090,8 @@ var require_async = __commonJS({
|
|
|
3090
3090
|
var homedir = getHomedir();
|
|
3091
3091
|
var defaultPaths = function() {
|
|
3092
3092
|
return [
|
|
3093
|
-
|
|
3094
|
-
|
|
3093
|
+
path10.join(homedir, ".node_modules"),
|
|
3094
|
+
path10.join(homedir, ".node_libraries")
|
|
3095
3095
|
];
|
|
3096
3096
|
};
|
|
3097
3097
|
var defaultIsFile = function isFile(file2, cb) {
|
|
@@ -3141,7 +3141,7 @@ var require_async = __commonJS({
|
|
|
3141
3141
|
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
3142
3142
|
var dirs = nodeModulesPaths(start, opts, x);
|
|
3143
3143
|
for (var i = 0; i < dirs.length; i++) {
|
|
3144
|
-
dirs[i] =
|
|
3144
|
+
dirs[i] = path10.join(dirs[i], x);
|
|
3145
3145
|
}
|
|
3146
3146
|
return dirs;
|
|
3147
3147
|
};
|
|
@@ -3173,10 +3173,10 @@ var require_async = __commonJS({
|
|
|
3173
3173
|
var packageIterator = opts.packageIterator;
|
|
3174
3174
|
var extensions = opts.extensions || [".js"];
|
|
3175
3175
|
var includeCoreModules = opts.includeCoreModules !== false;
|
|
3176
|
-
var basedir = opts.basedir ||
|
|
3176
|
+
var basedir = opts.basedir || path10.dirname(caller());
|
|
3177
3177
|
var parent = opts.filename || basedir;
|
|
3178
3178
|
opts.paths = opts.paths || defaultPaths();
|
|
3179
|
-
var absoluteStart =
|
|
3179
|
+
var absoluteStart = path10.resolve(basedir);
|
|
3180
3180
|
maybeRealpath(
|
|
3181
3181
|
realpath,
|
|
3182
3182
|
absoluteStart,
|
|
@@ -3189,7 +3189,7 @@ var require_async = __commonJS({
|
|
|
3189
3189
|
var res;
|
|
3190
3190
|
function init3(basedir2) {
|
|
3191
3191
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
3192
|
-
res =
|
|
3192
|
+
res = path10.resolve(basedir2, x);
|
|
3193
3193
|
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
3194
3194
|
if (/\/$/.test(x) && res === basedir2) {
|
|
3195
3195
|
loadAsDirectory(res, opts.package, onfile);
|
|
@@ -3247,17 +3247,17 @@ var require_async = __commonJS({
|
|
|
3247
3247
|
var file2 = x3 + exts2[0];
|
|
3248
3248
|
var pkg = loadPackage;
|
|
3249
3249
|
if (pkg) onpkg(null, pkg);
|
|
3250
|
-
else loadpkg(
|
|
3250
|
+
else loadpkg(path10.dirname(file2), onpkg);
|
|
3251
3251
|
function onpkg(err2, pkg_, dir) {
|
|
3252
3252
|
pkg = pkg_;
|
|
3253
3253
|
if (err2) return cb2(err2);
|
|
3254
3254
|
if (dir && pkg && opts.pathFilter) {
|
|
3255
|
-
var rfile =
|
|
3255
|
+
var rfile = path10.relative(dir, file2);
|
|
3256
3256
|
var rel = rfile.slice(0, rfile.length - exts2[0].length);
|
|
3257
3257
|
var r = opts.pathFilter(pkg, x3, rel);
|
|
3258
3258
|
if (r) return load2(
|
|
3259
3259
|
[""].concat(extensions.slice()),
|
|
3260
|
-
|
|
3260
|
+
path10.resolve(dir, r),
|
|
3261
3261
|
pkg
|
|
3262
3262
|
);
|
|
3263
3263
|
}
|
|
@@ -3277,10 +3277,10 @@ var require_async = __commonJS({
|
|
|
3277
3277
|
}
|
|
3278
3278
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
|
|
3279
3279
|
maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
|
|
3280
|
-
if (unwrapErr) return loadpkg(
|
|
3281
|
-
var pkgfile =
|
|
3280
|
+
if (unwrapErr) return loadpkg(path10.dirname(dir), cb2);
|
|
3281
|
+
var pkgfile = path10.join(pkgdir, "package.json");
|
|
3282
3282
|
isFile(pkgfile, function(err2, ex) {
|
|
3283
|
-
if (!ex) return loadpkg(
|
|
3283
|
+
if (!ex) return loadpkg(path10.dirname(dir), cb2);
|
|
3284
3284
|
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
3285
3285
|
if (err3) cb2(err3);
|
|
3286
3286
|
var pkg = pkgParam;
|
|
@@ -3301,10 +3301,10 @@ var require_async = __commonJS({
|
|
|
3301
3301
|
}
|
|
3302
3302
|
maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
|
|
3303
3303
|
if (unwrapErr) return cb2(unwrapErr);
|
|
3304
|
-
var pkgfile =
|
|
3304
|
+
var pkgfile = path10.join(pkgdir, "package.json");
|
|
3305
3305
|
isFile(pkgfile, function(err2, ex) {
|
|
3306
3306
|
if (err2) return cb2(err2);
|
|
3307
|
-
if (!ex) return loadAsFile(
|
|
3307
|
+
if (!ex) return loadAsFile(path10.join(x2, "index"), fpkg, cb2);
|
|
3308
3308
|
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
3309
3309
|
if (err3) return cb2(err3);
|
|
3310
3310
|
var pkg = pkgParam;
|
|
@@ -3320,20 +3320,20 @@ var require_async = __commonJS({
|
|
|
3320
3320
|
if (pkg.main === "." || pkg.main === "./") {
|
|
3321
3321
|
pkg.main = "index";
|
|
3322
3322
|
}
|
|
3323
|
-
loadAsFile(
|
|
3323
|
+
loadAsFile(path10.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
|
|
3324
3324
|
if (err4) return cb2(err4);
|
|
3325
3325
|
if (m) return cb2(null, m, pkg2);
|
|
3326
|
-
if (!pkg2) return loadAsFile(
|
|
3327
|
-
var dir =
|
|
3326
|
+
if (!pkg2) return loadAsFile(path10.join(x2, "index"), pkg2, cb2);
|
|
3327
|
+
var dir = path10.resolve(x2, pkg2.main);
|
|
3328
3328
|
loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
|
|
3329
3329
|
if (err5) return cb2(err5);
|
|
3330
3330
|
if (n) return cb2(null, n, pkg3);
|
|
3331
|
-
loadAsFile(
|
|
3331
|
+
loadAsFile(path10.join(x2, "index"), pkg3, cb2);
|
|
3332
3332
|
});
|
|
3333
3333
|
});
|
|
3334
3334
|
return;
|
|
3335
3335
|
}
|
|
3336
|
-
loadAsFile(
|
|
3336
|
+
loadAsFile(path10.join(x2, "/index"), pkg, cb2);
|
|
3337
3337
|
});
|
|
3338
3338
|
});
|
|
3339
3339
|
});
|
|
@@ -3341,7 +3341,7 @@ var require_async = __commonJS({
|
|
|
3341
3341
|
function processDirs(cb2, dirs) {
|
|
3342
3342
|
if (dirs.length === 0) return cb2(null, void 0);
|
|
3343
3343
|
var dir = dirs[0];
|
|
3344
|
-
isDirectory(
|
|
3344
|
+
isDirectory(path10.dirname(dir), isdir);
|
|
3345
3345
|
function isdir(err2, isdir2) {
|
|
3346
3346
|
if (err2) return cb2(err2);
|
|
3347
3347
|
if (!isdir2) return processDirs(cb2, dirs.slice(1));
|
|
@@ -3573,7 +3573,7 @@ var require_sync = __commonJS({
|
|
|
3573
3573
|
"use strict";
|
|
3574
3574
|
var isCore = require_is_core_module();
|
|
3575
3575
|
var fs4 = require("fs");
|
|
3576
|
-
var
|
|
3576
|
+
var path10 = require("path");
|
|
3577
3577
|
var getHomedir = require_homedir();
|
|
3578
3578
|
var caller = require_caller();
|
|
3579
3579
|
var nodeModulesPaths = require_node_modules_paths();
|
|
@@ -3582,8 +3582,8 @@ var require_sync = __commonJS({
|
|
|
3582
3582
|
var homedir = getHomedir();
|
|
3583
3583
|
var defaultPaths = function() {
|
|
3584
3584
|
return [
|
|
3585
|
-
|
|
3586
|
-
|
|
3585
|
+
path10.join(homedir, ".node_modules"),
|
|
3586
|
+
path10.join(homedir, ".node_libraries")
|
|
3587
3587
|
];
|
|
3588
3588
|
};
|
|
3589
3589
|
var defaultIsFile = function isFile(file2) {
|
|
@@ -3631,7 +3631,7 @@ var require_sync = __commonJS({
|
|
|
3631
3631
|
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
3632
3632
|
var dirs = nodeModulesPaths(start, opts, x);
|
|
3633
3633
|
for (var i = 0; i < dirs.length; i++) {
|
|
3634
|
-
dirs[i] =
|
|
3634
|
+
dirs[i] = path10.join(dirs[i], x);
|
|
3635
3635
|
}
|
|
3636
3636
|
return dirs;
|
|
3637
3637
|
};
|
|
@@ -3651,12 +3651,12 @@ var require_sync = __commonJS({
|
|
|
3651
3651
|
var packageIterator = opts.packageIterator;
|
|
3652
3652
|
var extensions = opts.extensions || [".js"];
|
|
3653
3653
|
var includeCoreModules = opts.includeCoreModules !== false;
|
|
3654
|
-
var basedir = opts.basedir ||
|
|
3654
|
+
var basedir = opts.basedir || path10.dirname(caller());
|
|
3655
3655
|
var parent = opts.filename || basedir;
|
|
3656
3656
|
opts.paths = opts.paths || defaultPaths();
|
|
3657
|
-
var absoluteStart = maybeRealpathSync(realpathSync,
|
|
3657
|
+
var absoluteStart = maybeRealpathSync(realpathSync, path10.resolve(basedir), opts);
|
|
3658
3658
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
3659
|
-
var res =
|
|
3659
|
+
var res = path10.resolve(absoluteStart, x);
|
|
3660
3660
|
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
3661
3661
|
var m = loadAsFileSync(res) || loadAsDirectorySync(res);
|
|
3662
3662
|
if (m) return maybeRealpathSync(realpathSync, m, opts);
|
|
@@ -3670,12 +3670,12 @@ var require_sync = __commonJS({
|
|
|
3670
3670
|
err.code = "MODULE_NOT_FOUND";
|
|
3671
3671
|
throw err;
|
|
3672
3672
|
function loadAsFileSync(x2) {
|
|
3673
|
-
var pkg = loadpkg(
|
|
3673
|
+
var pkg = loadpkg(path10.dirname(x2));
|
|
3674
3674
|
if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
|
|
3675
|
-
var rfile =
|
|
3675
|
+
var rfile = path10.relative(pkg.dir, x2);
|
|
3676
3676
|
var r = opts.pathFilter(pkg.pkg, x2, rfile);
|
|
3677
3677
|
if (r) {
|
|
3678
|
-
x2 =
|
|
3678
|
+
x2 = path10.resolve(pkg.dir, r);
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
if (isFile(x2)) {
|
|
@@ -3694,9 +3694,9 @@ var require_sync = __commonJS({
|
|
|
3694
3694
|
return;
|
|
3695
3695
|
}
|
|
3696
3696
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
|
|
3697
|
-
var pkgfile =
|
|
3697
|
+
var pkgfile = path10.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
|
|
3698
3698
|
if (!isFile(pkgfile)) {
|
|
3699
|
-
return loadpkg(
|
|
3699
|
+
return loadpkg(path10.dirname(dir));
|
|
3700
3700
|
}
|
|
3701
3701
|
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
3702
3702
|
if (pkg && opts.packageFilter) {
|
|
@@ -3709,7 +3709,7 @@ var require_sync = __commonJS({
|
|
|
3709
3709
|
return { pkg, dir };
|
|
3710
3710
|
}
|
|
3711
3711
|
function loadAsDirectorySync(x2) {
|
|
3712
|
-
var pkgfile =
|
|
3712
|
+
var pkgfile = path10.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
|
|
3713
3713
|
if (isFile(pkgfile)) {
|
|
3714
3714
|
try {
|
|
3715
3715
|
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
@@ -3732,15 +3732,15 @@ var require_sync = __commonJS({
|
|
|
3732
3732
|
pkg.main = "index";
|
|
3733
3733
|
}
|
|
3734
3734
|
try {
|
|
3735
|
-
var m2 = loadAsFileSync(
|
|
3735
|
+
var m2 = loadAsFileSync(path10.resolve(x2, pkg.main));
|
|
3736
3736
|
if (m2) return m2;
|
|
3737
|
-
var n2 = loadAsDirectorySync(
|
|
3737
|
+
var n2 = loadAsDirectorySync(path10.resolve(x2, pkg.main));
|
|
3738
3738
|
if (n2) return n2;
|
|
3739
3739
|
} catch (e) {
|
|
3740
3740
|
}
|
|
3741
3741
|
}
|
|
3742
3742
|
}
|
|
3743
|
-
return loadAsFileSync(
|
|
3743
|
+
return loadAsFileSync(path10.join(x2, "/index"));
|
|
3744
3744
|
}
|
|
3745
3745
|
function loadNodeModulesSync(x2, start) {
|
|
3746
3746
|
var thunk = function() {
|
|
@@ -3749,7 +3749,7 @@ var require_sync = __commonJS({
|
|
|
3749
3749
|
var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
|
|
3750
3750
|
for (var i = 0; i < dirs.length; i++) {
|
|
3751
3751
|
var dir = dirs[i];
|
|
3752
|
-
if (isDirectory(
|
|
3752
|
+
if (isDirectory(path10.dirname(dir))) {
|
|
3753
3753
|
var m2 = loadAsFileSync(dir);
|
|
3754
3754
|
if (m2) return m2;
|
|
3755
3755
|
var n2 = loadAsDirectorySync(dir);
|
|
@@ -3948,42 +3948,42 @@ var require_lib2 = __commonJS({
|
|
|
3948
3948
|
var require_env_paths = __commonJS({
|
|
3949
3949
|
"../../node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
|
|
3950
3950
|
"use strict";
|
|
3951
|
-
var
|
|
3951
|
+
var path10 = require("path");
|
|
3952
3952
|
var os2 = require("os");
|
|
3953
3953
|
var homedir = os2.homedir();
|
|
3954
3954
|
var tmpdir = os2.tmpdir();
|
|
3955
3955
|
var { env: env2 } = process;
|
|
3956
3956
|
var macos = (name) => {
|
|
3957
|
-
const library =
|
|
3957
|
+
const library = path10.join(homedir, "Library");
|
|
3958
3958
|
return {
|
|
3959
|
-
data:
|
|
3960
|
-
config:
|
|
3961
|
-
cache:
|
|
3962
|
-
log:
|
|
3963
|
-
temp:
|
|
3959
|
+
data: path10.join(library, "Application Support", name),
|
|
3960
|
+
config: path10.join(library, "Preferences", name),
|
|
3961
|
+
cache: path10.join(library, "Caches", name),
|
|
3962
|
+
log: path10.join(library, "Logs", name),
|
|
3963
|
+
temp: path10.join(tmpdir, name)
|
|
3964
3964
|
};
|
|
3965
3965
|
};
|
|
3966
3966
|
var windows2 = (name) => {
|
|
3967
|
-
const appData = env2.APPDATA ||
|
|
3968
|
-
const localAppData = env2.LOCALAPPDATA ||
|
|
3967
|
+
const appData = env2.APPDATA || path10.join(homedir, "AppData", "Roaming");
|
|
3968
|
+
const localAppData = env2.LOCALAPPDATA || path10.join(homedir, "AppData", "Local");
|
|
3969
3969
|
return {
|
|
3970
3970
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
3971
|
-
data:
|
|
3972
|
-
config:
|
|
3973
|
-
cache:
|
|
3974
|
-
log:
|
|
3975
|
-
temp:
|
|
3971
|
+
data: path10.join(localAppData, name, "Data"),
|
|
3972
|
+
config: path10.join(appData, name, "Config"),
|
|
3973
|
+
cache: path10.join(localAppData, name, "Cache"),
|
|
3974
|
+
log: path10.join(localAppData, name, "Log"),
|
|
3975
|
+
temp: path10.join(tmpdir, name)
|
|
3976
3976
|
};
|
|
3977
3977
|
};
|
|
3978
3978
|
var linux = (name) => {
|
|
3979
|
-
const username =
|
|
3979
|
+
const username = path10.basename(homedir);
|
|
3980
3980
|
return {
|
|
3981
|
-
data:
|
|
3982
|
-
config:
|
|
3983
|
-
cache:
|
|
3981
|
+
data: path10.join(env2.XDG_DATA_HOME || path10.join(homedir, ".local", "share"), name),
|
|
3982
|
+
config: path10.join(env2.XDG_CONFIG_HOME || path10.join(homedir, ".config"), name),
|
|
3983
|
+
cache: path10.join(env2.XDG_CACHE_HOME || path10.join(homedir, ".cache"), name),
|
|
3984
3984
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
3985
|
-
log:
|
|
3986
|
-
temp:
|
|
3985
|
+
log: path10.join(env2.XDG_STATE_HOME || path10.join(homedir, ".local", "state"), name),
|
|
3986
|
+
temp: path10.join(tmpdir, username, name)
|
|
3987
3987
|
};
|
|
3988
3988
|
};
|
|
3989
3989
|
var envPaths = (name, options2) => {
|
|
@@ -4653,12 +4653,12 @@ async function packageUp({ cwd = import_node_process2.default.cwd() } = {}) {
|
|
|
4653
4653
|
}
|
|
4654
4654
|
|
|
4655
4655
|
// ../client-generator-js/src/generateClient.ts
|
|
4656
|
-
var
|
|
4656
|
+
var import_path4 = __toESM(require("path"));
|
|
4657
4657
|
|
|
4658
4658
|
// package.json
|
|
4659
4659
|
var package_default = {
|
|
4660
4660
|
name: "@prisma/client",
|
|
4661
|
-
version: "6.20.0-integration-next.
|
|
4661
|
+
version: "6.20.0-integration-next.11",
|
|
4662
4662
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
4663
4663
|
keywords: [
|
|
4664
4664
|
"ORM",
|
|
@@ -7964,7 +7964,6 @@ function fluentWrapperName(modelName) {
|
|
|
7964
7964
|
|
|
7965
7965
|
// ../client-generator-js/src/TSClient/TSClient.ts
|
|
7966
7966
|
var import_indent_string7 = __toESM(require_indent_string());
|
|
7967
|
-
var import_path4 = __toESM(require("path"));
|
|
7968
7967
|
|
|
7969
7968
|
// ../client-generator-js/src/dmmf.ts
|
|
7970
7969
|
var DMMFHelper = class {
|
|
@@ -8169,35 +8168,6 @@ function buildDebugInitialization(edge) {
|
|
|
8169
8168
|
`;
|
|
8170
8169
|
}
|
|
8171
8170
|
|
|
8172
|
-
// ../client-generator-js/src/utils/buildDirname.ts
|
|
8173
|
-
function buildDirname(edge, relativeOutdir) {
|
|
8174
|
-
if (edge === true) {
|
|
8175
|
-
return buildDirnameDefault();
|
|
8176
|
-
}
|
|
8177
|
-
return buildDirnameFind(relativeOutdir);
|
|
8178
|
-
}
|
|
8179
|
-
function buildDirnameFind(relativeOutdir) {
|
|
8180
|
-
return `
|
|
8181
|
-
const fs = require('fs')
|
|
8182
|
-
|
|
8183
|
-
config.dirname = __dirname
|
|
8184
|
-
if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
|
8185
|
-
const alternativePaths = [
|
|
8186
|
-
${JSON.stringify(pathToPosix(relativeOutdir))},
|
|
8187
|
-
${JSON.stringify(pathToPosix(relativeOutdir).split("/").slice(1).join("/"))},
|
|
8188
|
-
]
|
|
8189
|
-
|
|
8190
|
-
const alternativePath = alternativePaths.find((altPath) => {
|
|
8191
|
-
return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma'))
|
|
8192
|
-
}) ?? alternativePaths[0]
|
|
8193
|
-
|
|
8194
|
-
config.dirname = path.join(process.cwd(), alternativePath)
|
|
8195
|
-
}`;
|
|
8196
|
-
}
|
|
8197
|
-
function buildDirnameDefault() {
|
|
8198
|
-
return `config.dirname = '/'`;
|
|
8199
|
-
}
|
|
8200
|
-
|
|
8201
8171
|
// ../client-generator-js/src/utils/buildDMMF.ts
|
|
8202
8172
|
function buildRuntimeDataModel(datamodel, runtimeNameJs) {
|
|
8203
8173
|
const runtimeDataModel = dmmfToRuntimeDataModel(datamodel);
|
|
@@ -9428,7 +9398,7 @@ var TSClient = class {
|
|
|
9428
9398
|
dmmf;
|
|
9429
9399
|
genericsInfo;
|
|
9430
9400
|
toJS() {
|
|
9431
|
-
const { edge, wasm, generator,
|
|
9401
|
+
const { edge, wasm, generator, datamodel: inlineSchema, runtimeNameJs, reusedJs } = this.options;
|
|
9432
9402
|
if (reusedJs) {
|
|
9433
9403
|
return `module.exports = { ...require('${reusedJs}') }`;
|
|
9434
9404
|
}
|
|
@@ -9439,7 +9409,6 @@ var TSClient = class {
|
|
|
9439
9409
|
activeProvider: this.options.activeProvider,
|
|
9440
9410
|
inlineSchema
|
|
9441
9411
|
};
|
|
9442
|
-
const relativeOutdir = import_path4.default.relative(process.cwd(), outputDir);
|
|
9443
9412
|
const code = `${commonCodeJS({ ...this.options, browser: false })}
|
|
9444
9413
|
${buildRequirePath(edge)}
|
|
9445
9414
|
|
|
@@ -9463,7 +9432,6 @@ ${new Enum(
|
|
|
9463
9432
|
* Create the Client
|
|
9464
9433
|
*/
|
|
9465
9434
|
const config = ${JSON.stringify(config, null, 2)}
|
|
9466
|
-
${buildDirname(edge, relativeOutdir)}
|
|
9467
9435
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
9468
9436
|
${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
|
|
9469
9437
|
${buildDebugInitialization(edge)}
|
|
@@ -10152,10 +10120,10 @@ function getTypedSqlRuntimeBase(runtimeBase) {
|
|
|
10152
10120
|
return `../${runtimeBase}`;
|
|
10153
10121
|
}
|
|
10154
10122
|
function getDefaultOutdir(outputDir) {
|
|
10155
|
-
if (outputDir.endsWith(
|
|
10156
|
-
return
|
|
10123
|
+
if (outputDir.endsWith(import_path4.default.normalize("node_modules/@prisma/client"))) {
|
|
10124
|
+
return import_path4.default.join(outputDir, "../../.prisma/client");
|
|
10157
10125
|
}
|
|
10158
|
-
return
|
|
10126
|
+
return import_path4.default.join(outputDir, "../../.prisma/client");
|
|
10159
10127
|
}
|
|
10160
10128
|
async function generateClient(options2) {
|
|
10161
10129
|
const {
|
|
@@ -10208,7 +10176,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
10208
10176
|
await (0, import_fs_extra.ensureDir)(outputDir);
|
|
10209
10177
|
await writeFileMap(outputDir, fileMap);
|
|
10210
10178
|
if (copyRuntime || generator.isCustomOutput === true) {
|
|
10211
|
-
const copiedRuntimeDir =
|
|
10179
|
+
const copiedRuntimeDir = import_path4.default.join(outputDir, "runtime");
|
|
10212
10180
|
await (0, import_fs_extra.ensureDir)(copiedRuntimeDir);
|
|
10213
10181
|
await copyRuntimeFiles({
|
|
10214
10182
|
from: runtimeSourcePath,
|
|
@@ -10217,20 +10185,20 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
10217
10185
|
runtimeName: "client"
|
|
10218
10186
|
});
|
|
10219
10187
|
}
|
|
10220
|
-
const schemaTargetPath =
|
|
10188
|
+
const schemaTargetPath = import_path4.default.join(outputDir, "schema.prisma");
|
|
10221
10189
|
await import_promises2.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
10222
10190
|
if (isWasmEngineSupported(provider) && !testMode) {
|
|
10223
10191
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
10224
10192
|
const filename = "query_compiler_bg";
|
|
10225
|
-
const wasmJsBundlePath =
|
|
10193
|
+
const wasmJsBundlePath = import_path4.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
10226
10194
|
const wasmBase64 = require(wasmJsBundlePath).wasm;
|
|
10227
|
-
await import_promises2.default.writeFile(
|
|
10228
|
-
await import_promises2.default.copyFile(
|
|
10229
|
-
await import_promises2.default.copyFile(wasmJsBundlePath,
|
|
10195
|
+
await import_promises2.default.writeFile(import_path4.default.join(outputDir, `${filename}.wasm`), Buffer.from(wasmBase64, "base64"));
|
|
10196
|
+
await import_promises2.default.copyFile(import_path4.default.join(runtimeSourcePath, `${filename}.${suffix}.js`), import_path4.default.join(outputDir, `${filename}.js`));
|
|
10197
|
+
await import_promises2.default.copyFile(wasmJsBundlePath, import_path4.default.join(outputDir, `${filename}.wasm-base64.js`));
|
|
10230
10198
|
}
|
|
10231
10199
|
try {
|
|
10232
10200
|
const prismaCache = (0, import_env_paths.default)("prisma").cache;
|
|
10233
|
-
const signalsPath =
|
|
10201
|
+
const signalsPath = import_path4.default.join(prismaCache, "last-generate");
|
|
10234
10202
|
await import_promises2.default.mkdir(prismaCache, { recursive: true });
|
|
10235
10203
|
await import_promises2.default.writeFile(signalsPath, Date.now().toString());
|
|
10236
10204
|
} catch {
|
|
@@ -10239,7 +10207,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
10239
10207
|
function writeFileMap(outputDir, fileMap) {
|
|
10240
10208
|
return Promise.all(
|
|
10241
10209
|
Object.entries(fileMap).map(async ([fileName, content]) => {
|
|
10242
|
-
const absolutePath =
|
|
10210
|
+
const absolutePath = import_path4.default.join(outputDir, fileName);
|
|
10243
10211
|
await import_promises2.default.rm(absolutePath, { recursive: true, force: true });
|
|
10244
10212
|
if (typeof content === "string") {
|
|
10245
10213
|
await import_promises2.default.writeFile(absolutePath, content);
|
|
@@ -10339,7 +10307,7 @@ async function getGenerationDirs({
|
|
|
10339
10307
|
testMode
|
|
10340
10308
|
}) {
|
|
10341
10309
|
const isCustomOutput = generator.isCustomOutput === true;
|
|
10342
|
-
const normalizedOutputDir =
|
|
10310
|
+
const normalizedOutputDir = import_path4.default.normalize(outputDir);
|
|
10343
10311
|
let userRuntimeImport = isCustomOutput ? "./runtime" : "@prisma/client/runtime";
|
|
10344
10312
|
let userOutputDir = isCustomOutput ? normalizedOutputDir : getDefaultOutdir(normalizedOutputDir);
|
|
10345
10313
|
if (testMode && runtimeBase) {
|
|
@@ -10349,8 +10317,8 @@ async function getGenerationDirs({
|
|
|
10349
10317
|
if (isCustomOutput) {
|
|
10350
10318
|
await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
|
|
10351
10319
|
}
|
|
10352
|
-
const userPackageRoot = await packageUp({ cwd:
|
|
10353
|
-
const userProjectRoot = userPackageRoot ?
|
|
10320
|
+
const userPackageRoot = await packageUp({ cwd: import_path4.default.dirname(userOutputDir) });
|
|
10321
|
+
const userProjectRoot = userPackageRoot ? import_path4.default.dirname(userPackageRoot) : process.cwd();
|
|
10354
10322
|
return {
|
|
10355
10323
|
runtimeBase: userRuntimeImport,
|
|
10356
10324
|
outputDir: userOutputDir,
|
|
@@ -10360,7 +10328,7 @@ async function getGenerationDirs({
|
|
|
10360
10328
|
async function verifyOutputDirectory(directory, datamodel, schemaPath) {
|
|
10361
10329
|
let content;
|
|
10362
10330
|
try {
|
|
10363
|
-
content = await import_promises2.default.readFile(
|
|
10331
|
+
content = await import_promises2.default.readFile(import_path4.default.join(directory, "package.json"), "utf8");
|
|
10364
10332
|
} catch (e) {
|
|
10365
10333
|
if (e.code === "ENOENT") {
|
|
10366
10334
|
return;
|
|
@@ -10412,8 +10380,8 @@ async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
|
|
|
10412
10380
|
}
|
|
10413
10381
|
await Promise.all(
|
|
10414
10382
|
files.map(async (file2) => {
|
|
10415
|
-
const sourcePath =
|
|
10416
|
-
const targetPath =
|
|
10383
|
+
const sourcePath = import_path4.default.join(from, file2);
|
|
10384
|
+
const targetPath = import_path4.default.join(to, file2);
|
|
10417
10385
|
if (file2.endsWith(".js")) {
|
|
10418
10386
|
const content = await import_promises2.default.readFile(sourcePath, "utf-8");
|
|
10419
10387
|
await import_promises2.default.writeFile(targetPath, addPreamble(content));
|
|
@@ -10435,7 +10403,7 @@ var import_node_path4 = __toESM(require("node:path"));
|
|
|
10435
10403
|
var import_engines_version = __toESM(require_engines_version());
|
|
10436
10404
|
|
|
10437
10405
|
// ../client-generator-js/package.json
|
|
10438
|
-
var version = "6.20.0-integration-next.
|
|
10406
|
+
var version = "6.20.0-integration-next.11";
|
|
10439
10407
|
|
|
10440
10408
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
10441
10409
|
var import_promises5 = __toESM(require("node:fs/promises"));
|
|
@@ -10448,7 +10416,7 @@ var import_node_process3 = __toESM(require("node:process"), 1);
|
|
|
10448
10416
|
var import_node_buffer = require("node:buffer");
|
|
10449
10417
|
var import_node_child_process = __toESM(require("node:child_process"), 1);
|
|
10450
10418
|
var import_child_process = __toESM(require("child_process"), 1);
|
|
10451
|
-
var
|
|
10419
|
+
var import_path5 = __toESM(require("path"), 1);
|
|
10452
10420
|
var import_fs = __toESM(require("fs"), 1);
|
|
10453
10421
|
var import_node_url2 = __toESM(require("node:url"), 1);
|
|
10454
10422
|
var import_node_os = __toESM(require("node:os"), 1);
|
|
@@ -10570,7 +10538,7 @@ function requireWindows() {
|
|
|
10570
10538
|
windows = isexe2;
|
|
10571
10539
|
isexe2.sync = sync2;
|
|
10572
10540
|
var fs4 = import_fs.default;
|
|
10573
|
-
function checkPathExt2(
|
|
10541
|
+
function checkPathExt2(path10, options2) {
|
|
10574
10542
|
var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
|
|
10575
10543
|
if (!pathext) {
|
|
10576
10544
|
return true;
|
|
@@ -10581,25 +10549,25 @@ function requireWindows() {
|
|
|
10581
10549
|
}
|
|
10582
10550
|
for (var i = 0; i < pathext.length; i++) {
|
|
10583
10551
|
var p = pathext[i].toLowerCase();
|
|
10584
|
-
if (p &&
|
|
10552
|
+
if (p && path10.substr(-p.length).toLowerCase() === p) {
|
|
10585
10553
|
return true;
|
|
10586
10554
|
}
|
|
10587
10555
|
}
|
|
10588
10556
|
return false;
|
|
10589
10557
|
}
|
|
10590
|
-
function checkStat2(stat,
|
|
10558
|
+
function checkStat2(stat, path10, options2) {
|
|
10591
10559
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
10592
10560
|
return false;
|
|
10593
10561
|
}
|
|
10594
|
-
return checkPathExt2(
|
|
10562
|
+
return checkPathExt2(path10, options2);
|
|
10595
10563
|
}
|
|
10596
|
-
function isexe2(
|
|
10597
|
-
fs4.stat(
|
|
10598
|
-
cb(er, er ? false : checkStat2(stat,
|
|
10564
|
+
function isexe2(path10, options2, cb) {
|
|
10565
|
+
fs4.stat(path10, function(er, stat) {
|
|
10566
|
+
cb(er, er ? false : checkStat2(stat, path10, options2));
|
|
10599
10567
|
});
|
|
10600
10568
|
}
|
|
10601
|
-
function sync2(
|
|
10602
|
-
return checkStat2(fs4.statSync(
|
|
10569
|
+
function sync2(path10, options2) {
|
|
10570
|
+
return checkStat2(fs4.statSync(path10), path10, options2);
|
|
10603
10571
|
}
|
|
10604
10572
|
return windows;
|
|
10605
10573
|
}
|
|
@@ -10611,13 +10579,13 @@ function requireMode() {
|
|
|
10611
10579
|
mode = isexe2;
|
|
10612
10580
|
isexe2.sync = sync2;
|
|
10613
10581
|
var fs4 = import_fs.default;
|
|
10614
|
-
function isexe2(
|
|
10615
|
-
fs4.stat(
|
|
10582
|
+
function isexe2(path10, options2, cb) {
|
|
10583
|
+
fs4.stat(path10, function(er, stat) {
|
|
10616
10584
|
cb(er, er ? false : checkStat2(stat, options2));
|
|
10617
10585
|
});
|
|
10618
10586
|
}
|
|
10619
|
-
function sync2(
|
|
10620
|
-
return checkStat2(fs4.statSync(
|
|
10587
|
+
function sync2(path10, options2) {
|
|
10588
|
+
return checkStat2(fs4.statSync(path10), options2);
|
|
10621
10589
|
}
|
|
10622
10590
|
function checkStat2(stat, options2) {
|
|
10623
10591
|
return stat.isFile() && checkMode2(stat, options2);
|
|
@@ -10645,7 +10613,7 @@ if (process.platform === "win32" || commonjsGlobal.TESTING_WINDOWS) {
|
|
|
10645
10613
|
}
|
|
10646
10614
|
var isexe_1 = isexe$4;
|
|
10647
10615
|
isexe$4.sync = sync$2;
|
|
10648
|
-
function isexe$4(
|
|
10616
|
+
function isexe$4(path10, options2, cb) {
|
|
10649
10617
|
if (typeof options2 === "function") {
|
|
10650
10618
|
cb = options2;
|
|
10651
10619
|
options2 = {};
|
|
@@ -10655,7 +10623,7 @@ function isexe$4(path11, options2, cb) {
|
|
|
10655
10623
|
throw new TypeError("callback not provided");
|
|
10656
10624
|
}
|
|
10657
10625
|
return new Promise(function(resolve3, reject) {
|
|
10658
|
-
isexe$4(
|
|
10626
|
+
isexe$4(path10, options2 || {}, function(er, is) {
|
|
10659
10627
|
if (er) {
|
|
10660
10628
|
reject(er);
|
|
10661
10629
|
} else {
|
|
@@ -10664,7 +10632,7 @@ function isexe$4(path11, options2, cb) {
|
|
|
10664
10632
|
});
|
|
10665
10633
|
});
|
|
10666
10634
|
}
|
|
10667
|
-
core(
|
|
10635
|
+
core(path10, options2 || {}, function(er, is) {
|
|
10668
10636
|
if (er) {
|
|
10669
10637
|
if (er.code === "EACCES" || options2 && options2.ignoreErrors) {
|
|
10670
10638
|
er = null;
|
|
@@ -10674,9 +10642,9 @@ function isexe$4(path11, options2, cb) {
|
|
|
10674
10642
|
cb(er, is);
|
|
10675
10643
|
});
|
|
10676
10644
|
}
|
|
10677
|
-
function sync$2(
|
|
10645
|
+
function sync$2(path10, options2) {
|
|
10678
10646
|
try {
|
|
10679
|
-
return core.sync(
|
|
10647
|
+
return core.sync(path10, options2 || {});
|
|
10680
10648
|
} catch (er) {
|
|
10681
10649
|
if (options2 && options2.ignoreErrors || er.code === "EACCES") {
|
|
10682
10650
|
return false;
|
|
@@ -10686,7 +10654,7 @@ function sync$2(path11, options2) {
|
|
|
10686
10654
|
}
|
|
10687
10655
|
}
|
|
10688
10656
|
var isWindows$1 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
10689
|
-
var path$2 =
|
|
10657
|
+
var path$2 = import_path5.default;
|
|
10690
10658
|
var COLON = isWindows$1 ? ";" : ":";
|
|
10691
10659
|
var isexe$3 = isexe_1;
|
|
10692
10660
|
var getNotFoundError$1 = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -10787,7 +10755,7 @@ var pathKey$1 = (options2 = {}) => {
|
|
|
10787
10755
|
pathKey$2.exports = pathKey$1;
|
|
10788
10756
|
pathKey$2.exports.default = pathKey$1;
|
|
10789
10757
|
var pathKeyExports = pathKey$2.exports;
|
|
10790
|
-
var path$1 =
|
|
10758
|
+
var path$1 = import_path5.default;
|
|
10791
10759
|
var which$2 = which_1;
|
|
10792
10760
|
var getPathKey = pathKeyExports;
|
|
10793
10761
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -10848,8 +10816,8 @@ var shebangCommand$1 = (string = "") => {
|
|
|
10848
10816
|
if (!match) {
|
|
10849
10817
|
return null;
|
|
10850
10818
|
}
|
|
10851
|
-
const [
|
|
10852
|
-
const binary =
|
|
10819
|
+
const [path10, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
10820
|
+
const binary = path10.split("/").pop();
|
|
10853
10821
|
if (binary === "env") {
|
|
10854
10822
|
return argument;
|
|
10855
10823
|
}
|
|
@@ -10870,7 +10838,7 @@ function readShebang$1(command) {
|
|
|
10870
10838
|
return shebangCommand(buffer.toString());
|
|
10871
10839
|
}
|
|
10872
10840
|
var readShebang_1 = readShebang$1;
|
|
10873
|
-
var
|
|
10841
|
+
var path5 = import_path5.default;
|
|
10874
10842
|
var resolveCommand = resolveCommand_1;
|
|
10875
10843
|
var escape = _escape;
|
|
10876
10844
|
var readShebang = readShebang_1;
|
|
@@ -10895,7 +10863,7 @@ function parseNonShell(parsed) {
|
|
|
10895
10863
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
10896
10864
|
if (parsed.options.forceShell || needsShell) {
|
|
10897
10865
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
10898
|
-
parsed.command =
|
|
10866
|
+
parsed.command = path5.normalize(parsed.command);
|
|
10899
10867
|
parsed.command = escape.command(parsed.command);
|
|
10900
10868
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
10901
10869
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -11031,9 +10999,9 @@ function npmRunPath(options2 = {}) {
|
|
|
11031
10999
|
}
|
|
11032
11000
|
function npmRunPathEnv({ env: env2 = import_node_process3.default.env, ...options2 } = {}) {
|
|
11033
11001
|
env2 = { ...env2 };
|
|
11034
|
-
const
|
|
11035
|
-
options2.path = env2[
|
|
11036
|
-
env2[
|
|
11002
|
+
const path10 = pathKey({ env: env2 });
|
|
11003
|
+
options2.path = env2[path10];
|
|
11004
|
+
env2[path10] = npmRunPath(options2);
|
|
11037
11005
|
return env2;
|
|
11038
11006
|
}
|
|
11039
11007
|
var copyProperty = (to, from, property2, ignoreNonConfigurable) => {
|
|
@@ -14971,10 +14939,10 @@ Object.defineProperty(posix$1, "__esModule", { value: true });
|
|
|
14971
14939
|
posix$1.sync = posix$1.isexe = void 0;
|
|
14972
14940
|
var fs_1$1 = import_fs.default;
|
|
14973
14941
|
var promises_1$1 = import_promises4.default;
|
|
14974
|
-
var isexe$2 = async (
|
|
14942
|
+
var isexe$2 = async (path10, options2 = {}) => {
|
|
14975
14943
|
const { ignoreErrors = false } = options2;
|
|
14976
14944
|
try {
|
|
14977
|
-
return checkStat$1(await (0, promises_1$1.stat)(
|
|
14945
|
+
return checkStat$1(await (0, promises_1$1.stat)(path10), options2);
|
|
14978
14946
|
} catch (e) {
|
|
14979
14947
|
const er = e;
|
|
14980
14948
|
if (ignoreErrors || er.code === "EACCES")
|
|
@@ -14983,10 +14951,10 @@ var isexe$2 = async (path11, options2 = {}) => {
|
|
|
14983
14951
|
}
|
|
14984
14952
|
};
|
|
14985
14953
|
posix$1.isexe = isexe$2;
|
|
14986
|
-
var sync$1 = (
|
|
14954
|
+
var sync$1 = (path10, options2 = {}) => {
|
|
14987
14955
|
const { ignoreErrors = false } = options2;
|
|
14988
14956
|
try {
|
|
14989
|
-
return checkStat$1((0, fs_1$1.statSync)(
|
|
14957
|
+
return checkStat$1((0, fs_1$1.statSync)(path10), options2);
|
|
14990
14958
|
} catch (e) {
|
|
14991
14959
|
const er = e;
|
|
14992
14960
|
if (ignoreErrors || er.code === "EACCES")
|
|
@@ -15018,10 +14986,10 @@ Object.defineProperty(win32, "__esModule", { value: true });
|
|
|
15018
14986
|
win32.sync = win32.isexe = void 0;
|
|
15019
14987
|
var fs_1 = import_fs.default;
|
|
15020
14988
|
var promises_1 = import_promises4.default;
|
|
15021
|
-
var isexe$1 = async (
|
|
14989
|
+
var isexe$1 = async (path10, options2 = {}) => {
|
|
15022
14990
|
const { ignoreErrors = false } = options2;
|
|
15023
14991
|
try {
|
|
15024
|
-
return checkStat(await (0, promises_1.stat)(
|
|
14992
|
+
return checkStat(await (0, promises_1.stat)(path10), path10, options2);
|
|
15025
14993
|
} catch (e) {
|
|
15026
14994
|
const er = e;
|
|
15027
14995
|
if (ignoreErrors || er.code === "EACCES")
|
|
@@ -15030,10 +14998,10 @@ var isexe$1 = async (path11, options2 = {}) => {
|
|
|
15030
14998
|
}
|
|
15031
14999
|
};
|
|
15032
15000
|
win32.isexe = isexe$1;
|
|
15033
|
-
var sync = (
|
|
15001
|
+
var sync = (path10, options2 = {}) => {
|
|
15034
15002
|
const { ignoreErrors = false } = options2;
|
|
15035
15003
|
try {
|
|
15036
|
-
return checkStat((0, fs_1.statSync)(
|
|
15004
|
+
return checkStat((0, fs_1.statSync)(path10), path10, options2);
|
|
15037
15005
|
} catch (e) {
|
|
15038
15006
|
const er = e;
|
|
15039
15007
|
if (ignoreErrors || er.code === "EACCES")
|
|
@@ -15042,7 +15010,7 @@ var sync = (path11, options2 = {}) => {
|
|
|
15042
15010
|
}
|
|
15043
15011
|
};
|
|
15044
15012
|
win32.sync = sync;
|
|
15045
|
-
var checkPathExt = (
|
|
15013
|
+
var checkPathExt = (path10, options2) => {
|
|
15046
15014
|
const { pathExt = process.env.PATHEXT || "" } = options2;
|
|
15047
15015
|
const peSplit = pathExt.split(";");
|
|
15048
15016
|
if (peSplit.indexOf("") !== -1) {
|
|
@@ -15050,14 +15018,14 @@ var checkPathExt = (path11, options2) => {
|
|
|
15050
15018
|
}
|
|
15051
15019
|
for (let i = 0; i < peSplit.length; i++) {
|
|
15052
15020
|
const p = peSplit[i].toLowerCase();
|
|
15053
|
-
const ext =
|
|
15021
|
+
const ext = path10.substring(path10.length - p.length).toLowerCase();
|
|
15054
15022
|
if (p && ext === p) {
|
|
15055
15023
|
return true;
|
|
15056
15024
|
}
|
|
15057
15025
|
}
|
|
15058
15026
|
return false;
|
|
15059
15027
|
};
|
|
15060
|
-
var checkStat = (stat,
|
|
15028
|
+
var checkStat = (stat, path10, options2) => stat.isFile() && checkPathExt(path10, options2);
|
|
15061
15029
|
var options = {};
|
|
15062
15030
|
Object.defineProperty(options, "__esModule", { value: true });
|
|
15063
15031
|
(function(exports2) {
|
|
@@ -15104,7 +15072,7 @@ Object.defineProperty(options, "__esModule", { value: true });
|
|
|
15104
15072
|
exports2.sync = impl.sync;
|
|
15105
15073
|
})(cjs);
|
|
15106
15074
|
var { isexe, sync: isexeSync } = cjs;
|
|
15107
|
-
var { join, delimiter, sep, posix } =
|
|
15075
|
+
var { join, delimiter, sep, posix } = import_path5.default;
|
|
15108
15076
|
var isWindows = process.platform === "win32";
|
|
15109
15077
|
var rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1"));
|
|
15110
15078
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|