@prisma/client-generator-ts 6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1 → 6.19.0-integration-feat-remove-library-engine.3
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/TSClient/NullTypes.d.ts +1 -1
- package/dist/TSClient/PrismaClient.d.ts +0 -1
- package/dist/TSClient/TSClient.d.ts +1 -1
- package/dist/TSClient/file-generators/BrowserFile.d.ts +1 -1
- package/dist/generateClient.d.ts +1 -3
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +194 -352
- package/dist/index.mjs +183 -347
- package/dist/runtime-targets.d.ts +3 -3
- package/dist/utils/runtimeImport.d.ts +0 -7
- package/package.json +10 -10
- package/dist/utils/buildNFTAnnotations.d.ts +0 -11
- package/dist/utils/buildNFTAnnotations.test.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -111,14 +111,14 @@ var require_polyfills = __commonJS({
|
|
|
111
111
|
fs3.fstatSync = statFixSync(fs3.fstatSync);
|
|
112
112
|
fs3.lstatSync = statFixSync(fs3.lstatSync);
|
|
113
113
|
if (fs3.chmod && !fs3.lchmod) {
|
|
114
|
-
fs3.lchmod = function(
|
|
114
|
+
fs3.lchmod = function(path4, mode, cb) {
|
|
115
115
|
if (cb) process.nextTick(cb);
|
|
116
116
|
};
|
|
117
117
|
fs3.lchmodSync = function() {
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
if (fs3.chown && !fs3.lchown) {
|
|
121
|
-
fs3.lchown = function(
|
|
121
|
+
fs3.lchown = function(path4, uid, gid, cb) {
|
|
122
122
|
if (cb) process.nextTick(cb);
|
|
123
123
|
};
|
|
124
124
|
fs3.lchownSync = function() {
|
|
@@ -185,9 +185,9 @@ var require_polyfills = __commonJS({
|
|
|
185
185
|
};
|
|
186
186
|
}(fs3.readSync);
|
|
187
187
|
function patchLchmod(fs4) {
|
|
188
|
-
fs4.lchmod = function(
|
|
188
|
+
fs4.lchmod = function(path4, mode, callback) {
|
|
189
189
|
fs4.open(
|
|
190
|
-
|
|
190
|
+
path4,
|
|
191
191
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
192
192
|
mode,
|
|
193
193
|
function(err, fd) {
|
|
@@ -203,8 +203,8 @@ var require_polyfills = __commonJS({
|
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
205
|
};
|
|
206
|
-
fs4.lchmodSync = function(
|
|
207
|
-
var fd = fs4.openSync(
|
|
206
|
+
fs4.lchmodSync = function(path4, mode) {
|
|
207
|
+
var fd = fs4.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
208
208
|
var threw = true;
|
|
209
209
|
var ret;
|
|
210
210
|
try {
|
|
@@ -225,8 +225,8 @@ var require_polyfills = __commonJS({
|
|
|
225
225
|
}
|
|
226
226
|
function patchLutimes(fs4) {
|
|
227
227
|
if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
|
|
228
|
-
fs4.lutimes = function(
|
|
229
|
-
fs4.open(
|
|
228
|
+
fs4.lutimes = function(path4, at, mt, cb) {
|
|
229
|
+
fs4.open(path4, constants.O_SYMLINK, function(er, fd) {
|
|
230
230
|
if (er) {
|
|
231
231
|
if (cb) cb(er);
|
|
232
232
|
return;
|
|
@@ -238,8 +238,8 @@ var require_polyfills = __commonJS({
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
|
-
fs4.lutimesSync = function(
|
|
242
|
-
var fd = fs4.openSync(
|
|
241
|
+
fs4.lutimesSync = function(path4, at, mt) {
|
|
242
|
+
var fd = fs4.openSync(path4, constants.O_SYMLINK);
|
|
243
243
|
var ret;
|
|
244
244
|
var threw = true;
|
|
245
245
|
try {
|
|
@@ -358,11 +358,11 @@ var require_legacy_streams = __commonJS({
|
|
|
358
358
|
ReadStream,
|
|
359
359
|
WriteStream
|
|
360
360
|
};
|
|
361
|
-
function ReadStream(
|
|
362
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
361
|
+
function ReadStream(path4, options) {
|
|
362
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path4, options);
|
|
363
363
|
Stream.call(this);
|
|
364
364
|
var self = this;
|
|
365
|
-
this.path =
|
|
365
|
+
this.path = path4;
|
|
366
366
|
this.fd = null;
|
|
367
367
|
this.readable = true;
|
|
368
368
|
this.paused = false;
|
|
@@ -407,10 +407,10 @@ var require_legacy_streams = __commonJS({
|
|
|
407
407
|
self._read();
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
function WriteStream(
|
|
411
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
410
|
+
function WriteStream(path4, options) {
|
|
411
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path4, options);
|
|
412
412
|
Stream.call(this);
|
|
413
|
-
this.path =
|
|
413
|
+
this.path = path4;
|
|
414
414
|
this.fd = null;
|
|
415
415
|
this.writable = true;
|
|
416
416
|
this.flags = "w";
|
|
@@ -494,11 +494,11 @@ var require_graceful_fs = __commonJS({
|
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var debug2 = noop;
|
|
498
498
|
if (util.debuglog)
|
|
499
|
-
|
|
499
|
+
debug2 = util.debuglog("gfs4");
|
|
500
500
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
501
|
-
|
|
501
|
+
debug2 = function() {
|
|
502
502
|
var m = util.format.apply(util, arguments);
|
|
503
503
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
504
504
|
console.error(m);
|
|
@@ -533,7 +533,7 @@ var require_graceful_fs = __commonJS({
|
|
|
533
533
|
}(fs3.closeSync);
|
|
534
534
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
535
535
|
process.on("exit", function() {
|
|
536
|
-
|
|
536
|
+
debug2(fs3[gracefulQueue]);
|
|
537
537
|
require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
538
538
|
});
|
|
539
539
|
}
|
|
@@ -554,14 +554,14 @@ var require_graceful_fs = __commonJS({
|
|
|
554
554
|
fs4.createWriteStream = createWriteStream;
|
|
555
555
|
var fs$readFile = fs4.readFile;
|
|
556
556
|
fs4.readFile = readFile;
|
|
557
|
-
function readFile(
|
|
557
|
+
function readFile(path4, options, cb) {
|
|
558
558
|
if (typeof options === "function")
|
|
559
559
|
cb = options, options = null;
|
|
560
|
-
return go$readFile(
|
|
561
|
-
function go$readFile(
|
|
562
|
-
return fs$readFile(
|
|
560
|
+
return go$readFile(path4, options, cb);
|
|
561
|
+
function go$readFile(path5, options2, cb2, startTime) {
|
|
562
|
+
return fs$readFile(path5, options2, function(err) {
|
|
563
563
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
564
|
-
enqueue([go$readFile, [
|
|
564
|
+
enqueue([go$readFile, [path5, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
565
565
|
else {
|
|
566
566
|
if (typeof cb2 === "function")
|
|
567
567
|
cb2.apply(this, arguments);
|
|
@@ -571,14 +571,14 @@ var require_graceful_fs = __commonJS({
|
|
|
571
571
|
}
|
|
572
572
|
var fs$writeFile = fs4.writeFile;
|
|
573
573
|
fs4.writeFile = writeFile;
|
|
574
|
-
function writeFile(
|
|
574
|
+
function writeFile(path4, data, options, cb) {
|
|
575
575
|
if (typeof options === "function")
|
|
576
576
|
cb = options, options = null;
|
|
577
|
-
return go$writeFile(
|
|
578
|
-
function go$writeFile(
|
|
579
|
-
return fs$writeFile(
|
|
577
|
+
return go$writeFile(path4, data, options, cb);
|
|
578
|
+
function go$writeFile(path5, data2, options2, cb2, startTime) {
|
|
579
|
+
return fs$writeFile(path5, data2, options2, function(err) {
|
|
580
580
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
581
|
-
enqueue([go$writeFile, [
|
|
581
|
+
enqueue([go$writeFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
582
582
|
else {
|
|
583
583
|
if (typeof cb2 === "function")
|
|
584
584
|
cb2.apply(this, arguments);
|
|
@@ -589,14 +589,14 @@ var require_graceful_fs = __commonJS({
|
|
|
589
589
|
var fs$appendFile = fs4.appendFile;
|
|
590
590
|
if (fs$appendFile)
|
|
591
591
|
fs4.appendFile = appendFile;
|
|
592
|
-
function appendFile(
|
|
592
|
+
function appendFile(path4, data, options, cb) {
|
|
593
593
|
if (typeof options === "function")
|
|
594
594
|
cb = options, options = null;
|
|
595
|
-
return go$appendFile(
|
|
596
|
-
function go$appendFile(
|
|
597
|
-
return fs$appendFile(
|
|
595
|
+
return go$appendFile(path4, data, options, cb);
|
|
596
|
+
function go$appendFile(path5, data2, options2, cb2, startTime) {
|
|
597
|
+
return fs$appendFile(path5, data2, options2, function(err) {
|
|
598
598
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
599
|
-
enqueue([go$appendFile, [
|
|
599
|
+
enqueue([go$appendFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
600
600
|
else {
|
|
601
601
|
if (typeof cb2 === "function")
|
|
602
602
|
cb2.apply(this, arguments);
|
|
@@ -627,31 +627,31 @@ var require_graceful_fs = __commonJS({
|
|
|
627
627
|
var fs$readdir = fs4.readdir;
|
|
628
628
|
fs4.readdir = readdir;
|
|
629
629
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
630
|
-
function readdir(
|
|
630
|
+
function readdir(path4, options, cb) {
|
|
631
631
|
if (typeof options === "function")
|
|
632
632
|
cb = options, options = null;
|
|
633
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
634
|
-
return fs$readdir(
|
|
635
|
-
|
|
633
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path5, options2, cb2, startTime) {
|
|
634
|
+
return fs$readdir(path5, fs$readdirCallback(
|
|
635
|
+
path5,
|
|
636
636
|
options2,
|
|
637
637
|
cb2,
|
|
638
638
|
startTime
|
|
639
639
|
));
|
|
640
|
-
} : function go$readdir2(
|
|
641
|
-
return fs$readdir(
|
|
642
|
-
|
|
640
|
+
} : function go$readdir2(path5, options2, cb2, startTime) {
|
|
641
|
+
return fs$readdir(path5, options2, fs$readdirCallback(
|
|
642
|
+
path5,
|
|
643
643
|
options2,
|
|
644
644
|
cb2,
|
|
645
645
|
startTime
|
|
646
646
|
));
|
|
647
647
|
};
|
|
648
|
-
return go$readdir(
|
|
649
|
-
function fs$readdirCallback(
|
|
648
|
+
return go$readdir(path4, options, cb);
|
|
649
|
+
function fs$readdirCallback(path5, options2, cb2, startTime) {
|
|
650
650
|
return function(err, files) {
|
|
651
651
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
652
652
|
enqueue([
|
|
653
653
|
go$readdir,
|
|
654
|
-
[
|
|
654
|
+
[path5, options2, cb2],
|
|
655
655
|
err,
|
|
656
656
|
startTime || Date.now(),
|
|
657
657
|
Date.now()
|
|
@@ -722,7 +722,7 @@ var require_graceful_fs = __commonJS({
|
|
|
722
722
|
enumerable: true,
|
|
723
723
|
configurable: true
|
|
724
724
|
});
|
|
725
|
-
function ReadStream(
|
|
725
|
+
function ReadStream(path4, options) {
|
|
726
726
|
if (this instanceof ReadStream)
|
|
727
727
|
return fs$ReadStream.apply(this, arguments), this;
|
|
728
728
|
else
|
|
@@ -742,7 +742,7 @@ var require_graceful_fs = __commonJS({
|
|
|
742
742
|
}
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
|
-
function WriteStream(
|
|
745
|
+
function WriteStream(path4, options) {
|
|
746
746
|
if (this instanceof WriteStream)
|
|
747
747
|
return fs$WriteStream.apply(this, arguments), this;
|
|
748
748
|
else
|
|
@@ -760,22 +760,22 @@ var require_graceful_fs = __commonJS({
|
|
|
760
760
|
}
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
-
function createReadStream(
|
|
764
|
-
return new fs4.ReadStream(
|
|
763
|
+
function createReadStream(path4, options) {
|
|
764
|
+
return new fs4.ReadStream(path4, options);
|
|
765
765
|
}
|
|
766
|
-
function createWriteStream(
|
|
767
|
-
return new fs4.WriteStream(
|
|
766
|
+
function createWriteStream(path4, options) {
|
|
767
|
+
return new fs4.WriteStream(path4, options);
|
|
768
768
|
}
|
|
769
769
|
var fs$open = fs4.open;
|
|
770
770
|
fs4.open = open;
|
|
771
|
-
function open(
|
|
771
|
+
function open(path4, flags, mode, cb) {
|
|
772
772
|
if (typeof mode === "function")
|
|
773
773
|
cb = mode, mode = null;
|
|
774
|
-
return go$open(
|
|
775
|
-
function go$open(
|
|
776
|
-
return fs$open(
|
|
774
|
+
return go$open(path4, flags, mode, cb);
|
|
775
|
+
function go$open(path5, flags2, mode2, cb2, startTime) {
|
|
776
|
+
return fs$open(path5, flags2, mode2, function(err, fd) {
|
|
777
777
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
778
|
-
enqueue([go$open, [
|
|
778
|
+
enqueue([go$open, [path5, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
779
779
|
else {
|
|
780
780
|
if (typeof cb2 === "function")
|
|
781
781
|
cb2.apply(this, arguments);
|
|
@@ -786,7 +786,7 @@ var require_graceful_fs = __commonJS({
|
|
|
786
786
|
return fs4;
|
|
787
787
|
}
|
|
788
788
|
function enqueue(elem) {
|
|
789
|
-
|
|
789
|
+
debug2("ENQUEUE", elem[0].name, elem[1]);
|
|
790
790
|
fs3[gracefulQueue].push(elem);
|
|
791
791
|
retry();
|
|
792
792
|
}
|
|
@@ -813,10 +813,10 @@ var require_graceful_fs = __commonJS({
|
|
|
813
813
|
var startTime = elem[3];
|
|
814
814
|
var lastTime = elem[4];
|
|
815
815
|
if (startTime === void 0) {
|
|
816
|
-
|
|
816
|
+
debug2("RETRY", fn.name, args);
|
|
817
817
|
fn.apply(null, args);
|
|
818
818
|
} else if (Date.now() - startTime >= 6e4) {
|
|
819
|
-
|
|
819
|
+
debug2("TIMEOUT", fn.name, args);
|
|
820
820
|
var cb = args.pop();
|
|
821
821
|
if (typeof cb === "function")
|
|
822
822
|
cb.call(null, err);
|
|
@@ -825,7 +825,7 @@ var require_graceful_fs = __commonJS({
|
|
|
825
825
|
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
826
826
|
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
827
827
|
if (sinceAttempt >= desiredDelay) {
|
|
828
|
-
|
|
828
|
+
debug2("RETRY", fn.name, args);
|
|
829
829
|
fn.apply(null, args.concat([startTime]));
|
|
830
830
|
} else {
|
|
831
831
|
fs3[gracefulQueue].push(elem);
|
|
@@ -958,10 +958,10 @@ var require_fs = __commonJS({
|
|
|
958
958
|
var require_utils = __commonJS({
|
|
959
959
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
960
960
|
"use strict";
|
|
961
|
-
var
|
|
961
|
+
var path4 = require("path");
|
|
962
962
|
module2.exports.checkPath = function checkPath(pth) {
|
|
963
963
|
if (process.platform === "win32") {
|
|
964
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
964
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, ""));
|
|
965
965
|
if (pathHasInvalidWinCharacters) {
|
|
966
966
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
967
967
|
error.code = "EINVAL";
|
|
@@ -1025,8 +1025,8 @@ var require_path_exists = __commonJS({
|
|
|
1025
1025
|
"use strict";
|
|
1026
1026
|
var u = require_universalify().fromPromise;
|
|
1027
1027
|
var fs3 = require_fs();
|
|
1028
|
-
function pathExists(
|
|
1029
|
-
return fs3.access(
|
|
1028
|
+
function pathExists(path4) {
|
|
1029
|
+
return fs3.access(path4).then(() => true).catch(() => false);
|
|
1030
1030
|
}
|
|
1031
1031
|
module2.exports = {
|
|
1032
1032
|
pathExists: u(pathExists),
|
|
@@ -1041,8 +1041,8 @@ var require_utimes = __commonJS({
|
|
|
1041
1041
|
"use strict";
|
|
1042
1042
|
var fs3 = require_fs();
|
|
1043
1043
|
var u = require_universalify().fromPromise;
|
|
1044
|
-
async function utimesMillis(
|
|
1045
|
-
const fd = await fs3.open(
|
|
1044
|
+
async function utimesMillis(path4, atime, mtime) {
|
|
1045
|
+
const fd = await fs3.open(path4, "r+");
|
|
1046
1046
|
let closeErr = null;
|
|
1047
1047
|
try {
|
|
1048
1048
|
await fs3.futimes(fd, atime, mtime);
|
|
@@ -1057,8 +1057,8 @@ var require_utimes = __commonJS({
|
|
|
1057
1057
|
throw closeErr;
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
|
-
function utimesMillisSync(
|
|
1061
|
-
const fd = fs3.openSync(
|
|
1060
|
+
function utimesMillisSync(path4, atime, mtime) {
|
|
1061
|
+
const fd = fs3.openSync(path4, "r+");
|
|
1062
1062
|
fs3.futimesSync(fd, atime, mtime);
|
|
1063
1063
|
return fs3.closeSync(fd);
|
|
1064
1064
|
}
|
|
@@ -1074,7 +1074,7 @@ var require_stat = __commonJS({
|
|
|
1074
1074
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
1075
1075
|
"use strict";
|
|
1076
1076
|
var fs3 = require_fs();
|
|
1077
|
-
var
|
|
1077
|
+
var path4 = require("path");
|
|
1078
1078
|
var u = require_universalify().fromPromise;
|
|
1079
1079
|
function getStats(src, dest, opts) {
|
|
1080
1080
|
const statFunc = opts.dereference ? (file4) => fs3.stat(file4, { bigint: true }) : (file4) => fs3.lstat(file4, { bigint: true });
|
|
@@ -1102,8 +1102,8 @@ var require_stat = __commonJS({
|
|
|
1102
1102
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
1103
1103
|
if (destStat) {
|
|
1104
1104
|
if (areIdentical(srcStat, destStat)) {
|
|
1105
|
-
const srcBaseName =
|
|
1106
|
-
const destBaseName =
|
|
1105
|
+
const srcBaseName = path4.basename(src);
|
|
1106
|
+
const destBaseName = path4.basename(dest);
|
|
1107
1107
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1108
1108
|
return { srcStat, destStat, isChangingCase: true };
|
|
1109
1109
|
}
|
|
@@ -1125,8 +1125,8 @@ var require_stat = __commonJS({
|
|
|
1125
1125
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
1126
1126
|
if (destStat) {
|
|
1127
1127
|
if (areIdentical(srcStat, destStat)) {
|
|
1128
|
-
const srcBaseName =
|
|
1129
|
-
const destBaseName =
|
|
1128
|
+
const srcBaseName = path4.basename(src);
|
|
1129
|
+
const destBaseName = path4.basename(dest);
|
|
1130
1130
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1131
1131
|
return { srcStat, destStat, isChangingCase: true };
|
|
1132
1132
|
}
|
|
@@ -1145,9 +1145,9 @@ var require_stat = __commonJS({
|
|
|
1145
1145
|
return { srcStat, destStat };
|
|
1146
1146
|
}
|
|
1147
1147
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
1148
|
-
const srcParent =
|
|
1149
|
-
const destParent =
|
|
1150
|
-
if (destParent === srcParent || destParent ===
|
|
1148
|
+
const srcParent = path4.resolve(path4.dirname(src));
|
|
1149
|
+
const destParent = path4.resolve(path4.dirname(dest));
|
|
1150
|
+
if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
|
|
1151
1151
|
let destStat;
|
|
1152
1152
|
try {
|
|
1153
1153
|
destStat = await fs3.stat(destParent, { bigint: true });
|
|
@@ -1161,9 +1161,9 @@ var require_stat = __commonJS({
|
|
|
1161
1161
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
1162
1162
|
}
|
|
1163
1163
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
1164
|
-
const srcParent =
|
|
1165
|
-
const destParent =
|
|
1166
|
-
if (destParent === srcParent || destParent ===
|
|
1164
|
+
const srcParent = path4.resolve(path4.dirname(src));
|
|
1165
|
+
const destParent = path4.resolve(path4.dirname(dest));
|
|
1166
|
+
if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
|
|
1167
1167
|
let destStat;
|
|
1168
1168
|
try {
|
|
1169
1169
|
destStat = fs3.statSync(destParent, { bigint: true });
|
|
@@ -1180,8 +1180,8 @@ var require_stat = __commonJS({
|
|
|
1180
1180
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1181
1181
|
}
|
|
1182
1182
|
function isSrcSubdir(src, dest) {
|
|
1183
|
-
const srcArr =
|
|
1184
|
-
const destArr =
|
|
1183
|
+
const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i);
|
|
1184
|
+
const destArr = path4.resolve(dest).split(path4.sep).filter((i) => i);
|
|
1185
1185
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1186
1186
|
}
|
|
1187
1187
|
function errMsg(src, dest, funcName) {
|
|
@@ -1206,7 +1206,7 @@ var require_copy = __commonJS({
|
|
|
1206
1206
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
1207
1207
|
"use strict";
|
|
1208
1208
|
var fs3 = require_fs();
|
|
1209
|
-
var
|
|
1209
|
+
var path4 = require("path");
|
|
1210
1210
|
var { mkdirs } = require_mkdirs();
|
|
1211
1211
|
var { pathExists } = require_path_exists();
|
|
1212
1212
|
var { utimesMillis } = require_utimes();
|
|
@@ -1228,7 +1228,7 @@ var require_copy = __commonJS({
|
|
|
1228
1228
|
await stat.checkParentPaths(src, srcStat, dest, "copy");
|
|
1229
1229
|
const include = await runFilter(src, dest, opts);
|
|
1230
1230
|
if (!include) return;
|
|
1231
|
-
const destParent =
|
|
1231
|
+
const destParent = path4.dirname(dest);
|
|
1232
1232
|
const dirExists = await pathExists(destParent);
|
|
1233
1233
|
if (!dirExists) {
|
|
1234
1234
|
await mkdirs(destParent);
|
|
@@ -1282,8 +1282,8 @@ var require_copy = __commonJS({
|
|
|
1282
1282
|
}
|
|
1283
1283
|
const promises = [];
|
|
1284
1284
|
for await (const item of await fs3.opendir(src)) {
|
|
1285
|
-
const srcItem =
|
|
1286
|
-
const destItem =
|
|
1285
|
+
const srcItem = path4.join(src, item.name);
|
|
1286
|
+
const destItem = path4.join(dest, item.name);
|
|
1287
1287
|
promises.push(
|
|
1288
1288
|
runFilter(srcItem, destItem, opts).then((include) => {
|
|
1289
1289
|
if (include) {
|
|
@@ -1302,7 +1302,7 @@ var require_copy = __commonJS({
|
|
|
1302
1302
|
async function onLink(destStat, src, dest, opts) {
|
|
1303
1303
|
let resolvedSrc = await fs3.readlink(src);
|
|
1304
1304
|
if (opts.dereference) {
|
|
1305
|
-
resolvedSrc =
|
|
1305
|
+
resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
|
|
1306
1306
|
}
|
|
1307
1307
|
if (!destStat) {
|
|
1308
1308
|
return fs3.symlink(resolvedSrc, dest);
|
|
@@ -1315,7 +1315,7 @@ var require_copy = __commonJS({
|
|
|
1315
1315
|
throw e;
|
|
1316
1316
|
}
|
|
1317
1317
|
if (opts.dereference) {
|
|
1318
|
-
resolvedDest =
|
|
1318
|
+
resolvedDest = path4.resolve(process.cwd(), resolvedDest);
|
|
1319
1319
|
}
|
|
1320
1320
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1321
1321
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1335,7 +1335,7 @@ var require_copy_sync = __commonJS({
|
|
|
1335
1335
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
1336
1336
|
"use strict";
|
|
1337
1337
|
var fs3 = require_graceful_fs();
|
|
1338
|
-
var
|
|
1338
|
+
var path4 = require("path");
|
|
1339
1339
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1340
1340
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1341
1341
|
var stat = require_stat();
|
|
@@ -1356,7 +1356,7 @@ var require_copy_sync = __commonJS({
|
|
|
1356
1356
|
const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
|
|
1357
1357
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
1358
1358
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
1359
|
-
const destParent =
|
|
1359
|
+
const destParent = path4.dirname(dest);
|
|
1360
1360
|
if (!fs3.existsSync(destParent)) mkdirsSync(destParent);
|
|
1361
1361
|
return getStats(destStat, src, dest, opts);
|
|
1362
1362
|
}
|
|
@@ -1425,8 +1425,8 @@ var require_copy_sync = __commonJS({
|
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
function copyDirItem(item, src, dest, opts) {
|
|
1428
|
-
const srcItem =
|
|
1429
|
-
const destItem =
|
|
1428
|
+
const srcItem = path4.join(src, item);
|
|
1429
|
+
const destItem = path4.join(dest, item);
|
|
1430
1430
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
1431
1431
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
1432
1432
|
return getStats(destStat, srcItem, destItem, opts);
|
|
@@ -1434,7 +1434,7 @@ var require_copy_sync = __commonJS({
|
|
|
1434
1434
|
function onLink(destStat, src, dest, opts) {
|
|
1435
1435
|
let resolvedSrc = fs3.readlinkSync(src);
|
|
1436
1436
|
if (opts.dereference) {
|
|
1437
|
-
resolvedSrc =
|
|
1437
|
+
resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
|
|
1438
1438
|
}
|
|
1439
1439
|
if (!destStat) {
|
|
1440
1440
|
return fs3.symlinkSync(resolvedSrc, dest);
|
|
@@ -1447,7 +1447,7 @@ var require_copy_sync = __commonJS({
|
|
|
1447
1447
|
throw err;
|
|
1448
1448
|
}
|
|
1449
1449
|
if (opts.dereference) {
|
|
1450
|
-
resolvedDest =
|
|
1450
|
+
resolvedDest = path4.resolve(process.cwd(), resolvedDest);
|
|
1451
1451
|
}
|
|
1452
1452
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1453
1453
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1484,11 +1484,11 @@ var require_remove = __commonJS({
|
|
|
1484
1484
|
"use strict";
|
|
1485
1485
|
var fs3 = require_graceful_fs();
|
|
1486
1486
|
var u = require_universalify().fromCallback;
|
|
1487
|
-
function remove(
|
|
1488
|
-
fs3.rm(
|
|
1487
|
+
function remove(path4, callback) {
|
|
1488
|
+
fs3.rm(path4, { recursive: true, force: true }, callback);
|
|
1489
1489
|
}
|
|
1490
|
-
function removeSync(
|
|
1491
|
-
fs3.rmSync(
|
|
1490
|
+
function removeSync(path4) {
|
|
1491
|
+
fs3.rmSync(path4, { recursive: true, force: true });
|
|
1492
1492
|
}
|
|
1493
1493
|
module2.exports = {
|
|
1494
1494
|
remove: u(remove),
|
|
@@ -1503,7 +1503,7 @@ var require_empty = __commonJS({
|
|
|
1503
1503
|
"use strict";
|
|
1504
1504
|
var u = require_universalify().fromPromise;
|
|
1505
1505
|
var fs3 = require_fs();
|
|
1506
|
-
var
|
|
1506
|
+
var path4 = require("path");
|
|
1507
1507
|
var mkdir = require_mkdirs();
|
|
1508
1508
|
var remove = require_remove();
|
|
1509
1509
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -1513,7 +1513,7 @@ var require_empty = __commonJS({
|
|
|
1513
1513
|
} catch {
|
|
1514
1514
|
return mkdir.mkdirs(dir);
|
|
1515
1515
|
}
|
|
1516
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
1516
|
+
return Promise.all(items.map((item) => remove.remove(path4.join(dir, item))));
|
|
1517
1517
|
});
|
|
1518
1518
|
function emptyDirSync(dir) {
|
|
1519
1519
|
let items;
|
|
@@ -1523,7 +1523,7 @@ var require_empty = __commonJS({
|
|
|
1523
1523
|
return mkdir.mkdirsSync(dir);
|
|
1524
1524
|
}
|
|
1525
1525
|
items.forEach((item) => {
|
|
1526
|
-
item =
|
|
1526
|
+
item = path4.join(dir, item);
|
|
1527
1527
|
remove.removeSync(item);
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
@@ -1541,7 +1541,7 @@ var require_file = __commonJS({
|
|
|
1541
1541
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
1542
1542
|
"use strict";
|
|
1543
1543
|
var u = require_universalify().fromPromise;
|
|
1544
|
-
var
|
|
1544
|
+
var path4 = require("path");
|
|
1545
1545
|
var fs3 = require_fs();
|
|
1546
1546
|
var mkdir = require_mkdirs();
|
|
1547
1547
|
async function createFile(file4) {
|
|
@@ -1551,7 +1551,7 @@ var require_file = __commonJS({
|
|
|
1551
1551
|
} catch {
|
|
1552
1552
|
}
|
|
1553
1553
|
if (stats && stats.isFile()) return;
|
|
1554
|
-
const dir =
|
|
1554
|
+
const dir = path4.dirname(file4);
|
|
1555
1555
|
let dirStats = null;
|
|
1556
1556
|
try {
|
|
1557
1557
|
dirStats = await fs3.stat(dir);
|
|
@@ -1577,7 +1577,7 @@ var require_file = __commonJS({
|
|
|
1577
1577
|
} catch {
|
|
1578
1578
|
}
|
|
1579
1579
|
if (stats && stats.isFile()) return;
|
|
1580
|
-
const dir =
|
|
1580
|
+
const dir = path4.dirname(file4);
|
|
1581
1581
|
try {
|
|
1582
1582
|
if (!fs3.statSync(dir).isDirectory()) {
|
|
1583
1583
|
fs3.readdirSync(dir);
|
|
@@ -1600,7 +1600,7 @@ var require_link = __commonJS({
|
|
|
1600
1600
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
1601
1601
|
"use strict";
|
|
1602
1602
|
var u = require_universalify().fromPromise;
|
|
1603
|
-
var
|
|
1603
|
+
var path4 = require("path");
|
|
1604
1604
|
var fs3 = require_fs();
|
|
1605
1605
|
var mkdir = require_mkdirs();
|
|
1606
1606
|
var { pathExists } = require_path_exists();
|
|
@@ -1619,7 +1619,7 @@ var require_link = __commonJS({
|
|
|
1619
1619
|
throw err;
|
|
1620
1620
|
}
|
|
1621
1621
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1622
|
-
const dir =
|
|
1622
|
+
const dir = path4.dirname(dstpath);
|
|
1623
1623
|
const dirExists = await pathExists(dir);
|
|
1624
1624
|
if (!dirExists) {
|
|
1625
1625
|
await mkdir.mkdirs(dir);
|
|
@@ -1639,7 +1639,7 @@ var require_link = __commonJS({
|
|
|
1639
1639
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1640
1640
|
throw err;
|
|
1641
1641
|
}
|
|
1642
|
-
const dir =
|
|
1642
|
+
const dir = path4.dirname(dstpath);
|
|
1643
1643
|
const dirExists = fs3.existsSync(dir);
|
|
1644
1644
|
if (dirExists) return fs3.linkSync(srcpath, dstpath);
|
|
1645
1645
|
mkdir.mkdirsSync(dir);
|
|
@@ -1656,12 +1656,12 @@ var require_link = __commonJS({
|
|
|
1656
1656
|
var require_symlink_paths = __commonJS({
|
|
1657
1657
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
1658
1658
|
"use strict";
|
|
1659
|
-
var
|
|
1659
|
+
var path4 = require("path");
|
|
1660
1660
|
var fs3 = require_fs();
|
|
1661
1661
|
var { pathExists } = require_path_exists();
|
|
1662
1662
|
var u = require_universalify().fromPromise;
|
|
1663
1663
|
async function symlinkPaths(srcpath, dstpath) {
|
|
1664
|
-
if (
|
|
1664
|
+
if (path4.isAbsolute(srcpath)) {
|
|
1665
1665
|
try {
|
|
1666
1666
|
await fs3.lstat(srcpath);
|
|
1667
1667
|
} catch (err) {
|
|
@@ -1673,8 +1673,8 @@ var require_symlink_paths = __commonJS({
|
|
|
1673
1673
|
toDst: srcpath
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
const dstdir =
|
|
1677
|
-
const relativeToDst =
|
|
1676
|
+
const dstdir = path4.dirname(dstpath);
|
|
1677
|
+
const relativeToDst = path4.join(dstdir, srcpath);
|
|
1678
1678
|
const exists = await pathExists(relativeToDst);
|
|
1679
1679
|
if (exists) {
|
|
1680
1680
|
return {
|
|
@@ -1690,11 +1690,11 @@ var require_symlink_paths = __commonJS({
|
|
|
1690
1690
|
}
|
|
1691
1691
|
return {
|
|
1692
1692
|
toCwd: srcpath,
|
|
1693
|
-
toDst:
|
|
1693
|
+
toDst: path4.relative(dstdir, srcpath)
|
|
1694
1694
|
};
|
|
1695
1695
|
}
|
|
1696
1696
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
1697
|
-
if (
|
|
1697
|
+
if (path4.isAbsolute(srcpath)) {
|
|
1698
1698
|
const exists2 = fs3.existsSync(srcpath);
|
|
1699
1699
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
1700
1700
|
return {
|
|
@@ -1702,8 +1702,8 @@ var require_symlink_paths = __commonJS({
|
|
|
1702
1702
|
toDst: srcpath
|
|
1703
1703
|
};
|
|
1704
1704
|
}
|
|
1705
|
-
const dstdir =
|
|
1706
|
-
const relativeToDst =
|
|
1705
|
+
const dstdir = path4.dirname(dstpath);
|
|
1706
|
+
const relativeToDst = path4.join(dstdir, srcpath);
|
|
1707
1707
|
const exists = fs3.existsSync(relativeToDst);
|
|
1708
1708
|
if (exists) {
|
|
1709
1709
|
return {
|
|
@@ -1715,7 +1715,7 @@ var require_symlink_paths = __commonJS({
|
|
|
1715
1715
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
1716
1716
|
return {
|
|
1717
1717
|
toCwd: srcpath,
|
|
1718
|
-
toDst:
|
|
1718
|
+
toDst: path4.relative(dstdir, srcpath)
|
|
1719
1719
|
};
|
|
1720
1720
|
}
|
|
1721
1721
|
module2.exports = {
|
|
@@ -1763,7 +1763,7 @@ var require_symlink = __commonJS({
|
|
|
1763
1763
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
1764
1764
|
"use strict";
|
|
1765
1765
|
var u = require_universalify().fromPromise;
|
|
1766
|
-
var
|
|
1766
|
+
var path4 = require("path");
|
|
1767
1767
|
var fs3 = require_fs();
|
|
1768
1768
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
1769
1769
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -1786,7 +1786,7 @@ var require_symlink = __commonJS({
|
|
|
1786
1786
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
1787
1787
|
srcpath = relative.toDst;
|
|
1788
1788
|
const toType = await symlinkType(relative.toCwd, type);
|
|
1789
|
-
const dir =
|
|
1789
|
+
const dir = path4.dirname(dstpath);
|
|
1790
1790
|
if (!await pathExists(dir)) {
|
|
1791
1791
|
await mkdirs(dir);
|
|
1792
1792
|
}
|
|
@@ -1806,7 +1806,7 @@ var require_symlink = __commonJS({
|
|
|
1806
1806
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1807
1807
|
srcpath = relative.toDst;
|
|
1808
1808
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
1809
|
-
const dir =
|
|
1809
|
+
const dir = path4.dirname(dstpath);
|
|
1810
1810
|
const exists = fs3.existsSync(dir);
|
|
1811
1811
|
if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
|
|
1812
1812
|
mkdirsSync(dir);
|
|
@@ -1846,9 +1846,9 @@ var require_ensure = __commonJS({
|
|
|
1846
1846
|
}
|
|
1847
1847
|
});
|
|
1848
1848
|
|
|
1849
|
-
// ../../node_modules/.pnpm/jsonfile@6.
|
|
1849
|
+
// ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
|
|
1850
1850
|
var require_utils2 = __commonJS({
|
|
1851
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1851
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports2, module2) {
|
|
1852
1852
|
"use strict";
|
|
1853
1853
|
function stringify16(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
1854
1854
|
const EOF = finalEOL ? EOL : "";
|
|
@@ -1863,9 +1863,9 @@ var require_utils2 = __commonJS({
|
|
|
1863
1863
|
}
|
|
1864
1864
|
});
|
|
1865
1865
|
|
|
1866
|
-
// ../../node_modules/.pnpm/jsonfile@6.
|
|
1866
|
+
// ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
|
|
1867
1867
|
var require_jsonfile = __commonJS({
|
|
1868
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1868
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports2, module2) {
|
|
1869
1869
|
"use strict";
|
|
1870
1870
|
var _fs;
|
|
1871
1871
|
try {
|
|
@@ -1927,13 +1927,12 @@ var require_jsonfile = __commonJS({
|
|
|
1927
1927
|
const str = stringify16(obj, options);
|
|
1928
1928
|
return fs3.writeFileSync(file4, str, options);
|
|
1929
1929
|
}
|
|
1930
|
-
|
|
1930
|
+
module2.exports = {
|
|
1931
1931
|
readFile,
|
|
1932
1932
|
readFileSync,
|
|
1933
1933
|
writeFile,
|
|
1934
1934
|
writeFileSync
|
|
1935
1935
|
};
|
|
1936
|
-
module2.exports = jsonfile;
|
|
1937
1936
|
}
|
|
1938
1937
|
});
|
|
1939
1938
|
|
|
@@ -1958,18 +1957,18 @@ var require_output_file = __commonJS({
|
|
|
1958
1957
|
"use strict";
|
|
1959
1958
|
var u = require_universalify().fromPromise;
|
|
1960
1959
|
var fs3 = require_fs();
|
|
1961
|
-
var
|
|
1960
|
+
var path4 = require("path");
|
|
1962
1961
|
var mkdir = require_mkdirs();
|
|
1963
1962
|
var pathExists = require_path_exists().pathExists;
|
|
1964
1963
|
async function outputFile(file4, data, encoding = "utf-8") {
|
|
1965
|
-
const dir =
|
|
1964
|
+
const dir = path4.dirname(file4);
|
|
1966
1965
|
if (!await pathExists(dir)) {
|
|
1967
1966
|
await mkdir.mkdirs(dir);
|
|
1968
1967
|
}
|
|
1969
1968
|
return fs3.writeFile(file4, data, encoding);
|
|
1970
1969
|
}
|
|
1971
1970
|
function outputFileSync(file4, ...args) {
|
|
1972
|
-
const dir =
|
|
1971
|
+
const dir = path4.dirname(file4);
|
|
1973
1972
|
if (!fs3.existsSync(dir)) {
|
|
1974
1973
|
mkdir.mkdirsSync(dir);
|
|
1975
1974
|
}
|
|
@@ -2033,7 +2032,7 @@ var require_move = __commonJS({
|
|
|
2033
2032
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
2034
2033
|
"use strict";
|
|
2035
2034
|
var fs3 = require_fs();
|
|
2036
|
-
var
|
|
2035
|
+
var path4 = require("path");
|
|
2037
2036
|
var { copy } = require_copy2();
|
|
2038
2037
|
var { remove } = require_remove();
|
|
2039
2038
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2043,8 +2042,8 @@ var require_move = __commonJS({
|
|
|
2043
2042
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2044
2043
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
2045
2044
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
2046
|
-
const destParent =
|
|
2047
|
-
const parsedParentPath =
|
|
2045
|
+
const destParent = path4.dirname(dest);
|
|
2046
|
+
const parsedParentPath = path4.parse(destParent);
|
|
2048
2047
|
if (parsedParentPath.root !== destParent) {
|
|
2049
2048
|
await mkdirp(destParent);
|
|
2050
2049
|
}
|
|
@@ -2085,7 +2084,7 @@ var require_move_sync = __commonJS({
|
|
|
2085
2084
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
2086
2085
|
"use strict";
|
|
2087
2086
|
var fs3 = require_graceful_fs();
|
|
2088
|
-
var
|
|
2087
|
+
var path4 = require("path");
|
|
2089
2088
|
var copySync = require_copy2().copySync;
|
|
2090
2089
|
var removeSync = require_remove().removeSync;
|
|
2091
2090
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2095,12 +2094,12 @@ var require_move_sync = __commonJS({
|
|
|
2095
2094
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2096
2095
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
2097
2096
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
2098
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2097
|
+
if (!isParentRoot(dest)) mkdirpSync(path4.dirname(dest));
|
|
2099
2098
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
2100
2099
|
}
|
|
2101
2100
|
function isParentRoot(dest) {
|
|
2102
|
-
const parent =
|
|
2103
|
-
const parsedPath =
|
|
2101
|
+
const parent = path4.dirname(dest);
|
|
2102
|
+
const parsedPath = path4.parse(parent);
|
|
2104
2103
|
return parsedPath.root === parent;
|
|
2105
2104
|
}
|
|
2106
2105
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -2223,9 +2222,8 @@ function getMappings(mappings, datamodel) {
|
|
|
2223
2222
|
|
|
2224
2223
|
// src/generateClient.ts
|
|
2225
2224
|
var import_promises = __toESM(require("node:fs/promises"));
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2228
|
-
var import_internals10 = require("@prisma/internals");
|
|
2225
|
+
var import_node_path3 = __toESM(require("node:path"));
|
|
2226
|
+
var import_internals7 = require("@prisma/internals");
|
|
2229
2227
|
var import_fast_glob = require("fast-glob");
|
|
2230
2228
|
var import_fs_extra = __toESM(require_lib());
|
|
2231
2229
|
|
|
@@ -2385,7 +2383,7 @@ var Enum = class {
|
|
|
2385
2383
|
toTS() {
|
|
2386
2384
|
const { type } = this;
|
|
2387
2385
|
const enumVariants = `{
|
|
2388
|
-
${(0, import_indent_string.default)(type.
|
|
2386
|
+
${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValue(v.value)}`).join(",\n"), TAB_SIZE)}
|
|
2389
2387
|
} as const`;
|
|
2390
2388
|
const enumBody = this.isStrictEnum() ? `runtime.makeStrictEnum(${enumVariants})` : enumVariants;
|
|
2391
2389
|
return `export const ${type.name} = ${enumBody}
|
|
@@ -2898,9 +2896,6 @@ var GenericArgsInfo = class {
|
|
|
2898
2896
|
}
|
|
2899
2897
|
};
|
|
2900
2898
|
|
|
2901
|
-
// src/TSClient/file-generators/BrowserFile.ts
|
|
2902
|
-
var import_internals3 = require("@prisma/internals");
|
|
2903
|
-
|
|
2904
2899
|
// src/TSClient/ModelExports.ts
|
|
2905
2900
|
var ts3 = __toESM(require("@prisma/ts-builders"));
|
|
2906
2901
|
function modelExports(context) {
|
|
@@ -2926,9 +2921,7 @@ var jsDocHeader = `/*
|
|
|
2926
2921
|
* \u{1F7E2} You can import this file directly.
|
|
2927
2922
|
*/
|
|
2928
2923
|
`;
|
|
2929
|
-
function createBrowserFile(context,
|
|
2930
|
-
const clientEngineType = (0, import_internals3.getClientEngineType)(options.generator);
|
|
2931
|
-
options.generator.config.engineType = clientEngineType;
|
|
2924
|
+
function createBrowserFile(context, _options) {
|
|
2932
2925
|
return `${jsDocHeader}
|
|
2933
2926
|
import * as Prisma from '${context.importFileName("./internal/prismaNamespaceBrowser")}'
|
|
2934
2927
|
export { Prisma }
|
|
@@ -2939,9 +2932,8 @@ ${modelExports(context).join("\n")}
|
|
|
2939
2932
|
}
|
|
2940
2933
|
|
|
2941
2934
|
// src/TSClient/file-generators/ClassFile.ts
|
|
2942
|
-
var import_node_crypto = __toESM(require("node:crypto"));
|
|
2943
2935
|
var import_node_path2 = __toESM(require("node:path"));
|
|
2944
|
-
var
|
|
2936
|
+
var import_internals3 = require("@prisma/internals");
|
|
2945
2937
|
var ts6 = __toESM(require("@prisma/ts-builders"));
|
|
2946
2938
|
var import_ci_info = __toESM(require("ci-info"));
|
|
2947
2939
|
|
|
@@ -3456,7 +3448,7 @@ function escapeJson(str) {
|
|
|
3456
3448
|
function buildRuntimeDataModel(datamodel, runtimeName) {
|
|
3457
3449
|
const runtimeDataModel = (0, import_client_common10.dmmfToRuntimeDataModel)(datamodel);
|
|
3458
3450
|
let prunedDataModel;
|
|
3459
|
-
if (runtimeName === "wasm-
|
|
3451
|
+
if (runtimeName === "wasm-compiler-edge" || runtimeName === "client") {
|
|
3460
3452
|
prunedDataModel = (0, import_client_common10.pruneRuntimeDataModel)(runtimeDataModel);
|
|
3461
3453
|
} else {
|
|
3462
3454
|
prunedDataModel = runtimeDataModel;
|
|
@@ -3488,7 +3480,7 @@ var import_debug = require("@prisma/debug");
|
|
|
3488
3480
|
var import_ts_pattern = require("ts-pattern");
|
|
3489
3481
|
var debug = (0, import_debug.Debug)("prisma:client-generator-ts:wasm");
|
|
3490
3482
|
function usesEdgeWasmRuntime(component, runtimeName) {
|
|
3491
|
-
return runtimeName === "wasm-
|
|
3483
|
+
return runtimeName === "wasm-compiler-edge" && component === "compiler";
|
|
3492
3484
|
}
|
|
3493
3485
|
function buildGetWasmModule({
|
|
3494
3486
|
component,
|
|
@@ -3584,9 +3576,6 @@ var import_indent_string3 = __toESM(require("indent-string"));
|
|
|
3584
3576
|
|
|
3585
3577
|
// src/utils/runtimeImport.ts
|
|
3586
3578
|
var ts4 = __toESM(require("@prisma/ts-builders"));
|
|
3587
|
-
function runtimeImport(name) {
|
|
3588
|
-
return name;
|
|
3589
|
-
}
|
|
3590
3579
|
function runtimeImportedType(name) {
|
|
3591
3580
|
return ts4.namedType(`runtime.${name}`);
|
|
3592
3581
|
}
|
|
@@ -3730,24 +3719,6 @@ function queryRawTypedDefinition(context) {
|
|
|
3730
3719
|
).setReturnType(prismaPromise(ts5.array(param.toArgument())));
|
|
3731
3720
|
return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
3732
3721
|
}
|
|
3733
|
-
function metricDefinition(context) {
|
|
3734
|
-
if (!context.isPreviewFeatureOn("metrics")) {
|
|
3735
|
-
return "";
|
|
3736
|
-
}
|
|
3737
|
-
const property13 = ts5.property("$metrics", ts5.namedType(`runtime.${runtimeImport("MetricsClient")}`)).setDocComment(
|
|
3738
|
-
ts5.docComment`
|
|
3739
|
-
Gives access to the client metrics in json or prometheus format.
|
|
3740
|
-
|
|
3741
|
-
@example
|
|
3742
|
-
\`\`\`
|
|
3743
|
-
const metrics = await prisma.$metrics.json()
|
|
3744
|
-
// or
|
|
3745
|
-
const metrics = await prisma.$metrics.prometheus()
|
|
3746
|
-
\`\`\`
|
|
3747
|
-
`
|
|
3748
|
-
).readonly();
|
|
3749
|
-
return ts5.stringify(property13, { indentLevel: 1, newLine: "leading" });
|
|
3750
|
-
}
|
|
3751
3722
|
function runCommandRawDefinition(context) {
|
|
3752
3723
|
if (!context.dmmf.mappings.otherOperations.write.includes("runCommandRaw")) {
|
|
3753
3724
|
return "";
|
|
@@ -3767,13 +3738,6 @@ function runCommandRawDefinition(context) {
|
|
|
3767
3738
|
`);
|
|
3768
3739
|
return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
3769
3740
|
}
|
|
3770
|
-
function eventRegistrationMethodDeclaration(runtimeName) {
|
|
3771
|
-
if (runtimeName === "binary") {
|
|
3772
|
-
return `$on<V extends (LogOpts | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => runtime.Types.Utils.JsPromise<void> : Prisma.LogEvent) => void): PrismaClient;`;
|
|
3773
|
-
} else {
|
|
3774
|
-
return `$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
|
|
3775
|
-
}
|
|
3776
|
-
}
|
|
3777
3741
|
function getPrismaClientClassDocComment({ dmmf }) {
|
|
3778
3742
|
let example;
|
|
3779
3743
|
if (dmmf.mappings.modelOperations.length) {
|
|
@@ -3824,12 +3788,12 @@ export interface PrismaClientConstructor {
|
|
|
3824
3788
|
${this.jsDoc}
|
|
3825
3789
|
export interface PrismaClient<
|
|
3826
3790
|
in LogOpts extends Prisma.LogLevel = never,
|
|
3827
|
-
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] =
|
|
3791
|
+
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined,
|
|
3828
3792
|
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3829
3793
|
> {
|
|
3830
3794
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
3831
3795
|
|
|
3832
|
-
$
|
|
3796
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
3833
3797
|
|
|
3834
3798
|
/**
|
|
3835
3799
|
* Connect with the database
|
|
@@ -3848,8 +3812,6 @@ ${[
|
|
|
3848
3812
|
batchingTransactionDefinition(this.context),
|
|
3849
3813
|
interactiveTransactionDefinition(this.context),
|
|
3850
3814
|
runCommandRawDefinition(this.context),
|
|
3851
|
-
metricDefinition(this.context),
|
|
3852
|
-
this.applyPendingMigrationsDefinition(),
|
|
3853
3815
|
extendsPropertyDefinition()
|
|
3854
3816
|
].filter((d) => d !== null).join("\n").trim()}
|
|
3855
3817
|
|
|
@@ -3874,15 +3836,6 @@ get ${methodName}(): Prisma.${m.model}Delegate<${generics.join(", ")}>;`;
|
|
|
3874
3836
|
)}
|
|
3875
3837
|
}`;
|
|
3876
3838
|
}
|
|
3877
|
-
applyPendingMigrationsDefinition() {
|
|
3878
|
-
if (this.runtimeName !== "react-native") {
|
|
3879
|
-
return null;
|
|
3880
|
-
}
|
|
3881
|
-
const method3 = ts5.method("$applyPendingMigrations").setReturnType(promise(ts5.voidType)).setDocComment(
|
|
3882
|
-
ts5.docComment`Tries to apply pending migrations one by one. If a migration fails to apply, the function will stop and throw an error. You are responsible for informing the user and possibly blocking the app as we cannot guarantee the state of the database.`
|
|
3883
|
-
);
|
|
3884
|
-
return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
3885
|
-
}
|
|
3886
3839
|
};
|
|
3887
3840
|
|
|
3888
3841
|
// src/TSClient/file-generators/ClassFile.ts
|
|
@@ -3923,18 +3876,14 @@ function clientConfig(context, options) {
|
|
|
3923
3876
|
runtimeBase,
|
|
3924
3877
|
runtimeName,
|
|
3925
3878
|
datasources,
|
|
3926
|
-
copyEngine = true,
|
|
3927
3879
|
target,
|
|
3928
3880
|
activeProvider,
|
|
3929
3881
|
moduleFormat
|
|
3930
3882
|
} = options;
|
|
3931
|
-
const clientEngineType = (0, import_internals4.getClientEngineType)(generator);
|
|
3932
|
-
generator.config.engineType = clientEngineType;
|
|
3933
|
-
const inlineSchemaHash = import_node_crypto.default.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
|
|
3934
3883
|
const datasourceFilePath = datasources[0].sourceFilePath;
|
|
3935
3884
|
const config = {
|
|
3936
3885
|
generator,
|
|
3937
|
-
relativePath: (0,
|
|
3886
|
+
relativePath: (0, import_internals3.pathToPosix)(import_node_path2.default.relative(outputDir, import_node_path2.default.dirname(datasourceFilePath))),
|
|
3938
3887
|
clientVersion: options.clientVersion,
|
|
3939
3888
|
engineVersion: options.engineVersion,
|
|
3940
3889
|
datasourceNames: datasources.map((d) => d.name),
|
|
@@ -3943,8 +3892,6 @@ function clientConfig(context, options) {
|
|
|
3943
3892
|
ciName: import_ci_info.default.name ?? void 0,
|
|
3944
3893
|
inlineDatasources: buildInlineDatasources(datasources),
|
|
3945
3894
|
inlineSchema,
|
|
3946
|
-
inlineSchemaHash,
|
|
3947
|
-
copyEngine,
|
|
3948
3895
|
runtimeDataModel: { models: {}, enums: {}, types: {} },
|
|
3949
3896
|
dirname: ""
|
|
3950
3897
|
};
|
|
@@ -3959,54 +3906,7 @@ ${buildDebugInitialization(edge)}
|
|
|
3959
3906
|
}
|
|
3960
3907
|
|
|
3961
3908
|
// src/TSClient/file-generators/ClientFile.ts
|
|
3962
|
-
var import_node_path3 = __toESM(require("node:path"));
|
|
3963
|
-
var import_internals6 = require("@prisma/internals");
|
|
3964
3909
|
var ts7 = __toESM(require("@prisma/ts-builders"));
|
|
3965
|
-
|
|
3966
|
-
// src/utils/buildNFTAnnotations.ts
|
|
3967
|
-
var import_get_platform = require("@prisma/get-platform");
|
|
3968
|
-
var import_internals5 = require("@prisma/internals");
|
|
3969
|
-
var import_path = __toESM(require("path"));
|
|
3970
|
-
function buildNFTAnnotations(noEngine, engineType, binaryTargets, relativeOutdir) {
|
|
3971
|
-
if (noEngine === true) return "";
|
|
3972
|
-
if (binaryTargets === void 0) {
|
|
3973
|
-
return "";
|
|
3974
|
-
}
|
|
3975
|
-
if (process.env.NETLIFY) {
|
|
3976
|
-
const isNodeMajor20OrUp = parseInt(process.versions.node.split(".")[0]) >= 20;
|
|
3977
|
-
const awsRuntimeVersion = (0, import_internals5.parseAWSNodejsRuntimeEnvVarVersion)();
|
|
3978
|
-
const isRuntimeEnvVar20OrUp = awsRuntimeVersion && awsRuntimeVersion >= 20;
|
|
3979
|
-
const isRuntimeEnvVar18OrDown = awsRuntimeVersion && awsRuntimeVersion <= 18;
|
|
3980
|
-
if ((isNodeMajor20OrUp || isRuntimeEnvVar20OrUp) && !isRuntimeEnvVar18OrDown) {
|
|
3981
|
-
binaryTargets = ["rhel-openssl-3.0.x"];
|
|
3982
|
-
} else {
|
|
3983
|
-
binaryTargets = ["rhel-openssl-1.0.x"];
|
|
3984
|
-
}
|
|
3985
|
-
}
|
|
3986
|
-
const engineAnnotations = binaryTargets.map((binaryTarget) => {
|
|
3987
|
-
const engineFilename = getQueryEngineFilename(engineType, binaryTarget);
|
|
3988
|
-
return engineFilename ? buildNFTAnnotation(engineFilename, relativeOutdir) : "";
|
|
3989
|
-
}).join("\n");
|
|
3990
|
-
return `${engineAnnotations}`;
|
|
3991
|
-
}
|
|
3992
|
-
function getQueryEngineFilename(engineType, binaryTarget) {
|
|
3993
|
-
if (engineType === import_internals5.ClientEngineType.Library) {
|
|
3994
|
-
return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
|
|
3995
|
-
}
|
|
3996
|
-
if (engineType === import_internals5.ClientEngineType.Binary) {
|
|
3997
|
-
return `query-engine-${binaryTarget}`;
|
|
3998
|
-
}
|
|
3999
|
-
return void 0;
|
|
4000
|
-
}
|
|
4001
|
-
function buildNFTAnnotation(fileName, relativeOutdir) {
|
|
4002
|
-
const relativeFilePath = import_path.default.join(relativeOutdir, fileName);
|
|
4003
|
-
return `
|
|
4004
|
-
// file annotations for bundling tools to include these files
|
|
4005
|
-
path.join(__dirname, ${JSON.stringify((0, import_internals5.pathToPosix)(fileName))})
|
|
4006
|
-
path.join(process.cwd(), ${JSON.stringify((0, import_internals5.pathToPosix)(relativeFilePath))})`;
|
|
4007
|
-
}
|
|
4008
|
-
|
|
4009
|
-
// src/TSClient/file-generators/ClientFile.ts
|
|
4010
3910
|
var jsDocHeader3 = `/*
|
|
4011
3911
|
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
4012
3912
|
* If you're looking for something you can import in the client-side of your application, please refer to the \`browser.ts\` file instead.
|
|
@@ -4015,8 +3915,6 @@ var jsDocHeader3 = `/*
|
|
|
4015
3915
|
*/
|
|
4016
3916
|
`;
|
|
4017
3917
|
function createClientFile(context, options) {
|
|
4018
|
-
const clientEngineType = (0, import_internals6.getClientEngineType)(options.generator);
|
|
4019
|
-
options.generator.config.engineType = clientEngineType;
|
|
4020
3918
|
const imports = [
|
|
4021
3919
|
ts7.moduleImport(context.runtimeImport).asNamespace("runtime"),
|
|
4022
3920
|
ts7.moduleImport(context.importFileName("./enums")).asNamespace("$Enums"),
|
|
@@ -4042,8 +3940,6 @@ function createClientFile(context, options) {
|
|
|
4042
3940
|
)
|
|
4043
3941
|
)
|
|
4044
3942
|
].map((e) => ts7.stringify(e));
|
|
4045
|
-
const binaryTargets = clientEngineType === import_internals6.ClientEngineType.Library ? Object.keys(options.binaryPaths.libqueryEngine ?? {}) : Object.keys(options.binaryPaths.queryEngine ?? {});
|
|
4046
|
-
const relativeOutdir = import_node_path3.default.relative(process.cwd(), options.outputDir);
|
|
4047
3943
|
return `${jsDocHeader3}
|
|
4048
3944
|
${buildPreamble(options.edge, options.moduleFormat)}
|
|
4049
3945
|
${imports.join("\n")}
|
|
@@ -4051,8 +3947,6 @@ ${imports.join("\n")}
|
|
|
4051
3947
|
${exports2.join("\n")}
|
|
4052
3948
|
export { Prisma }
|
|
4053
3949
|
|
|
4054
|
-
${buildNFTAnnotations(options.edge || !options.copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
|
|
4055
|
-
|
|
4056
3950
|
${modelExports(context).join("\n")}
|
|
4057
3951
|
`;
|
|
4058
3952
|
}
|
|
@@ -4215,10 +4109,10 @@ var ts11 = __toESM(require("@prisma/ts-builders"));
|
|
|
4215
4109
|
var import_indent_string4 = __toESM(require("indent-string"));
|
|
4216
4110
|
|
|
4217
4111
|
// src/TSClient/Output.ts
|
|
4218
|
-
var
|
|
4112
|
+
var import_internals4 = require("@prisma/internals");
|
|
4219
4113
|
var ts10 = __toESM(require("@prisma/ts-builders"));
|
|
4220
4114
|
function buildModelOutputProperty(field, dmmf) {
|
|
4221
|
-
let fieldTypeName = (0,
|
|
4115
|
+
let fieldTypeName = (0, import_internals4.hasOwnProperty)(GraphQLScalarToJSTypeTable, field.type) ? GraphQLScalarToJSTypeTable[field.type] : field.type;
|
|
4222
4116
|
if (Array.isArray(fieldTypeName)) {
|
|
4223
4117
|
fieldTypeName = fieldTypeName[0];
|
|
4224
4118
|
}
|
|
@@ -5153,33 +5047,36 @@ function createModelsFile(context, modelsNames) {
|
|
|
5153
5047
|
}
|
|
5154
5048
|
|
|
5155
5049
|
// src/TSClient/file-generators/PrismaNamespaceBrowserFile.ts
|
|
5050
|
+
var import_dmmf2 = require("@prisma/dmmf");
|
|
5156
5051
|
var ts16 = __toESM(require("@prisma/ts-builders"));
|
|
5157
5052
|
|
|
5158
5053
|
// src/TSClient/NullTypes.ts
|
|
5159
5054
|
var nullTypes = `
|
|
5160
5055
|
export const NullTypes = {
|
|
5161
|
-
DbNull: runtime.
|
|
5162
|
-
JsonNull: runtime.
|
|
5163
|
-
AnyNull: runtime.
|
|
5056
|
+
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
5057
|
+
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
5058
|
+
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
5164
5059
|
}
|
|
5165
5060
|
/**
|
|
5166
5061
|
* Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
|
|
5167
5062
|
*
|
|
5168
5063
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
5169
5064
|
*/
|
|
5170
|
-
export const DbNull = runtime.
|
|
5065
|
+
export const DbNull = runtime.DbNull
|
|
5066
|
+
|
|
5171
5067
|
/**
|
|
5172
5068
|
* Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
|
|
5173
5069
|
*
|
|
5174
5070
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
5175
5071
|
*/
|
|
5176
|
-
export const JsonNull = runtime.
|
|
5072
|
+
export const JsonNull = runtime.JsonNull
|
|
5073
|
+
|
|
5177
5074
|
/**
|
|
5178
5075
|
* Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
|
|
5179
5076
|
*
|
|
5180
5077
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
5181
5078
|
*/
|
|
5182
|
-
export const AnyNull = runtime.
|
|
5079
|
+
export const AnyNull = runtime.AnyNull
|
|
5183
5080
|
`;
|
|
5184
5081
|
|
|
5185
5082
|
// src/TSClient/file-generators/PrismaNamespaceBrowserFile.ts
|
|
@@ -5196,7 +5093,9 @@ var jsDocHeader7 = `/*
|
|
|
5196
5093
|
*/
|
|
5197
5094
|
`;
|
|
5198
5095
|
function createPrismaNamespaceBrowserFile(context) {
|
|
5199
|
-
const prismaEnums = context.dmmf.schema.enumTypes.prisma?.map(
|
|
5096
|
+
const prismaEnums = context.dmmf.schema.enumTypes.prisma?.map(
|
|
5097
|
+
(datamodelEnum) => new Enum((0, import_dmmf2.datamodelSchemaEnumToSchemaEnum)(datamodelEnum), false).toTS()
|
|
5098
|
+
);
|
|
5200
5099
|
return `${jsDocHeader7}
|
|
5201
5100
|
${ts16.stringify(ts16.moduleImport(`${context.runtimeBase}/index-browser`).asNamespace("runtime"))}
|
|
5202
5101
|
|
|
@@ -5210,7 +5109,10 @@ ${nullTypes}
|
|
|
5210
5109
|
${new Enum(
|
|
5211
5110
|
{
|
|
5212
5111
|
name: "ModelName",
|
|
5213
|
-
|
|
5112
|
+
data: context.dmmf.mappings.modelOperations.map((m) => ({
|
|
5113
|
+
key: m.model,
|
|
5114
|
+
value: m.model
|
|
5115
|
+
}))
|
|
5214
5116
|
},
|
|
5215
5117
|
true
|
|
5216
5118
|
).toTS()}
|
|
@@ -5223,6 +5125,7 @@ ${prismaEnums?.join("\n\n")}
|
|
|
5223
5125
|
}
|
|
5224
5126
|
|
|
5225
5127
|
// src/TSClient/file-generators/PrismaNamespaceFile.ts
|
|
5128
|
+
var import_dmmf3 = require("@prisma/dmmf");
|
|
5226
5129
|
var ts19 = __toESM(require("@prisma/ts-builders"));
|
|
5227
5130
|
|
|
5228
5131
|
// src/TSClient/common.ts
|
|
@@ -5270,14 +5173,6 @@ export type Decimal = runtime.Decimal
|
|
|
5270
5173
|
|
|
5271
5174
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
5272
5175
|
|
|
5273
|
-
/**
|
|
5274
|
-
* Metrics
|
|
5275
|
-
*/
|
|
5276
|
-
export type Metrics = runtime.Metrics
|
|
5277
|
-
export type Metric<T> = runtime.Metric<T>
|
|
5278
|
-
export type MetricHistogram = runtime.MetricHistogram
|
|
5279
|
-
export type MetricHistogramBucket = runtime.MetricHistogramBucket
|
|
5280
|
-
|
|
5281
5176
|
/**
|
|
5282
5177
|
* Extensions
|
|
5283
5178
|
*/
|
|
@@ -5637,7 +5532,7 @@ function globalOmitConfig(dmmf) {
|
|
|
5637
5532
|
|
|
5638
5533
|
// src/TSClient/TypeMap.ts
|
|
5639
5534
|
var import_client_common18 = require("@prisma/client-common");
|
|
5640
|
-
var
|
|
5535
|
+
var import_internals5 = require("@prisma/internals");
|
|
5641
5536
|
var ts18 = __toESM(require("@prisma/ts-builders"));
|
|
5642
5537
|
function clientTypeMapDefinition(context) {
|
|
5643
5538
|
const typeMap = `${ts18.stringify(clientTypeMapModelsDefinition(context))} & ${clientTypeMapOthersDefinition(context)}`;
|
|
@@ -5737,7 +5632,7 @@ function clientTypeMapModelsResultDefinition(modelName, action) {
|
|
|
5737
5632
|
if (action === "update") return payloadToResult(modelName);
|
|
5738
5633
|
if (action === "upsert") return payloadToResult(modelName);
|
|
5739
5634
|
if (action === "delete") return payloadToResult(modelName);
|
|
5740
|
-
(0,
|
|
5635
|
+
(0, import_internals5.assertNever)(action, `Unknown action: ${action}`);
|
|
5741
5636
|
}
|
|
5742
5637
|
function payloadToResult(modelName) {
|
|
5743
5638
|
return ts18.namedType("runtime.Types.Utils.PayloadToResult").addGenericArgument(ts18.namedType(getPayloadName(modelName)));
|
|
@@ -5762,7 +5657,9 @@ function createPrismaNamespaceFile(context, options) {
|
|
|
5762
5657
|
ts19.moduleImport(context.importFileName(`../models`)).asNamespace("Prisma").typeOnly(),
|
|
5763
5658
|
ts19.moduleImport(context.importFileName(`./class`)).named(ts19.namedImport("PrismaClient").typeOnly())
|
|
5764
5659
|
].map((i) => ts19.stringify(i));
|
|
5765
|
-
const prismaEnums = context.dmmf.schema.enumTypes.prisma?.map(
|
|
5660
|
+
const prismaEnums = context.dmmf.schema.enumTypes.prisma?.map(
|
|
5661
|
+
(type) => new Enum((0, import_dmmf3.datamodelSchemaEnumToSchemaEnum)(type), true).toTS()
|
|
5662
|
+
);
|
|
5766
5663
|
const fieldRefs = context.dmmf.schema.fieldRefTypes.prisma?.map((type) => new FieldRefInput(type).toTS()) ?? [];
|
|
5767
5664
|
return `${jsDocHeader8}
|
|
5768
5665
|
${imports.join("\n")}
|
|
@@ -5773,7 +5670,10 @@ ${commonCodeTS(options)}
|
|
|
5773
5670
|
${new Enum(
|
|
5774
5671
|
{
|
|
5775
5672
|
name: "ModelName",
|
|
5776
|
-
|
|
5673
|
+
data: context.dmmf.mappings.modelOperations.map((m) => ({
|
|
5674
|
+
key: m.model,
|
|
5675
|
+
value: m.model
|
|
5676
|
+
}))
|
|
5777
5677
|
},
|
|
5778
5678
|
true
|
|
5779
5679
|
).toTS()}
|
|
@@ -5883,8 +5783,6 @@ function clientExtensionsDefinitions() {
|
|
|
5883
5783
|
function buildClientOptions(context, options) {
|
|
5884
5784
|
const clientOptions = ts19.interfaceDeclaration("PrismaClientOptions").add(
|
|
5885
5785
|
ts19.property("datasources", ts19.namedType("Datasources")).optional().setDocComment(ts19.docComment("Overwrites the datasource url from your schema.prisma file"))
|
|
5886
|
-
).add(
|
|
5887
|
-
ts19.property("datasourceUrl", ts19.stringType).optional().setDocComment(ts19.docComment("Overwrites the datasource url from your schema.prisma file"))
|
|
5888
5786
|
).add(
|
|
5889
5787
|
ts19.property("errorFormat", ts19.namedType("ErrorFormat")).optional().setDocComment(ts19.docComment('@default "colorless"'))
|
|
5890
5788
|
).add(
|
|
@@ -5924,7 +5822,7 @@ function buildClientOptions(context, options) {
|
|
|
5924
5822
|
timeout ?= 5000
|
|
5925
5823
|
`)
|
|
5926
5824
|
);
|
|
5927
|
-
if (["library", "client", "wasm-compiler-edge"
|
|
5825
|
+
if (["library", "client", "wasm-compiler-edge"].includes(options.runtimeName)) {
|
|
5928
5826
|
clientOptions.add(
|
|
5929
5827
|
ts19.property("adapter", ts19.unionType([ts19.namedType("runtime.SqlDriverAdapterFactory"), ts19.namedType("null")])).optional().setDocComment(
|
|
5930
5828
|
ts19.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
|
|
@@ -5963,7 +5861,7 @@ var GenerateContext = class {
|
|
|
5963
5861
|
dmmf,
|
|
5964
5862
|
genericArgsInfo,
|
|
5965
5863
|
runtimeBase,
|
|
5966
|
-
runtimeImport
|
|
5864
|
+
runtimeImport,
|
|
5967
5865
|
outputFileName,
|
|
5968
5866
|
importFileName,
|
|
5969
5867
|
generator
|
|
@@ -5971,7 +5869,7 @@ var GenerateContext = class {
|
|
|
5971
5869
|
this.dmmf = dmmf;
|
|
5972
5870
|
this.genericArgsInfo = genericArgsInfo;
|
|
5973
5871
|
this.runtimeBase = runtimeBase;
|
|
5974
|
-
this.runtimeImport =
|
|
5872
|
+
this.runtimeImport = runtimeImport;
|
|
5975
5873
|
this.outputFileName = outputFileName;
|
|
5976
5874
|
this.importFileName = importFileName;
|
|
5977
5875
|
this.generator = generator;
|
|
@@ -6022,7 +5920,7 @@ var TSClient = class {
|
|
|
6022
5920
|
};
|
|
6023
5921
|
|
|
6024
5922
|
// src/typedSql/buildDbEnums.ts
|
|
6025
|
-
var
|
|
5923
|
+
var import_internals6 = require("@prisma/internals");
|
|
6026
5924
|
var ts20 = __toESM(require("@prisma/ts-builders"));
|
|
6027
5925
|
var DbEnumsList = class {
|
|
6028
5926
|
enums;
|
|
@@ -6040,14 +5938,14 @@ var DbEnumsList = class {
|
|
|
6040
5938
|
}
|
|
6041
5939
|
*validJsIdentifiers() {
|
|
6042
5940
|
for (const dbEnum of this.enums) {
|
|
6043
|
-
if ((0,
|
|
5941
|
+
if ((0, import_internals6.isValidJsIdentifier)(dbEnum.name)) {
|
|
6044
5942
|
yield dbEnum;
|
|
6045
5943
|
}
|
|
6046
5944
|
}
|
|
6047
5945
|
}
|
|
6048
5946
|
*invalidJsIdentifiers() {
|
|
6049
5947
|
for (const dbEnum of this.enums) {
|
|
6050
|
-
if (!(0,
|
|
5948
|
+
if (!(0, import_internals6.isValidJsIdentifier)(dbEnum.name)) {
|
|
6051
5949
|
yield dbEnum;
|
|
6052
5950
|
}
|
|
6053
5951
|
}
|
|
@@ -6278,7 +6176,7 @@ var DenylistError = class extends Error {
|
|
|
6278
6176
|
this.stack = void 0;
|
|
6279
6177
|
}
|
|
6280
6178
|
};
|
|
6281
|
-
(0,
|
|
6179
|
+
(0, import_internals7.setClassName)(DenylistError, "DenylistError");
|
|
6282
6180
|
function buildClient({
|
|
6283
6181
|
schemaPath,
|
|
6284
6182
|
runtimeBase,
|
|
@@ -6292,7 +6190,6 @@ function buildClient({
|
|
|
6292
6190
|
clientVersion,
|
|
6293
6191
|
activeProvider,
|
|
6294
6192
|
postinstall,
|
|
6295
|
-
copyEngine,
|
|
6296
6193
|
envPaths,
|
|
6297
6194
|
typedSql,
|
|
6298
6195
|
target,
|
|
@@ -6301,8 +6198,7 @@ function buildClient({
|
|
|
6301
6198
|
moduleFormat,
|
|
6302
6199
|
tsNoCheckPreamble: tsNoCheckPreamble2
|
|
6303
6200
|
}) {
|
|
6304
|
-
const
|
|
6305
|
-
const runtimeName = getRuntimeNameForTarget(target, clientEngineType);
|
|
6201
|
+
const runtimeName = getRuntimeNameForTarget(target);
|
|
6306
6202
|
const outputName = generatedFileNameMapper(generatedFileExtension);
|
|
6307
6203
|
const importName = importFileNameMapper(importFileExtension);
|
|
6308
6204
|
const clientOptions = {
|
|
@@ -6318,9 +6214,8 @@ function buildClient({
|
|
|
6318
6214
|
engineVersion,
|
|
6319
6215
|
activeProvider,
|
|
6320
6216
|
postinstall,
|
|
6321
|
-
copyEngine,
|
|
6322
6217
|
datamodel,
|
|
6323
|
-
edge: ["
|
|
6218
|
+
edge: ["wasm-compiler-edge"].includes(runtimeName),
|
|
6324
6219
|
runtimeName,
|
|
6325
6220
|
target,
|
|
6326
6221
|
generatedFileExtension,
|
|
@@ -6328,9 +6223,6 @@ function buildClient({
|
|
|
6328
6223
|
moduleFormat,
|
|
6329
6224
|
tsNoCheckPreamble: tsNoCheckPreamble2
|
|
6330
6225
|
};
|
|
6331
|
-
if (runtimeName === "react-native" && !generator.previewFeatures.includes("reactNative")) {
|
|
6332
|
-
throw new Error(`Using the "react-native" runtime requires the "reactNative" preview feature to be enabled.`);
|
|
6333
|
-
}
|
|
6334
6226
|
const client = new TSClient(clientOptions);
|
|
6335
6227
|
let fileMap = client.generateClientFiles();
|
|
6336
6228
|
if (typedSql && typedSql.length > 0) {
|
|
@@ -6386,7 +6278,6 @@ async function generateClient(options) {
|
|
|
6386
6278
|
activeProvider,
|
|
6387
6279
|
postinstall,
|
|
6388
6280
|
envPaths,
|
|
6389
|
-
copyEngine = true,
|
|
6390
6281
|
typedSql,
|
|
6391
6282
|
target,
|
|
6392
6283
|
generatedFileExtension,
|
|
@@ -6394,7 +6285,6 @@ async function generateClient(options) {
|
|
|
6394
6285
|
moduleFormat,
|
|
6395
6286
|
tsNoCheckPreamble: tsNoCheckPreamble2
|
|
6396
6287
|
} = options;
|
|
6397
|
-
const clientEngineType = (0, import_internals10.getClientEngineType)(generator);
|
|
6398
6288
|
const { runtimeBase, outputDir } = await getGenerationDirs(options);
|
|
6399
6289
|
const { prismaClientDmmf, fileMap } = buildClient({
|
|
6400
6290
|
datamodel,
|
|
@@ -6409,7 +6299,6 @@ async function generateClient(options) {
|
|
|
6409
6299
|
engineVersion,
|
|
6410
6300
|
activeProvider,
|
|
6411
6301
|
postinstall,
|
|
6412
|
-
copyEngine,
|
|
6413
6302
|
envPaths,
|
|
6414
6303
|
typedSql,
|
|
6415
6304
|
target,
|
|
@@ -6434,27 +6323,11 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
6434
6323
|
await deleteOutputDir(outputDir);
|
|
6435
6324
|
await (0, import_fs_extra.ensureDir)(outputDir);
|
|
6436
6325
|
await writeFileMap(outputDir, fileMap);
|
|
6437
|
-
const enginePath = clientEngineType === import_internals10.ClientEngineType.Library ? binaryPaths.libqueryEngine : binaryPaths.queryEngine;
|
|
6438
|
-
if (copyEngine && enginePath) {
|
|
6439
|
-
if (process.env.NETLIFY) {
|
|
6440
|
-
await (0, import_fs_extra.ensureDir)("/tmp/prisma-engines");
|
|
6441
|
-
}
|
|
6442
|
-
for (const [binaryTarget, filePath] of Object.entries(enginePath)) {
|
|
6443
|
-
const fileName = import_node_path4.default.basename(filePath);
|
|
6444
|
-
let target2;
|
|
6445
|
-
if (process.env.NETLIFY && !["rhel-openssl-1.0.x", "rhel-openssl-3.0.x"].includes(binaryTarget)) {
|
|
6446
|
-
target2 = import_node_path4.default.join("/tmp/prisma-engines", fileName);
|
|
6447
|
-
} else {
|
|
6448
|
-
target2 = import_node_path4.default.join(outputDir, fileName);
|
|
6449
|
-
}
|
|
6450
|
-
await (0, import_fetch_engine.overwriteFile)(filePath, target2);
|
|
6451
|
-
}
|
|
6452
|
-
}
|
|
6453
6326
|
}
|
|
6454
6327
|
function writeFileMap(outputDir, fileMap) {
|
|
6455
6328
|
return Promise.all(
|
|
6456
6329
|
Object.entries(fileMap).map(async ([fileName, content]) => {
|
|
6457
|
-
const absolutePath =
|
|
6330
|
+
const absolutePath = import_node_path3.default.join(outputDir, fileName);
|
|
6458
6331
|
await import_promises.default.rm(absolutePath, { recursive: true, force: true });
|
|
6459
6332
|
if (typeof content === "string" || Buffer.isBuffer(content)) {
|
|
6460
6333
|
await import_promises.default.writeFile(absolutePath, content);
|
|
@@ -6543,41 +6416,27 @@ function validateDmmfAgainstDenylists(prismaClientDmmf) {
|
|
|
6543
6416
|
return errorArray.length > 0 ? errorArray : null;
|
|
6544
6417
|
}
|
|
6545
6418
|
async function getGenerationDirs({ runtimeBase, outputDir }) {
|
|
6546
|
-
const normalizedOutputDir =
|
|
6547
|
-
const normalizedRuntimeBase = (0,
|
|
6548
|
-
const userPackageRoot = await (0, import_package_up.packageUp)({ cwd:
|
|
6549
|
-
const userProjectRoot = userPackageRoot ?
|
|
6419
|
+
const normalizedOutputDir = import_node_path3.default.normalize(outputDir);
|
|
6420
|
+
const normalizedRuntimeBase = (0, import_internals7.pathToPosix)(runtimeBase);
|
|
6421
|
+
const userPackageRoot = await (0, import_package_up.packageUp)({ cwd: import_node_path3.default.dirname(normalizedOutputDir) });
|
|
6422
|
+
const userProjectRoot = userPackageRoot ? import_node_path3.default.dirname(userPackageRoot) : process.cwd();
|
|
6550
6423
|
return {
|
|
6551
6424
|
runtimeBase: normalizedRuntimeBase,
|
|
6552
6425
|
outputDir: normalizedOutputDir,
|
|
6553
6426
|
projectRoot: userProjectRoot
|
|
6554
6427
|
};
|
|
6555
6428
|
}
|
|
6556
|
-
function getRuntimeNameForTarget(target
|
|
6429
|
+
function getRuntimeNameForTarget(target) {
|
|
6557
6430
|
switch (target) {
|
|
6558
6431
|
case "nodejs":
|
|
6559
6432
|
case "deno":
|
|
6560
|
-
return
|
|
6433
|
+
return "client";
|
|
6561
6434
|
case "workerd":
|
|
6562
6435
|
case "vercel-edge":
|
|
6563
|
-
return
|
|
6564
|
-
case "react-native":
|
|
6565
|
-
return "react-native";
|
|
6436
|
+
return "wasm-compiler-edge";
|
|
6566
6437
|
default:
|
|
6567
|
-
(0,
|
|
6568
|
-
}
|
|
6569
|
-
}
|
|
6570
|
-
function getNodeRuntimeName(engineType) {
|
|
6571
|
-
if (engineType === import_internals10.ClientEngineType.Binary) {
|
|
6572
|
-
return "binary";
|
|
6573
|
-
}
|
|
6574
|
-
if (engineType === import_internals10.ClientEngineType.Library) {
|
|
6575
|
-
return "library";
|
|
6438
|
+
(0, import_internals7.assertNever)(target, "Unknown runtime target");
|
|
6576
6439
|
}
|
|
6577
|
-
if (engineType === import_internals10.ClientEngineType.Client) {
|
|
6578
|
-
return "client";
|
|
6579
|
-
}
|
|
6580
|
-
(0, import_internals10.assertNever)(engineType, "Unknown engine type");
|
|
6581
6440
|
}
|
|
6582
6441
|
async function deleteOutputDir(outputDir) {
|
|
6583
6442
|
try {
|
|
@@ -6613,14 +6472,12 @@ async function deleteOutputDir(outputDir) {
|
|
|
6613
6472
|
}
|
|
6614
6473
|
|
|
6615
6474
|
// src/generator.ts
|
|
6616
|
-
var import_debug2 = require("@prisma/debug");
|
|
6617
6475
|
var import_engines_version = require("@prisma/engines-version");
|
|
6618
|
-
var
|
|
6476
|
+
var import_internals8 = require("@prisma/internals");
|
|
6619
6477
|
var import_get_tsconfig = require("get-tsconfig");
|
|
6620
|
-
var import_ts_pattern2 = require("ts-pattern");
|
|
6621
6478
|
|
|
6622
6479
|
// package.json
|
|
6623
|
-
var version = "6.19.0-integration-
|
|
6480
|
+
var version = "6.19.0-integration-feat-remove-library-engine.3";
|
|
6624
6481
|
|
|
6625
6482
|
// src/module-format.ts
|
|
6626
6483
|
function parseModuleFormat(format) {
|
|
@@ -6663,16 +6520,7 @@ function fromTsConfigModule(module2) {
|
|
|
6663
6520
|
}
|
|
6664
6521
|
|
|
6665
6522
|
// src/runtime-targets.ts
|
|
6666
|
-
var supportedPublicRuntimes = [
|
|
6667
|
-
"nodejs",
|
|
6668
|
-
"deno",
|
|
6669
|
-
"bun",
|
|
6670
|
-
"workerd",
|
|
6671
|
-
"cloudflare",
|
|
6672
|
-
"vercel-edge",
|
|
6673
|
-
"edge-light",
|
|
6674
|
-
"react-native"
|
|
6675
|
-
];
|
|
6523
|
+
var supportedPublicRuntimes = ["nodejs", "deno", "bun", "workerd", "cloudflare", "vercel-edge", "edge-light"];
|
|
6676
6524
|
function parseRuntimeTarget(target) {
|
|
6677
6525
|
switch (target.toLowerCase()) {
|
|
6678
6526
|
case "workerd":
|
|
@@ -6686,8 +6534,6 @@ function parseRuntimeTarget(target) {
|
|
|
6686
6534
|
return "nodejs";
|
|
6687
6535
|
case "deno":
|
|
6688
6536
|
return "deno";
|
|
6689
|
-
case "react-native":
|
|
6690
|
-
return "react-native";
|
|
6691
6537
|
default:
|
|
6692
6538
|
throw new Error(
|
|
6693
6539
|
`Unknown target runtime: "${target}". The available options are: ${supportedPublicRuntimes.map((runtime) => `"${runtime}"`).join(", ")}`
|
|
@@ -6702,7 +6548,6 @@ function parseRuntimeTargetFromUnknown(target) {
|
|
|
6702
6548
|
}
|
|
6703
6549
|
|
|
6704
6550
|
// src/generator.ts
|
|
6705
|
-
var debug2 = (0, import_debug2.Debug)("prisma:client:generator");
|
|
6706
6551
|
var missingOutputErrorMessage = `An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
6707
6552
|
|
|
6708
6553
|
${dim(`generator client {
|
|
@@ -6716,18 +6561,16 @@ function getOutputPath(config) {
|
|
|
6716
6561
|
if (!config.output) {
|
|
6717
6562
|
throw new Error(missingOutputErrorMessage);
|
|
6718
6563
|
}
|
|
6719
|
-
return (0,
|
|
6564
|
+
return (0, import_internals8.parseEnvValue)(config.output);
|
|
6720
6565
|
}
|
|
6721
6566
|
var PrismaClientTsGenerator = class {
|
|
6722
6567
|
name = "prisma-client-ts";
|
|
6723
6568
|
getManifest(config) {
|
|
6724
|
-
const requiresEngines = (0, import_ts_pattern2.match)((0, import_internals11.getClientEngineType)(config)).with(import_internals11.ClientEngineType.Library, () => ["libqueryEngine"]).with(import_internals11.ClientEngineType.Binary, () => ["queryEngine"]).with(import_internals11.ClientEngineType.Client, () => []).exhaustive();
|
|
6725
|
-
debug2("requiresEngines", requiresEngines);
|
|
6726
6569
|
return Promise.resolve({
|
|
6727
6570
|
defaultOutput: getOutputPath(config),
|
|
6728
6571
|
prettyName: "Prisma Client",
|
|
6729
6572
|
version,
|
|
6730
|
-
requiresEngines,
|
|
6573
|
+
requiresEngines: [],
|
|
6731
6574
|
requiresEngineVersion: import_engines_version.enginesVersion
|
|
6732
6575
|
});
|
|
6733
6576
|
}
|
|
@@ -6761,7 +6604,6 @@ var PrismaClientTsGenerator = class {
|
|
|
6761
6604
|
clientVersion: version,
|
|
6762
6605
|
activeProvider: options.datasources[0]?.activeProvider,
|
|
6763
6606
|
postinstall: options.postinstall,
|
|
6764
|
-
copyEngine: !options.noEngine,
|
|
6765
6607
|
typedSql: options.typedSql,
|
|
6766
6608
|
target,
|
|
6767
6609
|
generatedFileExtension,
|