@prisma/migrate 6.6.0-dev.23 → 6.6.0-dev.25
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/CLI.js +3 -3
- package/dist/Migrate.js +6 -6
- package/dist/SchemaEngine.js +5 -5
- package/dist/bin.js +43 -43
- package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
- package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
- package/dist/{chunk-J4DAOTRR.js → chunk-324Z6HS7.js} +41 -43
- package/dist/chunk-33LPBNDX.js +1399 -0
- package/dist/{chunk-3WTXX6CQ.js → chunk-5LKIRKDL.js} +60 -60
- package/dist/{chunk-LOGAFLCN.js → chunk-5R44VVVX.js} +29 -29
- package/dist/{chunk-RP2N6UXA.js → chunk-AI6DH66U.js} +6 -6
- package/dist/{chunk-F62CN63F.js → chunk-B4SUSDC2.js} +30 -31
- package/dist/{chunk-ODH7XYW7.js → chunk-BURHAP6O.js} +46 -48
- package/dist/{chunk-W2SZNLK4.js → chunk-EJG7GKM7.js} +37 -39
- package/dist/{chunk-5PSO7BDO.js → chunk-EJUXYFV3.js} +15 -15
- package/dist/{chunk-MREGRQDD.js → chunk-FBWTUBJC.js} +46 -45
- package/dist/{chunk-MATFO4ZW.js → chunk-G7PJKEOV.js} +33 -33
- package/dist/{chunk-PW3LNSDM.js → chunk-GPNGRJAR.js} +33 -35
- package/dist/{chunk-NAXFX7K7.js → chunk-HJFSTAJX.js} +30 -32
- package/dist/{chunk-4ZFVT4RS.js → chunk-IINN7QUV.js} +165 -190
- package/dist/{chunk-IR55GBON.js → chunk-IWC5MH4R.js} +5 -5
- package/dist/{chunk-ZOEKRXDP.js → chunk-K43RXWQY.js} +21 -18
- package/dist/{chunk-3OQIC7NW.js → chunk-KMHFSDY6.js} +43 -45
- package/dist/{chunk-255BRND3.js → chunk-KRQEFTDT.js} +6 -6
- package/dist/{chunk-VVKOFN3Y.js → chunk-LLO7YF56.js} +44 -46
- package/dist/{chunk-MKK3GSDF.js → chunk-MKS2ZJJ5.js} +5 -5
- package/dist/{chunk-VZ23KD5C.js → chunk-NGQA5JTN.js} +8 -10
- package/dist/{chunk-IY67YUOD.js → chunk-NJYZPNB4.js} +54 -56
- package/dist/{chunk-7X4MPZIO.js → chunk-NYVWWESL.js} +322 -336
- package/dist/{chunk-EGPJABTW.js → chunk-TGV6QGEF.js} +69 -69
- package/dist/{chunk-3VFKYWQZ.js → chunk-URKH6SE2.js} +73 -80
- package/dist/{chunk-DLLXDCI2.js → chunk-VAJ4VX67.js} +5 -6
- package/dist/{chunk-N5UBDQRA.js → chunk-VVP3QZ7Q.js} +21 -21
- package/dist/{chunk-DAYMMAJB.js → chunk-YBNDKPPO.js} +36 -38
- package/dist/{chunk-OCQGHQED.js → chunk-YBX7R3MT.js} +12 -12
- package/dist/{chunk-ZYT5KWQF.js → chunk-YHLTCM34.js} +323 -337
- package/dist/{chunk-A6PMXMMT.js → chunk-ZB5NPOJW.js} +13 -13
- package/dist/{chunk-V5TUSOJX.js → chunk-ZGR2WQ62.js} +38 -40
- package/dist/commands/DbCommand.js +3 -3
- package/dist/commands/DbDrop.js +3 -3
- package/dist/commands/DbExecute.js +7 -7
- package/dist/commands/DbPull.js +9 -9
- package/dist/commands/DbPush.js +7 -7
- package/dist/commands/DbSeed.js +4 -4
- package/dist/commands/MigrateCommand.js +3 -3
- package/dist/commands/MigrateDeploy.js +9 -9
- package/dist/commands/MigrateDev.js +11 -11
- package/dist/commands/MigrateDiff.js +10 -10
- package/dist/commands/MigrateReset.js +10 -10
- package/dist/commands/MigrateResolve.js +7 -7
- package/dist/commands/MigrateStatus.js +7 -7
- package/dist/index.js +46 -46
- package/dist/{multipart-parser-54WEFGGN-NLZG56KM.js → multipart-parser-ASKQAOL4-WZ47HU6G.js} +92 -125
- package/dist/{multipart-parser-NDLECNMN.js → multipart-parser-QCI3Y5IB.js} +66 -68
- package/dist/types.js +1 -1
- package/dist/{typescript-WN4QH2CP.js → typescript-2LKASCMC.js} +33 -33
- package/dist/{typescript-AILDXN3I.js → typescript-H3AVJ6KX.js} +32 -32
- package/dist/utils/byline.js +1 -1
- package/dist/utils/captureStdout.js +3 -3
- package/dist/utils/countModelsAndTypes.js +1 -1
- package/dist/utils/customColors.js +1 -1
- package/dist/utils/ensureDatabaseExists.js +1 -1
- package/dist/utils/errors.js +1 -1
- package/dist/utils/flagErrors.js +1 -1
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/getSchemaPathAndPrint.js +1 -1
- package/dist/utils/handleEvaluateDataloss.js +1 -1
- package/dist/utils/introspectSql.js +5 -5
- package/dist/utils/isSchemaEmpty.js +1 -1
- package/dist/utils/now.js +1 -1
- package/dist/utils/printDatasource.js +1 -1
- package/dist/utils/printDatasources.js +5 -5
- package/dist/utils/printFiles.js +5 -5
- package/dist/utils/printIntrospectedSchema.js +1 -1
- package/dist/utils/printMigrationId.js +1 -1
- package/dist/utils/promptForMigrationName.js +3 -3
- package/dist/utils/removeSchemaFiles.js +1 -1
- package/dist/utils/replaceOrAddDatasource.js +1 -1
- package/dist/utils/replaceOrAddDatasource.test.js +1 -1
- package/dist/utils/saveSchemaFiles.js +1 -1
- package/dist/utils/seed.js +4 -4
- package/dist/utils/setupCockroach.js +3 -3
- package/dist/utils/setupMSSQL.js +759 -675
- package/dist/utils/setupMongo.js +552 -552
- package/dist/utils/setupMysql.js +508 -563
- package/dist/utils/setupPostgres.js +3 -3
- package/dist/utils/spinner.js +4 -4
- package/dist/utils/unixSocket.js +1 -1
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +6 -6
- package/dist/chunk-YYPMC5FN.js +0 -1407
|
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_NYVWWESL_exports = {};
|
|
30
|
+
__export(chunk_NYVWWESL_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_NYVWWESL_exports);
|
|
34
|
+
var import_chunk_ZB5NPOJW = require("./chunk-ZB5NPOJW.js");
|
|
35
|
+
var import_chunk_33LPBNDX = require("./chunk-33LPBNDX.js");
|
|
36
|
+
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
37
|
+
var import_chunk_VVP3QZ7Q = require("./chunk-VVP3QZ7Q.js");
|
|
38
|
+
var import_chunk_G7PJKEOV = require("./chunk-G7PJKEOV.js");
|
|
39
39
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
41
41
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
42
42
|
var import_internals = require("@prisma/internals");
|
|
43
43
|
var import_path = __toESM(require("path"));
|
|
@@ -57,7 +57,7 @@ var import_debug3 = __toESM(require("@prisma/debug"));
|
|
|
57
57
|
var import_get_platform = require("@prisma/get-platform");
|
|
58
58
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
59
59
|
var import_node_path4 = __toESM(require("node:path"));
|
|
60
|
-
var require_promisify = (0,
|
|
60
|
+
var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
61
61
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/promisify.js"(exports, module2) {
|
|
62
62
|
"use strict";
|
|
63
63
|
module2.exports = (fn) => {
|
|
@@ -81,10 +81,10 @@ var require_promisify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
var require_fs = (0,
|
|
84
|
+
var require_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
85
85
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/fs.js"(exports, module2) {
|
|
86
86
|
"use strict";
|
|
87
|
-
var fs3 = (0,
|
|
87
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
88
88
|
var promisify2 = require_promisify();
|
|
89
89
|
var isCallbackMethod = (key) => {
|
|
90
90
|
return [
|
|
@@ -119,7 +119,7 @@ var require_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
119
119
|
module2.exports = adaptAllMethods();
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
var require_validate = (0,
|
|
122
|
+
var require_validate = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
123
123
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/validate.js"(exports, module2) {
|
|
124
124
|
"use strict";
|
|
125
125
|
var prettyPrintTypes = (types) => {
|
|
@@ -230,7 +230,7 @@ var require_validate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
var require_mode = (0,
|
|
233
|
+
var require_mode = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
234
234
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/mode.js"(exports) {
|
|
235
235
|
"use strict";
|
|
236
236
|
exports.normalizeFileMode = (mode) => {
|
|
@@ -244,7 +244,7 @@ var require_mode = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
var require_remove = (0,
|
|
247
|
+
var require_remove = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
248
248
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/remove.js"(exports) {
|
|
249
249
|
"use strict";
|
|
250
250
|
var fs3 = require_fs();
|
|
@@ -272,10 +272,10 @@ var require_remove = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
272
272
|
exports.async = removeAsync;
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
var require_dir = (0,
|
|
275
|
+
var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
276
276
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/dir.js"(exports) {
|
|
277
277
|
"use strict";
|
|
278
|
-
var pathUtil = (0,
|
|
278
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
279
279
|
var fs3 = require_fs();
|
|
280
280
|
var modeUtil = require_mode();
|
|
281
281
|
var validate = require_validate();
|
|
@@ -454,10 +454,10 @@ var require_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
454
454
|
exports.createAsync = createBrandNewDirectoryAsync;
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
|
-
var require_write = (0,
|
|
457
|
+
var require_write = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
458
458
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/write.js"(exports) {
|
|
459
459
|
"use strict";
|
|
460
|
-
var pathUtil = (0,
|
|
460
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
461
461
|
var fs3 = require_fs();
|
|
462
462
|
var validate = require_validate();
|
|
463
463
|
var dir = require_dir();
|
|
@@ -546,7 +546,7 @@ var require_write = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
546
546
|
exports.async = writeAsync;
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
|
-
var require_append = (0,
|
|
549
|
+
var require_append = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
550
550
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/append.js"(exports) {
|
|
551
551
|
"use strict";
|
|
552
552
|
var fs3 = require_fs();
|
|
@@ -587,7 +587,7 @@ var require_append = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
587
587
|
exports.async = appendAsync;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
var require_file = (0,
|
|
590
|
+
var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
591
591
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/file.js"(exports) {
|
|
592
592
|
"use strict";
|
|
593
593
|
var fs3 = require_fs();
|
|
@@ -742,11 +742,11 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
742
742
|
exports.async = fileAsync;
|
|
743
743
|
}
|
|
744
744
|
});
|
|
745
|
-
var require_inspect = (0,
|
|
745
|
+
var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
746
746
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect.js"(exports) {
|
|
747
747
|
"use strict";
|
|
748
|
-
var crypto = (0,
|
|
749
|
-
var pathUtil = (0,
|
|
748
|
+
var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
749
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
750
750
|
var fs3 = require_fs();
|
|
751
751
|
var validate = require_validate();
|
|
752
752
|
var supportedChecksumAlgorithms = ["md5", "sha1", "sha256", "sha512"];
|
|
@@ -888,7 +888,7 @@ var require_inspect = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
888
888
|
exports.async = inspectAsync;
|
|
889
889
|
}
|
|
890
890
|
});
|
|
891
|
-
var require_list = (0,
|
|
891
|
+
var require_list = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
892
892
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/list.js"(exports) {
|
|
893
893
|
"use strict";
|
|
894
894
|
var fs3 = require_fs();
|
|
@@ -925,11 +925,11 @@ var require_list = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
925
925
|
exports.async = listAsync;
|
|
926
926
|
}
|
|
927
927
|
});
|
|
928
|
-
var require_tree_walker = (0,
|
|
928
|
+
var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
929
929
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/tree_walker.js"(exports) {
|
|
930
930
|
"use strict";
|
|
931
|
-
var fs3 = (0,
|
|
932
|
-
var pathUtil = (0,
|
|
931
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
932
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
933
933
|
var inspect = require_inspect();
|
|
934
934
|
var list = require_list();
|
|
935
935
|
var fileType = (dirent) => {
|
|
@@ -1129,14 +1129,14 @@ var require_tree_walker = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1129
1129
|
exports.async = initialWalkAsync;
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
|
-
var require_path = (0,
|
|
1132
|
+
var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1133
1133
|
"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(exports, module2) {
|
|
1134
1134
|
"use strict";
|
|
1135
1135
|
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
1136
1136
|
module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
|
-
var require_balanced_match = (0,
|
|
1139
|
+
var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1140
1140
|
"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module2) {
|
|
1141
1141
|
"use strict";
|
|
1142
1142
|
module2.exports = balanced;
|
|
@@ -1192,7 +1192,7 @@ var require_balanced_match = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
});
|
|
1195
|
-
var require_brace_expansion = (0,
|
|
1195
|
+
var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1196
1196
|
"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
|
|
1197
1197
|
"use strict";
|
|
1198
1198
|
var balanced = require_balanced_match();
|
|
@@ -1341,7 +1341,7 @@ var require_brace_expansion = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
|
-
var require_minimatch = (0,
|
|
1344
|
+
var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1345
1345
|
"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
1346
1346
|
"use strict";
|
|
1347
1347
|
var minimatch = module2.exports = (p, pattern, options = {}) => {
|
|
@@ -1872,7 +1872,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1872
1872
|
minimatch.Minimatch = Minimatch;
|
|
1873
1873
|
}
|
|
1874
1874
|
});
|
|
1875
|
-
var require_matcher = (0,
|
|
1875
|
+
var require_matcher = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1876
1876
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/matcher.js"(exports) {
|
|
1877
1877
|
"use strict";
|
|
1878
1878
|
var Minimatch = require_minimatch().Minimatch;
|
|
@@ -1939,10 +1939,10 @@ var require_matcher = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1939
1939
|
};
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
|
-
var require_find = (0,
|
|
1942
|
+
var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1943
1943
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/find.js"(exports) {
|
|
1944
1944
|
"use strict";
|
|
1945
|
-
var pathUtil = (0,
|
|
1945
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
1946
1946
|
var treeWalker = require_tree_walker();
|
|
1947
1947
|
var inspect = require_inspect();
|
|
1948
1948
|
var matcher = require_matcher();
|
|
@@ -2121,11 +2121,11 @@ var require_find = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2121
2121
|
exports.async = findAsyncInit;
|
|
2122
2122
|
}
|
|
2123
2123
|
});
|
|
2124
|
-
var require_inspect_tree = (0,
|
|
2124
|
+
var require_inspect_tree = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2125
2125
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect_tree.js"(exports) {
|
|
2126
2126
|
"use strict";
|
|
2127
|
-
var crypto = (0,
|
|
2128
|
-
var pathUtil = (0,
|
|
2127
|
+
var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
2128
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2129
2129
|
var inspect = require_inspect();
|
|
2130
2130
|
var list = require_list();
|
|
2131
2131
|
var validate = require_validate();
|
|
@@ -2275,7 +2275,7 @@ var require_inspect_tree = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2275
2275
|
exports.async = inspectTreeAsync;
|
|
2276
2276
|
}
|
|
2277
2277
|
});
|
|
2278
|
-
var require_exists = (0,
|
|
2278
|
+
var require_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2279
2279
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/exists.js"(exports) {
|
|
2280
2280
|
"use strict";
|
|
2281
2281
|
var fs3 = require_fs();
|
|
@@ -2324,10 +2324,10 @@ var require_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2324
2324
|
exports.async = existsAsync;
|
|
2325
2325
|
}
|
|
2326
2326
|
});
|
|
2327
|
-
var require_copy = (0,
|
|
2327
|
+
var require_copy = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2328
2328
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/copy.js"(exports) {
|
|
2329
2329
|
"use strict";
|
|
2330
|
-
var pathUtil = (0,
|
|
2330
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2331
2331
|
var fs3 = require_fs();
|
|
2332
2332
|
var dir = require_dir();
|
|
2333
2333
|
var exists = require_exists();
|
|
@@ -2589,10 +2589,10 @@ var require_copy = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2589
2589
|
exports.async = copyAsync;
|
|
2590
2590
|
}
|
|
2591
2591
|
});
|
|
2592
|
-
var require_move = (0,
|
|
2592
|
+
var require_move = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2593
2593
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/move.js"(exports) {
|
|
2594
2594
|
"use strict";
|
|
2595
|
-
var pathUtil = (0,
|
|
2595
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2596
2596
|
var fs3 = require_fs();
|
|
2597
2597
|
var validate = require_validate();
|
|
2598
2598
|
var copy = require_copy();
|
|
@@ -2693,7 +2693,7 @@ var require_move = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2693
2693
|
exports.async = moveAsync;
|
|
2694
2694
|
}
|
|
2695
2695
|
});
|
|
2696
|
-
var require_read = (0,
|
|
2696
|
+
var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2697
2697
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/read.js"(exports) {
|
|
2698
2698
|
"use strict";
|
|
2699
2699
|
var fs3 = require_fs();
|
|
@@ -2789,10 +2789,10 @@ var require_read = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2789
2789
|
exports.async = readAsync;
|
|
2790
2790
|
}
|
|
2791
2791
|
});
|
|
2792
|
-
var require_rename = (0,
|
|
2792
|
+
var require_rename = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2793
2793
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/rename.js"(exports) {
|
|
2794
2794
|
"use strict";
|
|
2795
|
-
var pathUtil = (0,
|
|
2795
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2796
2796
|
var move = require_move();
|
|
2797
2797
|
var validate = require_validate();
|
|
2798
2798
|
var validateInput = (methodName, path7, newName, options) => {
|
|
@@ -2821,10 +2821,10 @@ var require_rename = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2821
2821
|
exports.async = renameAsync;
|
|
2822
2822
|
}
|
|
2823
2823
|
});
|
|
2824
|
-
var require_symlink = (0,
|
|
2824
|
+
var require_symlink = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2825
2825
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/symlink.js"(exports) {
|
|
2826
2826
|
"use strict";
|
|
2827
|
-
var pathUtil = (0,
|
|
2827
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2828
2828
|
var fs3 = require_fs();
|
|
2829
2829
|
var validate = require_validate();
|
|
2830
2830
|
var dir = require_dir();
|
|
@@ -2863,20 +2863,20 @@ var require_symlink = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2863
2863
|
exports.async = symlinkAsync;
|
|
2864
2864
|
}
|
|
2865
2865
|
});
|
|
2866
|
-
var require_streams = (0,
|
|
2866
|
+
var require_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2867
2867
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/streams.js"(exports) {
|
|
2868
2868
|
"use strict";
|
|
2869
|
-
var fs3 = (0,
|
|
2869
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
2870
2870
|
exports.createWriteStream = fs3.createWriteStream;
|
|
2871
2871
|
exports.createReadStream = fs3.createReadStream;
|
|
2872
2872
|
}
|
|
2873
2873
|
});
|
|
2874
|
-
var require_tmp_dir = (0,
|
|
2874
|
+
var require_tmp_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2875
2875
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/tmp_dir.js"(exports) {
|
|
2876
2876
|
"use strict";
|
|
2877
|
-
var pathUtil = (0,
|
|
2878
|
-
var os = (0,
|
|
2879
|
-
var crypto = (0,
|
|
2877
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2878
|
+
var os = (0, import_chunk_2ESYSVXG.__require)("os");
|
|
2879
|
+
var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
2880
2880
|
var dir = require_dir();
|
|
2881
2881
|
var fs3 = require_fs();
|
|
2882
2882
|
var validate = require_validate();
|
|
@@ -2955,11 +2955,11 @@ var require_tmp_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2955
2955
|
exports.async = tmpDirAsync;
|
|
2956
2956
|
}
|
|
2957
2957
|
});
|
|
2958
|
-
var require_jetpack = (0,
|
|
2958
|
+
var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2959
2959
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/jetpack.js"(exports, module2) {
|
|
2960
2960
|
"use strict";
|
|
2961
|
-
var util = (0,
|
|
2962
|
-
var pathUtil = (0,
|
|
2961
|
+
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
2962
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2963
2963
|
var append = require_append();
|
|
2964
2964
|
var dir = require_dir();
|
|
2965
2965
|
var file = require_file();
|
|
@@ -3174,14 +3174,14 @@ var require_jetpack = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3174
3174
|
module2.exports = jetpackContext;
|
|
3175
3175
|
}
|
|
3176
3176
|
});
|
|
3177
|
-
var require_main = (0,
|
|
3177
|
+
var require_main = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3178
3178
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/main.js"(exports, module2) {
|
|
3179
3179
|
"use strict";
|
|
3180
3180
|
var jetpack = require_jetpack();
|
|
3181
3181
|
module2.exports = jetpack();
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
|
-
var require_universalify = (0,
|
|
3184
|
+
var require_universalify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3185
3185
|
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
3186
3186
|
"use strict";
|
|
3187
3187
|
exports.fromCallback = function(fn) {
|
|
@@ -3207,10 +3207,10 @@ var require_universalify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
});
|
|
3210
|
-
var require_polyfills = (0,
|
|
3210
|
+
var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3211
3211
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
3212
3212
|
"use strict";
|
|
3213
|
-
var constants = (0,
|
|
3213
|
+
var constants = (0, import_chunk_2ESYSVXG.__require)("constants");
|
|
3214
3214
|
var origCwd = process.cwd;
|
|
3215
3215
|
var cwd = null;
|
|
3216
3216
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -3494,10 +3494,10 @@ var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
3496
3496
|
});
|
|
3497
|
-
var require_legacy_streams = (0,
|
|
3497
|
+
var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3498
3498
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
3499
3499
|
"use strict";
|
|
3500
|
-
var Stream = (0,
|
|
3500
|
+
var Stream = (0, import_chunk_2ESYSVXG.__require)("stream").Stream;
|
|
3501
3501
|
module2.exports = legacy;
|
|
3502
3502
|
function legacy(fs3) {
|
|
3503
3503
|
return {
|
|
@@ -3589,7 +3589,7 @@ var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
3591
|
});
|
|
3592
|
-
var require_clone = (0,
|
|
3592
|
+
var require_clone = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3593
3593
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
3594
3594
|
"use strict";
|
|
3595
3595
|
module2.exports = clone;
|
|
@@ -3610,14 +3610,14 @@ var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
});
|
|
3613
|
-
var require_graceful_fs = (0,
|
|
3613
|
+
var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3614
3614
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
3615
3615
|
"use strict";
|
|
3616
|
-
var fs3 = (0,
|
|
3616
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
3617
3617
|
var polyfills = require_polyfills();
|
|
3618
3618
|
var legacy = require_legacy_streams();
|
|
3619
3619
|
var clone = require_clone();
|
|
3620
|
-
var util = (0,
|
|
3620
|
+
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
3621
3621
|
var gracefulQueue;
|
|
3622
3622
|
var previousSymbol;
|
|
3623
3623
|
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
@@ -3676,7 +3676,7 @@ var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3676
3676
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
3677
3677
|
process.on("exit", function() {
|
|
3678
3678
|
debug4(fs3[gracefulQueue]);
|
|
3679
|
-
(0,
|
|
3679
|
+
(0, import_chunk_2ESYSVXG.__require)("assert").equal(fs3[gracefulQueue].length, 0);
|
|
3680
3680
|
});
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
@@ -3979,7 +3979,7 @@ var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3979
3979
|
}
|
|
3980
3980
|
}
|
|
3981
3981
|
});
|
|
3982
|
-
var require_fs2 = (0,
|
|
3982
|
+
var require_fs2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3983
3983
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
3984
3984
|
"use strict";
|
|
3985
3985
|
var u = require_universalify().fromCallback;
|
|
@@ -4093,10 +4093,10 @@ var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4093
4093
|
}
|
|
4094
4094
|
}
|
|
4095
4095
|
});
|
|
4096
|
-
var require_utils = (0,
|
|
4096
|
+
var require_utils = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4097
4097
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
4098
4098
|
"use strict";
|
|
4099
|
-
var path7 = (0,
|
|
4099
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4100
4100
|
module2.exports.checkPath = function checkPath(pth) {
|
|
4101
4101
|
if (process.platform === "win32") {
|
|
4102
4102
|
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path7.parse(pth).root, ""));
|
|
@@ -4109,7 +4109,7 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4109
4109
|
};
|
|
4110
4110
|
}
|
|
4111
4111
|
});
|
|
4112
|
-
var require_make_dir = (0,
|
|
4112
|
+
var require_make_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4113
4113
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
|
|
4114
4114
|
"use strict";
|
|
4115
4115
|
var fs3 = require_fs2();
|
|
@@ -4135,7 +4135,7 @@ var require_make_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4135
4135
|
};
|
|
4136
4136
|
}
|
|
4137
4137
|
});
|
|
4138
|
-
var require_mkdirs = (0,
|
|
4138
|
+
var require_mkdirs = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4139
4139
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) {
|
|
4140
4140
|
"use strict";
|
|
4141
4141
|
var u = require_universalify().fromPromise;
|
|
@@ -4152,7 +4152,7 @@ var require_mkdirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4152
4152
|
};
|
|
4153
4153
|
}
|
|
4154
4154
|
});
|
|
4155
|
-
var require_path_exists = (0,
|
|
4155
|
+
var require_path_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4156
4156
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
|
|
4157
4157
|
"use strict";
|
|
4158
4158
|
var u = require_universalify().fromPromise;
|
|
@@ -4166,7 +4166,7 @@ var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4166
4166
|
};
|
|
4167
4167
|
}
|
|
4168
4168
|
});
|
|
4169
|
-
var require_utimes = (0,
|
|
4169
|
+
var require_utimes = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4170
4170
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
4171
4171
|
"use strict";
|
|
4172
4172
|
var fs3 = require_fs2();
|
|
@@ -4198,11 +4198,11 @@ var require_utimes = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4198
4198
|
};
|
|
4199
4199
|
}
|
|
4200
4200
|
});
|
|
4201
|
-
var require_stat = (0,
|
|
4201
|
+
var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4202
4202
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
4203
4203
|
"use strict";
|
|
4204
4204
|
var fs3 = require_fs2();
|
|
4205
|
-
var path7 = (0,
|
|
4205
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4206
4206
|
var u = require_universalify().fromPromise;
|
|
4207
4207
|
function getStats(src, dest, opts) {
|
|
4208
4208
|
const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
|
|
@@ -4328,11 +4328,11 @@ var require_stat = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4328
4328
|
};
|
|
4329
4329
|
}
|
|
4330
4330
|
});
|
|
4331
|
-
var require_copy2 = (0,
|
|
4331
|
+
var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4332
4332
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
4333
4333
|
"use strict";
|
|
4334
4334
|
var fs3 = require_fs2();
|
|
4335
|
-
var path7 = (0,
|
|
4335
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4336
4336
|
var { mkdirs } = require_mkdirs();
|
|
4337
4337
|
var { pathExists } = require_path_exists();
|
|
4338
4338
|
var { utimesMillis } = require_utimes();
|
|
@@ -4455,11 +4455,11 @@ var require_copy2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4455
4455
|
module2.exports = copy;
|
|
4456
4456
|
}
|
|
4457
4457
|
});
|
|
4458
|
-
var require_copy_sync = (0,
|
|
4458
|
+
var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4459
4459
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
4460
4460
|
"use strict";
|
|
4461
4461
|
var fs3 = require_graceful_fs();
|
|
4462
|
-
var path7 = (0,
|
|
4462
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4463
4463
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
4464
4464
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
4465
4465
|
var stat2 = require_stat();
|
|
@@ -4589,7 +4589,7 @@ var require_copy_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4589
4589
|
module2.exports = copySync;
|
|
4590
4590
|
}
|
|
4591
4591
|
});
|
|
4592
|
-
var require_copy3 = (0,
|
|
4592
|
+
var require_copy3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4593
4593
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/index.js"(exports, module2) {
|
|
4594
4594
|
"use strict";
|
|
4595
4595
|
var u = require_universalify().fromPromise;
|
|
@@ -4599,7 +4599,7 @@ var require_copy3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4599
4599
|
};
|
|
4600
4600
|
}
|
|
4601
4601
|
});
|
|
4602
|
-
var require_remove2 = (0,
|
|
4602
|
+
var require_remove2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4603
4603
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
|
|
4604
4604
|
"use strict";
|
|
4605
4605
|
var fs3 = require_graceful_fs();
|
|
@@ -4616,12 +4616,12 @@ var require_remove2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4616
4616
|
};
|
|
4617
4617
|
}
|
|
4618
4618
|
});
|
|
4619
|
-
var require_empty = (0,
|
|
4619
|
+
var require_empty = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4620
4620
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
|
|
4621
4621
|
"use strict";
|
|
4622
4622
|
var u = require_universalify().fromPromise;
|
|
4623
4623
|
var fs3 = require_fs2();
|
|
4624
|
-
var path7 = (0,
|
|
4624
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4625
4625
|
var mkdir = require_mkdirs();
|
|
4626
4626
|
var remove = require_remove2();
|
|
4627
4627
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -4653,11 +4653,11 @@ var require_empty = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4653
4653
|
};
|
|
4654
4654
|
}
|
|
4655
4655
|
});
|
|
4656
|
-
var require_file2 = (0,
|
|
4656
|
+
var require_file2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4657
4657
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
4658
4658
|
"use strict";
|
|
4659
4659
|
var u = require_universalify().fromPromise;
|
|
4660
|
-
var path7 = (0,
|
|
4660
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4661
4661
|
var fs3 = require_fs2();
|
|
4662
4662
|
var mkdir = require_mkdirs();
|
|
4663
4663
|
async function createFile(file) {
|
|
@@ -4710,11 +4710,11 @@ var require_file2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4710
4710
|
};
|
|
4711
4711
|
}
|
|
4712
4712
|
});
|
|
4713
|
-
var require_link = (0,
|
|
4713
|
+
var require_link = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4714
4714
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
4715
4715
|
"use strict";
|
|
4716
4716
|
var u = require_universalify().fromPromise;
|
|
4717
|
-
var path7 = (0,
|
|
4717
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4718
4718
|
var fs3 = require_fs2();
|
|
4719
4719
|
var mkdir = require_mkdirs();
|
|
4720
4720
|
var { pathExists } = require_path_exists();
|
|
@@ -4765,10 +4765,10 @@ var require_link = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4765
4765
|
};
|
|
4766
4766
|
}
|
|
4767
4767
|
});
|
|
4768
|
-
var require_symlink_paths = (0,
|
|
4768
|
+
var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4769
4769
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
4770
4770
|
"use strict";
|
|
4771
|
-
var path7 = (0,
|
|
4771
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4772
4772
|
var fs3 = require_fs2();
|
|
4773
4773
|
var { pathExists } = require_path_exists();
|
|
4774
4774
|
var u = require_universalify().fromPromise;
|
|
@@ -4836,7 +4836,7 @@ var require_symlink_paths = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4836
4836
|
};
|
|
4837
4837
|
}
|
|
4838
4838
|
});
|
|
4839
|
-
var require_symlink_type = (0,
|
|
4839
|
+
var require_symlink_type = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4840
4840
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
|
|
4841
4841
|
"use strict";
|
|
4842
4842
|
var fs3 = require_fs2();
|
|
@@ -4867,11 +4867,11 @@ var require_symlink_type = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4867
4867
|
};
|
|
4868
4868
|
}
|
|
4869
4869
|
});
|
|
4870
|
-
var require_symlink2 = (0,
|
|
4870
|
+
var require_symlink2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4871
4871
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
4872
4872
|
"use strict";
|
|
4873
4873
|
var u = require_universalify().fromPromise;
|
|
4874
|
-
var path7 = (0,
|
|
4874
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4875
4875
|
var fs3 = require_fs2();
|
|
4876
4876
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
4877
4877
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -4926,7 +4926,7 @@ var require_symlink2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4926
4926
|
};
|
|
4927
4927
|
}
|
|
4928
4928
|
});
|
|
4929
|
-
var require_ensure = (0,
|
|
4929
|
+
var require_ensure = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4930
4930
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
|
|
4931
4931
|
"use strict";
|
|
4932
4932
|
var { createFile, createFileSync } = require_file2();
|
|
@@ -4951,7 +4951,7 @@ var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4951
4951
|
};
|
|
4952
4952
|
}
|
|
4953
4953
|
});
|
|
4954
|
-
var require_utils2 = (0,
|
|
4954
|
+
var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4955
4955
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
4956
4956
|
"use strict";
|
|
4957
4957
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
@@ -4966,14 +4966,14 @@ var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4966
4966
|
module2.exports = { stringify, stripBom };
|
|
4967
4967
|
}
|
|
4968
4968
|
});
|
|
4969
|
-
var require_jsonfile = (0,
|
|
4969
|
+
var require_jsonfile = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4970
4970
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
4971
4971
|
"use strict";
|
|
4972
4972
|
var _fs;
|
|
4973
4973
|
try {
|
|
4974
4974
|
_fs = require_graceful_fs();
|
|
4975
4975
|
} catch (_) {
|
|
4976
|
-
_fs = (0,
|
|
4976
|
+
_fs = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
4977
4977
|
}
|
|
4978
4978
|
var universalify = require_universalify();
|
|
4979
4979
|
var { stringify, stripBom } = require_utils2();
|
|
@@ -5038,7 +5038,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5038
5038
|
module2.exports = jsonfile;
|
|
5039
5039
|
}
|
|
5040
5040
|
});
|
|
5041
|
-
var require_jsonfile2 = (0,
|
|
5041
|
+
var require_jsonfile2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5042
5042
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) {
|
|
5043
5043
|
"use strict";
|
|
5044
5044
|
var jsonFile = require_jsonfile();
|
|
@@ -5051,12 +5051,12 @@ var require_jsonfile2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5051
5051
|
};
|
|
5052
5052
|
}
|
|
5053
5053
|
});
|
|
5054
|
-
var require_output_file = (0,
|
|
5054
|
+
var require_output_file = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5055
5055
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) {
|
|
5056
5056
|
"use strict";
|
|
5057
5057
|
var u = require_universalify().fromPromise;
|
|
5058
5058
|
var fs3 = require_fs2();
|
|
5059
|
-
var path7 = (0,
|
|
5059
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5060
5060
|
var mkdir = require_mkdirs();
|
|
5061
5061
|
var pathExists = require_path_exists().pathExists;
|
|
5062
5062
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
@@ -5079,7 +5079,7 @@ var require_output_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5079
5079
|
};
|
|
5080
5080
|
}
|
|
5081
5081
|
});
|
|
5082
|
-
var require_output_json = (0,
|
|
5082
|
+
var require_output_json = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5083
5083
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
|
|
5084
5084
|
"use strict";
|
|
5085
5085
|
var { stringify } = require_utils2();
|
|
@@ -5091,7 +5091,7 @@ var require_output_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5091
5091
|
module2.exports = outputJson;
|
|
5092
5092
|
}
|
|
5093
5093
|
});
|
|
5094
|
-
var require_output_json_sync = (0,
|
|
5094
|
+
var require_output_json_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5095
5095
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
|
|
5096
5096
|
"use strict";
|
|
5097
5097
|
var { stringify } = require_utils2();
|
|
@@ -5103,7 +5103,7 @@ var require_output_json_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5103
5103
|
module2.exports = outputJsonSync;
|
|
5104
5104
|
}
|
|
5105
5105
|
});
|
|
5106
|
-
var require_json = (0,
|
|
5106
|
+
var require_json = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5107
5107
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/index.js"(exports, module2) {
|
|
5108
5108
|
"use strict";
|
|
5109
5109
|
var u = require_universalify().fromPromise;
|
|
@@ -5119,11 +5119,11 @@ var require_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5119
5119
|
module2.exports = jsonFile;
|
|
5120
5120
|
}
|
|
5121
5121
|
});
|
|
5122
|
-
var require_move2 = (0,
|
|
5122
|
+
var require_move2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5123
5123
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
5124
5124
|
"use strict";
|
|
5125
5125
|
var fs3 = require_fs2();
|
|
5126
|
-
var path7 = (0,
|
|
5126
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5127
5127
|
var { copy } = require_copy3();
|
|
5128
5128
|
var { remove } = require_remove2();
|
|
5129
5129
|
var { mkdirp } = require_mkdirs();
|
|
@@ -5169,11 +5169,11 @@ var require_move2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5169
5169
|
module2.exports = move;
|
|
5170
5170
|
}
|
|
5171
5171
|
});
|
|
5172
|
-
var require_move_sync = (0,
|
|
5172
|
+
var require_move_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5173
5173
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
5174
5174
|
"use strict";
|
|
5175
5175
|
var fs3 = require_graceful_fs();
|
|
5176
|
-
var path7 = (0,
|
|
5176
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5177
5177
|
var copySync = require_copy3().copySync;
|
|
5178
5178
|
var removeSync = require_remove2().removeSync;
|
|
5179
5179
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -5220,7 +5220,7 @@ var require_move_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5220
5220
|
module2.exports = moveSync;
|
|
5221
5221
|
}
|
|
5222
5222
|
});
|
|
5223
|
-
var require_move3 = (0,
|
|
5223
|
+
var require_move3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5224
5224
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/index.js"(exports, module2) {
|
|
5225
5225
|
"use strict";
|
|
5226
5226
|
var u = require_universalify().fromPromise;
|
|
@@ -5230,7 +5230,7 @@ var require_move3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5230
5230
|
};
|
|
5231
5231
|
}
|
|
5232
5232
|
});
|
|
5233
|
-
var require_lib = (0,
|
|
5233
|
+
var require_lib = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5234
5234
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/index.js"(exports, module2) {
|
|
5235
5235
|
"use strict";
|
|
5236
5236
|
module2.exports = {
|
|
@@ -5249,7 +5249,7 @@ var require_lib = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5249
5249
|
};
|
|
5250
5250
|
}
|
|
5251
5251
|
});
|
|
5252
|
-
var require_dist = (0,
|
|
5252
|
+
var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5253
5253
|
"../schema-files-loader/dist/index.js"(exports, module2) {
|
|
5254
5254
|
"use strict";
|
|
5255
5255
|
var __create2 = Object.create;
|
|
@@ -5258,7 +5258,6 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5258
5258
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5259
5259
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
5260
5260
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5261
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5262
5261
|
var __export2 = (target, all) => {
|
|
5263
5262
|
for (var name in all)
|
|
5264
5263
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
@@ -5280,7 +5279,6 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5280
5279
|
mod
|
|
5281
5280
|
));
|
|
5282
5281
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5283
|
-
var __publicField2 = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5284
5282
|
var index_exports = {};
|
|
5285
5283
|
__export2(index_exports, {
|
|
5286
5284
|
CompositeFilesResolver: () => CompositeFilesResolver,
|
|
@@ -5292,9 +5290,9 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5292
5290
|
usesPrismaSchemaFolder: () => usesPrismaSchemaFolder2
|
|
5293
5291
|
});
|
|
5294
5292
|
module2.exports = __toCommonJS2(index_exports);
|
|
5295
|
-
var import_node_path22 = __toESM22((0,
|
|
5296
|
-
var import_prisma_schema_wasm2 = (0,
|
|
5297
|
-
var import_node_path5 = __toESM22((0,
|
|
5293
|
+
var import_node_path22 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
|
|
5294
|
+
var import_prisma_schema_wasm2 = (0, import_chunk_2ESYSVXG.__require)("@prisma/prisma-schema-wasm");
|
|
5295
|
+
var import_node_path5 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
|
|
5298
5296
|
function createFileNameToKeyMapper(options) {
|
|
5299
5297
|
if (options.caseSensitive) {
|
|
5300
5298
|
return (fileName) => fileName;
|
|
@@ -5305,9 +5303,9 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5305
5303
|
constructor(primary, secondary, options) {
|
|
5306
5304
|
this.primary = primary;
|
|
5307
5305
|
this.secondary = secondary;
|
|
5308
|
-
__publicField2(this, "_fileNameToKey");
|
|
5309
5306
|
this._fileNameToKey = createFileNameToKeyMapper(options);
|
|
5310
5307
|
}
|
|
5308
|
+
_fileNameToKey;
|
|
5311
5309
|
async listDirContents(path32) {
|
|
5312
5310
|
const primaryContent = await this.primary.listDirContents(path32);
|
|
5313
5311
|
const secondaryContent = await this.secondary.listDirContents(path32);
|
|
@@ -5331,9 +5329,9 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5331
5329
|
return Array.from(map2.values());
|
|
5332
5330
|
}
|
|
5333
5331
|
var InMemoryFilesResolver = class {
|
|
5332
|
+
_tree = {};
|
|
5333
|
+
_fileNameToKey;
|
|
5334
5334
|
constructor(options) {
|
|
5335
|
-
__publicField2(this, "_tree", {});
|
|
5336
|
-
__publicField2(this, "_fileNameToKey");
|
|
5337
5335
|
this._fileNameToKey = createFileNameToKeyMapper(options);
|
|
5338
5336
|
}
|
|
5339
5337
|
addFile(absolutePath, content) {
|
|
@@ -5518,7 +5516,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5518
5516
|
}
|
|
5519
5517
|
return void 0;
|
|
5520
5518
|
}
|
|
5521
|
-
var import_promises3 = __toESM22((0,
|
|
5519
|
+
var import_promises3 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:fs/promises"));
|
|
5522
5520
|
async function ensureType2(entryPath, expectedType) {
|
|
5523
5521
|
try {
|
|
5524
5522
|
const pathStat = await import_promises3.default.stat(entryPath);
|
|
@@ -5538,7 +5536,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5538
5536
|
}
|
|
5539
5537
|
}
|
|
5540
5538
|
});
|
|
5541
|
-
var require_js_tokens = (0,
|
|
5539
|
+
var require_js_tokens = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5542
5540
|
"../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js"(exports) {
|
|
5543
5541
|
"use strict";
|
|
5544
5542
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5559,7 +5557,7 @@ var require_js_tokens = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5559
5557
|
};
|
|
5560
5558
|
}
|
|
5561
5559
|
});
|
|
5562
|
-
var require_identifier = (0,
|
|
5560
|
+
var require_identifier = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5563
5561
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
|
5564
5562
|
"use strict";
|
|
5565
5563
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5630,7 +5628,7 @@ var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5630
5628
|
}
|
|
5631
5629
|
}
|
|
5632
5630
|
});
|
|
5633
|
-
var require_keyword = (0,
|
|
5631
|
+
var require_keyword = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5634
5632
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
|
5635
5633
|
"use strict";
|
|
5636
5634
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5666,7 +5664,7 @@ var require_keyword = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5666
5664
|
}
|
|
5667
5665
|
}
|
|
5668
5666
|
});
|
|
5669
|
-
var require_lib2 = (0,
|
|
5667
|
+
var require_lib2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5670
5668
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
5671
5669
|
"use strict";
|
|
5672
5670
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5724,7 +5722,7 @@ var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5724
5722
|
var _keyword = require_keyword();
|
|
5725
5723
|
}
|
|
5726
5724
|
});
|
|
5727
|
-
var require_escape_string_regexp = (0,
|
|
5725
|
+
var require_escape_string_regexp = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5728
5726
|
"../../node_modules/.pnpm/escape-string-regexp@1.0.5/node_modules/escape-string-regexp/index.js"(exports, module2) {
|
|
5729
5727
|
"use strict";
|
|
5730
5728
|
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
@@ -5736,7 +5734,7 @@ var require_escape_string_regexp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5736
5734
|
};
|
|
5737
5735
|
}
|
|
5738
5736
|
});
|
|
5739
|
-
var require_color_name = (0,
|
|
5737
|
+
var require_color_name = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5740
5738
|
"../../node_modules/.pnpm/color-name@1.1.3/node_modules/color-name/index.js"(exports, module2) {
|
|
5741
5739
|
"use strict";
|
|
5742
5740
|
module2.exports = {
|
|
@@ -5891,7 +5889,7 @@ var require_color_name = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5891
5889
|
};
|
|
5892
5890
|
}
|
|
5893
5891
|
});
|
|
5894
|
-
var require_conversions = (0,
|
|
5892
|
+
var require_conversions = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5895
5893
|
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/conversions.js"(exports, module2) {
|
|
5896
5894
|
"use strict";
|
|
5897
5895
|
var cssKeywords = require_color_name();
|
|
@@ -6603,7 +6601,7 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6603
6601
|
};
|
|
6604
6602
|
}
|
|
6605
6603
|
});
|
|
6606
|
-
var require_route = (0,
|
|
6604
|
+
var require_route = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6607
6605
|
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/route.js"(exports, module2) {
|
|
6608
6606
|
"use strict";
|
|
6609
6607
|
var conversions = require_conversions();
|
|
@@ -6672,7 +6670,7 @@ var require_route = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6672
6670
|
};
|
|
6673
6671
|
}
|
|
6674
6672
|
});
|
|
6675
|
-
var require_color_convert = (0,
|
|
6673
|
+
var require_color_convert = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6676
6674
|
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/index.js"(exports, module2) {
|
|
6677
6675
|
"use strict";
|
|
6678
6676
|
var conversions = require_conversions();
|
|
@@ -6730,7 +6728,7 @@ var require_color_convert = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6730
6728
|
module2.exports = convert;
|
|
6731
6729
|
}
|
|
6732
6730
|
});
|
|
6733
|
-
var require_ansi_styles = (0,
|
|
6731
|
+
var require_ansi_styles = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6734
6732
|
"../../node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
6735
6733
|
"use strict";
|
|
6736
6734
|
var colorConvert = require_color_convert();
|
|
@@ -6871,7 +6869,7 @@ var require_ansi_styles = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6871
6869
|
});
|
|
6872
6870
|
}
|
|
6873
6871
|
});
|
|
6874
|
-
var require_has_flag = (0,
|
|
6872
|
+
var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6875
6873
|
"../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
6876
6874
|
"use strict";
|
|
6877
6875
|
module2.exports = (flag, argv) => {
|
|
@@ -6883,10 +6881,10 @@ var require_has_flag = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6883
6881
|
};
|
|
6884
6882
|
}
|
|
6885
6883
|
});
|
|
6886
|
-
var require_supports_color = (0,
|
|
6884
|
+
var require_supports_color = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6887
6885
|
"../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
6888
6886
|
"use strict";
|
|
6889
|
-
var os = (0,
|
|
6887
|
+
var os = (0, import_chunk_2ESYSVXG.__require)("os");
|
|
6890
6888
|
var hasFlag = require_has_flag();
|
|
6891
6889
|
var env = process.env;
|
|
6892
6890
|
var forceColor;
|
|
@@ -6976,7 +6974,7 @@ var require_supports_color = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6976
6974
|
};
|
|
6977
6975
|
}
|
|
6978
6976
|
});
|
|
6979
|
-
var require_templates = (0,
|
|
6977
|
+
var require_templates = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6980
6978
|
"../../node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/templates.js"(exports, module2) {
|
|
6981
6979
|
"use strict";
|
|
6982
6980
|
var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
@@ -7085,7 +7083,7 @@ var require_templates = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7085
7083
|
};
|
|
7086
7084
|
}
|
|
7087
7085
|
});
|
|
7088
|
-
var require_chalk = (0,
|
|
7086
|
+
var require_chalk = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7089
7087
|
"../../node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
|
|
7090
7088
|
"use strict";
|
|
7091
7089
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
@@ -7250,7 +7248,7 @@ var require_chalk = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7250
7248
|
module2.exports.default = module2.exports;
|
|
7251
7249
|
}
|
|
7252
7250
|
});
|
|
7253
|
-
var require_lib3 = (0,
|
|
7251
|
+
var require_lib3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7254
7252
|
"../../node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js"(exports) {
|
|
7255
7253
|
"use strict";
|
|
7256
7254
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7373,7 +7371,7 @@ var require_lib3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7373
7371
|
}
|
|
7374
7372
|
}
|
|
7375
7373
|
});
|
|
7376
|
-
var require_lib4 = (0,
|
|
7374
|
+
var require_lib4 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7377
7375
|
"../../node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
|
7378
7376
|
"use strict";
|
|
7379
7377
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7549,7 +7547,7 @@ ${frame}`;
|
|
|
7549
7547
|
}
|
|
7550
7548
|
}
|
|
7551
7549
|
});
|
|
7552
|
-
var require_spdx_license_ids = (0,
|
|
7550
|
+
var require_spdx_license_ids = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7553
7551
|
"../../node_modules/.pnpm/spdx-license-ids@3.0.21/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
|
7554
7552
|
module2.exports = [
|
|
7555
7553
|
"0BSD",
|
|
@@ -8203,7 +8201,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8203
8201
|
];
|
|
8204
8202
|
}
|
|
8205
8203
|
});
|
|
8206
|
-
var require_spdx_exceptions = (0,
|
|
8204
|
+
var require_spdx_exceptions = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8207
8205
|
"../../node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json"(exports, module2) {
|
|
8208
8206
|
module2.exports = [
|
|
8209
8207
|
"389-exception",
|
|
@@ -8275,7 +8273,7 @@ var require_spdx_exceptions = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8275
8273
|
];
|
|
8276
8274
|
}
|
|
8277
8275
|
});
|
|
8278
|
-
var require_scan = (0,
|
|
8276
|
+
var require_scan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8279
8277
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/scan.js"(exports, module2) {
|
|
8280
8278
|
"use strict";
|
|
8281
8279
|
var licenses = [].concat(require_spdx_license_ids()).concat(require_spdx_license_ids());
|
|
@@ -8377,7 +8375,7 @@ var require_scan = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8377
8375
|
};
|
|
8378
8376
|
}
|
|
8379
8377
|
});
|
|
8380
|
-
var require_parse = (0,
|
|
8378
|
+
var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8381
8379
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js"(exports, module2) {
|
|
8382
8380
|
"use strict";
|
|
8383
8381
|
module2.exports = function(tokens) {
|
|
@@ -8489,7 +8487,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8489
8487
|
};
|
|
8490
8488
|
}
|
|
8491
8489
|
});
|
|
8492
|
-
var require_spdx_expression_parse = (0,
|
|
8490
|
+
var require_spdx_expression_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8493
8491
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js"(exports, module2) {
|
|
8494
8492
|
"use strict";
|
|
8495
8493
|
var scan = require_scan();
|
|
@@ -8499,7 +8497,7 @@ var require_spdx_expression_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8499
8497
|
};
|
|
8500
8498
|
}
|
|
8501
8499
|
});
|
|
8502
|
-
var require_spdx_correct = (0,
|
|
8500
|
+
var require_spdx_correct = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8503
8501
|
"../../node_modules/.pnpm/spdx-correct@3.1.1/node_modules/spdx-correct/index.js"(exports, module2) {
|
|
8504
8502
|
"use strict";
|
|
8505
8503
|
var parse = require_spdx_expression_parse();
|
|
@@ -8816,7 +8814,7 @@ var require_spdx_correct = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8816
8814
|
}
|
|
8817
8815
|
}
|
|
8818
8816
|
});
|
|
8819
|
-
var require_validate_npm_package_license = (0,
|
|
8817
|
+
var require_validate_npm_package_license = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8820
8818
|
"../../node_modules/.pnpm/validate-npm-package-license@3.0.4/node_modules/validate-npm-package-license/index.js"(exports, module2) {
|
|
8821
8819
|
"use strict";
|
|
8822
8820
|
var parse = require_spdx_expression_parse();
|
|
@@ -8886,7 +8884,7 @@ var require_validate_npm_package_license = (0, import_chunk_WWAWV7DQ.__commonJS)
|
|
|
8886
8884
|
};
|
|
8887
8885
|
}
|
|
8888
8886
|
});
|
|
8889
|
-
var require_hosts = (0,
|
|
8887
|
+
var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8890
8888
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/hosts.js"(exports, module2) {
|
|
8891
8889
|
"use strict";
|
|
8892
8890
|
var maybeJoin = (...args) => args.every((arg2) => arg2) ? args.join("") : "";
|
|
@@ -9051,10 +9049,10 @@ var require_hosts = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9051
9049
|
module2.exports = hosts;
|
|
9052
9050
|
}
|
|
9053
9051
|
});
|
|
9054
|
-
var require_parse_url = (0,
|
|
9052
|
+
var require_parse_url = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9055
9053
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/parse-url.js"(exports, module2) {
|
|
9056
9054
|
"use strict";
|
|
9057
|
-
var url = (0,
|
|
9055
|
+
var url = (0, import_chunk_2ESYSVXG.__require)("url");
|
|
9058
9056
|
var lastIndexOfBefore = (str, char, beforeChar) => {
|
|
9059
9057
|
const startPosition = str.indexOf(beforeChar);
|
|
9060
9058
|
return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
|
|
@@ -9102,7 +9100,7 @@ var require_parse_url = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9102
9100
|
};
|
|
9103
9101
|
}
|
|
9104
9102
|
});
|
|
9105
|
-
var require_from_url = (0,
|
|
9103
|
+
var require_from_url = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9106
9104
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/from-url.js"(exports, module2) {
|
|
9107
9105
|
"use strict";
|
|
9108
9106
|
var parseUrl = require_parse_url();
|
|
@@ -9194,19 +9192,17 @@ var require_from_url = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9194
9192
|
};
|
|
9195
9193
|
}
|
|
9196
9194
|
});
|
|
9197
|
-
var require_lib5 = (0,
|
|
9195
|
+
var require_lib5 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9198
9196
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/index.js"(exports, module2) {
|
|
9199
9197
|
"use strict";
|
|
9200
|
-
var { LRUCache } = (0,
|
|
9198
|
+
var { LRUCache } = (0, import_chunk_33LPBNDX.require_commonjs)();
|
|
9201
9199
|
var hosts = require_hosts();
|
|
9202
9200
|
var fromUrl = require_from_url();
|
|
9203
9201
|
var parseUrl = require_parse_url();
|
|
9204
9202
|
var cache = new LRUCache({ max: 1e3 });
|
|
9205
|
-
var
|
|
9206
|
-
var _GitHost = class _GitHost2 {
|
|
9203
|
+
var GitHost = class _GitHost {
|
|
9207
9204
|
constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) {
|
|
9208
|
-
|
|
9209
|
-
Object.assign(this, (0, import_chunk_WWAWV7DQ.__privateGet)(_GitHost2, _gitHosts)[type], {
|
|
9205
|
+
Object.assign(this, _GitHost.#gitHosts[type], {
|
|
9210
9206
|
type,
|
|
9211
9207
|
user,
|
|
9212
9208
|
auth,
|
|
@@ -9216,11 +9212,21 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9216
9212
|
opts
|
|
9217
9213
|
});
|
|
9218
9214
|
}
|
|
9215
|
+
static #gitHosts = { byShortcut: {}, byDomain: {} };
|
|
9216
|
+
static #protocols = {
|
|
9217
|
+
"git+ssh:": { name: "sshurl" },
|
|
9218
|
+
"ssh:": { name: "sshurl" },
|
|
9219
|
+
"git+https:": { name: "https", auth: true },
|
|
9220
|
+
"git:": { auth: true },
|
|
9221
|
+
"http:": { auth: true },
|
|
9222
|
+
"https:": { auth: true },
|
|
9223
|
+
"git+http:": { auth: true }
|
|
9224
|
+
};
|
|
9219
9225
|
static addHost(name, host) {
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9226
|
+
_GitHost.#gitHosts[name] = host;
|
|
9227
|
+
_GitHost.#gitHosts.byDomain[host.domain] = name;
|
|
9228
|
+
_GitHost.#gitHosts.byShortcut[`${name}:`] = name;
|
|
9229
|
+
_GitHost.#protocols[`${name}:`] = { name };
|
|
9224
9230
|
}
|
|
9225
9231
|
static fromUrl(giturl, opts) {
|
|
9226
9232
|
if (typeof giturl !== "string") {
|
|
@@ -9229,33 +9235,50 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9229
9235
|
const key = giturl + JSON.stringify(opts || {});
|
|
9230
9236
|
if (!cache.has(key)) {
|
|
9231
9237
|
const hostArgs = fromUrl(giturl, opts, {
|
|
9232
|
-
gitHosts:
|
|
9233
|
-
protocols:
|
|
9238
|
+
gitHosts: _GitHost.#gitHosts,
|
|
9239
|
+
protocols: _GitHost.#protocols
|
|
9234
9240
|
});
|
|
9235
|
-
cache.set(key, hostArgs ? new
|
|
9241
|
+
cache.set(key, hostArgs ? new _GitHost(...hostArgs) : void 0);
|
|
9236
9242
|
}
|
|
9237
9243
|
return cache.get(key);
|
|
9238
9244
|
}
|
|
9239
9245
|
static parseUrl(url) {
|
|
9240
9246
|
return parseUrl(url);
|
|
9241
9247
|
}
|
|
9248
|
+
#fill(template, opts) {
|
|
9249
|
+
if (typeof template !== "function") {
|
|
9250
|
+
return null;
|
|
9251
|
+
}
|
|
9252
|
+
const options = { ...this, ...this.opts, ...opts };
|
|
9253
|
+
if (!options.path) {
|
|
9254
|
+
options.path = "";
|
|
9255
|
+
}
|
|
9256
|
+
if (options.path.startsWith("/")) {
|
|
9257
|
+
options.path = options.path.slice(1);
|
|
9258
|
+
}
|
|
9259
|
+
if (options.noCommittish) {
|
|
9260
|
+
options.committish = null;
|
|
9261
|
+
}
|
|
9262
|
+
const result = template(options);
|
|
9263
|
+
return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result;
|
|
9264
|
+
}
|
|
9242
9265
|
hash() {
|
|
9243
9266
|
return this.committish ? `#${this.committish}` : "";
|
|
9244
9267
|
}
|
|
9245
9268
|
ssh(opts) {
|
|
9246
|
-
return
|
|
9269
|
+
return this.#fill(this.sshtemplate, opts);
|
|
9247
9270
|
}
|
|
9248
9271
|
sshurl(opts) {
|
|
9249
|
-
return
|
|
9272
|
+
return this.#fill(this.sshurltemplate, opts);
|
|
9250
9273
|
}
|
|
9251
9274
|
browse(path7, ...args) {
|
|
9252
9275
|
if (typeof path7 !== "string") {
|
|
9253
|
-
return
|
|
9276
|
+
return this.#fill(this.browsetemplate, path7);
|
|
9254
9277
|
}
|
|
9255
9278
|
if (typeof args[0] !== "string") {
|
|
9256
|
-
return
|
|
9279
|
+
return this.#fill(this.browsetreetemplate, { ...args[0], path: path7 });
|
|
9257
9280
|
}
|
|
9258
|
-
return
|
|
9281
|
+
return this.#fill(this.browsetreetemplate, { ...args[1], fragment: args[0], path: path7 });
|
|
9259
9282
|
}
|
|
9260
9283
|
// If the path is known to be a file, then browseFile should be used. For some hosts
|
|
9261
9284
|
// the url is the same as browse, but for others like GitHub a file can use both `/tree/`
|
|
@@ -9264,36 +9287,36 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9264
9287
|
// does not redirect to a different commit.
|
|
9265
9288
|
browseFile(path7, ...args) {
|
|
9266
9289
|
if (typeof args[0] !== "string") {
|
|
9267
|
-
return
|
|
9290
|
+
return this.#fill(this.browseblobtemplate, { ...args[0], path: path7 });
|
|
9268
9291
|
}
|
|
9269
|
-
return
|
|
9292
|
+
return this.#fill(this.browseblobtemplate, { ...args[1], fragment: args[0], path: path7 });
|
|
9270
9293
|
}
|
|
9271
9294
|
docs(opts) {
|
|
9272
|
-
return
|
|
9295
|
+
return this.#fill(this.docstemplate, opts);
|
|
9273
9296
|
}
|
|
9274
9297
|
bugs(opts) {
|
|
9275
|
-
return
|
|
9298
|
+
return this.#fill(this.bugstemplate, opts);
|
|
9276
9299
|
}
|
|
9277
9300
|
https(opts) {
|
|
9278
|
-
return
|
|
9301
|
+
return this.#fill(this.httpstemplate, opts);
|
|
9279
9302
|
}
|
|
9280
9303
|
git(opts) {
|
|
9281
|
-
return
|
|
9304
|
+
return this.#fill(this.gittemplate, opts);
|
|
9282
9305
|
}
|
|
9283
9306
|
shortcut(opts) {
|
|
9284
|
-
return
|
|
9307
|
+
return this.#fill(this.shortcuttemplate, opts);
|
|
9285
9308
|
}
|
|
9286
9309
|
path(opts) {
|
|
9287
|
-
return
|
|
9310
|
+
return this.#fill(this.pathtemplate, opts);
|
|
9288
9311
|
}
|
|
9289
9312
|
tarball(opts) {
|
|
9290
|
-
return
|
|
9313
|
+
return this.#fill(this.tarballtemplate, { ...opts, noCommittish: false });
|
|
9291
9314
|
}
|
|
9292
9315
|
file(path7, opts) {
|
|
9293
|
-
return
|
|
9316
|
+
return this.#fill(this.filetemplate, { ...opts, path: path7 });
|
|
9294
9317
|
}
|
|
9295
9318
|
edit(path7, opts) {
|
|
9296
|
-
return
|
|
9319
|
+
return this.#fill(this.edittemplate, { ...opts, path: path7 });
|
|
9297
9320
|
}
|
|
9298
9321
|
getDefaultRepresentation() {
|
|
9299
9322
|
return this.default;
|
|
@@ -9305,44 +9328,13 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9305
9328
|
return this.sshurl(opts);
|
|
9306
9329
|
}
|
|
9307
9330
|
};
|
|
9308
|
-
_gitHosts = /* @__PURE__ */ new WeakMap();
|
|
9309
|
-
_protocols = /* @__PURE__ */ new WeakMap();
|
|
9310
|
-
_GitHost_instances = /* @__PURE__ */ new WeakSet();
|
|
9311
|
-
fill_fn = function(template, opts) {
|
|
9312
|
-
if (typeof template !== "function") {
|
|
9313
|
-
return null;
|
|
9314
|
-
}
|
|
9315
|
-
const options = { ...this, ...this.opts, ...opts };
|
|
9316
|
-
if (!options.path) {
|
|
9317
|
-
options.path = "";
|
|
9318
|
-
}
|
|
9319
|
-
if (options.path.startsWith("/")) {
|
|
9320
|
-
options.path = options.path.slice(1);
|
|
9321
|
-
}
|
|
9322
|
-
if (options.noCommittish) {
|
|
9323
|
-
options.committish = null;
|
|
9324
|
-
}
|
|
9325
|
-
const result = template(options);
|
|
9326
|
-
return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result;
|
|
9327
|
-
};
|
|
9328
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(_GitHost, _gitHosts, { byShortcut: {}, byDomain: {} });
|
|
9329
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(_GitHost, _protocols, {
|
|
9330
|
-
"git+ssh:": { name: "sshurl" },
|
|
9331
|
-
"ssh:": { name: "sshurl" },
|
|
9332
|
-
"git+https:": { name: "https", auth: true },
|
|
9333
|
-
"git:": { auth: true },
|
|
9334
|
-
"http:": { auth: true },
|
|
9335
|
-
"https:": { auth: true },
|
|
9336
|
-
"git+http:": { auth: true }
|
|
9337
|
-
});
|
|
9338
|
-
var GitHost = _GitHost;
|
|
9339
9331
|
for (const [name, host] of Object.entries(hosts)) {
|
|
9340
9332
|
GitHost.addHost(name, host);
|
|
9341
9333
|
}
|
|
9342
9334
|
module2.exports = GitHost;
|
|
9343
9335
|
}
|
|
9344
9336
|
});
|
|
9345
|
-
var require_implementation = (0,
|
|
9337
|
+
var require_implementation = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9346
9338
|
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
|
9347
9339
|
"use strict";
|
|
9348
9340
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
@@ -9416,14 +9408,14 @@ var require_implementation = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9416
9408
|
};
|
|
9417
9409
|
}
|
|
9418
9410
|
});
|
|
9419
|
-
var require_function_bind = (0,
|
|
9411
|
+
var require_function_bind = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9420
9412
|
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
|
9421
9413
|
"use strict";
|
|
9422
9414
|
var implementation = require_implementation();
|
|
9423
9415
|
module2.exports = Function.prototype.bind || implementation;
|
|
9424
9416
|
}
|
|
9425
9417
|
});
|
|
9426
|
-
var require_hasown = (0,
|
|
9418
|
+
var require_hasown = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9427
9419
|
"../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module2) {
|
|
9428
9420
|
"use strict";
|
|
9429
9421
|
var call = Function.prototype.call;
|
|
@@ -9432,7 +9424,7 @@ var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9432
9424
|
module2.exports = bind2.call(call, $hasOwn);
|
|
9433
9425
|
}
|
|
9434
9426
|
});
|
|
9435
|
-
var require_core = (0,
|
|
9427
|
+
var require_core = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9436
9428
|
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/core.json"(exports, module2) {
|
|
9437
9429
|
module2.exports = {
|
|
9438
9430
|
assert: true,
|
|
@@ -9594,7 +9586,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9594
9586
|
};
|
|
9595
9587
|
}
|
|
9596
9588
|
});
|
|
9597
|
-
var require_is_core_module = (0,
|
|
9589
|
+
var require_is_core_module = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9598
9590
|
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/index.js"(exports, module2) {
|
|
9599
9591
|
"use strict";
|
|
9600
9592
|
var hasOwn = require_hasown();
|
|
@@ -9655,7 +9647,7 @@ var require_is_core_module = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9655
9647
|
};
|
|
9656
9648
|
}
|
|
9657
9649
|
});
|
|
9658
|
-
var require_extract_description = (0,
|
|
9650
|
+
var require_extract_description = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9659
9651
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/extract_description.js"(exports, module2) {
|
|
9660
9652
|
"use strict";
|
|
9661
9653
|
module2.exports = extractDescription;
|
|
@@ -9680,7 +9672,7 @@ var require_extract_description = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9680
9672
|
}
|
|
9681
9673
|
}
|
|
9682
9674
|
});
|
|
9683
|
-
var require_typos = (0,
|
|
9675
|
+
var require_typos = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9684
9676
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/typos.json"(exports, module2) {
|
|
9685
9677
|
module2.exports = {
|
|
9686
9678
|
topLevel: {
|
|
@@ -9709,17 +9701,17 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9709
9701
|
};
|
|
9710
9702
|
}
|
|
9711
9703
|
});
|
|
9712
|
-
var require_fixer = (0,
|
|
9704
|
+
var require_fixer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9713
9705
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
|
9714
9706
|
"use strict";
|
|
9715
|
-
var isValidSemver = (0,
|
|
9716
|
-
var cleanSemver = (0,
|
|
9707
|
+
var isValidSemver = (0, import_chunk_ZB5NPOJW.require_valid)();
|
|
9708
|
+
var cleanSemver = (0, import_chunk_ZB5NPOJW.require_clean)();
|
|
9717
9709
|
var validateLicense = require_validate_npm_package_license();
|
|
9718
9710
|
var hostedGitInfo = require_lib5();
|
|
9719
9711
|
var isBuiltinModule = require_is_core_module();
|
|
9720
9712
|
var depTypes = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
9721
9713
|
var extractDescription = require_extract_description();
|
|
9722
|
-
var url = (0,
|
|
9714
|
+
var url = (0, import_chunk_2ESYSVXG.__require)("url");
|
|
9723
9715
|
var typos = require_typos();
|
|
9724
9716
|
var isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
|
|
9725
9717
|
module2.exports = {
|
|
@@ -10140,7 +10132,7 @@ var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10140
10132
|
}
|
|
10141
10133
|
}
|
|
10142
10134
|
});
|
|
10143
|
-
var require_warning_messages = (0,
|
|
10135
|
+
var require_warning_messages = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10144
10136
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module2) {
|
|
10145
10137
|
module2.exports = {
|
|
10146
10138
|
repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field",
|
|
@@ -10174,10 +10166,10 @@ var require_warning_messages = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10174
10166
|
};
|
|
10175
10167
|
}
|
|
10176
10168
|
});
|
|
10177
|
-
var require_make_warning = (0,
|
|
10169
|
+
var require_make_warning = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10178
10170
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/make_warning.js"(exports, module2) {
|
|
10179
10171
|
"use strict";
|
|
10180
|
-
var util = (0,
|
|
10172
|
+
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
10181
10173
|
var messages = require_warning_messages();
|
|
10182
10174
|
module2.exports = function() {
|
|
10183
10175
|
var args = Array.prototype.slice.call(arguments, 0);
|
|
@@ -10199,7 +10191,7 @@ var require_make_warning = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10199
10191
|
}
|
|
10200
10192
|
}
|
|
10201
10193
|
});
|
|
10202
|
-
var require_normalize = (0,
|
|
10194
|
+
var require_normalize = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10203
10195
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/normalize.js"(exports, module2) {
|
|
10204
10196
|
"use strict";
|
|
10205
10197
|
module2.exports = normalize;
|
|
@@ -10255,7 +10247,7 @@ var require_normalize = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10255
10247
|
}
|
|
10256
10248
|
}
|
|
10257
10249
|
});
|
|
10258
|
-
var require_package = (0,
|
|
10250
|
+
var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10259
10251
|
"../internals/package.json"(exports, module2) {
|
|
10260
10252
|
module2.exports = {
|
|
10261
10253
|
name: "@prisma/internals",
|
|
@@ -10361,8 +10353,8 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10361
10353
|
};
|
|
10362
10354
|
}
|
|
10363
10355
|
});
|
|
10364
|
-
var import_fs_jetpack = (0,
|
|
10365
|
-
var import_schema_files_loader = (0,
|
|
10356
|
+
var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)(require_main());
|
|
10357
|
+
var import_schema_files_loader = (0, import_chunk_2ESYSVXG.__toESM)(require_dist());
|
|
10366
10358
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
10367
10359
|
async function findUp(name, {
|
|
10368
10360
|
cwd = import_node_process.default.cwd(),
|
|
@@ -10384,7 +10376,7 @@ async function findUp(name, {
|
|
|
10384
10376
|
directory = import_node_path2.default.dirname(directory);
|
|
10385
10377
|
}
|
|
10386
10378
|
}
|
|
10387
|
-
var import_code_frame = (0,
|
|
10379
|
+
var import_code_frame = (0, import_chunk_2ESYSVXG.__toESM)(require_lib4(), 1);
|
|
10388
10380
|
var safeLastIndexOf = (string, searchString, index) => index < 0 ? -1 : string.lastIndexOf(searchString, index);
|
|
10389
10381
|
function getPosition(text, textIndex) {
|
|
10390
10382
|
const lineBreakBefore = safeLastIndexOf(text, "\n", textIndex - 1);
|
|
@@ -10403,31 +10395,28 @@ function indexToLineColumn(text, textIndex, { oneBased = false } = {}) {
|
|
|
10403
10395
|
return oneBased ? { line: position.line + 1, column: position.column + 1 } : position;
|
|
10404
10396
|
}
|
|
10405
10397
|
var getCodePoint = (character) => `\\u{${character.codePointAt(0).toString(16)}}`;
|
|
10406
|
-
var
|
|
10407
|
-
|
|
10398
|
+
var JSONError = class _JSONError extends Error {
|
|
10399
|
+
name = "JSONError";
|
|
10400
|
+
fileName;
|
|
10401
|
+
codeFrame;
|
|
10402
|
+
rawCodeFrame;
|
|
10403
|
+
#message;
|
|
10408
10404
|
constructor(message) {
|
|
10409
10405
|
super();
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "codeFrame");
|
|
10413
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "rawCodeFrame");
|
|
10414
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _message);
|
|
10415
|
-
(0, import_chunk_WWAWV7DQ.__privateSet)(this, _message, message);
|
|
10416
|
-
Error.captureStackTrace?.(this, _JSONError2);
|
|
10406
|
+
this.#message = message;
|
|
10407
|
+
Error.captureStackTrace?.(this, _JSONError);
|
|
10417
10408
|
}
|
|
10418
10409
|
get message() {
|
|
10419
10410
|
const { fileName, codeFrame } = this;
|
|
10420
|
-
return `${
|
|
10411
|
+
return `${this.#message}${fileName ? ` in ${fileName}` : ""}${codeFrame ? `
|
|
10421
10412
|
|
|
10422
10413
|
${codeFrame}
|
|
10423
10414
|
` : ""}`;
|
|
10424
10415
|
}
|
|
10425
10416
|
set message(message) {
|
|
10426
|
-
|
|
10417
|
+
this.#message = message;
|
|
10427
10418
|
}
|
|
10428
10419
|
};
|
|
10429
|
-
_message = /* @__PURE__ */ new WeakMap();
|
|
10430
|
-
var JSONError = _JSONError;
|
|
10431
10420
|
var generateCodeFrame = (string, location, highlightCode = true) => (0, import_code_frame.codeFrameColumns)(string, { start: location }, { highlightCode });
|
|
10432
10421
|
var getErrorLocation = (string, message) => {
|
|
10433
10422
|
const match = message.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);
|
|
@@ -10481,7 +10470,7 @@ function parseJson(string, reviver, fileName) {
|
|
|
10481
10470
|
}
|
|
10482
10471
|
throw jsonError;
|
|
10483
10472
|
}
|
|
10484
|
-
var import_normalize_package_data = (0,
|
|
10473
|
+
var import_normalize_package_data = (0, import_chunk_2ESYSVXG.__toESM)(require_normalize(), 1);
|
|
10485
10474
|
function toPath2(urlOrPath) {
|
|
10486
10475
|
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
10487
10476
|
}
|
|
@@ -10654,17 +10643,17 @@ var tryCatch = function(f, onThrow) {
|
|
|
10654
10643
|
}
|
|
10655
10644
|
};
|
|
10656
10645
|
var chainW = flatMap;
|
|
10657
|
-
var import_function3 = (0,
|
|
10646
|
+
var import_function3 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_G7PJKEOV.require_function)());
|
|
10658
10647
|
var RustPanic = class extends Error {
|
|
10648
|
+
__typename = "RustPanic";
|
|
10649
|
+
request;
|
|
10650
|
+
rustStack;
|
|
10651
|
+
area;
|
|
10652
|
+
schemaPath;
|
|
10653
|
+
schema;
|
|
10654
|
+
introspectionUrl;
|
|
10659
10655
|
constructor(message, rustStack, request, area, schemaPath, schema, introspectionUrl) {
|
|
10660
10656
|
super(message);
|
|
10661
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "__typename", "RustPanic");
|
|
10662
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "request");
|
|
10663
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "rustStack");
|
|
10664
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "area");
|
|
10665
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "schemaPath");
|
|
10666
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "schema");
|
|
10667
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "introspectionUrl");
|
|
10668
10657
|
this.name = "RustPanic";
|
|
10669
10658
|
this.rustStack = rustStack;
|
|
10670
10659
|
this.request = request;
|
|
@@ -10692,9 +10681,7 @@ function toMultipleSchemas(input) {
|
|
|
10692
10681
|
return input;
|
|
10693
10682
|
}
|
|
10694
10683
|
var WasmPanicRegistry = class {
|
|
10695
|
-
|
|
10696
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "message", "");
|
|
10697
|
-
}
|
|
10684
|
+
message = "";
|
|
10698
10685
|
get() {
|
|
10699
10686
|
return `${this.message}`;
|
|
10700
10687
|
}
|
|
@@ -10728,7 +10715,7 @@ function addVersionDetailsToErrorMessage(message) {
|
|
|
10728
10715
|
|
|
10729
10716
|
${formatTable(rows)}`;
|
|
10730
10717
|
}
|
|
10731
|
-
var import_function2 = (0,
|
|
10718
|
+
var import_function2 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_G7PJKEOV.require_function)());
|
|
10732
10719
|
function relativizePathInPSLError(error) {
|
|
10733
10720
|
return error.replaceAll(process.cwd() + import_node_path4.default.sep, "");
|
|
10734
10721
|
}
|
|
@@ -10747,12 +10734,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
|
10747
10734
|
),
|
|
10748
10735
|
map((errorOutputAsJSON) => {
|
|
10749
10736
|
const defaultMessage = (0, import_chunk_SKRR5WT4.red)((0, import_chunk_SKRR5WT4.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
|
|
10750
|
-
const getConfigErrorInit = (0,
|
|
10737
|
+
const getConfigErrorInit = (0, import_chunk_G7PJKEOV.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
|
10751
10738
|
return {
|
|
10752
10739
|
reason: createSchemaValidationError(reason),
|
|
10753
10740
|
errorCode: eJSON.error_code
|
|
10754
10741
|
};
|
|
10755
|
-
}).with({ error_code:
|
|
10742
|
+
}).with({ error_code: import_chunk_G7PJKEOV.N.string }, (eJSON) => {
|
|
10756
10743
|
return {
|
|
10757
10744
|
reason,
|
|
10758
10745
|
errorCode: eJSON.error_code
|
|
@@ -10772,7 +10759,7 @@ var debug = (0, import_debug3.default)("prisma:getConfig");
|
|
|
10772
10759
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
|
10773
10760
|
var GetConfigError = class extends Error {
|
|
10774
10761
|
constructor(params) {
|
|
10775
|
-
const constructedErrorMessage = (0,
|
|
10762
|
+
const constructedErrorMessage = (0, import_chunk_G7PJKEOV.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
|
10776
10763
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
|
10777
10764
|
return `${reason}
|
|
10778
10765
|
${errorCodeMessage}
|
|
@@ -10846,7 +10833,7 @@ async function getConfig(options) {
|
|
|
10846
10833
|
}
|
|
10847
10834
|
return Promise.resolve(data);
|
|
10848
10835
|
}
|
|
10849
|
-
const error = (0,
|
|
10836
|
+
const error = (0, import_chunk_G7PJKEOV.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
|
10850
10837
|
debugErrorType(e);
|
|
10851
10838
|
if (isWasmPanic(e.error)) {
|
|
10852
10839
|
const { message, stack } = getWasmError(e.error);
|
|
@@ -11196,10 +11183,83 @@ ${(0, import_chunk_SKRR5WT4.bold)("Flags")}
|
|
|
11196
11183
|
--script Render a SQL script to stdout instead of the default human readable summary (not supported on MongoDB)
|
|
11197
11184
|
--exit-code Change the exit code behavior to signal if the diff is empty or not (Empty: 0, Error: 1, Not empty: 2). Default behavior is Success: 0, Error: 1.`
|
|
11198
11185
|
);
|
|
11199
|
-
var
|
|
11186
|
+
var MigrateDiff = class _MigrateDiff {
|
|
11200
11187
|
static new() {
|
|
11201
|
-
return new
|
|
11188
|
+
return new _MigrateDiff();
|
|
11202
11189
|
}
|
|
11190
|
+
static help = (0, import_internals.format)(`
|
|
11191
|
+
${process.platform === "win32" ? "" : "\u{1F50D} "}Compares the database schema from two arbitrary sources, and outputs the differences either as a human-readable summary (by default) or an executable script.
|
|
11192
|
+
|
|
11193
|
+
${(0, import_chunk_SKRR5WT4.green)(`prisma migrate diff`)} is a read-only command that does not write to your datasource(s).
|
|
11194
|
+
${(0, import_chunk_SKRR5WT4.green)(`prisma db execute`)} can be used to execute its ${(0, import_chunk_SKRR5WT4.green)(`--script`)} output.
|
|
11195
|
+
|
|
11196
|
+
The command takes a source ${(0, import_chunk_SKRR5WT4.green)(`--from-...`)} and a destination ${(0, import_chunk_SKRR5WT4.green)(`--to-...`)}.
|
|
11197
|
+
The source and destination must use the same provider,
|
|
11198
|
+
e.g. a diff using 2 different providers like PostgreSQL and SQLite is not supported.
|
|
11199
|
+
|
|
11200
|
+
It compares the source with the destination to generate a diff.
|
|
11201
|
+
The diff can be interpreted as generating a migration that brings the source schema (from) to the shape of the destination schema (to).
|
|
11202
|
+
The default output is a human readable diff, it can be rendered as SQL using \`--script\` on SQL databases.
|
|
11203
|
+
|
|
11204
|
+
See the documentation for more information ${(0, import_internals.link)("https://pris.ly/d/migrate-diff")}
|
|
11205
|
+
|
|
11206
|
+
${helpOptions}
|
|
11207
|
+
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
11208
|
+
|
|
11209
|
+
From database to database as summary
|
|
11210
|
+
e.g. compare two live databases
|
|
11211
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11212
|
+
--from-url "$DATABASE_URL" \\
|
|
11213
|
+
--to-url "postgresql://login:password@localhost:5432/db2"
|
|
11214
|
+
|
|
11215
|
+
From a live database to a Prisma datamodel
|
|
11216
|
+
e.g. roll forward after a migration failed in the middle
|
|
11217
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11218
|
+
--shadow-database-url "$SHADOW_DB" \\
|
|
11219
|
+
--from-url "$PROD_DB" \\
|
|
11220
|
+
--to-schema-datamodel=next_datamodel.prisma \\
|
|
11221
|
+
--script
|
|
11222
|
+
|
|
11223
|
+
From a live database to a datamodel
|
|
11224
|
+
e.g. roll backward after a migration failed in the middle
|
|
11225
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11226
|
+
--shadow-database-url "$SHADOW_DB" \\
|
|
11227
|
+
--from-url "$PROD_DB" \\
|
|
11228
|
+
--to-schema-datamodel=previous_datamodel.prisma \\
|
|
11229
|
+
--script
|
|
11230
|
+
|
|
11231
|
+
From a local D1 database to a datamodel
|
|
11232
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11233
|
+
--from-local-d1 \\
|
|
11234
|
+
--to-schema-datamodel=./prisma/schema.prisma \\
|
|
11235
|
+
--script
|
|
11236
|
+
|
|
11237
|
+
From a Prisma datamodel to a local D1 database
|
|
11238
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11239
|
+
--from-schema-datamodel=./prisma/schema.prisma \\
|
|
11240
|
+
--to-local-d1 \\
|
|
11241
|
+
--script
|
|
11242
|
+
|
|
11243
|
+
From a Prisma Migrate \`migrations\` directory to another database
|
|
11244
|
+
e.g. generate a migration for a hotfix already applied on production
|
|
11245
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11246
|
+
--shadow-database-url "$SHADOW_DB" \\
|
|
11247
|
+
--from-migrations ./migrations \\
|
|
11248
|
+
--to-url "$PROD_DB" \\
|
|
11249
|
+
--script
|
|
11250
|
+
|
|
11251
|
+
Execute the --script output with \`prisma db execute\` using bash pipe \`|\`
|
|
11252
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11253
|
+
--from-[...] \\
|
|
11254
|
+
--to-[...] \\
|
|
11255
|
+
--script | prisma db execute --stdin --url="$DATABASE_URL"
|
|
11256
|
+
|
|
11257
|
+
Detect if both sources are in sync, it will exit with exit code 2 if changes are detected
|
|
11258
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11259
|
+
--exit-code \\
|
|
11260
|
+
--from-[...] \\
|
|
11261
|
+
--to-[...]
|
|
11262
|
+
`);
|
|
11203
11263
|
async parse(argv, config) {
|
|
11204
11264
|
const args = (0, import_internals.arg)(
|
|
11205
11265
|
argv,
|
|
@@ -11335,8 +11395,8 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11335
11395
|
url: `file:${d1Database}`
|
|
11336
11396
|
};
|
|
11337
11397
|
}
|
|
11338
|
-
const migrate = new
|
|
11339
|
-
const captureStdout = new
|
|
11398
|
+
const migrate = new import_chunk_VVP3QZ7Q.Migrate();
|
|
11399
|
+
const captureStdout = new import_chunk_VAJ4VX67.CaptureStdout();
|
|
11340
11400
|
const outputPath = args["--output"];
|
|
11341
11401
|
const isOutputDefined = Boolean(outputPath);
|
|
11342
11402
|
if (isOutputDefined) {
|
|
@@ -11374,80 +11434,6 @@ ${error}
|
|
|
11374
11434
|
|
|
11375
11435
|
${helpOptions}`);
|
|
11376
11436
|
}
|
|
11377
|
-
return
|
|
11437
|
+
return _MigrateDiff.help;
|
|
11378
11438
|
}
|
|
11379
11439
|
};
|
|
11380
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(_MigrateDiff, "help", (0, import_internals.format)(`
|
|
11381
|
-
${process.platform === "win32" ? "" : "\u{1F50D} "}Compares the database schema from two arbitrary sources, and outputs the differences either as a human-readable summary (by default) or an executable script.
|
|
11382
|
-
|
|
11383
|
-
${(0, import_chunk_SKRR5WT4.green)(`prisma migrate diff`)} is a read-only command that does not write to your datasource(s).
|
|
11384
|
-
${(0, import_chunk_SKRR5WT4.green)(`prisma db execute`)} can be used to execute its ${(0, import_chunk_SKRR5WT4.green)(`--script`)} output.
|
|
11385
|
-
|
|
11386
|
-
The command takes a source ${(0, import_chunk_SKRR5WT4.green)(`--from-...`)} and a destination ${(0, import_chunk_SKRR5WT4.green)(`--to-...`)}.
|
|
11387
|
-
The source and destination must use the same provider,
|
|
11388
|
-
e.g. a diff using 2 different providers like PostgreSQL and SQLite is not supported.
|
|
11389
|
-
|
|
11390
|
-
It compares the source with the destination to generate a diff.
|
|
11391
|
-
The diff can be interpreted as generating a migration that brings the source schema (from) to the shape of the destination schema (to).
|
|
11392
|
-
The default output is a human readable diff, it can be rendered as SQL using \`--script\` on SQL databases.
|
|
11393
|
-
|
|
11394
|
-
See the documentation for more information ${(0, import_internals.link)("https://pris.ly/d/migrate-diff")}
|
|
11395
|
-
|
|
11396
|
-
${helpOptions}
|
|
11397
|
-
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
11398
|
-
|
|
11399
|
-
From database to database as summary
|
|
11400
|
-
e.g. compare two live databases
|
|
11401
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11402
|
-
--from-url "$DATABASE_URL" \\
|
|
11403
|
-
--to-url "postgresql://login:password@localhost:5432/db2"
|
|
11404
|
-
|
|
11405
|
-
From a live database to a Prisma datamodel
|
|
11406
|
-
e.g. roll forward after a migration failed in the middle
|
|
11407
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11408
|
-
--shadow-database-url "$SHADOW_DB" \\
|
|
11409
|
-
--from-url "$PROD_DB" \\
|
|
11410
|
-
--to-schema-datamodel=next_datamodel.prisma \\
|
|
11411
|
-
--script
|
|
11412
|
-
|
|
11413
|
-
From a live database to a datamodel
|
|
11414
|
-
e.g. roll backward after a migration failed in the middle
|
|
11415
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11416
|
-
--shadow-database-url "$SHADOW_DB" \\
|
|
11417
|
-
--from-url "$PROD_DB" \\
|
|
11418
|
-
--to-schema-datamodel=previous_datamodel.prisma \\
|
|
11419
|
-
--script
|
|
11420
|
-
|
|
11421
|
-
From a local D1 database to a datamodel
|
|
11422
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11423
|
-
--from-local-d1 \\
|
|
11424
|
-
--to-schema-datamodel=./prisma/schema.prisma \\
|
|
11425
|
-
--script
|
|
11426
|
-
|
|
11427
|
-
From a Prisma datamodel to a local D1 database
|
|
11428
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11429
|
-
--from-schema-datamodel=./prisma/schema.prisma \\
|
|
11430
|
-
--to-local-d1 \\
|
|
11431
|
-
--script
|
|
11432
|
-
|
|
11433
|
-
From a Prisma Migrate \`migrations\` directory to another database
|
|
11434
|
-
e.g. generate a migration for a hotfix already applied on production
|
|
11435
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11436
|
-
--shadow-database-url "$SHADOW_DB" \\
|
|
11437
|
-
--from-migrations ./migrations \\
|
|
11438
|
-
--to-url "$PROD_DB" \\
|
|
11439
|
-
--script
|
|
11440
|
-
|
|
11441
|
-
Execute the --script output with \`prisma db execute\` using bash pipe \`|\`
|
|
11442
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11443
|
-
--from-[...] \\
|
|
11444
|
-
--to-[...] \\
|
|
11445
|
-
--script | prisma db execute --stdin --url="$DATABASE_URL"
|
|
11446
|
-
|
|
11447
|
-
Detect if both sources are in sync, it will exit with exit code 2 if changes are detected
|
|
11448
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11449
|
-
--exit-code \\
|
|
11450
|
-
--from-[...] \\
|
|
11451
|
-
--to-[...]
|
|
11452
|
-
`));
|
|
11453
|
-
var MigrateDiff = _MigrateDiff;
|