@prisma/migrate 6.20.0-integration-next.20 → 7.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +3 -3
- package/dist/{chunk-OP2BDF75.js → chunk-3EF3YJPJ.js} +162 -126
- package/dist/{chunk-WF7UXKO5.js → chunk-XTEEOIUV.js} +21 -4
- package/dist/commands/DbSeed.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMSSQL.js +52 -51
- package/dist/utils/setupMongo.js +3 -3
- package/package.json +10 -10
package/dist/bin.js
CHANGED
|
@@ -51,7 +51,7 @@ var import_chunk_XGTVKL4L = require("./chunk-XGTVKL4L.js");
|
|
|
51
51
|
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
52
52
|
var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
|
|
53
53
|
var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
|
|
54
|
-
var
|
|
54
|
+
var import_chunk_XTEEOIUV = require("./chunk-XTEEOIUV.js");
|
|
55
55
|
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
56
56
|
var import_chunk_3WDCTXHL = require("./chunk-3WDCTXHL.js");
|
|
57
57
|
var import_chunk_DYXUXG3K = require("./chunk-DYXUXG3K.js");
|
|
@@ -68,7 +68,7 @@ var import_config = require("@prisma/config");
|
|
|
68
68
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
69
69
|
var import_engines_version = require("@prisma/engines-version");
|
|
70
70
|
var import_internals = require("@prisma/internals");
|
|
71
|
-
var version = "
|
|
71
|
+
var version = "7.0.1-dev.1";
|
|
72
72
|
process.on("uncaughtException", (e) => {
|
|
73
73
|
console.log(e);
|
|
74
74
|
});
|
|
@@ -102,7 +102,7 @@ async function main() {
|
|
|
102
102
|
pull: import_chunk_FEUKQ7J3.DbPull.new(),
|
|
103
103
|
push: import_chunk_QAOWTYGM.DbPush.new(),
|
|
104
104
|
// drop: DbDrop.new(),
|
|
105
|
-
seed:
|
|
105
|
+
seed: import_chunk_XTEEOIUV.DbSeed.new()
|
|
106
106
|
})
|
|
107
107
|
});
|
|
108
108
|
const configFile = args["--config"];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,15 +17,27 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
29
|
+
var chunk_3EF3YJPJ_exports = {};
|
|
30
|
+
__export(chunk_3EF3YJPJ_exports, {
|
|
31
|
+
init_supports_color: () => init_supports_color,
|
|
21
32
|
require_ms: () => require_ms,
|
|
22
33
|
require_src: () => require_src,
|
|
23
|
-
|
|
34
|
+
supports_color_exports: () => supports_color_exports
|
|
24
35
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_3EF3YJPJ_exports);
|
|
26
37
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
38
|
+
var import_node_process = __toESM(require("node:process"));
|
|
39
|
+
var import_node_os = __toESM(require("node:os"));
|
|
40
|
+
var import_node_tty = __toESM(require("node:tty"));
|
|
27
41
|
var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
28
42
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
|
29
43
|
"use strict";
|
|
@@ -140,9 +154,9 @@ var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
140
154
|
}
|
|
141
155
|
});
|
|
142
156
|
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
143
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
157
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js"(exports, module2) {
|
|
144
158
|
"use strict";
|
|
145
|
-
function setup(
|
|
159
|
+
function setup(env2) {
|
|
146
160
|
createDebug.debug = createDebug;
|
|
147
161
|
createDebug.default = createDebug;
|
|
148
162
|
createDebug.coerce = coerce;
|
|
@@ -151,8 +165,8 @@ var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
151
165
|
createDebug.enabled = enabled;
|
|
152
166
|
createDebug.humanize = require_ms();
|
|
153
167
|
createDebug.destroy = destroy;
|
|
154
|
-
Object.keys(
|
|
155
|
-
createDebug[key] =
|
|
168
|
+
Object.keys(env2).forEach((key) => {
|
|
169
|
+
createDebug[key] = env2[key];
|
|
156
170
|
});
|
|
157
171
|
createDebug.names = [];
|
|
158
172
|
createDebug.skips = [];
|
|
@@ -316,7 +330,7 @@ var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
316
330
|
}
|
|
317
331
|
});
|
|
318
332
|
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
319
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
333
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports, module2) {
|
|
320
334
|
"use strict";
|
|
321
335
|
exports.formatArgs = formatArgs;
|
|
322
336
|
exports.save = save;
|
|
@@ -484,133 +498,155 @@ var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
484
498
|
};
|
|
485
499
|
}
|
|
486
500
|
});
|
|
487
|
-
var
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
492
|
-
const position = argv.indexOf(prefix + flag);
|
|
493
|
-
const terminatorPosition = argv.indexOf("--");
|
|
494
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
495
|
-
};
|
|
496
|
-
}
|
|
501
|
+
var supports_color_exports = {};
|
|
502
|
+
(0, import_chunk_2ESYSVXG.__export)(supports_color_exports, {
|
|
503
|
+
createSupportsColor: () => createSupportsColor,
|
|
504
|
+
default: () => supports_color_default
|
|
497
505
|
});
|
|
498
|
-
|
|
499
|
-
"
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
506
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
507
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
508
|
+
const position = argv.indexOf(prefix + flag);
|
|
509
|
+
const terminatorPosition = argv.indexOf("--");
|
|
510
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
511
|
+
}
|
|
512
|
+
function envForceColor() {
|
|
513
|
+
if (!("FORCE_COLOR" in env)) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
if (env.FORCE_COLOR === "true") {
|
|
517
|
+
return 1;
|
|
518
|
+
}
|
|
519
|
+
if (env.FORCE_COLOR === "false") {
|
|
520
|
+
return 0;
|
|
521
|
+
}
|
|
522
|
+
if (env.FORCE_COLOR.length === 0) {
|
|
523
|
+
return 1;
|
|
524
|
+
}
|
|
525
|
+
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
526
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
return level;
|
|
530
|
+
}
|
|
531
|
+
function translateLevel(level) {
|
|
532
|
+
if (level === 0) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
return {
|
|
536
|
+
level,
|
|
537
|
+
hasBasic: true,
|
|
538
|
+
has256: level >= 2,
|
|
539
|
+
has16m: level >= 3
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
543
|
+
const noFlagForceColor = envForceColor();
|
|
544
|
+
if (noFlagForceColor !== void 0) {
|
|
545
|
+
flagForceColor = noFlagForceColor;
|
|
546
|
+
}
|
|
547
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
548
|
+
if (forceColor === 0) {
|
|
549
|
+
return 0;
|
|
550
|
+
}
|
|
551
|
+
if (sniffFlags) {
|
|
552
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
553
|
+
return 3;
|
|
510
554
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
if (env.FORCE_COLOR === "true") {
|
|
514
|
-
return 1;
|
|
515
|
-
}
|
|
516
|
-
if (env.FORCE_COLOR === "false") {
|
|
517
|
-
return 0;
|
|
518
|
-
}
|
|
519
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
520
|
-
}
|
|
555
|
+
if (hasFlag("color=256")) {
|
|
556
|
+
return 2;
|
|
521
557
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
558
|
+
}
|
|
559
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
560
|
+
return 1;
|
|
561
|
+
}
|
|
562
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
563
|
+
return 0;
|
|
564
|
+
}
|
|
565
|
+
const min = forceColor || 0;
|
|
566
|
+
if (env.TERM === "dumb") {
|
|
567
|
+
return min;
|
|
568
|
+
}
|
|
569
|
+
if (import_node_process.default.platform === "win32") {
|
|
570
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
571
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
572
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
532
573
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
if ("CI" in env) {
|
|
565
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
566
|
-
return 1;
|
|
567
|
-
}
|
|
568
|
-
return min;
|
|
569
|
-
}
|
|
570
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
571
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
572
|
-
}
|
|
573
|
-
if (env.COLORTERM === "truecolor") {
|
|
574
|
-
return 3;
|
|
575
|
-
}
|
|
576
|
-
if ("TERM_PROGRAM" in env) {
|
|
577
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
578
|
-
switch (env.TERM_PROGRAM) {
|
|
579
|
-
case "iTerm.app":
|
|
580
|
-
return version >= 3 ? 3 : 2;
|
|
581
|
-
case "Apple_Terminal":
|
|
582
|
-
return 2;
|
|
583
|
-
}
|
|
574
|
+
return 1;
|
|
575
|
+
}
|
|
576
|
+
if ("CI" in env) {
|
|
577
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
578
|
+
return 3;
|
|
579
|
+
}
|
|
580
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
581
|
+
return 1;
|
|
582
|
+
}
|
|
583
|
+
return min;
|
|
584
|
+
}
|
|
585
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
586
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
587
|
+
}
|
|
588
|
+
if (env.COLORTERM === "truecolor") {
|
|
589
|
+
return 3;
|
|
590
|
+
}
|
|
591
|
+
if (env.TERM === "xterm-kitty") {
|
|
592
|
+
return 3;
|
|
593
|
+
}
|
|
594
|
+
if (env.TERM === "xterm-ghostty") {
|
|
595
|
+
return 3;
|
|
596
|
+
}
|
|
597
|
+
if (env.TERM === "wezterm") {
|
|
598
|
+
return 3;
|
|
599
|
+
}
|
|
600
|
+
if ("TERM_PROGRAM" in env) {
|
|
601
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
602
|
+
switch (env.TERM_PROGRAM) {
|
|
603
|
+
case "iTerm.app": {
|
|
604
|
+
return version >= 3 ? 3 : 2;
|
|
584
605
|
}
|
|
585
|
-
|
|
606
|
+
case "Apple_Terminal": {
|
|
586
607
|
return 2;
|
|
587
608
|
}
|
|
588
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
589
|
-
return 1;
|
|
590
|
-
}
|
|
591
|
-
if ("COLORTERM" in env) {
|
|
592
|
-
return 1;
|
|
593
|
-
}
|
|
594
|
-
return min;
|
|
595
609
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
610
|
+
}
|
|
611
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
612
|
+
return 2;
|
|
613
|
+
}
|
|
614
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
615
|
+
return 1;
|
|
616
|
+
}
|
|
617
|
+
if ("COLORTERM" in env) {
|
|
618
|
+
return 1;
|
|
619
|
+
}
|
|
620
|
+
return min;
|
|
621
|
+
}
|
|
622
|
+
function createSupportsColor(stream, options = {}) {
|
|
623
|
+
const level = _supportsColor(stream, {
|
|
624
|
+
streamIsTTY: stream && stream.isTTY,
|
|
625
|
+
...options
|
|
626
|
+
});
|
|
627
|
+
return translateLevel(level);
|
|
628
|
+
}
|
|
629
|
+
var env, flagForceColor, supportsColor, supports_color_default;
|
|
630
|
+
var init_supports_color = (0, import_chunk_2ESYSVXG.__esm)({
|
|
631
|
+
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
|
|
632
|
+
"use strict";
|
|
633
|
+
({ env } = import_node_process.default);
|
|
634
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
635
|
+
flagForceColor = 0;
|
|
636
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
637
|
+
flagForceColor = 1;
|
|
602
638
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
639
|
+
supportsColor = {
|
|
640
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
641
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
607
642
|
};
|
|
643
|
+
supports_color_default = supportsColor;
|
|
608
644
|
}
|
|
609
645
|
});
|
|
610
646
|
var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
611
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
647
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js"(exports, module2) {
|
|
612
648
|
"use strict";
|
|
613
|
-
var
|
|
649
|
+
var tty2 = (0, import_chunk_2ESYSVXG.__require)("tty");
|
|
614
650
|
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
615
651
|
exports.init = init;
|
|
616
652
|
exports.log = log;
|
|
@@ -625,8 +661,8 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
625
661
|
);
|
|
626
662
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
627
663
|
try {
|
|
628
|
-
const
|
|
629
|
-
if (
|
|
664
|
+
const supportsColor2 = (init_supports_color(), (0, import_chunk_2ESYSVXG.__toCommonJS)(supports_color_exports));
|
|
665
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
630
666
|
exports.colors = [
|
|
631
667
|
20,
|
|
632
668
|
21,
|
|
@@ -728,7 +764,7 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
728
764
|
return obj;
|
|
729
765
|
}, {});
|
|
730
766
|
function useColors() {
|
|
731
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
767
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
732
768
|
}
|
|
733
769
|
function formatArgs(args) {
|
|
734
770
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -781,7 +817,7 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
781
817
|
}
|
|
782
818
|
});
|
|
783
819
|
var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
784
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
820
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports, module2) {
|
|
785
821
|
"use strict";
|
|
786
822
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
787
823
|
module2.exports = require_browser();
|
|
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_XTEEOIUV_exports = {};
|
|
20
|
+
__export(chunk_XTEEOIUV_exports, {
|
|
21
21
|
DbSeed: () => DbSeed
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_XTEEOIUV_exports);
|
|
24
24
|
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
25
25
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
26
26
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
@@ -214,7 +214,24 @@ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 va
|
|
|
214
214
|
return this.help();
|
|
215
215
|
}
|
|
216
216
|
const seedCommand = config.migrations?.seed;
|
|
217
|
-
if (!seedCommand)
|
|
217
|
+
if (!seedCommand) {
|
|
218
|
+
return (0, import_internals.format)(`\u26A0\uFE0F ${(0, import_chunk_SKRR5WT4.bold)("No seed command configured")}
|
|
219
|
+
|
|
220
|
+
To seed your database, add a ${(0, import_chunk_SKRR5WT4.bold)("seed")} property to the ${(0, import_chunk_SKRR5WT4.bold)("migrations")} section in your ${(0, import_chunk_SKRR5WT4.bold)("Prisma config")} file.
|
|
221
|
+
|
|
222
|
+
${(0, import_chunk_SKRR5WT4.bold)("Example")}
|
|
223
|
+
|
|
224
|
+
${(0, import_chunk_SKRR5WT4.dim)("// prisma.config.ts")}
|
|
225
|
+
export default defineConfig({
|
|
226
|
+
${(0, import_chunk_SKRR5WT4.bold)("migrations: {")}
|
|
227
|
+
${(0, import_chunk_SKRR5WT4.bold)(`seed: 'bun\xB7./prisma/seed.ts'`)},
|
|
228
|
+
${(0, import_chunk_SKRR5WT4.bold)("}")},
|
|
229
|
+
${(0, import_chunk_SKRR5WT4.dim)("datasource: {")}
|
|
230
|
+
${(0, import_chunk_SKRR5WT4.dim)(`url: '[your database URL]'`)},
|
|
231
|
+
${(0, import_chunk_SKRR5WT4.dim)("}")},
|
|
232
|
+
})
|
|
233
|
+
`);
|
|
234
|
+
}
|
|
218
235
|
const extraArgs = args._.join(" ");
|
|
219
236
|
const successfulSeeding = await (0, import_chunk_L7EZFBB4.executeSeedCommand)({ commandFromConfig: seedCommand, extraArgs });
|
|
220
237
|
if (successfulSeeding) {
|
package/dist/commands/DbSeed.js
CHANGED
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var DbSeed_exports = {};
|
|
20
20
|
__export(DbSeed_exports, {
|
|
21
|
-
DbSeed: () =>
|
|
21
|
+
DbSeed: () => import_chunk_XTEEOIUV.DbSeed
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbSeed_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_XTEEOIUV = require("../chunk-XTEEOIUV.js");
|
|
25
25
|
var import_chunk_L7EZFBB4 = require("../chunk-L7EZFBB4.js");
|
|
26
26
|
var import_chunk_3WDCTXHL = require("../chunk-3WDCTXHL.js");
|
|
27
27
|
var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
DbExecute: () => import_chunk_CQ6GMT2G.DbExecute,
|
|
24
24
|
DbPull: () => import_chunk_FEUKQ7J3.DbPull,
|
|
25
25
|
DbPush: () => import_chunk_QAOWTYGM.DbPush,
|
|
26
|
-
DbSeed: () =>
|
|
26
|
+
DbSeed: () => import_chunk_XTEEOIUV.DbSeed,
|
|
27
27
|
EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
|
|
28
28
|
Migrate: () => import_chunk_3MCWUFUJ.Migrate,
|
|
29
29
|
MigrateCommand: () => import_chunk_DYXUXG3K.MigrateCommand,
|
|
@@ -73,7 +73,7 @@ var import_chunk_XGTVKL4L = require("./chunk-XGTVKL4L.js");
|
|
|
73
73
|
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
74
74
|
var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
|
|
75
75
|
var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
|
|
76
|
-
var
|
|
76
|
+
var import_chunk_XTEEOIUV = require("./chunk-XTEEOIUV.js");
|
|
77
77
|
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
78
78
|
var import_chunk_3WDCTXHL = require("./chunk-3WDCTXHL.js");
|
|
79
79
|
var import_chunk_DYXUXG3K = require("./chunk-DYXUXG3K.js");
|
package/dist/utils/setupMSSQL.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(setupMSSQL_exports, {
|
|
|
32
32
|
tearDownMSSQL: () => tearDownMSSQL
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(setupMSSQL_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_3EF3YJPJ = require("../chunk-3EF3YJPJ.js");
|
|
36
36
|
var import_chunk_5R44VVVX = require("../chunk-5R44VVVX.js");
|
|
37
37
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
38
38
|
var import_util = __toESM(require("util"));
|
|
@@ -2006,7 +2006,7 @@ var require_connection_pool = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2006
2006
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/connection-pool.js"(exports, module2) {
|
|
2007
2007
|
"use strict";
|
|
2008
2008
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2009
|
-
var debug = (0,
|
|
2009
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:base");
|
|
2010
2010
|
var { parseSqlConnectionString } = require_lib2();
|
|
2011
2011
|
var tarn = require_tarn();
|
|
2012
2012
|
var { IDS } = require_utils2();
|
|
@@ -2680,7 +2680,7 @@ var require_global_connection = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2680
2680
|
var require_prepared_statement = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2681
2681
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/prepared-statement.js"(exports, module2) {
|
|
2682
2682
|
"use strict";
|
|
2683
|
-
var debug = (0,
|
|
2683
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:base");
|
|
2684
2684
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2685
2685
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
|
2686
2686
|
var globalConnection = require_global_connection();
|
|
@@ -2989,7 +2989,7 @@ var require_prepared_statement = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2989
2989
|
var require_request = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2990
2990
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/request.js"(exports, module2) {
|
|
2991
2991
|
"use strict";
|
|
2992
|
-
var debug = (0,
|
|
2992
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:base");
|
|
2993
2993
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2994
2994
|
var { Readable } = (0, import_chunk_2ESYSVXG.__require)("node:stream");
|
|
2995
2995
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
|
@@ -3537,7 +3537,7 @@ var require_isolationlevel = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
3537
3537
|
var require_transaction = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3538
3538
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/transaction.js"(exports, module2) {
|
|
3539
3539
|
"use strict";
|
|
3540
|
-
var debug = (0,
|
|
3540
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:base");
|
|
3541
3541
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
3542
3542
|
var { IDS } = require_utils2();
|
|
3543
3543
|
var globalConnection = require_global_connection();
|
|
@@ -16291,7 +16291,7 @@ var require_es_set_tostringtag = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16291
16291
|
}
|
|
16292
16292
|
});
|
|
16293
16293
|
var require_populate = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
16294
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
16294
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports, module2) {
|
|
16295
16295
|
"use strict";
|
|
16296
16296
|
module2.exports = function(dst, src) {
|
|
16297
16297
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -16302,7 +16302,7 @@ var require_populate = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16302
16302
|
}
|
|
16303
16303
|
});
|
|
16304
16304
|
var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
16305
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
16305
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports, module2) {
|
|
16306
16306
|
"use strict";
|
|
16307
16307
|
var CombinedStream = require_combined_stream();
|
|
16308
16308
|
var util2 = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
@@ -16312,12 +16312,12 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16312
16312
|
var parseUrl = (0, import_chunk_2ESYSVXG.__require)("url").parse;
|
|
16313
16313
|
var fs4 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
16314
16314
|
var Stream = (0, import_chunk_2ESYSVXG.__require)("stream").Stream;
|
|
16315
|
+
var crypto4 = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
16315
16316
|
var mime = require_mime_types();
|
|
16316
16317
|
var asynckit = require_asynckit();
|
|
16317
16318
|
var setToStringTag = require_es_set_tostringtag();
|
|
16319
|
+
var hasOwn = require_hasown();
|
|
16318
16320
|
var populate = require_populate();
|
|
16319
|
-
module2.exports = FormData2;
|
|
16320
|
-
util2.inherits(FormData2, CombinedStream);
|
|
16321
16321
|
function FormData2(options) {
|
|
16322
16322
|
if (!(this instanceof FormData2)) {
|
|
16323
16323
|
return new FormData2(options);
|
|
@@ -16331,16 +16331,17 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16331
16331
|
this[option] = options[option];
|
|
16332
16332
|
}
|
|
16333
16333
|
}
|
|
16334
|
+
util2.inherits(FormData2, CombinedStream);
|
|
16334
16335
|
FormData2.LINE_BREAK = "\r\n";
|
|
16335
16336
|
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
16336
16337
|
FormData2.prototype.append = function(field, value, options) {
|
|
16337
16338
|
options = options || {};
|
|
16338
|
-
if (typeof options
|
|
16339
|
+
if (typeof options === "string") {
|
|
16339
16340
|
options = { filename: options };
|
|
16340
16341
|
}
|
|
16341
16342
|
var append = CombinedStream.prototype.append.bind(this);
|
|
16342
|
-
if (typeof value
|
|
16343
|
-
value =
|
|
16343
|
+
if (typeof value === "number" || value == null) {
|
|
16344
|
+
value = String(value);
|
|
16344
16345
|
}
|
|
16345
16346
|
if (Array.isArray(value)) {
|
|
16346
16347
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -16356,7 +16357,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16356
16357
|
FormData2.prototype._trackLength = function(header, value, options) {
|
|
16357
16358
|
var valueLength = 0;
|
|
16358
16359
|
if (options.knownLength != null) {
|
|
16359
|
-
valueLength +=
|
|
16360
|
+
valueLength += Number(options.knownLength);
|
|
16360
16361
|
} else if (Buffer.isBuffer(value)) {
|
|
16361
16362
|
valueLength = value.length;
|
|
16362
16363
|
} else if (typeof value === "string") {
|
|
@@ -16364,7 +16365,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16364
16365
|
}
|
|
16365
16366
|
this._valueLength += valueLength;
|
|
16366
16367
|
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
16367
|
-
if (!value || !value.path && !(value.readable &&
|
|
16368
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
16368
16369
|
return;
|
|
16369
16370
|
}
|
|
16370
16371
|
if (!options.knownLength) {
|
|
@@ -16372,26 +16373,25 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16372
16373
|
}
|
|
16373
16374
|
};
|
|
16374
16375
|
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
16375
|
-
if (
|
|
16376
|
+
if (hasOwn(value, "fd")) {
|
|
16376
16377
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
16377
16378
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
16378
16379
|
} else {
|
|
16379
16380
|
fs4.stat(value.path, function(err, stat) {
|
|
16380
|
-
var fileSize;
|
|
16381
16381
|
if (err) {
|
|
16382
16382
|
callback(err);
|
|
16383
16383
|
return;
|
|
16384
16384
|
}
|
|
16385
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
16385
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
16386
16386
|
callback(null, fileSize);
|
|
16387
16387
|
});
|
|
16388
16388
|
}
|
|
16389
|
-
} else if (
|
|
16390
|
-
callback(null,
|
|
16391
|
-
} else if (
|
|
16389
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
16390
|
+
callback(null, Number(value.headers["content-length"]));
|
|
16391
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
16392
16392
|
value.on("response", function(response) {
|
|
16393
16393
|
value.pause();
|
|
16394
|
-
callback(null,
|
|
16394
|
+
callback(null, Number(response.headers["content-length"]));
|
|
16395
16395
|
});
|
|
16396
16396
|
value.resume();
|
|
16397
16397
|
} else {
|
|
@@ -16399,7 +16399,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16399
16399
|
}
|
|
16400
16400
|
};
|
|
16401
16401
|
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
16402
|
-
if (typeof options.header
|
|
16402
|
+
if (typeof options.header === "string") {
|
|
16403
16403
|
return options.header;
|
|
16404
16404
|
}
|
|
16405
16405
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -16411,12 +16411,12 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16411
16411
|
// if no content type. allow it to be empty array
|
|
16412
16412
|
"Content-Type": [].concat(contentType || [])
|
|
16413
16413
|
};
|
|
16414
|
-
if (typeof options.header
|
|
16414
|
+
if (typeof options.header === "object") {
|
|
16415
16415
|
populate(headers, options.header);
|
|
16416
16416
|
}
|
|
16417
16417
|
var header;
|
|
16418
16418
|
for (var prop in headers) {
|
|
16419
|
-
if (
|
|
16419
|
+
if (hasOwn(headers, prop)) {
|
|
16420
16420
|
header = headers[prop];
|
|
16421
16421
|
if (header == null) {
|
|
16422
16422
|
continue;
|
|
@@ -16432,34 +16432,33 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16432
16432
|
return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
|
|
16433
16433
|
};
|
|
16434
16434
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
16435
|
-
var filename
|
|
16435
|
+
var filename;
|
|
16436
16436
|
if (typeof options.filepath === "string") {
|
|
16437
16437
|
filename = path4.normalize(options.filepath).replace(/\\/g, "/");
|
|
16438
|
-
} else if (options.filename || value.name || value.path) {
|
|
16439
|
-
filename = path4.basename(options.filename || value.name || value.path);
|
|
16440
|
-
} else if (value.readable &&
|
|
16438
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
16439
|
+
filename = path4.basename(options.filename || value && (value.name || value.path));
|
|
16440
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
16441
16441
|
filename = path4.basename(value.client._httpMessage.path || "");
|
|
16442
16442
|
}
|
|
16443
16443
|
if (filename) {
|
|
16444
|
-
|
|
16444
|
+
return 'filename="' + filename + '"';
|
|
16445
16445
|
}
|
|
16446
|
-
return contentDisposition;
|
|
16447
16446
|
};
|
|
16448
16447
|
FormData2.prototype._getContentType = function(value, options) {
|
|
16449
16448
|
var contentType = options.contentType;
|
|
16450
|
-
if (!contentType && value.name) {
|
|
16449
|
+
if (!contentType && value && value.name) {
|
|
16451
16450
|
contentType = mime.lookup(value.name);
|
|
16452
16451
|
}
|
|
16453
|
-
if (!contentType && value.path) {
|
|
16452
|
+
if (!contentType && value && value.path) {
|
|
16454
16453
|
contentType = mime.lookup(value.path);
|
|
16455
16454
|
}
|
|
16456
|
-
if (!contentType && value.readable &&
|
|
16455
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
16457
16456
|
contentType = value.headers["content-type"];
|
|
16458
16457
|
}
|
|
16459
16458
|
if (!contentType && (options.filepath || options.filename)) {
|
|
16460
16459
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
16461
16460
|
}
|
|
16462
|
-
if (!contentType && typeof value
|
|
16461
|
+
if (!contentType && value && typeof value === "object") {
|
|
16463
16462
|
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
16464
16463
|
}
|
|
16465
16464
|
return contentType;
|
|
@@ -16483,13 +16482,16 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16483
16482
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
16484
16483
|
};
|
|
16485
16484
|
for (header in userHeaders) {
|
|
16486
|
-
if (
|
|
16485
|
+
if (hasOwn(userHeaders, header)) {
|
|
16487
16486
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
16488
16487
|
}
|
|
16489
16488
|
}
|
|
16490
16489
|
return formHeaders;
|
|
16491
16490
|
};
|
|
16492
16491
|
FormData2.prototype.setBoundary = function(boundary) {
|
|
16492
|
+
if (typeof boundary !== "string") {
|
|
16493
|
+
throw new TypeError("FormData boundary must be a string");
|
|
16494
|
+
}
|
|
16493
16495
|
this._boundary = boundary;
|
|
16494
16496
|
};
|
|
16495
16497
|
FormData2.prototype.getBoundary = function() {
|
|
@@ -16516,11 +16518,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16516
16518
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
16517
16519
|
};
|
|
16518
16520
|
FormData2.prototype._generateBoundary = function() {
|
|
16519
|
-
|
|
16520
|
-
for (var i = 0; i < 24; i++) {
|
|
16521
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
16522
|
-
}
|
|
16523
|
-
this._boundary = boundary;
|
|
16521
|
+
this._boundary = "--------------------------" + crypto4.randomBytes(12).toString("hex");
|
|
16524
16522
|
};
|
|
16525
16523
|
FormData2.prototype.getLengthSync = function() {
|
|
16526
16524
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -16560,8 +16558,10 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16560
16558
|
});
|
|
16561
16559
|
};
|
|
16562
16560
|
FormData2.prototype.submit = function(params, cb) {
|
|
16563
|
-
var request3
|
|
16564
|
-
|
|
16561
|
+
var request3;
|
|
16562
|
+
var options;
|
|
16563
|
+
var defaults = { method: "post" };
|
|
16564
|
+
if (typeof params === "string") {
|
|
16565
16565
|
params = parseUrl(params);
|
|
16566
16566
|
options = populate({
|
|
16567
16567
|
port: params.port,
|
|
@@ -16572,11 +16572,11 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16572
16572
|
} else {
|
|
16573
16573
|
options = populate(params, defaults);
|
|
16574
16574
|
if (!options.port) {
|
|
16575
|
-
options.port = options.protocol
|
|
16575
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
16576
16576
|
}
|
|
16577
16577
|
}
|
|
16578
16578
|
options.headers = this.getHeaders(params.headers);
|
|
16579
|
-
if (options.protocol
|
|
16579
|
+
if (options.protocol === "https:") {
|
|
16580
16580
|
request3 = https4.request(options);
|
|
16581
16581
|
} else {
|
|
16582
16582
|
request3 = http4.request(options);
|
|
@@ -16614,7 +16614,8 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16614
16614
|
FormData2.prototype.toString = function() {
|
|
16615
16615
|
return "[object FormData]";
|
|
16616
16616
|
};
|
|
16617
|
-
setToStringTag(FormData2, "FormData");
|
|
16617
|
+
setToStringTag(FormData2.prototype, "FormData");
|
|
16618
|
+
module2.exports = FormData2;
|
|
16618
16619
|
}
|
|
16619
16620
|
});
|
|
16620
16621
|
function formDataPolicy() {
|
|
@@ -16697,7 +16698,7 @@ var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16697
16698
|
createDebug.disable = disable2;
|
|
16698
16699
|
createDebug.enable = enable2;
|
|
16699
16700
|
createDebug.enabled = enabled2;
|
|
16700
|
-
createDebug.humanize = (0,
|
|
16701
|
+
createDebug.humanize = (0, import_chunk_3EF3YJPJ.require_ms)();
|
|
16701
16702
|
createDebug.destroy = destroy2;
|
|
16702
16703
|
Object.keys(env).forEach((key) => {
|
|
16703
16704
|
createDebug[key] = env[key];
|
|
@@ -17050,7 +17051,7 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17050
17051
|
);
|
|
17051
17052
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
17052
17053
|
try {
|
|
17053
|
-
const supportsColor = (0,
|
|
17054
|
+
const supportsColor = ((0, import_chunk_3EF3YJPJ.init_supports_color)(), (0, import_chunk_2ESYSVXG.__toCommonJS)(import_chunk_3EF3YJPJ.supports_color_exports));
|
|
17054
17055
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
17055
17056
|
exports.colors = [
|
|
17056
17057
|
20,
|
|
@@ -30136,7 +30137,7 @@ var require_TokenExpiredError = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
30136
30137
|
var require_timespan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
30137
30138
|
"../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/timespan.js"(exports, module2) {
|
|
30138
30139
|
"use strict";
|
|
30139
|
-
var ms = (0,
|
|
30140
|
+
var ms = (0, import_chunk_3EF3YJPJ.require_ms)();
|
|
30140
30141
|
module2.exports = function(time, iat) {
|
|
30141
30142
|
var timestamp = iat || Math.floor(Date.now() / 1e3);
|
|
30142
30143
|
if (typeof time === "string") {
|
|
@@ -67612,7 +67613,7 @@ var require_connection_pool2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
67612
67613
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/connection-pool.js"(exports, module2) {
|
|
67613
67614
|
"use strict";
|
|
67614
67615
|
var tds = require_tedious();
|
|
67615
|
-
var debug = (0,
|
|
67616
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:tedi");
|
|
67616
67617
|
var BaseConnectionPool = require_connection_pool();
|
|
67617
67618
|
var { IDS } = require_utils2();
|
|
67618
67619
|
var shared = require_shared();
|
|
@@ -67755,7 +67756,7 @@ var require_connection_pool2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
67755
67756
|
var require_transaction3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
67756
67757
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/transaction.js"(exports, module2) {
|
|
67757
67758
|
"use strict";
|
|
67758
|
-
var debug = (0,
|
|
67759
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:tedi");
|
|
67759
67760
|
var BaseTransaction = require_transaction();
|
|
67760
67761
|
var { IDS } = require_utils2();
|
|
67761
67762
|
var TransactionError = require_transaction_error();
|
|
@@ -68034,7 +68035,7 @@ var require_request3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
68034
68035
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/request.js"(exports, module2) {
|
|
68035
68036
|
"use strict";
|
|
68036
68037
|
var tds = require_tedious();
|
|
68037
|
-
var debug = (0,
|
|
68038
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mssql:tedi");
|
|
68038
68039
|
var BaseRequest = require_request();
|
|
68039
68040
|
var RequestError = require_request_error();
|
|
68040
68041
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
package/dist/utils/setupMongo.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(setupMongo_exports, {
|
|
|
33
33
|
tearDownMongo: () => tearDownMongo
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(setupMongo_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_3EF3YJPJ = require("../chunk-3EF3YJPJ.js");
|
|
37
37
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
38
38
|
var import_path = __toESM(require("path"));
|
|
39
39
|
var require_bson = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
@@ -42969,7 +42969,7 @@ var require_utils4 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
42969
42969
|
"../../node_modules/.pnpm/mongoose@8.15.0_socks@2.7.1/node_modules/mongoose/lib/utils.js"(exports) {
|
|
42970
42970
|
"use strict";
|
|
42971
42971
|
var UUID = require_bson().UUID;
|
|
42972
|
-
var ms = (0,
|
|
42972
|
+
var ms = (0, import_chunk_3EF3YJPJ.require_ms)();
|
|
42973
42973
|
var mpath = require_mpath();
|
|
42974
42974
|
var ObjectId2 = require_objectid();
|
|
42975
42975
|
var PopulateOptions = require_populateOptions();
|
|
@@ -55594,7 +55594,7 @@ var require_mquery = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
55594
55594
|
var assert = (0, import_chunk_2ESYSVXG.__require)("assert");
|
|
55595
55595
|
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
55596
55596
|
var utils = require_utils5();
|
|
55597
|
-
var debug = (0,
|
|
55597
|
+
var debug = (0, import_chunk_3EF3YJPJ.require_src)()("mquery");
|
|
55598
55598
|
function Query(criteria, options) {
|
|
55599
55599
|
if (!(this instanceof Query))
|
|
55600
55600
|
return new Query(criteria, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/migrate",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1-dev.1",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/migrate/src/index.d.ts",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"tempy": "1.0.1",
|
|
45
45
|
"ts-pattern": "5.6.2",
|
|
46
46
|
"typescript": "5.4.5",
|
|
47
|
-
"@prisma/adapter-libsql": "
|
|
47
|
+
"@prisma/adapter-libsql": "7.0.1-dev.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@prisma/internals": "*"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@prisma/engines-version": "
|
|
53
|
+
"@prisma/engines-version": "7.1.0-2.f09f2815f091dbba658cdcd2264306d88bb5bda6",
|
|
54
54
|
"prompts": "2.4.2",
|
|
55
|
-
"@prisma/client-generator-registry": "
|
|
56
|
-
"@prisma/config": "
|
|
57
|
-
"@prisma/debug": "
|
|
58
|
-
"@prisma/driver-adapter-utils": "
|
|
59
|
-
"@prisma/generator": "
|
|
60
|
-
"@prisma/
|
|
61
|
-
"@prisma/
|
|
55
|
+
"@prisma/client-generator-registry": "7.0.1-dev.1",
|
|
56
|
+
"@prisma/config": "7.0.1-dev.1",
|
|
57
|
+
"@prisma/debug": "7.0.1-dev.1",
|
|
58
|
+
"@prisma/driver-adapter-utils": "7.0.1-dev.1",
|
|
59
|
+
"@prisma/generator": "7.0.1-dev.1",
|
|
60
|
+
"@prisma/internals": "7.0.1-dev.1",
|
|
61
|
+
"@prisma/get-platform": "7.0.1-dev.1"
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
"README.md",
|