@prisma/migrate 6.6.0-dev.8 → 6.6.0-dev.80
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 +8 -6
- package/dist/SchemaEngine.js +5 -5
- package/dist/bin.js +47 -46
- package/dist/chunk-23DZXSTI.js +62 -0
- package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
- package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
- package/dist/chunk-33LPBNDX.js +1399 -0
- package/dist/{chunk-V3ZMNXZC.js → chunk-5LKIRKDL.js} +307 -382
- package/dist/{chunk-IR55GBON.js → chunk-5LTDMS3H.js} +18 -18
- package/dist/{chunk-LOGAFLCN.js → chunk-5R44VVVX.js} +29 -29
- package/dist/{chunk-Q3ZLC44N.js → chunk-63X7FE2R.js} +57 -66
- package/dist/{chunk-DJMFXNR4.js → chunk-74LUB4XX.js} +56 -57
- package/dist/{chunk-N4XTKFY6.js → chunk-7RM467G7.js} +39 -38
- package/dist/{chunk-RP2N6UXA.js → chunk-AI6DH66U.js} +6 -6
- package/dist/{chunk-A6PMXMMT.js → chunk-AUGZZ6RT.js} +105 -13
- package/dist/{chunk-G2XUUMKH.js → chunk-B4SUSDC2.js} +31 -39
- package/dist/{chunk-ZOEKRXDP.js → chunk-D2DGSPW6.js} +29 -55
- package/dist/{chunk-W2SZNLK4.js → chunk-EJG7GKM7.js} +37 -39
- package/dist/{chunk-5PSO7BDO.js → chunk-EJUXYFV3.js} +15 -15
- package/dist/{chunk-HCBZB4XC.js → chunk-FFPSJTA6.js} +53 -52
- package/dist/{chunk-N3KYWSX2.js → chunk-FZGPSDP7.js} +55 -49
- package/dist/{chunk-MCWCB2AX.js → chunk-IINN7QUV.js} +170 -643
- package/dist/{chunk-255BRND3.js → chunk-KRQEFTDT.js} +6 -6
- package/dist/{chunk-VVKOFN3Y.js → chunk-LLO7YF56.js} +44 -46
- package/dist/{chunk-VZ23KD5C.js → chunk-NGQA5JTN.js} +8 -10
- package/dist/{chunk-MKK3GSDF.js → chunk-NIKXBMZL.js} +5 -5
- package/dist/{chunk-GG54LOYV.js → chunk-O6RQXRWU.js} +45 -44
- package/dist/{chunk-MATFO4ZW.js → chunk-OEWQACEH.js} +38 -39
- package/dist/{chunk-3GHGKOL4.js → chunk-OPKM35BD.js} +370 -529
- package/dist/{chunk-EGPJABTW.js → chunk-QVMYNWAN.js} +257 -103
- package/dist/{chunk-V5TUSOJX.js → chunk-SQKGZVG3.js} +45 -45
- package/dist/{chunk-CQZFVAXC.js → chunk-TN7JMNXD.js} +42 -41
- package/dist/chunk-URKH6SE2.js +479 -0
- package/dist/chunk-V6PVGSDJ.js +76 -0
- package/dist/{chunk-DLLXDCI2.js → chunk-VAJ4VX67.js} +5 -6
- package/dist/{chunk-KC5MOJ5I.js → chunk-WU6Z6FMF.js} +371 -530
- package/dist/{chunk-OCQGHQED.js → chunk-YBX7R3MT.js} +12 -12
- package/dist/{chunk-KS7IEA6Z.js → chunk-YGBJA7QJ.js} +50 -52
- package/dist/{chunk-WI2A2TQE.js → chunk-ZJ4IDCRR.js} +90 -91
- package/dist/chunk-ZLHWX5PJ.js +883 -0
- package/dist/commands/DbCommand.js +3 -3
- package/dist/commands/DbDrop.js +4 -5
- package/dist/commands/DbExecute.js +9 -7
- package/dist/commands/DbPull.js +11 -10
- package/dist/commands/DbPush.js +10 -9
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateCommand.js +3 -3
- package/dist/commands/MigrateDeploy.js +12 -11
- package/dist/commands/MigrateDev.js +14 -13
- package/dist/commands/MigrateDiff.js +12 -10
- package/dist/commands/MigrateReset.js +13 -12
- package/dist/commands/MigrateResolve.js +10 -9
- package/dist/commands/MigrateStatus.js +10 -9
- package/dist/index.js +50 -51
- package/dist/internals/src/Generator.d.ts +23 -5
- package/dist/internals/src/cli/checkUnsupportedDataProxy.d.ts +12 -17
- package/dist/internals/src/cli/directoryConfig.d.ts +7 -0
- package/dist/internals/src/cli/getSchema.d.ts +3 -28
- package/dist/internals/src/cli/hashes.d.ts +1 -2
- package/dist/internals/src/cli/schemaContext.d.ts +59 -0
- package/dist/internals/src/client/getClientEngineType.d.ts +1 -1
- package/dist/internals/src/convertCredentials.d.ts +1 -1
- package/dist/internals/src/engine-commands/getConfig.d.ts +1 -5
- package/dist/internals/src/engine-commands/getDmmf.d.ts +3 -6
- package/dist/internals/src/engine-commands/lintSchema.d.ts +1 -1
- package/dist/internals/src/errorReporting.d.ts +0 -1
- package/dist/internals/src/get-generators/getGenerators.d.ts +22 -9
- package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +1 -1
- package/dist/internals/src/index.d.ts +7 -7
- package/dist/internals/src/migrateTypes.d.ts +63 -0
- package/dist/internals/src/panic.d.ts +1 -4
- package/dist/internals/src/resolvePkg.d.ts +7 -0
- package/dist/internals/src/types.d.ts +1 -1
- package/dist/internals/src/utils/extractPreviewFeatures.d.ts +2 -2
- package/dist/internals/src/utils/getEnvPaths.d.ts +1 -1
- package/dist/internals/src/utils/parseEnvValue.d.ts +1 -1
- package/dist/internals/src/utils/schemaFileInput.d.ts +0 -4
- package/dist/internals/src/utils/toSchemasContainer.d.ts +2 -3
- package/dist/migrate/src/Migrate.d.ts +7 -5
- package/dist/migrate/src/SchemaEngine.d.ts +5 -9
- package/dist/migrate/src/index.d.ts +0 -1
- package/dist/migrate/src/types.d.ts +14 -10
- package/dist/migrate/src/utils/createMigration.d.ts +21 -0
- package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +4 -6
- package/dist/migrate/src/utils/introspectSql.d.ts +3 -2
- package/dist/migrate/src/utils/listMigrations.d.ts +9 -0
- package/dist/migrate/src/utils/printDatasources.d.ts +1 -1
- package/dist/migrate/src/utils/seed.d.ts +0 -2
- package/dist/migrate/src/views/handleViewsIO.d.ts +2 -2
- 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/{getSchemaPathAndPrint.js → createMigration.js} +8 -8
- package/dist/utils/customColors.js +1 -1
- package/dist/utils/ensureDatabaseExists.js +7 -7
- package/dist/utils/errors.js +1 -1
- package/dist/utils/flagErrors.js +1 -1
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/handleEvaluateDataloss.js +1 -1
- package/dist/utils/introspectSql.js +5 -5
- package/dist/utils/isSchemaEmpty.js +1 -1
- package/dist/utils/listMigrations.js +25 -0
- 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 -7
- package/dist/utils/setupCockroach.js +3 -3
- package/dist/utils/setupMSSQL.js +1478 -707
- package/dist/utils/setupMongo.js +553 -552
- package/dist/utils/setupMysql.js +508 -563
- package/dist/utils/setupPostgres.js +3 -3
- package/dist/utils/spinner.js +4 -3
- package/dist/utils/test-handlePanic.js +1 -30
- package/dist/utils/unixSocket.js +1 -1
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +11 -11
- package/dist/chunk-GKDFIHM2.js +0 -45
- package/dist/chunk-J46BJQHT.js +0 -268
- package/dist/chunk-KOF4LGTS.js +0 -1817
- package/dist/chunk-YYPMC5FN.js +0 -1407
- package/dist/internals/src/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
- package/dist/internals/src/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
- package/dist/migrate/src/utils/getSchemaPathAndPrint.d.ts +0 -10
|
@@ -26,18 +26,19 @@ 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_WU6Z6FMF_exports = {};
|
|
30
|
+
__export(chunk_WU6Z6FMF_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_WU6Z6FMF_exports);
|
|
34
|
+
var import_chunk_AUGZZ6RT = require("./chunk-AUGZZ6RT.js");
|
|
35
|
+
var import_chunk_33LPBNDX = require("./chunk-33LPBNDX.js");
|
|
36
|
+
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
37
|
+
var import_chunk_ZLHWX5PJ = require("./chunk-ZLHWX5PJ.js");
|
|
38
|
+
var import_chunk_V6PVGSDJ = require("./chunk-V6PVGSDJ.js");
|
|
39
|
+
var import_chunk_OEWQACEH = require("./chunk-OEWQACEH.js");
|
|
39
40
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
40
|
-
var
|
|
41
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
41
42
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
42
43
|
var import_internals = require("@prisma/internals");
|
|
43
44
|
var import_path = __toESM(require("path"));
|
|
@@ -57,7 +58,7 @@ var import_debug3 = __toESM(require("@prisma/debug"));
|
|
|
57
58
|
var import_get_platform = require("@prisma/get-platform");
|
|
58
59
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
59
60
|
var import_node_path4 = __toESM(require("node:path"));
|
|
60
|
-
var require_promisify = (0,
|
|
61
|
+
var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
61
62
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/promisify.js"(exports, module2) {
|
|
62
63
|
"use strict";
|
|
63
64
|
module2.exports = (fn) => {
|
|
@@ -81,10 +82,10 @@ var require_promisify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
|
-
var require_fs = (0,
|
|
85
|
+
var require_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
85
86
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/fs.js"(exports, module2) {
|
|
86
87
|
"use strict";
|
|
87
|
-
var fs3 = (0,
|
|
88
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
88
89
|
var promisify2 = require_promisify();
|
|
89
90
|
var isCallbackMethod = (key) => {
|
|
90
91
|
return [
|
|
@@ -119,7 +120,7 @@ var require_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
119
120
|
module2.exports = adaptAllMethods();
|
|
120
121
|
}
|
|
121
122
|
});
|
|
122
|
-
var require_validate = (0,
|
|
123
|
+
var require_validate = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
123
124
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/validate.js"(exports, module2) {
|
|
124
125
|
"use strict";
|
|
125
126
|
var prettyPrintTypes = (types) => {
|
|
@@ -230,7 +231,7 @@ var require_validate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
});
|
|
233
|
-
var require_mode = (0,
|
|
234
|
+
var require_mode = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
234
235
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/mode.js"(exports) {
|
|
235
236
|
"use strict";
|
|
236
237
|
exports.normalizeFileMode = (mode) => {
|
|
@@ -244,7 +245,7 @@ var require_mode = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
244
245
|
};
|
|
245
246
|
}
|
|
246
247
|
});
|
|
247
|
-
var require_remove = (0,
|
|
248
|
+
var require_remove = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
248
249
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/remove.js"(exports) {
|
|
249
250
|
"use strict";
|
|
250
251
|
var fs3 = require_fs();
|
|
@@ -272,10 +273,10 @@ var require_remove = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
272
273
|
exports.async = removeAsync;
|
|
273
274
|
}
|
|
274
275
|
});
|
|
275
|
-
var require_dir = (0,
|
|
276
|
+
var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
276
277
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/dir.js"(exports) {
|
|
277
278
|
"use strict";
|
|
278
|
-
var pathUtil = (0,
|
|
279
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
279
280
|
var fs3 = require_fs();
|
|
280
281
|
var modeUtil = require_mode();
|
|
281
282
|
var validate = require_validate();
|
|
@@ -454,10 +455,10 @@ var require_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
454
455
|
exports.createAsync = createBrandNewDirectoryAsync;
|
|
455
456
|
}
|
|
456
457
|
});
|
|
457
|
-
var require_write = (0,
|
|
458
|
+
var require_write = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
458
459
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/write.js"(exports) {
|
|
459
460
|
"use strict";
|
|
460
|
-
var pathUtil = (0,
|
|
461
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
461
462
|
var fs3 = require_fs();
|
|
462
463
|
var validate = require_validate();
|
|
463
464
|
var dir = require_dir();
|
|
@@ -546,7 +547,7 @@ var require_write = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
546
547
|
exports.async = writeAsync;
|
|
547
548
|
}
|
|
548
549
|
});
|
|
549
|
-
var require_append = (0,
|
|
550
|
+
var require_append = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
550
551
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/append.js"(exports) {
|
|
551
552
|
"use strict";
|
|
552
553
|
var fs3 = require_fs();
|
|
@@ -587,7 +588,7 @@ var require_append = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
587
588
|
exports.async = appendAsync;
|
|
588
589
|
}
|
|
589
590
|
});
|
|
590
|
-
var require_file = (0,
|
|
591
|
+
var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
591
592
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/file.js"(exports) {
|
|
592
593
|
"use strict";
|
|
593
594
|
var fs3 = require_fs();
|
|
@@ -742,11 +743,11 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
742
743
|
exports.async = fileAsync;
|
|
743
744
|
}
|
|
744
745
|
});
|
|
745
|
-
var require_inspect = (0,
|
|
746
|
+
var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
746
747
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect.js"(exports) {
|
|
747
748
|
"use strict";
|
|
748
|
-
var crypto = (0,
|
|
749
|
-
var pathUtil = (0,
|
|
749
|
+
var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
750
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
750
751
|
var fs3 = require_fs();
|
|
751
752
|
var validate = require_validate();
|
|
752
753
|
var supportedChecksumAlgorithms = ["md5", "sha1", "sha256", "sha512"];
|
|
@@ -888,7 +889,7 @@ var require_inspect = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
888
889
|
exports.async = inspectAsync;
|
|
889
890
|
}
|
|
890
891
|
});
|
|
891
|
-
var require_list = (0,
|
|
892
|
+
var require_list = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
892
893
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/list.js"(exports) {
|
|
893
894
|
"use strict";
|
|
894
895
|
var fs3 = require_fs();
|
|
@@ -925,11 +926,11 @@ var require_list = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
925
926
|
exports.async = listAsync;
|
|
926
927
|
}
|
|
927
928
|
});
|
|
928
|
-
var require_tree_walker = (0,
|
|
929
|
+
var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
929
930
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/tree_walker.js"(exports) {
|
|
930
931
|
"use strict";
|
|
931
|
-
var fs3 = (0,
|
|
932
|
-
var pathUtil = (0,
|
|
932
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
933
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
933
934
|
var inspect = require_inspect();
|
|
934
935
|
var list = require_list();
|
|
935
936
|
var fileType = (dirent) => {
|
|
@@ -1129,14 +1130,14 @@ var require_tree_walker = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1129
1130
|
exports.async = initialWalkAsync;
|
|
1130
1131
|
}
|
|
1131
1132
|
});
|
|
1132
|
-
var require_path = (0,
|
|
1133
|
+
var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1133
1134
|
"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(exports, module2) {
|
|
1134
1135
|
"use strict";
|
|
1135
1136
|
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
1136
1137
|
module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
1137
1138
|
}
|
|
1138
1139
|
});
|
|
1139
|
-
var require_balanced_match = (0,
|
|
1140
|
+
var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1140
1141
|
"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module2) {
|
|
1141
1142
|
"use strict";
|
|
1142
1143
|
module2.exports = balanced;
|
|
@@ -1192,7 +1193,7 @@ var require_balanced_match = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1192
1193
|
}
|
|
1193
1194
|
}
|
|
1194
1195
|
});
|
|
1195
|
-
var require_brace_expansion = (0,
|
|
1196
|
+
var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1196
1197
|
"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
|
|
1197
1198
|
"use strict";
|
|
1198
1199
|
var balanced = require_balanced_match();
|
|
@@ -1341,7 +1342,7 @@ var require_brace_expansion = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
1343
1344
|
});
|
|
1344
|
-
var require_minimatch = (0,
|
|
1345
|
+
var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1345
1346
|
"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
1346
1347
|
"use strict";
|
|
1347
1348
|
var minimatch = module2.exports = (p, pattern, options = {}) => {
|
|
@@ -1872,7 +1873,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1872
1873
|
minimatch.Minimatch = Minimatch;
|
|
1873
1874
|
}
|
|
1874
1875
|
});
|
|
1875
|
-
var require_matcher = (0,
|
|
1876
|
+
var require_matcher = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1876
1877
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/matcher.js"(exports) {
|
|
1877
1878
|
"use strict";
|
|
1878
1879
|
var Minimatch = require_minimatch().Minimatch;
|
|
@@ -1939,10 +1940,10 @@ var require_matcher = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1939
1940
|
};
|
|
1940
1941
|
}
|
|
1941
1942
|
});
|
|
1942
|
-
var require_find = (0,
|
|
1943
|
+
var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1943
1944
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/find.js"(exports) {
|
|
1944
1945
|
"use strict";
|
|
1945
|
-
var pathUtil = (0,
|
|
1946
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
1946
1947
|
var treeWalker = require_tree_walker();
|
|
1947
1948
|
var inspect = require_inspect();
|
|
1948
1949
|
var matcher = require_matcher();
|
|
@@ -2121,11 +2122,11 @@ var require_find = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2121
2122
|
exports.async = findAsyncInit;
|
|
2122
2123
|
}
|
|
2123
2124
|
});
|
|
2124
|
-
var require_inspect_tree = (0,
|
|
2125
|
+
var require_inspect_tree = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2125
2126
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect_tree.js"(exports) {
|
|
2126
2127
|
"use strict";
|
|
2127
|
-
var crypto = (0,
|
|
2128
|
-
var pathUtil = (0,
|
|
2128
|
+
var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
2129
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2129
2130
|
var inspect = require_inspect();
|
|
2130
2131
|
var list = require_list();
|
|
2131
2132
|
var validate = require_validate();
|
|
@@ -2275,7 +2276,7 @@ var require_inspect_tree = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2275
2276
|
exports.async = inspectTreeAsync;
|
|
2276
2277
|
}
|
|
2277
2278
|
});
|
|
2278
|
-
var require_exists = (0,
|
|
2279
|
+
var require_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2279
2280
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/exists.js"(exports) {
|
|
2280
2281
|
"use strict";
|
|
2281
2282
|
var fs3 = require_fs();
|
|
@@ -2324,10 +2325,10 @@ var require_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2324
2325
|
exports.async = existsAsync;
|
|
2325
2326
|
}
|
|
2326
2327
|
});
|
|
2327
|
-
var require_copy = (0,
|
|
2328
|
+
var require_copy = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2328
2329
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/copy.js"(exports) {
|
|
2329
2330
|
"use strict";
|
|
2330
|
-
var pathUtil = (0,
|
|
2331
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2331
2332
|
var fs3 = require_fs();
|
|
2332
2333
|
var dir = require_dir();
|
|
2333
2334
|
var exists = require_exists();
|
|
@@ -2589,10 +2590,10 @@ var require_copy = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2589
2590
|
exports.async = copyAsync;
|
|
2590
2591
|
}
|
|
2591
2592
|
});
|
|
2592
|
-
var require_move = (0,
|
|
2593
|
+
var require_move = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2593
2594
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/move.js"(exports) {
|
|
2594
2595
|
"use strict";
|
|
2595
|
-
var pathUtil = (0,
|
|
2596
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2596
2597
|
var fs3 = require_fs();
|
|
2597
2598
|
var validate = require_validate();
|
|
2598
2599
|
var copy = require_copy();
|
|
@@ -2693,7 +2694,7 @@ var require_move = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2693
2694
|
exports.async = moveAsync;
|
|
2694
2695
|
}
|
|
2695
2696
|
});
|
|
2696
|
-
var require_read = (0,
|
|
2697
|
+
var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2697
2698
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/read.js"(exports) {
|
|
2698
2699
|
"use strict";
|
|
2699
2700
|
var fs3 = require_fs();
|
|
@@ -2789,10 +2790,10 @@ var require_read = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2789
2790
|
exports.async = readAsync;
|
|
2790
2791
|
}
|
|
2791
2792
|
});
|
|
2792
|
-
var require_rename = (0,
|
|
2793
|
+
var require_rename = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2793
2794
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/rename.js"(exports) {
|
|
2794
2795
|
"use strict";
|
|
2795
|
-
var pathUtil = (0,
|
|
2796
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2796
2797
|
var move = require_move();
|
|
2797
2798
|
var validate = require_validate();
|
|
2798
2799
|
var validateInput = (methodName, path7, newName, options) => {
|
|
@@ -2821,10 +2822,10 @@ var require_rename = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2821
2822
|
exports.async = renameAsync;
|
|
2822
2823
|
}
|
|
2823
2824
|
});
|
|
2824
|
-
var require_symlink = (0,
|
|
2825
|
+
var require_symlink = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2825
2826
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/symlink.js"(exports) {
|
|
2826
2827
|
"use strict";
|
|
2827
|
-
var pathUtil = (0,
|
|
2828
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2828
2829
|
var fs3 = require_fs();
|
|
2829
2830
|
var validate = require_validate();
|
|
2830
2831
|
var dir = require_dir();
|
|
@@ -2863,20 +2864,20 @@ var require_symlink = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2863
2864
|
exports.async = symlinkAsync;
|
|
2864
2865
|
}
|
|
2865
2866
|
});
|
|
2866
|
-
var require_streams = (0,
|
|
2867
|
+
var require_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2867
2868
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/streams.js"(exports) {
|
|
2868
2869
|
"use strict";
|
|
2869
|
-
var fs3 = (0,
|
|
2870
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
2870
2871
|
exports.createWriteStream = fs3.createWriteStream;
|
|
2871
2872
|
exports.createReadStream = fs3.createReadStream;
|
|
2872
2873
|
}
|
|
2873
2874
|
});
|
|
2874
|
-
var require_tmp_dir = (0,
|
|
2875
|
+
var require_tmp_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2875
2876
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/tmp_dir.js"(exports) {
|
|
2876
2877
|
"use strict";
|
|
2877
|
-
var pathUtil = (0,
|
|
2878
|
-
var os = (0,
|
|
2879
|
-
var crypto = (0,
|
|
2878
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2879
|
+
var os = (0, import_chunk_2ESYSVXG.__require)("os");
|
|
2880
|
+
var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto");
|
|
2880
2881
|
var dir = require_dir();
|
|
2881
2882
|
var fs3 = require_fs();
|
|
2882
2883
|
var validate = require_validate();
|
|
@@ -2955,11 +2956,11 @@ var require_tmp_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2955
2956
|
exports.async = tmpDirAsync;
|
|
2956
2957
|
}
|
|
2957
2958
|
});
|
|
2958
|
-
var require_jetpack = (0,
|
|
2959
|
+
var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2959
2960
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/jetpack.js"(exports, module2) {
|
|
2960
2961
|
"use strict";
|
|
2961
|
-
var util = (0,
|
|
2962
|
-
var pathUtil = (0,
|
|
2962
|
+
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
2963
|
+
var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
2963
2964
|
var append = require_append();
|
|
2964
2965
|
var dir = require_dir();
|
|
2965
2966
|
var file = require_file();
|
|
@@ -3174,14 +3175,14 @@ var require_jetpack = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3174
3175
|
module2.exports = jetpackContext;
|
|
3175
3176
|
}
|
|
3176
3177
|
});
|
|
3177
|
-
var require_main = (0,
|
|
3178
|
+
var require_main = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3178
3179
|
"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/main.js"(exports, module2) {
|
|
3179
3180
|
"use strict";
|
|
3180
3181
|
var jetpack = require_jetpack();
|
|
3181
3182
|
module2.exports = jetpack();
|
|
3182
3183
|
}
|
|
3183
3184
|
});
|
|
3184
|
-
var require_universalify = (0,
|
|
3185
|
+
var require_universalify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3185
3186
|
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
3186
3187
|
"use strict";
|
|
3187
3188
|
exports.fromCallback = function(fn) {
|
|
@@ -3207,10 +3208,10 @@ var require_universalify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3207
3208
|
};
|
|
3208
3209
|
}
|
|
3209
3210
|
});
|
|
3210
|
-
var require_polyfills = (0,
|
|
3211
|
+
var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3211
3212
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
3212
3213
|
"use strict";
|
|
3213
|
-
var constants = (0,
|
|
3214
|
+
var constants = (0, import_chunk_2ESYSVXG.__require)("constants");
|
|
3214
3215
|
var origCwd = process.cwd;
|
|
3215
3216
|
var cwd = null;
|
|
3216
3217
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -3494,10 +3495,10 @@ var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3494
3495
|
}
|
|
3495
3496
|
}
|
|
3496
3497
|
});
|
|
3497
|
-
var require_legacy_streams = (0,
|
|
3498
|
+
var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3498
3499
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
3499
3500
|
"use strict";
|
|
3500
|
-
var Stream = (0,
|
|
3501
|
+
var Stream = (0, import_chunk_2ESYSVXG.__require)("stream").Stream;
|
|
3501
3502
|
module2.exports = legacy;
|
|
3502
3503
|
function legacy(fs3) {
|
|
3503
3504
|
return {
|
|
@@ -3589,7 +3590,7 @@ var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3589
3590
|
}
|
|
3590
3591
|
}
|
|
3591
3592
|
});
|
|
3592
|
-
var require_clone = (0,
|
|
3593
|
+
var require_clone = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3593
3594
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
3594
3595
|
"use strict";
|
|
3595
3596
|
module2.exports = clone;
|
|
@@ -3610,14 +3611,14 @@ var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3610
3611
|
}
|
|
3611
3612
|
}
|
|
3612
3613
|
});
|
|
3613
|
-
var require_graceful_fs = (0,
|
|
3614
|
+
var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3614
3615
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
3615
3616
|
"use strict";
|
|
3616
|
-
var fs3 = (0,
|
|
3617
|
+
var fs3 = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
3617
3618
|
var polyfills = require_polyfills();
|
|
3618
3619
|
var legacy = require_legacy_streams();
|
|
3619
3620
|
var clone = require_clone();
|
|
3620
|
-
var util = (0,
|
|
3621
|
+
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
3621
3622
|
var gracefulQueue;
|
|
3622
3623
|
var previousSymbol;
|
|
3623
3624
|
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
@@ -3676,7 +3677,7 @@ var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3676
3677
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
3677
3678
|
process.on("exit", function() {
|
|
3678
3679
|
debug4(fs3[gracefulQueue]);
|
|
3679
|
-
(0,
|
|
3680
|
+
(0, import_chunk_2ESYSVXG.__require)("assert").equal(fs3[gracefulQueue].length, 0);
|
|
3680
3681
|
});
|
|
3681
3682
|
}
|
|
3682
3683
|
}
|
|
@@ -3979,7 +3980,7 @@ var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3979
3980
|
}
|
|
3980
3981
|
}
|
|
3981
3982
|
});
|
|
3982
|
-
var require_fs2 = (0,
|
|
3983
|
+
var require_fs2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3983
3984
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
3984
3985
|
"use strict";
|
|
3985
3986
|
var u = require_universalify().fromCallback;
|
|
@@ -4093,10 +4094,10 @@ var require_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4093
4094
|
}
|
|
4094
4095
|
}
|
|
4095
4096
|
});
|
|
4096
|
-
var require_utils = (0,
|
|
4097
|
+
var require_utils = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4097
4098
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
4098
4099
|
"use strict";
|
|
4099
|
-
var path7 = (0,
|
|
4100
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4100
4101
|
module2.exports.checkPath = function checkPath(pth) {
|
|
4101
4102
|
if (process.platform === "win32") {
|
|
4102
4103
|
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path7.parse(pth).root, ""));
|
|
@@ -4109,7 +4110,7 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4109
4110
|
};
|
|
4110
4111
|
}
|
|
4111
4112
|
});
|
|
4112
|
-
var require_make_dir = (0,
|
|
4113
|
+
var require_make_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4113
4114
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) {
|
|
4114
4115
|
"use strict";
|
|
4115
4116
|
var fs3 = require_fs2();
|
|
@@ -4135,7 +4136,7 @@ var require_make_dir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4135
4136
|
};
|
|
4136
4137
|
}
|
|
4137
4138
|
});
|
|
4138
|
-
var require_mkdirs = (0,
|
|
4139
|
+
var require_mkdirs = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4139
4140
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) {
|
|
4140
4141
|
"use strict";
|
|
4141
4142
|
var u = require_universalify().fromPromise;
|
|
@@ -4152,7 +4153,7 @@ var require_mkdirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4152
4153
|
};
|
|
4153
4154
|
}
|
|
4154
4155
|
});
|
|
4155
|
-
var require_path_exists = (0,
|
|
4156
|
+
var require_path_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4156
4157
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
|
|
4157
4158
|
"use strict";
|
|
4158
4159
|
var u = require_universalify().fromPromise;
|
|
@@ -4166,7 +4167,7 @@ var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4166
4167
|
};
|
|
4167
4168
|
}
|
|
4168
4169
|
});
|
|
4169
|
-
var require_utimes = (0,
|
|
4170
|
+
var require_utimes = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4170
4171
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
4171
4172
|
"use strict";
|
|
4172
4173
|
var fs3 = require_fs2();
|
|
@@ -4198,11 +4199,11 @@ var require_utimes = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4198
4199
|
};
|
|
4199
4200
|
}
|
|
4200
4201
|
});
|
|
4201
|
-
var require_stat = (0,
|
|
4202
|
+
var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4202
4203
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
4203
4204
|
"use strict";
|
|
4204
4205
|
var fs3 = require_fs2();
|
|
4205
|
-
var path7 = (0,
|
|
4206
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4206
4207
|
var u = require_universalify().fromPromise;
|
|
4207
4208
|
function getStats(src, dest, opts) {
|
|
4208
4209
|
const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
|
|
@@ -4328,11 +4329,11 @@ var require_stat = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4328
4329
|
};
|
|
4329
4330
|
}
|
|
4330
4331
|
});
|
|
4331
|
-
var require_copy2 = (0,
|
|
4332
|
+
var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4332
4333
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
4333
4334
|
"use strict";
|
|
4334
4335
|
var fs3 = require_fs2();
|
|
4335
|
-
var path7 = (0,
|
|
4336
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4336
4337
|
var { mkdirs } = require_mkdirs();
|
|
4337
4338
|
var { pathExists } = require_path_exists();
|
|
4338
4339
|
var { utimesMillis } = require_utimes();
|
|
@@ -4455,11 +4456,11 @@ var require_copy2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4455
4456
|
module2.exports = copy;
|
|
4456
4457
|
}
|
|
4457
4458
|
});
|
|
4458
|
-
var require_copy_sync = (0,
|
|
4459
|
+
var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4459
4460
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
4460
4461
|
"use strict";
|
|
4461
4462
|
var fs3 = require_graceful_fs();
|
|
4462
|
-
var path7 = (0,
|
|
4463
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4463
4464
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
4464
4465
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
4465
4466
|
var stat2 = require_stat();
|
|
@@ -4589,7 +4590,7 @@ var require_copy_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4589
4590
|
module2.exports = copySync;
|
|
4590
4591
|
}
|
|
4591
4592
|
});
|
|
4592
|
-
var require_copy3 = (0,
|
|
4593
|
+
var require_copy3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4593
4594
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/index.js"(exports, module2) {
|
|
4594
4595
|
"use strict";
|
|
4595
4596
|
var u = require_universalify().fromPromise;
|
|
@@ -4599,7 +4600,7 @@ var require_copy3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4599
4600
|
};
|
|
4600
4601
|
}
|
|
4601
4602
|
});
|
|
4602
|
-
var require_remove2 = (0,
|
|
4603
|
+
var require_remove2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4603
4604
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
|
|
4604
4605
|
"use strict";
|
|
4605
4606
|
var fs3 = require_graceful_fs();
|
|
@@ -4616,12 +4617,12 @@ var require_remove2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4616
4617
|
};
|
|
4617
4618
|
}
|
|
4618
4619
|
});
|
|
4619
|
-
var require_empty = (0,
|
|
4620
|
+
var require_empty = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4620
4621
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
|
|
4621
4622
|
"use strict";
|
|
4622
4623
|
var u = require_universalify().fromPromise;
|
|
4623
4624
|
var fs3 = require_fs2();
|
|
4624
|
-
var path7 = (0,
|
|
4625
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4625
4626
|
var mkdir = require_mkdirs();
|
|
4626
4627
|
var remove = require_remove2();
|
|
4627
4628
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -4653,11 +4654,11 @@ var require_empty = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4653
4654
|
};
|
|
4654
4655
|
}
|
|
4655
4656
|
});
|
|
4656
|
-
var require_file2 = (0,
|
|
4657
|
+
var require_file2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4657
4658
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
4658
4659
|
"use strict";
|
|
4659
4660
|
var u = require_universalify().fromPromise;
|
|
4660
|
-
var path7 = (0,
|
|
4661
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4661
4662
|
var fs3 = require_fs2();
|
|
4662
4663
|
var mkdir = require_mkdirs();
|
|
4663
4664
|
async function createFile(file) {
|
|
@@ -4710,11 +4711,11 @@ var require_file2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4710
4711
|
};
|
|
4711
4712
|
}
|
|
4712
4713
|
});
|
|
4713
|
-
var require_link = (0,
|
|
4714
|
+
var require_link = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4714
4715
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
4715
4716
|
"use strict";
|
|
4716
4717
|
var u = require_universalify().fromPromise;
|
|
4717
|
-
var path7 = (0,
|
|
4718
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4718
4719
|
var fs3 = require_fs2();
|
|
4719
4720
|
var mkdir = require_mkdirs();
|
|
4720
4721
|
var { pathExists } = require_path_exists();
|
|
@@ -4765,10 +4766,10 @@ var require_link = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4765
4766
|
};
|
|
4766
4767
|
}
|
|
4767
4768
|
});
|
|
4768
|
-
var require_symlink_paths = (0,
|
|
4769
|
+
var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4769
4770
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
4770
4771
|
"use strict";
|
|
4771
|
-
var path7 = (0,
|
|
4772
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4772
4773
|
var fs3 = require_fs2();
|
|
4773
4774
|
var { pathExists } = require_path_exists();
|
|
4774
4775
|
var u = require_universalify().fromPromise;
|
|
@@ -4836,7 +4837,7 @@ var require_symlink_paths = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4836
4837
|
};
|
|
4837
4838
|
}
|
|
4838
4839
|
});
|
|
4839
|
-
var require_symlink_type = (0,
|
|
4840
|
+
var require_symlink_type = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4840
4841
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
|
|
4841
4842
|
"use strict";
|
|
4842
4843
|
var fs3 = require_fs2();
|
|
@@ -4867,11 +4868,11 @@ var require_symlink_type = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4867
4868
|
};
|
|
4868
4869
|
}
|
|
4869
4870
|
});
|
|
4870
|
-
var require_symlink2 = (0,
|
|
4871
|
+
var require_symlink2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4871
4872
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
4872
4873
|
"use strict";
|
|
4873
4874
|
var u = require_universalify().fromPromise;
|
|
4874
|
-
var path7 = (0,
|
|
4875
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
4875
4876
|
var fs3 = require_fs2();
|
|
4876
4877
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
4877
4878
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -4926,7 +4927,7 @@ var require_symlink2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4926
4927
|
};
|
|
4927
4928
|
}
|
|
4928
4929
|
});
|
|
4929
|
-
var require_ensure = (0,
|
|
4930
|
+
var require_ensure = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4930
4931
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
|
|
4931
4932
|
"use strict";
|
|
4932
4933
|
var { createFile, createFileSync } = require_file2();
|
|
@@ -4951,7 +4952,7 @@ var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4951
4952
|
};
|
|
4952
4953
|
}
|
|
4953
4954
|
});
|
|
4954
|
-
var require_utils2 = (0,
|
|
4955
|
+
var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4955
4956
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
4956
4957
|
"use strict";
|
|
4957
4958
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
@@ -4966,14 +4967,14 @@ var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4966
4967
|
module2.exports = { stringify, stripBom };
|
|
4967
4968
|
}
|
|
4968
4969
|
});
|
|
4969
|
-
var require_jsonfile = (0,
|
|
4970
|
+
var require_jsonfile = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4970
4971
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
4971
4972
|
"use strict";
|
|
4972
4973
|
var _fs;
|
|
4973
4974
|
try {
|
|
4974
4975
|
_fs = require_graceful_fs();
|
|
4975
4976
|
} catch (_) {
|
|
4976
|
-
_fs = (0,
|
|
4977
|
+
_fs = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
4977
4978
|
}
|
|
4978
4979
|
var universalify = require_universalify();
|
|
4979
4980
|
var { stringify, stripBom } = require_utils2();
|
|
@@ -5038,7 +5039,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5038
5039
|
module2.exports = jsonfile;
|
|
5039
5040
|
}
|
|
5040
5041
|
});
|
|
5041
|
-
var require_jsonfile2 = (0,
|
|
5042
|
+
var require_jsonfile2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5042
5043
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) {
|
|
5043
5044
|
"use strict";
|
|
5044
5045
|
var jsonFile = require_jsonfile();
|
|
@@ -5051,12 +5052,12 @@ var require_jsonfile2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5051
5052
|
};
|
|
5052
5053
|
}
|
|
5053
5054
|
});
|
|
5054
|
-
var require_output_file = (0,
|
|
5055
|
+
var require_output_file = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5055
5056
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) {
|
|
5056
5057
|
"use strict";
|
|
5057
5058
|
var u = require_universalify().fromPromise;
|
|
5058
5059
|
var fs3 = require_fs2();
|
|
5059
|
-
var path7 = (0,
|
|
5060
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5060
5061
|
var mkdir = require_mkdirs();
|
|
5061
5062
|
var pathExists = require_path_exists().pathExists;
|
|
5062
5063
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
@@ -5079,7 +5080,7 @@ var require_output_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5079
5080
|
};
|
|
5080
5081
|
}
|
|
5081
5082
|
});
|
|
5082
|
-
var require_output_json = (0,
|
|
5083
|
+
var require_output_json = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5083
5084
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
|
|
5084
5085
|
"use strict";
|
|
5085
5086
|
var { stringify } = require_utils2();
|
|
@@ -5091,7 +5092,7 @@ var require_output_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5091
5092
|
module2.exports = outputJson;
|
|
5092
5093
|
}
|
|
5093
5094
|
});
|
|
5094
|
-
var require_output_json_sync = (0,
|
|
5095
|
+
var require_output_json_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5095
5096
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
|
|
5096
5097
|
"use strict";
|
|
5097
5098
|
var { stringify } = require_utils2();
|
|
@@ -5103,7 +5104,7 @@ var require_output_json_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5103
5104
|
module2.exports = outputJsonSync;
|
|
5104
5105
|
}
|
|
5105
5106
|
});
|
|
5106
|
-
var require_json = (0,
|
|
5107
|
+
var require_json = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5107
5108
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/index.js"(exports, module2) {
|
|
5108
5109
|
"use strict";
|
|
5109
5110
|
var u = require_universalify().fromPromise;
|
|
@@ -5119,11 +5120,11 @@ var require_json = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5119
5120
|
module2.exports = jsonFile;
|
|
5120
5121
|
}
|
|
5121
5122
|
});
|
|
5122
|
-
var require_move2 = (0,
|
|
5123
|
+
var require_move2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5123
5124
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
5124
5125
|
"use strict";
|
|
5125
5126
|
var fs3 = require_fs2();
|
|
5126
|
-
var path7 = (0,
|
|
5127
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5127
5128
|
var { copy } = require_copy3();
|
|
5128
5129
|
var { remove } = require_remove2();
|
|
5129
5130
|
var { mkdirp } = require_mkdirs();
|
|
@@ -5169,11 +5170,11 @@ var require_move2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5169
5170
|
module2.exports = move;
|
|
5170
5171
|
}
|
|
5171
5172
|
});
|
|
5172
|
-
var require_move_sync = (0,
|
|
5173
|
+
var require_move_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5173
5174
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
5174
5175
|
"use strict";
|
|
5175
5176
|
var fs3 = require_graceful_fs();
|
|
5176
|
-
var path7 = (0,
|
|
5177
|
+
var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5177
5178
|
var copySync = require_copy3().copySync;
|
|
5178
5179
|
var removeSync = require_remove2().removeSync;
|
|
5179
5180
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -5220,7 +5221,7 @@ var require_move_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5220
5221
|
module2.exports = moveSync;
|
|
5221
5222
|
}
|
|
5222
5223
|
});
|
|
5223
|
-
var require_move3 = (0,
|
|
5224
|
+
var require_move3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5224
5225
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/index.js"(exports, module2) {
|
|
5225
5226
|
"use strict";
|
|
5226
5227
|
var u = require_universalify().fromPromise;
|
|
@@ -5230,7 +5231,7 @@ var require_move3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5230
5231
|
};
|
|
5231
5232
|
}
|
|
5232
5233
|
});
|
|
5233
|
-
var require_lib = (0,
|
|
5234
|
+
var require_lib = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5234
5235
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/index.js"(exports, module2) {
|
|
5235
5236
|
"use strict";
|
|
5236
5237
|
module2.exports = {
|
|
@@ -5249,7 +5250,7 @@ var require_lib = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5249
5250
|
};
|
|
5250
5251
|
}
|
|
5251
5252
|
});
|
|
5252
|
-
var require_dist = (0,
|
|
5253
|
+
var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5253
5254
|
"../schema-files-loader/dist/index.js"(exports, module2) {
|
|
5254
5255
|
"use strict";
|
|
5255
5256
|
var __create2 = Object.create;
|
|
@@ -5258,7 +5259,6 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5258
5259
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5259
5260
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
5260
5261
|
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
5262
|
var __export2 = (target, all) => {
|
|
5263
5263
|
for (var name in all)
|
|
5264
5264
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
@@ -5280,7 +5280,6 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5280
5280
|
mod
|
|
5281
5281
|
));
|
|
5282
5282
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5283
|
-
var __publicField2 = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5284
5283
|
var index_exports = {};
|
|
5285
5284
|
__export2(index_exports, {
|
|
5286
5285
|
CompositeFilesResolver: () => CompositeFilesResolver,
|
|
@@ -5292,9 +5291,9 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5292
5291
|
usesPrismaSchemaFolder: () => usesPrismaSchemaFolder2
|
|
5293
5292
|
});
|
|
5294
5293
|
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,
|
|
5294
|
+
var import_node_path22 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
|
|
5295
|
+
var import_prisma_schema_wasm2 = (0, import_chunk_2ESYSVXG.__require)("@prisma/prisma-schema-wasm");
|
|
5296
|
+
var import_node_path5 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
|
|
5298
5297
|
function createFileNameToKeyMapper(options) {
|
|
5299
5298
|
if (options.caseSensitive) {
|
|
5300
5299
|
return (fileName) => fileName;
|
|
@@ -5305,9 +5304,9 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5305
5304
|
constructor(primary, secondary, options) {
|
|
5306
5305
|
this.primary = primary;
|
|
5307
5306
|
this.secondary = secondary;
|
|
5308
|
-
__publicField2(this, "_fileNameToKey");
|
|
5309
5307
|
this._fileNameToKey = createFileNameToKeyMapper(options);
|
|
5310
5308
|
}
|
|
5309
|
+
_fileNameToKey;
|
|
5311
5310
|
async listDirContents(path32) {
|
|
5312
5311
|
const primaryContent = await this.primary.listDirContents(path32);
|
|
5313
5312
|
const secondaryContent = await this.secondary.listDirContents(path32);
|
|
@@ -5331,9 +5330,9 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5331
5330
|
return Array.from(map2.values());
|
|
5332
5331
|
}
|
|
5333
5332
|
var InMemoryFilesResolver = class {
|
|
5333
|
+
_tree = {};
|
|
5334
|
+
_fileNameToKey;
|
|
5334
5335
|
constructor(options) {
|
|
5335
|
-
__publicField2(this, "_tree", {});
|
|
5336
|
-
__publicField2(this, "_fileNameToKey");
|
|
5337
5336
|
this._fileNameToKey = createFileNameToKeyMapper(options);
|
|
5338
5337
|
}
|
|
5339
5338
|
addFile(absolutePath, content) {
|
|
@@ -5518,7 +5517,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5518
5517
|
}
|
|
5519
5518
|
return void 0;
|
|
5520
5519
|
}
|
|
5521
|
-
var import_promises3 = __toESM22((0,
|
|
5520
|
+
var import_promises3 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:fs/promises"));
|
|
5522
5521
|
async function ensureType2(entryPath, expectedType) {
|
|
5523
5522
|
try {
|
|
5524
5523
|
const pathStat = await import_promises3.default.stat(entryPath);
|
|
@@ -5538,7 +5537,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5538
5537
|
}
|
|
5539
5538
|
}
|
|
5540
5539
|
});
|
|
5541
|
-
var require_js_tokens = (0,
|
|
5540
|
+
var require_js_tokens = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5542
5541
|
"../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js"(exports) {
|
|
5543
5542
|
"use strict";
|
|
5544
5543
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5559,7 +5558,7 @@ var require_js_tokens = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5559
5558
|
};
|
|
5560
5559
|
}
|
|
5561
5560
|
});
|
|
5562
|
-
var require_identifier = (0,
|
|
5561
|
+
var require_identifier = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5563
5562
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
|
5564
5563
|
"use strict";
|
|
5565
5564
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5630,7 +5629,7 @@ var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5630
5629
|
}
|
|
5631
5630
|
}
|
|
5632
5631
|
});
|
|
5633
|
-
var require_keyword = (0,
|
|
5632
|
+
var require_keyword = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5634
5633
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
|
5635
5634
|
"use strict";
|
|
5636
5635
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5666,7 +5665,7 @@ var require_keyword = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5666
5665
|
}
|
|
5667
5666
|
}
|
|
5668
5667
|
});
|
|
5669
|
-
var require_lib2 = (0,
|
|
5668
|
+
var require_lib2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5670
5669
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
5671
5670
|
"use strict";
|
|
5672
5671
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5724,7 +5723,7 @@ var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5724
5723
|
var _keyword = require_keyword();
|
|
5725
5724
|
}
|
|
5726
5725
|
});
|
|
5727
|
-
var require_escape_string_regexp = (0,
|
|
5726
|
+
var require_escape_string_regexp = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5728
5727
|
"../../node_modules/.pnpm/escape-string-regexp@1.0.5/node_modules/escape-string-regexp/index.js"(exports, module2) {
|
|
5729
5728
|
"use strict";
|
|
5730
5729
|
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
@@ -5736,7 +5735,7 @@ var require_escape_string_regexp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5736
5735
|
};
|
|
5737
5736
|
}
|
|
5738
5737
|
});
|
|
5739
|
-
var require_color_name = (0,
|
|
5738
|
+
var require_color_name = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5740
5739
|
"../../node_modules/.pnpm/color-name@1.1.3/node_modules/color-name/index.js"(exports, module2) {
|
|
5741
5740
|
"use strict";
|
|
5742
5741
|
module2.exports = {
|
|
@@ -5891,7 +5890,7 @@ var require_color_name = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5891
5890
|
};
|
|
5892
5891
|
}
|
|
5893
5892
|
});
|
|
5894
|
-
var require_conversions = (0,
|
|
5893
|
+
var require_conversions = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5895
5894
|
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/conversions.js"(exports, module2) {
|
|
5896
5895
|
"use strict";
|
|
5897
5896
|
var cssKeywords = require_color_name();
|
|
@@ -6603,7 +6602,7 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6603
6602
|
};
|
|
6604
6603
|
}
|
|
6605
6604
|
});
|
|
6606
|
-
var require_route = (0,
|
|
6605
|
+
var require_route = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6607
6606
|
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/route.js"(exports, module2) {
|
|
6608
6607
|
"use strict";
|
|
6609
6608
|
var conversions = require_conversions();
|
|
@@ -6672,7 +6671,7 @@ var require_route = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6672
6671
|
};
|
|
6673
6672
|
}
|
|
6674
6673
|
});
|
|
6675
|
-
var require_color_convert = (0,
|
|
6674
|
+
var require_color_convert = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6676
6675
|
"../../node_modules/.pnpm/color-convert@1.9.3/node_modules/color-convert/index.js"(exports, module2) {
|
|
6677
6676
|
"use strict";
|
|
6678
6677
|
var conversions = require_conversions();
|
|
@@ -6730,7 +6729,7 @@ var require_color_convert = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6730
6729
|
module2.exports = convert;
|
|
6731
6730
|
}
|
|
6732
6731
|
});
|
|
6733
|
-
var require_ansi_styles = (0,
|
|
6732
|
+
var require_ansi_styles = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6734
6733
|
"../../node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
6735
6734
|
"use strict";
|
|
6736
6735
|
var colorConvert = require_color_convert();
|
|
@@ -6871,7 +6870,7 @@ var require_ansi_styles = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6871
6870
|
});
|
|
6872
6871
|
}
|
|
6873
6872
|
});
|
|
6874
|
-
var require_has_flag = (0,
|
|
6873
|
+
var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6875
6874
|
"../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
6876
6875
|
"use strict";
|
|
6877
6876
|
module2.exports = (flag, argv) => {
|
|
@@ -6883,10 +6882,10 @@ var require_has_flag = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6883
6882
|
};
|
|
6884
6883
|
}
|
|
6885
6884
|
});
|
|
6886
|
-
var require_supports_color = (0,
|
|
6885
|
+
var require_supports_color = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6887
6886
|
"../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
6888
6887
|
"use strict";
|
|
6889
|
-
var os = (0,
|
|
6888
|
+
var os = (0, import_chunk_2ESYSVXG.__require)("os");
|
|
6890
6889
|
var hasFlag = require_has_flag();
|
|
6891
6890
|
var env = process.env;
|
|
6892
6891
|
var forceColor;
|
|
@@ -6976,7 +6975,7 @@ var require_supports_color = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6976
6975
|
};
|
|
6977
6976
|
}
|
|
6978
6977
|
});
|
|
6979
|
-
var require_templates = (0,
|
|
6978
|
+
var require_templates = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6980
6979
|
"../../node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/templates.js"(exports, module2) {
|
|
6981
6980
|
"use strict";
|
|
6982
6981
|
var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
@@ -7085,7 +7084,7 @@ var require_templates = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7085
7084
|
};
|
|
7086
7085
|
}
|
|
7087
7086
|
});
|
|
7088
|
-
var require_chalk = (0,
|
|
7087
|
+
var require_chalk = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7089
7088
|
"../../node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
|
|
7090
7089
|
"use strict";
|
|
7091
7090
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
@@ -7250,7 +7249,7 @@ var require_chalk = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7250
7249
|
module2.exports.default = module2.exports;
|
|
7251
7250
|
}
|
|
7252
7251
|
});
|
|
7253
|
-
var require_lib3 = (0,
|
|
7252
|
+
var require_lib3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7254
7253
|
"../../node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js"(exports) {
|
|
7255
7254
|
"use strict";
|
|
7256
7255
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7373,7 +7372,7 @@ var require_lib3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7373
7372
|
}
|
|
7374
7373
|
}
|
|
7375
7374
|
});
|
|
7376
|
-
var require_lib4 = (0,
|
|
7375
|
+
var require_lib4 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7377
7376
|
"../../node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
|
7378
7377
|
"use strict";
|
|
7379
7378
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7549,7 +7548,7 @@ ${frame}`;
|
|
|
7549
7548
|
}
|
|
7550
7549
|
}
|
|
7551
7550
|
});
|
|
7552
|
-
var require_spdx_license_ids = (0,
|
|
7551
|
+
var require_spdx_license_ids = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
7553
7552
|
"../../node_modules/.pnpm/spdx-license-ids@3.0.21/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
|
7554
7553
|
module2.exports = [
|
|
7555
7554
|
"0BSD",
|
|
@@ -8203,7 +8202,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8203
8202
|
];
|
|
8204
8203
|
}
|
|
8205
8204
|
});
|
|
8206
|
-
var require_spdx_exceptions = (0,
|
|
8205
|
+
var require_spdx_exceptions = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8207
8206
|
"../../node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json"(exports, module2) {
|
|
8208
8207
|
module2.exports = [
|
|
8209
8208
|
"389-exception",
|
|
@@ -8275,7 +8274,7 @@ var require_spdx_exceptions = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8275
8274
|
];
|
|
8276
8275
|
}
|
|
8277
8276
|
});
|
|
8278
|
-
var require_scan = (0,
|
|
8277
|
+
var require_scan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8279
8278
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/scan.js"(exports, module2) {
|
|
8280
8279
|
"use strict";
|
|
8281
8280
|
var licenses = [].concat(require_spdx_license_ids()).concat(require_spdx_license_ids());
|
|
@@ -8377,7 +8376,7 @@ var require_scan = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8377
8376
|
};
|
|
8378
8377
|
}
|
|
8379
8378
|
});
|
|
8380
|
-
var require_parse = (0,
|
|
8379
|
+
var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8381
8380
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js"(exports, module2) {
|
|
8382
8381
|
"use strict";
|
|
8383
8382
|
module2.exports = function(tokens) {
|
|
@@ -8489,7 +8488,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8489
8488
|
};
|
|
8490
8489
|
}
|
|
8491
8490
|
});
|
|
8492
|
-
var require_spdx_expression_parse = (0,
|
|
8491
|
+
var require_spdx_expression_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8493
8492
|
"../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js"(exports, module2) {
|
|
8494
8493
|
"use strict";
|
|
8495
8494
|
var scan = require_scan();
|
|
@@ -8499,7 +8498,7 @@ var require_spdx_expression_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8499
8498
|
};
|
|
8500
8499
|
}
|
|
8501
8500
|
});
|
|
8502
|
-
var require_spdx_correct = (0,
|
|
8501
|
+
var require_spdx_correct = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8503
8502
|
"../../node_modules/.pnpm/spdx-correct@3.1.1/node_modules/spdx-correct/index.js"(exports, module2) {
|
|
8504
8503
|
"use strict";
|
|
8505
8504
|
var parse = require_spdx_expression_parse();
|
|
@@ -8816,7 +8815,7 @@ var require_spdx_correct = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8816
8815
|
}
|
|
8817
8816
|
}
|
|
8818
8817
|
});
|
|
8819
|
-
var require_validate_npm_package_license = (0,
|
|
8818
|
+
var require_validate_npm_package_license = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8820
8819
|
"../../node_modules/.pnpm/validate-npm-package-license@3.0.4/node_modules/validate-npm-package-license/index.js"(exports, module2) {
|
|
8821
8820
|
"use strict";
|
|
8822
8821
|
var parse = require_spdx_expression_parse();
|
|
@@ -8886,7 +8885,7 @@ var require_validate_npm_package_license = (0, import_chunk_WWAWV7DQ.__commonJS)
|
|
|
8886
8885
|
};
|
|
8887
8886
|
}
|
|
8888
8887
|
});
|
|
8889
|
-
var require_hosts = (0,
|
|
8888
|
+
var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
8890
8889
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/hosts.js"(exports, module2) {
|
|
8891
8890
|
"use strict";
|
|
8892
8891
|
var maybeJoin = (...args) => args.every((arg2) => arg2) ? args.join("") : "";
|
|
@@ -9051,10 +9050,10 @@ var require_hosts = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9051
9050
|
module2.exports = hosts;
|
|
9052
9051
|
}
|
|
9053
9052
|
});
|
|
9054
|
-
var require_parse_url = (0,
|
|
9053
|
+
var require_parse_url = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9055
9054
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/parse-url.js"(exports, module2) {
|
|
9056
9055
|
"use strict";
|
|
9057
|
-
var url = (0,
|
|
9056
|
+
var url = (0, import_chunk_2ESYSVXG.__require)("url");
|
|
9058
9057
|
var lastIndexOfBefore = (str, char, beforeChar) => {
|
|
9059
9058
|
const startPosition = str.indexOf(beforeChar);
|
|
9060
9059
|
return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity);
|
|
@@ -9102,7 +9101,7 @@ var require_parse_url = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9102
9101
|
};
|
|
9103
9102
|
}
|
|
9104
9103
|
});
|
|
9105
|
-
var require_from_url = (0,
|
|
9104
|
+
var require_from_url = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9106
9105
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/from-url.js"(exports, module2) {
|
|
9107
9106
|
"use strict";
|
|
9108
9107
|
var parseUrl = require_parse_url();
|
|
@@ -9194,19 +9193,17 @@ var require_from_url = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9194
9193
|
};
|
|
9195
9194
|
}
|
|
9196
9195
|
});
|
|
9197
|
-
var require_lib5 = (0,
|
|
9196
|
+
var require_lib5 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9198
9197
|
"../../node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/index.js"(exports, module2) {
|
|
9199
9198
|
"use strict";
|
|
9200
|
-
var { LRUCache } = (0,
|
|
9199
|
+
var { LRUCache } = (0, import_chunk_33LPBNDX.require_commonjs)();
|
|
9201
9200
|
var hosts = require_hosts();
|
|
9202
9201
|
var fromUrl = require_from_url();
|
|
9203
9202
|
var parseUrl = require_parse_url();
|
|
9204
9203
|
var cache = new LRUCache({ max: 1e3 });
|
|
9205
|
-
var
|
|
9206
|
-
var _GitHost = class _GitHost2 {
|
|
9204
|
+
var GitHost = class _GitHost {
|
|
9207
9205
|
constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) {
|
|
9208
|
-
|
|
9209
|
-
Object.assign(this, (0, import_chunk_WWAWV7DQ.__privateGet)(_GitHost2, _gitHosts)[type], {
|
|
9206
|
+
Object.assign(this, _GitHost.#gitHosts[type], {
|
|
9210
9207
|
type,
|
|
9211
9208
|
user,
|
|
9212
9209
|
auth,
|
|
@@ -9216,11 +9213,21 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9216
9213
|
opts
|
|
9217
9214
|
});
|
|
9218
9215
|
}
|
|
9216
|
+
static #gitHosts = { byShortcut: {}, byDomain: {} };
|
|
9217
|
+
static #protocols = {
|
|
9218
|
+
"git+ssh:": { name: "sshurl" },
|
|
9219
|
+
"ssh:": { name: "sshurl" },
|
|
9220
|
+
"git+https:": { name: "https", auth: true },
|
|
9221
|
+
"git:": { auth: true },
|
|
9222
|
+
"http:": { auth: true },
|
|
9223
|
+
"https:": { auth: true },
|
|
9224
|
+
"git+http:": { auth: true }
|
|
9225
|
+
};
|
|
9219
9226
|
static addHost(name, host) {
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9227
|
+
_GitHost.#gitHosts[name] = host;
|
|
9228
|
+
_GitHost.#gitHosts.byDomain[host.domain] = name;
|
|
9229
|
+
_GitHost.#gitHosts.byShortcut[`${name}:`] = name;
|
|
9230
|
+
_GitHost.#protocols[`${name}:`] = { name };
|
|
9224
9231
|
}
|
|
9225
9232
|
static fromUrl(giturl, opts) {
|
|
9226
9233
|
if (typeof giturl !== "string") {
|
|
@@ -9229,33 +9236,50 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9229
9236
|
const key = giturl + JSON.stringify(opts || {});
|
|
9230
9237
|
if (!cache.has(key)) {
|
|
9231
9238
|
const hostArgs = fromUrl(giturl, opts, {
|
|
9232
|
-
gitHosts:
|
|
9233
|
-
protocols:
|
|
9239
|
+
gitHosts: _GitHost.#gitHosts,
|
|
9240
|
+
protocols: _GitHost.#protocols
|
|
9234
9241
|
});
|
|
9235
|
-
cache.set(key, hostArgs ? new
|
|
9242
|
+
cache.set(key, hostArgs ? new _GitHost(...hostArgs) : void 0);
|
|
9236
9243
|
}
|
|
9237
9244
|
return cache.get(key);
|
|
9238
9245
|
}
|
|
9239
9246
|
static parseUrl(url) {
|
|
9240
9247
|
return parseUrl(url);
|
|
9241
9248
|
}
|
|
9249
|
+
#fill(template, opts) {
|
|
9250
|
+
if (typeof template !== "function") {
|
|
9251
|
+
return null;
|
|
9252
|
+
}
|
|
9253
|
+
const options = { ...this, ...this.opts, ...opts };
|
|
9254
|
+
if (!options.path) {
|
|
9255
|
+
options.path = "";
|
|
9256
|
+
}
|
|
9257
|
+
if (options.path.startsWith("/")) {
|
|
9258
|
+
options.path = options.path.slice(1);
|
|
9259
|
+
}
|
|
9260
|
+
if (options.noCommittish) {
|
|
9261
|
+
options.committish = null;
|
|
9262
|
+
}
|
|
9263
|
+
const result = template(options);
|
|
9264
|
+
return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result;
|
|
9265
|
+
}
|
|
9242
9266
|
hash() {
|
|
9243
9267
|
return this.committish ? `#${this.committish}` : "";
|
|
9244
9268
|
}
|
|
9245
9269
|
ssh(opts) {
|
|
9246
|
-
return
|
|
9270
|
+
return this.#fill(this.sshtemplate, opts);
|
|
9247
9271
|
}
|
|
9248
9272
|
sshurl(opts) {
|
|
9249
|
-
return
|
|
9273
|
+
return this.#fill(this.sshurltemplate, opts);
|
|
9250
9274
|
}
|
|
9251
9275
|
browse(path7, ...args) {
|
|
9252
9276
|
if (typeof path7 !== "string") {
|
|
9253
|
-
return
|
|
9277
|
+
return this.#fill(this.browsetemplate, path7);
|
|
9254
9278
|
}
|
|
9255
9279
|
if (typeof args[0] !== "string") {
|
|
9256
|
-
return
|
|
9280
|
+
return this.#fill(this.browsetreetemplate, { ...args[0], path: path7 });
|
|
9257
9281
|
}
|
|
9258
|
-
return
|
|
9282
|
+
return this.#fill(this.browsetreetemplate, { ...args[1], fragment: args[0], path: path7 });
|
|
9259
9283
|
}
|
|
9260
9284
|
// If the path is known to be a file, then browseFile should be used. For some hosts
|
|
9261
9285
|
// the url is the same as browse, but for others like GitHub a file can use both `/tree/`
|
|
@@ -9264,36 +9288,36 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9264
9288
|
// does not redirect to a different commit.
|
|
9265
9289
|
browseFile(path7, ...args) {
|
|
9266
9290
|
if (typeof args[0] !== "string") {
|
|
9267
|
-
return
|
|
9291
|
+
return this.#fill(this.browseblobtemplate, { ...args[0], path: path7 });
|
|
9268
9292
|
}
|
|
9269
|
-
return
|
|
9293
|
+
return this.#fill(this.browseblobtemplate, { ...args[1], fragment: args[0], path: path7 });
|
|
9270
9294
|
}
|
|
9271
9295
|
docs(opts) {
|
|
9272
|
-
return
|
|
9296
|
+
return this.#fill(this.docstemplate, opts);
|
|
9273
9297
|
}
|
|
9274
9298
|
bugs(opts) {
|
|
9275
|
-
return
|
|
9299
|
+
return this.#fill(this.bugstemplate, opts);
|
|
9276
9300
|
}
|
|
9277
9301
|
https(opts) {
|
|
9278
|
-
return
|
|
9302
|
+
return this.#fill(this.httpstemplate, opts);
|
|
9279
9303
|
}
|
|
9280
9304
|
git(opts) {
|
|
9281
|
-
return
|
|
9305
|
+
return this.#fill(this.gittemplate, opts);
|
|
9282
9306
|
}
|
|
9283
9307
|
shortcut(opts) {
|
|
9284
|
-
return
|
|
9308
|
+
return this.#fill(this.shortcuttemplate, opts);
|
|
9285
9309
|
}
|
|
9286
9310
|
path(opts) {
|
|
9287
|
-
return
|
|
9311
|
+
return this.#fill(this.pathtemplate, opts);
|
|
9288
9312
|
}
|
|
9289
9313
|
tarball(opts) {
|
|
9290
|
-
return
|
|
9314
|
+
return this.#fill(this.tarballtemplate, { ...opts, noCommittish: false });
|
|
9291
9315
|
}
|
|
9292
9316
|
file(path7, opts) {
|
|
9293
|
-
return
|
|
9317
|
+
return this.#fill(this.filetemplate, { ...opts, path: path7 });
|
|
9294
9318
|
}
|
|
9295
9319
|
edit(path7, opts) {
|
|
9296
|
-
return
|
|
9320
|
+
return this.#fill(this.edittemplate, { ...opts, path: path7 });
|
|
9297
9321
|
}
|
|
9298
9322
|
getDefaultRepresentation() {
|
|
9299
9323
|
return this.default;
|
|
@@ -9305,135 +9329,14 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9305
9329
|
return this.sshurl(opts);
|
|
9306
9330
|
}
|
|
9307
9331
|
};
|
|
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
9332
|
for (const [name, host] of Object.entries(hosts)) {
|
|
9340
9333
|
GitHost.addHost(name, host);
|
|
9341
9334
|
}
|
|
9342
9335
|
module2.exports = GitHost;
|
|
9343
9336
|
}
|
|
9344
9337
|
});
|
|
9345
|
-
var
|
|
9346
|
-
"../../node_modules/.pnpm/
|
|
9347
|
-
"use strict";
|
|
9348
|
-
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
9349
|
-
var toStr = Object.prototype.toString;
|
|
9350
|
-
var max = Math.max;
|
|
9351
|
-
var funcType = "[object Function]";
|
|
9352
|
-
var concatty = function concatty2(a, b) {
|
|
9353
|
-
var arr = [];
|
|
9354
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
9355
|
-
arr[i] = a[i];
|
|
9356
|
-
}
|
|
9357
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
9358
|
-
arr[j + a.length] = b[j];
|
|
9359
|
-
}
|
|
9360
|
-
return arr;
|
|
9361
|
-
};
|
|
9362
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
9363
|
-
var arr = [];
|
|
9364
|
-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
9365
|
-
arr[j] = arrLike[i];
|
|
9366
|
-
}
|
|
9367
|
-
return arr;
|
|
9368
|
-
};
|
|
9369
|
-
var joiny = function(arr, joiner) {
|
|
9370
|
-
var str = "";
|
|
9371
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
9372
|
-
str += arr[i];
|
|
9373
|
-
if (i + 1 < arr.length) {
|
|
9374
|
-
str += joiner;
|
|
9375
|
-
}
|
|
9376
|
-
}
|
|
9377
|
-
return str;
|
|
9378
|
-
};
|
|
9379
|
-
module2.exports = function bind2(that) {
|
|
9380
|
-
var target = this;
|
|
9381
|
-
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
9382
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
9383
|
-
}
|
|
9384
|
-
var args = slicy(arguments, 1);
|
|
9385
|
-
var bound;
|
|
9386
|
-
var binder = function() {
|
|
9387
|
-
if (this instanceof bound) {
|
|
9388
|
-
var result = target.apply(
|
|
9389
|
-
this,
|
|
9390
|
-
concatty(args, arguments)
|
|
9391
|
-
);
|
|
9392
|
-
if (Object(result) === result) {
|
|
9393
|
-
return result;
|
|
9394
|
-
}
|
|
9395
|
-
return this;
|
|
9396
|
-
}
|
|
9397
|
-
return target.apply(
|
|
9398
|
-
that,
|
|
9399
|
-
concatty(args, arguments)
|
|
9400
|
-
);
|
|
9401
|
-
};
|
|
9402
|
-
var boundLength = max(0, target.length - args.length);
|
|
9403
|
-
var boundArgs = [];
|
|
9404
|
-
for (var i = 0; i < boundLength; i++) {
|
|
9405
|
-
boundArgs[i] = "$" + i;
|
|
9406
|
-
}
|
|
9407
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
9408
|
-
if (target.prototype) {
|
|
9409
|
-
var Empty = function Empty2() {
|
|
9410
|
-
};
|
|
9411
|
-
Empty.prototype = target.prototype;
|
|
9412
|
-
bound.prototype = new Empty();
|
|
9413
|
-
Empty.prototype = null;
|
|
9414
|
-
}
|
|
9415
|
-
return bound;
|
|
9416
|
-
};
|
|
9417
|
-
}
|
|
9418
|
-
});
|
|
9419
|
-
var require_function_bind = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9420
|
-
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
|
9421
|
-
"use strict";
|
|
9422
|
-
var implementation = require_implementation();
|
|
9423
|
-
module2.exports = Function.prototype.bind || implementation;
|
|
9424
|
-
}
|
|
9425
|
-
});
|
|
9426
|
-
var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9427
|
-
"../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module2) {
|
|
9428
|
-
"use strict";
|
|
9429
|
-
var call = Function.prototype.call;
|
|
9430
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
9431
|
-
var bind2 = require_function_bind();
|
|
9432
|
-
module2.exports = bind2.call(call, $hasOwn);
|
|
9433
|
-
}
|
|
9434
|
-
});
|
|
9435
|
-
var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9436
|
-
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/core.json"(exports, module2) {
|
|
9338
|
+
var require_core = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9339
|
+
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports, module2) {
|
|
9437
9340
|
module2.exports = {
|
|
9438
9341
|
assert: true,
|
|
9439
9342
|
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
|
@@ -9525,7 +9428,9 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9525
9428
|
"node:readline/promises": ">= 17",
|
|
9526
9429
|
repl: true,
|
|
9527
9430
|
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
9431
|
+
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
9528
9432
|
smalloc: ">= 0.11.5 && < 3",
|
|
9433
|
+
"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
|
|
9529
9434
|
_stream_duplex: ">= 0.9.4",
|
|
9530
9435
|
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
9531
9436
|
_stream_transform: ">= 0.9.4",
|
|
@@ -9552,6 +9457,8 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9552
9457
|
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
9553
9458
|
"test/reporters": ">= 19.9 && < 20.2",
|
|
9554
9459
|
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
|
9460
|
+
"test/mock_loader": ">= 22.3 && < 22.7",
|
|
9461
|
+
"node:test/mock_loader": ">= 22.3 && < 22.7",
|
|
9555
9462
|
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
9556
9463
|
timers: true,
|
|
9557
9464
|
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
@@ -9594,10 +9501,10 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9594
9501
|
};
|
|
9595
9502
|
}
|
|
9596
9503
|
});
|
|
9597
|
-
var require_is_core_module = (0,
|
|
9598
|
-
"../../node_modules/.pnpm/is-core-module@2.
|
|
9504
|
+
var require_is_core_module = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9505
|
+
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(exports, module2) {
|
|
9599
9506
|
"use strict";
|
|
9600
|
-
var hasOwn = require_hasown();
|
|
9507
|
+
var hasOwn = (0, import_chunk_AUGZZ6RT.require_hasown)();
|
|
9601
9508
|
function specifierIncluded(current, specifier) {
|
|
9602
9509
|
var nodeParts = current.split(".");
|
|
9603
9510
|
var parts = specifier.split(" ");
|
|
@@ -9655,7 +9562,7 @@ var require_is_core_module = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9655
9562
|
};
|
|
9656
9563
|
}
|
|
9657
9564
|
});
|
|
9658
|
-
var require_extract_description = (0,
|
|
9565
|
+
var require_extract_description = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9659
9566
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/extract_description.js"(exports, module2) {
|
|
9660
9567
|
"use strict";
|
|
9661
9568
|
module2.exports = extractDescription;
|
|
@@ -9680,7 +9587,7 @@ var require_extract_description = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9680
9587
|
}
|
|
9681
9588
|
}
|
|
9682
9589
|
});
|
|
9683
|
-
var require_typos = (0,
|
|
9590
|
+
var require_typos = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9684
9591
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/typos.json"(exports, module2) {
|
|
9685
9592
|
module2.exports = {
|
|
9686
9593
|
topLevel: {
|
|
@@ -9709,17 +9616,17 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9709
9616
|
};
|
|
9710
9617
|
}
|
|
9711
9618
|
});
|
|
9712
|
-
var require_fixer = (0,
|
|
9619
|
+
var require_fixer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9713
9620
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
|
9714
9621
|
"use strict";
|
|
9715
|
-
var isValidSemver = (0,
|
|
9716
|
-
var cleanSemver = (0,
|
|
9622
|
+
var isValidSemver = (0, import_chunk_AUGZZ6RT.require_valid)();
|
|
9623
|
+
var cleanSemver = (0, import_chunk_AUGZZ6RT.require_clean)();
|
|
9717
9624
|
var validateLicense = require_validate_npm_package_license();
|
|
9718
9625
|
var hostedGitInfo = require_lib5();
|
|
9719
9626
|
var isBuiltinModule = require_is_core_module();
|
|
9720
9627
|
var depTypes = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
9721
9628
|
var extractDescription = require_extract_description();
|
|
9722
|
-
var url = (0,
|
|
9629
|
+
var url = (0, import_chunk_2ESYSVXG.__require)("url");
|
|
9723
9630
|
var typos = require_typos();
|
|
9724
9631
|
var isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
|
|
9725
9632
|
module2.exports = {
|
|
@@ -10140,7 +10047,7 @@ var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10140
10047
|
}
|
|
10141
10048
|
}
|
|
10142
10049
|
});
|
|
10143
|
-
var require_warning_messages = (0,
|
|
10050
|
+
var require_warning_messages = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10144
10051
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module2) {
|
|
10145
10052
|
module2.exports = {
|
|
10146
10053
|
repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field",
|
|
@@ -10174,10 +10081,10 @@ var require_warning_messages = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10174
10081
|
};
|
|
10175
10082
|
}
|
|
10176
10083
|
});
|
|
10177
|
-
var require_make_warning = (0,
|
|
10084
|
+
var require_make_warning = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10178
10085
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/make_warning.js"(exports, module2) {
|
|
10179
10086
|
"use strict";
|
|
10180
|
-
var util = (0,
|
|
10087
|
+
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
10181
10088
|
var messages = require_warning_messages();
|
|
10182
10089
|
module2.exports = function() {
|
|
10183
10090
|
var args = Array.prototype.slice.call(arguments, 0);
|
|
@@ -10199,7 +10106,7 @@ var require_make_warning = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10199
10106
|
}
|
|
10200
10107
|
}
|
|
10201
10108
|
});
|
|
10202
|
-
var require_normalize = (0,
|
|
10109
|
+
var require_normalize = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10203
10110
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/normalize.js"(exports, module2) {
|
|
10204
10111
|
"use strict";
|
|
10205
10112
|
module2.exports = normalize;
|
|
@@ -10255,11 +10162,11 @@ var require_normalize = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10255
10162
|
}
|
|
10256
10163
|
}
|
|
10257
10164
|
});
|
|
10258
|
-
var require_package = (0,
|
|
10165
|
+
var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10259
10166
|
"../internals/package.json"(exports, module2) {
|
|
10260
10167
|
module2.exports = {
|
|
10261
10168
|
name: "@prisma/internals",
|
|
10262
|
-
version: "6.6.0-dev.
|
|
10169
|
+
version: "6.6.0-dev.80",
|
|
10263
10170
|
description: "This package is intended for Prisma's internal use",
|
|
10264
10171
|
main: "dist/index.js",
|
|
10265
10172
|
types: "dist/index.d.ts",
|
|
@@ -10286,7 +10193,6 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10286
10193
|
"scripts"
|
|
10287
10194
|
],
|
|
10288
10195
|
devDependencies: {
|
|
10289
|
-
"@antfu/ni": "0.21.12",
|
|
10290
10196
|
"@babel/helper-validator-identifier": "7.25.9",
|
|
10291
10197
|
"@opentelemetry/api": "1.9.0",
|
|
10292
10198
|
"@swc/core": "1.11.5",
|
|
@@ -10299,8 +10205,8 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10299
10205
|
"checkpoint-client": "1.1.33",
|
|
10300
10206
|
"cli-truncate": "4.0.0",
|
|
10301
10207
|
dotenv: "16.4.7",
|
|
10302
|
-
esbuild: "0.
|
|
10303
|
-
"escape-string-regexp": "
|
|
10208
|
+
esbuild: "0.25.1",
|
|
10209
|
+
"escape-string-regexp": "5.0.0",
|
|
10304
10210
|
execa: "5.1.1",
|
|
10305
10211
|
"fast-glob": "3.3.3",
|
|
10306
10212
|
"find-up": "7.0.0",
|
|
@@ -10329,7 +10235,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10329
10235
|
"strip-indent": "4.0.0",
|
|
10330
10236
|
"temp-dir": "2.0.0",
|
|
10331
10237
|
tempy: "1.0.1",
|
|
10332
|
-
"terminal-link": "
|
|
10238
|
+
"terminal-link": "3.0.0",
|
|
10333
10239
|
tmp: "0.2.3",
|
|
10334
10240
|
"ts-node": "10.9.2",
|
|
10335
10241
|
"ts-pattern": "5.6.2",
|
|
@@ -10340,11 +10246,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10340
10246
|
dependencies: {
|
|
10341
10247
|
"@prisma/config": "workspace:*",
|
|
10342
10248
|
"@prisma/debug": "workspace:*",
|
|
10249
|
+
"@prisma/dmmf": "workspace:*",
|
|
10343
10250
|
"@prisma/engines": "workspace:*",
|
|
10344
10251
|
"@prisma/fetch-engine": "workspace:*",
|
|
10252
|
+
"@prisma/generator": "workspace:*",
|
|
10345
10253
|
"@prisma/generator-helper": "workspace:*",
|
|
10346
10254
|
"@prisma/get-platform": "workspace:*",
|
|
10347
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
|
10255
|
+
"@prisma/prisma-schema-wasm": "6.6.0-41.9061db3b0058e3d3731c6fe68a1b77061bed4861",
|
|
10348
10256
|
"@prisma/schema-files-loader": "workspace:*",
|
|
10349
10257
|
arg: "5.0.2",
|
|
10350
10258
|
prompts: "2.4.2"
|
|
@@ -10361,8 +10269,8 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10361
10269
|
};
|
|
10362
10270
|
}
|
|
10363
10271
|
});
|
|
10364
|
-
var import_fs_jetpack = (0,
|
|
10365
|
-
var import_schema_files_loader = (0,
|
|
10272
|
+
var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)(require_main());
|
|
10273
|
+
var import_schema_files_loader = (0, import_chunk_2ESYSVXG.__toESM)(require_dist());
|
|
10366
10274
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
10367
10275
|
async function findUp(name, {
|
|
10368
10276
|
cwd = import_node_process.default.cwd(),
|
|
@@ -10384,7 +10292,7 @@ async function findUp(name, {
|
|
|
10384
10292
|
directory = import_node_path2.default.dirname(directory);
|
|
10385
10293
|
}
|
|
10386
10294
|
}
|
|
10387
|
-
var import_code_frame = (0,
|
|
10295
|
+
var import_code_frame = (0, import_chunk_2ESYSVXG.__toESM)(require_lib4(), 1);
|
|
10388
10296
|
var safeLastIndexOf = (string, searchString, index) => index < 0 ? -1 : string.lastIndexOf(searchString, index);
|
|
10389
10297
|
function getPosition(text, textIndex) {
|
|
10390
10298
|
const lineBreakBefore = safeLastIndexOf(text, "\n", textIndex - 1);
|
|
@@ -10403,31 +10311,28 @@ function indexToLineColumn(text, textIndex, { oneBased = false } = {}) {
|
|
|
10403
10311
|
return oneBased ? { line: position.line + 1, column: position.column + 1 } : position;
|
|
10404
10312
|
}
|
|
10405
10313
|
var getCodePoint = (character) => `\\u{${character.codePointAt(0).toString(16)}}`;
|
|
10406
|
-
var
|
|
10407
|
-
|
|
10314
|
+
var JSONError = class _JSONError extends Error {
|
|
10315
|
+
name = "JSONError";
|
|
10316
|
+
fileName;
|
|
10317
|
+
codeFrame;
|
|
10318
|
+
rawCodeFrame;
|
|
10319
|
+
#message;
|
|
10408
10320
|
constructor(message) {
|
|
10409
10321
|
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);
|
|
10322
|
+
this.#message = message;
|
|
10323
|
+
Error.captureStackTrace?.(this, _JSONError);
|
|
10417
10324
|
}
|
|
10418
10325
|
get message() {
|
|
10419
10326
|
const { fileName, codeFrame } = this;
|
|
10420
|
-
return `${
|
|
10327
|
+
return `${this.#message}${fileName ? ` in ${fileName}` : ""}${codeFrame ? `
|
|
10421
10328
|
|
|
10422
10329
|
${codeFrame}
|
|
10423
10330
|
` : ""}`;
|
|
10424
10331
|
}
|
|
10425
10332
|
set message(message) {
|
|
10426
|
-
|
|
10333
|
+
this.#message = message;
|
|
10427
10334
|
}
|
|
10428
10335
|
};
|
|
10429
|
-
_message = /* @__PURE__ */ new WeakMap();
|
|
10430
|
-
var JSONError = _JSONError;
|
|
10431
10336
|
var generateCodeFrame = (string, location, highlightCode = true) => (0, import_code_frame.codeFrameColumns)(string, { start: location }, { highlightCode });
|
|
10432
10337
|
var getErrorLocation = (string, message) => {
|
|
10433
10338
|
const match = message.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);
|
|
@@ -10481,7 +10386,7 @@ function parseJson(string, reviver, fileName) {
|
|
|
10481
10386
|
}
|
|
10482
10387
|
throw jsonError;
|
|
10483
10388
|
}
|
|
10484
|
-
var import_normalize_package_data = (0,
|
|
10389
|
+
var import_normalize_package_data = (0, import_chunk_2ESYSVXG.__toESM)(require_normalize(), 1);
|
|
10485
10390
|
function toPath2(urlOrPath) {
|
|
10486
10391
|
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
10487
10392
|
}
|
|
@@ -10654,23 +10559,19 @@ var tryCatch = function(f, onThrow) {
|
|
|
10654
10559
|
}
|
|
10655
10560
|
};
|
|
10656
10561
|
var chainW = flatMap;
|
|
10657
|
-
var import_function3 = (0,
|
|
10562
|
+
var import_function3 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OEWQACEH.require_function)());
|
|
10658
10563
|
var RustPanic = class extends Error {
|
|
10659
|
-
|
|
10564
|
+
__typename = "RustPanic";
|
|
10565
|
+
request;
|
|
10566
|
+
rustStack;
|
|
10567
|
+
area;
|
|
10568
|
+
introspectionUrl;
|
|
10569
|
+
constructor(message, rustStack, request, area, introspectionUrl) {
|
|
10660
10570
|
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
10571
|
this.name = "RustPanic";
|
|
10669
10572
|
this.rustStack = rustStack;
|
|
10670
10573
|
this.request = request;
|
|
10671
10574
|
this.area = area;
|
|
10672
|
-
this.schemaPath = schemaPath;
|
|
10673
|
-
this.schema = schema;
|
|
10674
10575
|
this.introspectionUrl = introspectionUrl;
|
|
10675
10576
|
}
|
|
10676
10577
|
};
|
|
@@ -10682,19 +10583,8 @@ function getWasmError(error) {
|
|
|
10682
10583
|
const stack = [message, ...(error.stack || "NO_BACKTRACE").split("\n").slice(1)].join("\n");
|
|
10683
10584
|
return { message, stack };
|
|
10684
10585
|
}
|
|
10685
|
-
function toMultipleSchemas(input) {
|
|
10686
|
-
if (typeof input === "undefined") {
|
|
10687
|
-
return void 0;
|
|
10688
|
-
}
|
|
10689
|
-
if (typeof input === "string") {
|
|
10690
|
-
return [["schema.prisma", input]];
|
|
10691
|
-
}
|
|
10692
|
-
return input;
|
|
10693
|
-
}
|
|
10694
10586
|
var WasmPanicRegistry = class {
|
|
10695
|
-
|
|
10696
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "message", "");
|
|
10697
|
-
}
|
|
10587
|
+
message = "";
|
|
10698
10588
|
get() {
|
|
10699
10589
|
return `${this.message}`;
|
|
10700
10590
|
}
|
|
@@ -10728,7 +10618,7 @@ function addVersionDetailsToErrorMessage(message) {
|
|
|
10728
10618
|
|
|
10729
10619
|
${formatTable(rows)}`;
|
|
10730
10620
|
}
|
|
10731
|
-
var import_function2 = (0,
|
|
10621
|
+
var import_function2 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OEWQACEH.require_function)());
|
|
10732
10622
|
function relativizePathInPSLError(error) {
|
|
10733
10623
|
return error.replaceAll(process.cwd() + import_node_path4.default.sep, "");
|
|
10734
10624
|
}
|
|
@@ -10747,12 +10637,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
|
10747
10637
|
),
|
|
10748
10638
|
map((errorOutputAsJSON) => {
|
|
10749
10639
|
const defaultMessage = (0, import_chunk_SKRR5WT4.red)((0, import_chunk_SKRR5WT4.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
|
|
10750
|
-
const getConfigErrorInit = (0,
|
|
10640
|
+
const getConfigErrorInit = (0, import_chunk_OEWQACEH.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
|
10751
10641
|
return {
|
|
10752
10642
|
reason: createSchemaValidationError(reason),
|
|
10753
10643
|
errorCode: eJSON.error_code
|
|
10754
10644
|
};
|
|
10755
|
-
}).with({ error_code:
|
|
10645
|
+
}).with({ error_code: import_chunk_OEWQACEH.N.string }, (eJSON) => {
|
|
10756
10646
|
return {
|
|
10757
10647
|
reason,
|
|
10758
10648
|
errorCode: eJSON.error_code
|
|
@@ -10772,7 +10662,7 @@ var debug = (0, import_debug3.default)("prisma:getConfig");
|
|
|
10772
10662
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
|
10773
10663
|
var GetConfigError = class extends Error {
|
|
10774
10664
|
constructor(params) {
|
|
10775
|
-
const constructedErrorMessage = (0,
|
|
10665
|
+
const constructedErrorMessage = (0, import_chunk_OEWQACEH.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
|
10776
10666
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
|
10777
10667
|
return `${reason}
|
|
10778
10668
|
${errorCodeMessage}
|
|
@@ -10846,7 +10736,7 @@ async function getConfig(options) {
|
|
|
10846
10736
|
}
|
|
10847
10737
|
return Promise.resolve(data);
|
|
10848
10738
|
}
|
|
10849
|
-
const error = (0,
|
|
10739
|
+
const error = (0, import_chunk_OEWQACEH.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
|
10850
10740
|
debugErrorType(e);
|
|
10851
10741
|
if (isWasmPanic(e.error)) {
|
|
10852
10742
|
const { message, stack } = getWasmError(e.error);
|
|
@@ -10857,11 +10747,8 @@ async function getConfig(options) {
|
|
|
10857
10747
|
stack,
|
|
10858
10748
|
/* request */
|
|
10859
10749
|
"@prisma/prisma-schema-wasm get_config",
|
|
10860
|
-
"FMT_CLI"
|
|
10861
|
-
/*
|
|
10862
|
-
options.prismaPath,
|
|
10863
|
-
/* schema */
|
|
10864
|
-
toMultipleSchemas(options.datamodel)
|
|
10750
|
+
"FMT_CLI"
|
|
10751
|
+
/* FMT_CLI */
|
|
10865
10752
|
);
|
|
10866
10753
|
return panic;
|
|
10867
10754
|
}
|
|
@@ -11011,15 +10898,16 @@ function renderLookupError(error) {
|
|
|
11011
10898
|
function renderDefaultLookupError(error, cwd) {
|
|
11012
10899
|
const parts = [
|
|
11013
10900
|
`Could not find Prisma Schema that is required for this command.`,
|
|
11014
|
-
`You can either provide it with ${(0, import_chunk_SKRR5WT4.green)(
|
|
11015
|
-
|
|
11016
|
-
|
|
10901
|
+
`You can either provide it with ${(0, import_chunk_SKRR5WT4.green)("`--schema`")} argument,`,
|
|
10902
|
+
`set it in your ${(0, import_chunk_SKRR5WT4.green)("`prisma.config.ts`")},`,
|
|
10903
|
+
`set it as ${(0, import_chunk_SKRR5WT4.green)("`prisma.schema`")} in your ${(0, import_chunk_SKRR5WT4.green)("package.json")},`,
|
|
10904
|
+
`or put it into the default location (${(0, import_chunk_SKRR5WT4.green)("`./prisma/schema.prisma`")}, or ${(0, import_chunk_SKRR5WT4.green)("`./schema.prisma`")}.`,
|
|
11017
10905
|
"Checked following paths:\n"
|
|
11018
10906
|
];
|
|
11019
10907
|
const printedPaths = /* @__PURE__ */ new Set();
|
|
11020
10908
|
for (const failure of error.failures) {
|
|
11021
|
-
const filePath = failure.
|
|
11022
|
-
if (!printedPaths.has(failure.
|
|
10909
|
+
const filePath = failure.path;
|
|
10910
|
+
if (!printedPaths.has(failure.path)) {
|
|
11023
10911
|
parts.push(`${import_path2.default.relative(cwd, filePath)}: ${renderLookupError(failure.error)}`);
|
|
11024
10912
|
printedPaths.add(filePath);
|
|
11025
10913
|
}
|
|
@@ -11045,21 +10933,13 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
|
|
|
11045
10933
|
error: { kind: "PrismaConfigNotConfigured" }
|
|
11046
10934
|
};
|
|
11047
10935
|
}
|
|
11048
|
-
|
|
11049
|
-
if (
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
}
|
|
11056
|
-
} else {
|
|
11057
|
-
schemaResult = await readSchemaFromDirectory(schemaPathFromConfig.folderPath);
|
|
11058
|
-
if (!schemaResult.ok) {
|
|
11059
|
-
throw new Error(
|
|
11060
|
-
`Could not load schema from folder \`${schemaPathFromConfig.folderPath}\` provided by "prisma.config.ts"\`: ${renderLookupError(schemaResult.error)}`
|
|
11061
|
-
);
|
|
11062
|
-
}
|
|
10936
|
+
const schemaResult = await readSchemaFromFileOrDirectory(schemaPathFromConfig);
|
|
10937
|
+
if (!schemaResult.ok) {
|
|
10938
|
+
throw new Error(
|
|
10939
|
+
`Could not load schema from \`${schemaPathFromConfig}\` provided by "prisma.config.ts"\`: ${renderLookupError(
|
|
10940
|
+
schemaResult.error
|
|
10941
|
+
)}`
|
|
10942
|
+
);
|
|
11063
10943
|
}
|
|
11064
10944
|
return schemaResult;
|
|
11065
10945
|
}
|
|
@@ -11094,51 +10974,14 @@ async function getSchemaFromPackageJson(cwd) {
|
|
|
11094
10974
|
return lookupResult;
|
|
11095
10975
|
}
|
|
11096
10976
|
async function getDefaultSchema(cwd, failures = []) {
|
|
11097
|
-
const
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
}
|
|
11102
|
-
};
|
|
11103
|
-
const prismaSchemaFile = {
|
|
11104
|
-
schemaPath: {
|
|
11105
|
-
path: import_path2.default.join(cwd, "prisma", "schema.prisma"),
|
|
11106
|
-
kind: "file"
|
|
11107
|
-
},
|
|
11108
|
-
conflictsWith: {
|
|
11109
|
-
path: import_path2.default.join(cwd, "prisma", "schema"),
|
|
11110
|
-
kind: "directory"
|
|
11111
|
-
}
|
|
11112
|
-
};
|
|
11113
|
-
const prismaSchemaFolder = {
|
|
11114
|
-
schemaPath: {
|
|
11115
|
-
path: import_path2.default.join(cwd, "prisma", "schema"),
|
|
11116
|
-
kind: "directory"
|
|
11117
|
-
},
|
|
11118
|
-
conflictsWith: {
|
|
11119
|
-
path: import_path2.default.join(cwd, "prisma", "schema.prisma"),
|
|
11120
|
-
kind: "file"
|
|
11121
|
-
}
|
|
11122
|
-
};
|
|
11123
|
-
const rules = [schemaPrisma, prismaSchemaFile, prismaSchemaFolder];
|
|
11124
|
-
for (const rule of rules) {
|
|
11125
|
-
debug2(`Checking existence of ${rule.schemaPath.path}`);
|
|
11126
|
-
const schema = await loadSchemaFromDefaultLocation(rule.schemaPath);
|
|
10977
|
+
const lookupPaths = [import_path2.default.join(cwd, "schema.prisma"), import_path2.default.join(cwd, "prisma", "schema.prisma")];
|
|
10978
|
+
for (const path7 of lookupPaths) {
|
|
10979
|
+
debug2(`Checking existence of ${path7}`);
|
|
10980
|
+
const schema = await readSchemaFromSingleFile(path7);
|
|
11127
10981
|
if (!schema.ok) {
|
|
11128
|
-
failures.push({
|
|
10982
|
+
failures.push({ path: path7, error: schema.error });
|
|
11129
10983
|
continue;
|
|
11130
10984
|
}
|
|
11131
|
-
if (rule.conflictsWith) {
|
|
11132
|
-
const conflictingSchema = await loadSchemaFromDefaultLocation(rule.conflictsWith);
|
|
11133
|
-
if (conflictingSchema.ok) {
|
|
11134
|
-
throw new Error(
|
|
11135
|
-
`Found Prisma Schemas at both \`${import_path2.default.relative(cwd, rule.schemaPath.path)}\` and \`${import_path2.default.relative(
|
|
11136
|
-
cwd,
|
|
11137
|
-
rule.conflictsWith.path
|
|
11138
|
-
)}\`. Please remove one.`
|
|
11139
|
-
);
|
|
11140
|
-
}
|
|
11141
|
-
}
|
|
11142
10985
|
return schema;
|
|
11143
10986
|
}
|
|
11144
10987
|
return {
|
|
@@ -11149,14 +10992,6 @@ async function getDefaultSchema(cwd, failures = []) {
|
|
|
11149
10992
|
}
|
|
11150
10993
|
};
|
|
11151
10994
|
}
|
|
11152
|
-
async function loadSchemaFromDefaultLocation(lookupPath) {
|
|
11153
|
-
switch (lookupPath.kind) {
|
|
11154
|
-
case "file":
|
|
11155
|
-
return readSchemaFromSingleFile(lookupPath.path);
|
|
11156
|
-
case "directory":
|
|
11157
|
-
return readSchemaFromDirectory(lookupPath.path);
|
|
11158
|
-
}
|
|
11159
|
-
}
|
|
11160
10995
|
var debug3 = (0, import_debug.default)("prisma:migrate:diff");
|
|
11161
10996
|
var helpOptions = (0, import_internals.format)(
|
|
11162
10997
|
`${(0, import_chunk_SKRR5WT4.bold)("Usage")}
|
|
@@ -11196,10 +11031,83 @@ ${(0, import_chunk_SKRR5WT4.bold)("Flags")}
|
|
|
11196
11031
|
--script Render a SQL script to stdout instead of the default human readable summary (not supported on MongoDB)
|
|
11197
11032
|
--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
11033
|
);
|
|
11199
|
-
var
|
|
11034
|
+
var MigrateDiff = class _MigrateDiff {
|
|
11200
11035
|
static new() {
|
|
11201
|
-
return new
|
|
11036
|
+
return new _MigrateDiff();
|
|
11202
11037
|
}
|
|
11038
|
+
static help = (0, import_internals.format)(`
|
|
11039
|
+
${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.
|
|
11040
|
+
|
|
11041
|
+
${(0, import_chunk_SKRR5WT4.green)(`prisma migrate diff`)} is a read-only command that does not write to your datasource(s).
|
|
11042
|
+
${(0, import_chunk_SKRR5WT4.green)(`prisma db execute`)} can be used to execute its ${(0, import_chunk_SKRR5WT4.green)(`--script`)} output.
|
|
11043
|
+
|
|
11044
|
+
The command takes a source ${(0, import_chunk_SKRR5WT4.green)(`--from-...`)} and a destination ${(0, import_chunk_SKRR5WT4.green)(`--to-...`)}.
|
|
11045
|
+
The source and destination must use the same provider,
|
|
11046
|
+
e.g. a diff using 2 different providers like PostgreSQL and SQLite is not supported.
|
|
11047
|
+
|
|
11048
|
+
It compares the source with the destination to generate a diff.
|
|
11049
|
+
The diff can be interpreted as generating a migration that brings the source schema (from) to the shape of the destination schema (to).
|
|
11050
|
+
The default output is a human readable diff, it can be rendered as SQL using \`--script\` on SQL databases.
|
|
11051
|
+
|
|
11052
|
+
See the documentation for more information ${(0, import_internals.link)("https://pris.ly/d/migrate-diff")}
|
|
11053
|
+
|
|
11054
|
+
${helpOptions}
|
|
11055
|
+
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
11056
|
+
|
|
11057
|
+
From database to database as summary
|
|
11058
|
+
e.g. compare two live databases
|
|
11059
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11060
|
+
--from-url "$DATABASE_URL" \\
|
|
11061
|
+
--to-url "postgresql://login:password@localhost:5432/db2"
|
|
11062
|
+
|
|
11063
|
+
From a live database to a Prisma datamodel
|
|
11064
|
+
e.g. roll forward after a migration failed in the middle
|
|
11065
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11066
|
+
--shadow-database-url "$SHADOW_DB" \\
|
|
11067
|
+
--from-url "$PROD_DB" \\
|
|
11068
|
+
--to-schema-datamodel=next_datamodel.prisma \\
|
|
11069
|
+
--script
|
|
11070
|
+
|
|
11071
|
+
From a live database to a datamodel
|
|
11072
|
+
e.g. roll backward after a migration failed in the middle
|
|
11073
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11074
|
+
--shadow-database-url "$SHADOW_DB" \\
|
|
11075
|
+
--from-url "$PROD_DB" \\
|
|
11076
|
+
--to-schema-datamodel=previous_datamodel.prisma \\
|
|
11077
|
+
--script
|
|
11078
|
+
|
|
11079
|
+
From a local D1 database to a datamodel
|
|
11080
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11081
|
+
--from-local-d1 \\
|
|
11082
|
+
--to-schema-datamodel=./prisma/schema.prisma \\
|
|
11083
|
+
--script
|
|
11084
|
+
|
|
11085
|
+
From a Prisma datamodel to a local D1 database
|
|
11086
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11087
|
+
--from-schema-datamodel=./prisma/schema.prisma \\
|
|
11088
|
+
--to-local-d1 \\
|
|
11089
|
+
--script
|
|
11090
|
+
|
|
11091
|
+
From a Prisma Migrate \`migrations\` directory to another database
|
|
11092
|
+
e.g. generate a migration for a hotfix already applied on production
|
|
11093
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11094
|
+
--shadow-database-url "$SHADOW_DB" \\
|
|
11095
|
+
--from-migrations ./migrations \\
|
|
11096
|
+
--to-url "$PROD_DB" \\
|
|
11097
|
+
--script
|
|
11098
|
+
|
|
11099
|
+
Execute the --script output with \`prisma db execute\` using bash pipe \`|\`
|
|
11100
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11101
|
+
--from-[...] \\
|
|
11102
|
+
--to-[...] \\
|
|
11103
|
+
--script | prisma db execute --stdin --url="$DATABASE_URL"
|
|
11104
|
+
|
|
11105
|
+
Detect if both sources are in sync, it will exit with exit code 2 if changes are detected
|
|
11106
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate diff \\
|
|
11107
|
+
--exit-code \\
|
|
11108
|
+
--from-[...] \\
|
|
11109
|
+
--to-[...]
|
|
11110
|
+
`);
|
|
11203
11111
|
async parse(argv, config) {
|
|
11204
11112
|
const args = (0, import_internals.arg)(
|
|
11205
11113
|
argv,
|
|
@@ -11234,7 +11142,10 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11234
11142
|
if ((0, import_internals.isError)(args)) {
|
|
11235
11143
|
return this.help(args.message);
|
|
11236
11144
|
}
|
|
11237
|
-
|
|
11145
|
+
(0, import_internals.checkUnsupportedDataProxy)({
|
|
11146
|
+
cmd: "migrate diff",
|
|
11147
|
+
urls: [args["--to-url"], args["--from-url"], args["--shadow-database-url"]]
|
|
11148
|
+
});
|
|
11238
11149
|
if (args["--help"]) {
|
|
11239
11150
|
return this.help();
|
|
11240
11151
|
}
|
|
@@ -11262,13 +11173,15 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11262
11173
|
};
|
|
11263
11174
|
} else if (args["--from-schema-datasource"]) {
|
|
11264
11175
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--from-schema-datasource"], printMessage: false, config });
|
|
11265
|
-
const
|
|
11266
|
-
|
|
11176
|
+
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
11177
|
+
schemaPathFromArg: args["--from-schema-datasource"],
|
|
11178
|
+
schemaPathArgumentName: "--from-schema-datasource",
|
|
11179
|
+
printLoadMessage: false
|
|
11267
11180
|
});
|
|
11268
|
-
|
|
11181
|
+
(0, import_internals.checkUnsupportedDataProxy)({ cmd: "migrate diff", schemaContext });
|
|
11269
11182
|
from = {
|
|
11270
11183
|
tag: "schemaDatasource",
|
|
11271
|
-
...(0, import_internals.toSchemasWithConfigDir)(
|
|
11184
|
+
...(0, import_internals.toSchemasWithConfigDir)(schemaContext)
|
|
11272
11185
|
};
|
|
11273
11186
|
} else if (args["--from-schema-datamodel"]) {
|
|
11274
11187
|
const schema = await getSchemaWithPath(import_path.default.resolve(args["--from-schema-datamodel"]), config.schema, {
|
|
@@ -11286,7 +11199,7 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11286
11199
|
} else if (args["--from-migrations"]) {
|
|
11287
11200
|
from = {
|
|
11288
11201
|
tag: "migrations",
|
|
11289
|
-
|
|
11202
|
+
migrationsList: await (0, import_chunk_V6PVGSDJ.listMigrations)(args["--from-migrations"])
|
|
11290
11203
|
};
|
|
11291
11204
|
} else if (args["--from-local-d1"]) {
|
|
11292
11205
|
const d1Database = await (0, import_internals.locateLocalCloudflareD1)({ arg: "--from-local-d1" });
|
|
@@ -11302,13 +11215,15 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11302
11215
|
};
|
|
11303
11216
|
} else if (args["--to-schema-datasource"]) {
|
|
11304
11217
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--to-schema-datasource"], printMessage: false, config });
|
|
11305
|
-
const
|
|
11306
|
-
|
|
11218
|
+
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
11219
|
+
schemaPathFromArg: args["--to-schema-datasource"],
|
|
11220
|
+
schemaPathArgumentName: "--to-schema-datasource",
|
|
11221
|
+
printLoadMessage: false
|
|
11307
11222
|
});
|
|
11308
|
-
|
|
11223
|
+
(0, import_internals.checkUnsupportedDataProxy)({ cmd: "migrate diff", schemaContext });
|
|
11309
11224
|
to = {
|
|
11310
11225
|
tag: "schemaDatasource",
|
|
11311
|
-
...(0, import_internals.toSchemasWithConfigDir)(
|
|
11226
|
+
...(0, import_internals.toSchemasWithConfigDir)(schemaContext)
|
|
11312
11227
|
};
|
|
11313
11228
|
} else if (args["--to-schema-datamodel"]) {
|
|
11314
11229
|
const schema = await getSchemaWithPath(import_path.default.resolve(args["--to-schema-datamodel"]), config.schema, {
|
|
@@ -11326,7 +11241,7 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11326
11241
|
} else if (args["--to-migrations"]) {
|
|
11327
11242
|
to = {
|
|
11328
11243
|
tag: "migrations",
|
|
11329
|
-
|
|
11244
|
+
migrationsList: await (0, import_chunk_V6PVGSDJ.listMigrations)(args["--to-migrations"])
|
|
11330
11245
|
};
|
|
11331
11246
|
} else if (args["--to-local-d1"]) {
|
|
11332
11247
|
const d1Database = await (0, import_internals.locateLocalCloudflareD1)({ arg: "--to-local-d1" });
|
|
@@ -11335,8 +11250,8 @@ var _MigrateDiff = class _MigrateDiff2 {
|
|
|
11335
11250
|
url: `file:${d1Database}`
|
|
11336
11251
|
};
|
|
11337
11252
|
}
|
|
11338
|
-
const migrate = new
|
|
11339
|
-
const captureStdout = new
|
|
11253
|
+
const migrate = new import_chunk_ZLHWX5PJ.Migrate();
|
|
11254
|
+
const captureStdout = new import_chunk_VAJ4VX67.CaptureStdout();
|
|
11340
11255
|
const outputPath = args["--output"];
|
|
11341
11256
|
const isOutputDefined = Boolean(outputPath);
|
|
11342
11257
|
if (isOutputDefined) {
|
|
@@ -11374,80 +11289,6 @@ ${error}
|
|
|
11374
11289
|
|
|
11375
11290
|
${helpOptions}`);
|
|
11376
11291
|
}
|
|
11377
|
-
return
|
|
11292
|
+
return _MigrateDiff.help;
|
|
11378
11293
|
}
|
|
11379
11294
|
};
|
|
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;
|