@prisma/internals 5.19.0-dev.12 → 5.19.0-dev.13
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/{chunk-QL3K6JIN.js → chunk-244YD7SK.js} +7 -7
- package/dist/{chunk-2GL5KAYM.js → chunk-34FTC6KK.js} +5 -5
- package/dist/{chunk-3DGPDGD3.js → chunk-42K3GPYJ.js} +4 -4
- package/dist/chunk-5XRQ7ONW.js +122 -0
- package/dist/{chunk-VU4BZAMD.js → chunk-6GTQHWWT.js} +5 -5
- package/dist/{chunk-3CEAGGAZ.js → chunk-7KXMQZFT.js} +5 -5
- package/dist/{chunk-4A5ZK522.js → chunk-7MD6344A.js} +3 -3
- package/dist/{chunk-GHYJGM56.js → chunk-7SPHTPDV.js} +5 -5
- package/dist/{chunk-P7PMCE2W.js → chunk-CNKDIKWK.js} +16 -16
- package/dist/{chunk-6TPLIQJ5.js → chunk-CYKOCRN3.js} +15 -15
- package/dist/{chunk-B7JVEC2F.js → chunk-D3G3WRZU.js} +5 -5
- package/dist/{chunk-4RKJ76H7.js → chunk-DQMYNBP3.js} +5 -5
- package/dist/{chunk-SLGMG65I.js → chunk-EBLDSWRI.js} +20 -14
- package/dist/{chunk-PN2OFBAO.js → chunk-G4BGJ6IP.js} +5 -5
- package/dist/{chunk-EYOPVHNV.js → chunk-HD4N22SB.js} +28 -28
- package/dist/{chunk-RZG4NJ36.js → chunk-I3YDYYM2.js} +15 -15
- package/dist/{chunk-KUMD5MBR.js → chunk-IAEMHQAC.js} +10 -10
- package/dist/{chunk-AP37UO7C.js → chunk-IB5PDCFO.js} +5 -5
- package/dist/{chunk-J3L6JLSQ.js → chunk-IJUVQMZY.js} +5 -5
- package/dist/{chunk-JBKRHDKT.js → chunk-IY43XBPH.js} +16 -16
- package/dist/{chunk-6J3WFMQY.js → chunk-JPEBIQUM.js} +40 -811
- package/dist/{chunk-4KELZQEZ.js → chunk-KBVBWTBF.js} +23 -23
- package/dist/{chunk-RDUPLVMD.js → chunk-KK64NLNR.js} +5 -5
- package/dist/chunk-NDEGWMVS.js +177 -0
- package/dist/{chunk-AFG6YPOK.js → chunk-NK2ML3NJ.js} +5 -5
- package/dist/chunk-NXIWDQBF.js +110 -0
- package/dist/{chunk-QOTVZEEZ.js → chunk-PFLLVWZX.js} +4 -4
- package/dist/chunk-QIVUAERL.js +2202 -0
- package/dist/{chunk-OKF6INNR.js → chunk-QQJZI2CR.js} +22 -22
- package/dist/{chunk-YM3CE76B.js → chunk-S3323RUL.js} +48 -48
- package/dist/{chunk-NQ7OW3TG.js → chunk-TZ2WAB57.js} +23 -23
- package/dist/chunk-X4GRUQLB.js +166 -0
- package/dist/chunk-X6M256IK.js +54 -0
- package/dist/{chunk-3I7L4PJV.js → chunk-XKRUNUS5.js} +22 -22
- package/dist/{chunk-5M5ACSPI.js → chunk-YIJ776AZ.js} +35 -35
- package/dist/cli/checkUnsupportedDataProxy.js +21 -21
- package/dist/cli/getSchema.js +26 -26
- package/dist/cli/hashes.js +21 -21
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +20 -20
- package/dist/engine-commands/getConfig.js +13 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesMetaInfo.js +8 -8
- package/dist/engine-commands/index.js +31 -31
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +10 -10
- package/dist/engine-commands/queryEngineCommons.js +7 -7
- package/dist/engine-commands/validate.js +10 -10
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +20 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +20 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +20 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +21 -21
- package/dist/get-generators/getGenerators.js +23 -23
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.js +59 -59
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +20 -20
- package/dist/utils/fs-functional.js +9 -9
- package/dist/utils/getEnvPaths.js +20 -20
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +20 -20
- package/dist/utils/loadEnvFile.js +20 -20
- package/dist/wasm.js +4 -4
- package/package.json +8 -8
|
@@ -26,25 +26,25 @@ 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_QQJZI2CR_exports = {};
|
|
30
|
+
__export(chunk_QQJZI2CR_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_QQJZI2CR_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
36
|
+
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
|
37
|
+
var import_chunk_DQMYNBP3 = require("./chunk-DQMYNBP3.js");
|
|
38
|
+
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
39
39
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_KK64NLNR = require("./chunk-KK64NLNR.js");
|
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
42
|
-
var
|
|
42
|
+
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
44
44
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
45
45
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
46
46
|
var import_fs = __toESM(require("fs"));
|
|
47
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
47
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:getDMMF");
|
|
49
49
|
var GetDmmfError = class extends Error {
|
|
50
50
|
constructor(params) {
|
|
@@ -60,16 +60,16 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: getDmmf]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_DQMYNBP3.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "GetDmmfError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
async function getDMMF(options) {
|
|
68
68
|
warnOnDeprecatedFeatureFlag(options.previewFeatures);
|
|
69
|
-
const debugErrorType = (0,
|
|
69
|
+
const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "getDmmfWasm");
|
|
70
70
|
debug(`Using getDmmf Wasm`);
|
|
71
71
|
const dmmfPipeline = (0, import_function.pipe)(
|
|
72
|
-
(0,
|
|
72
|
+
(0, import_chunk_7MD6344A.tryCatch2)(
|
|
73
73
|
() => {
|
|
74
74
|
if (options.datamodel) {
|
|
75
75
|
debug("Using given datamodel");
|
|
@@ -85,19 +85,19 @@ async function getDMMF(options) {
|
|
|
85
85
|
datamodelPath: options.datamodelPath
|
|
86
86
|
})
|
|
87
87
|
),
|
|
88
|
-
(0,
|
|
88
|
+
(0, import_chunk_7MD6344A.chainW2)((datamodel) => {
|
|
89
89
|
return (0, import_function.pipe)(
|
|
90
|
-
(0,
|
|
90
|
+
(0, import_chunk_7MD6344A.tryCatch)(
|
|
91
91
|
() => {
|
|
92
92
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
93
93
|
debug("Triggering a Rust panic...");
|
|
94
|
-
|
|
94
|
+
import_chunk_KK64NLNR.prismaSchemaWasm.debug_panic();
|
|
95
95
|
}
|
|
96
96
|
const params = JSON.stringify({
|
|
97
97
|
prismaSchema: datamodel,
|
|
98
98
|
noColor: Boolean(process.env.NO_COLOR)
|
|
99
99
|
});
|
|
100
|
-
const data =
|
|
100
|
+
const data = import_chunk_KK64NLNR.prismaSchemaWasm.get_dmmf(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(e) => ({
|
|
@@ -106,11 +106,11 @@ async function getDMMF(options) {
|
|
|
106
106
|
error: e
|
|
107
107
|
})
|
|
108
108
|
),
|
|
109
|
-
(0,
|
|
110
|
-
(0,
|
|
109
|
+
(0, import_chunk_7MD6344A.map)((result) => ({ result })),
|
|
110
|
+
(0, import_chunk_7MD6344A.chainW)(
|
|
111
111
|
({ result }) => (
|
|
112
112
|
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
|
113
|
-
(0,
|
|
113
|
+
(0, import_chunk_7MD6344A.tryCatch)(
|
|
114
114
|
() => JSON.parse(result),
|
|
115
115
|
(e) => ({
|
|
116
116
|
type: "parse-json",
|
|
@@ -120,12 +120,12 @@ async function getDMMF(options) {
|
|
|
120
120
|
)
|
|
121
121
|
)
|
|
122
122
|
),
|
|
123
|
-
|
|
123
|
+
import_chunk_7MD6344A.fromEither
|
|
124
124
|
);
|
|
125
125
|
})
|
|
126
126
|
);
|
|
127
127
|
const dmmfEither = await dmmfPipeline();
|
|
128
|
-
if ((0,
|
|
128
|
+
if ((0, import_chunk_7MD6344A.isRight)(dmmfEither)) {
|
|
129
129
|
debug("dmmf data retrieved without errors in getDmmf Wasm");
|
|
130
130
|
const { right: data } = dmmfEither;
|
|
131
131
|
return Promise.resolve(data);
|
|
@@ -158,7 +158,7 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
|
158
158
|
return panic;
|
|
159
159
|
}
|
|
160
160
|
const errorOutput = e.error.message;
|
|
161
|
-
return new GetDmmfError((0,
|
|
161
|
+
return new GetDmmfError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
162
162
|
}).with({ type: "parse-json" }, (e) => {
|
|
163
163
|
debugErrorType(e);
|
|
164
164
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
|
@@ -26,8 +26,8 @@ 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_S3323RUL_exports = {};
|
|
30
|
+
__export(chunk_S3323RUL_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists2,
|
|
32
32
|
fs_functional_exports: () => fs_functional_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir2,
|
|
@@ -37,13 +37,13 @@ __export(chunk_YM3CE76B_exports, {
|
|
|
37
37
|
removeFile: () => removeFile,
|
|
38
38
|
writeFile: () => writeFile2
|
|
39
39
|
});
|
|
40
|
-
module.exports = __toCommonJS(
|
|
40
|
+
module.exports = __toCommonJS(chunk_S3323RUL_exports);
|
|
41
41
|
var import_chunk_E3APO3ZG = require("./chunk-E3APO3ZG.js");
|
|
42
|
-
var
|
|
42
|
+
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
43
43
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
44
44
|
var import_promises = __toESM(require("fs/promises"));
|
|
45
45
|
var require_internal = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
46
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
46
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/internal.js"(exports) {
|
|
47
47
|
"use strict";
|
|
48
48
|
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
49
49
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
@@ -56,7 +56,7 @@ var require_internal = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
56
56
|
};
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
58
|
exports.flatMapReader = exports.flatMapTask = exports.flatMapIO = exports.flatMapEither = exports.flatMapOption = exports.flatMapNullable = exports.liftOption = exports.liftNullable = exports.fromReadonlyNonEmptyArray = exports.has = exports.emptyRecord = exports.emptyReadonlyArray = exports.tail = exports.head = exports.isNonEmpty = exports.singleton = exports.right = exports.left = exports.isRight = exports.isLeft = exports.some = exports.none = exports.isSome = exports.isNone = void 0;
|
|
59
|
-
var function_1 = (0,
|
|
59
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
60
60
|
var isNone = function(fa) {
|
|
61
61
|
return fa._tag === "None";
|
|
62
62
|
};
|
|
@@ -182,7 +182,7 @@ var require_internal = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
var require_Apply = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
185
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
185
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Apply.js"(exports) {
|
|
186
186
|
"use strict";
|
|
187
187
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
188
188
|
if (k2 === void 0) k2 = k;
|
|
@@ -219,7 +219,7 @@ var require_Apply = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
219
219
|
exports.getApplySemigroup = getApplySemigroup;
|
|
220
220
|
exports.sequenceT = sequenceT;
|
|
221
221
|
exports.sequenceS = sequenceS;
|
|
222
|
-
var function_1 = (0,
|
|
222
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
223
223
|
var _ = __importStar(require_internal());
|
|
224
224
|
function ap(F, G) {
|
|
225
225
|
return function(fa) {
|
|
@@ -424,7 +424,7 @@ var require_Apply = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
var require_Functor = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
427
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
427
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Functor.js"(exports) {
|
|
428
428
|
"use strict";
|
|
429
429
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
430
430
|
exports.map = map;
|
|
@@ -434,7 +434,7 @@ var require_Functor = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
434
434
|
exports.getFunctorComposition = getFunctorComposition;
|
|
435
435
|
exports.as = as;
|
|
436
436
|
exports.asUnit = asUnit;
|
|
437
|
-
var function_1 = (0,
|
|
437
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
438
438
|
function map(F, G) {
|
|
439
439
|
return function(f) {
|
|
440
440
|
return function(fa) {
|
|
@@ -497,13 +497,13 @@ var require_Functor = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
499
|
var require_Applicative = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
500
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
500
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Applicative.js"(exports) {
|
|
501
501
|
"use strict";
|
|
502
502
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
503
503
|
exports.getApplicativeMonoid = getApplicativeMonoid;
|
|
504
504
|
exports.getApplicativeComposition = getApplicativeComposition;
|
|
505
505
|
var Apply_1 = require_Apply();
|
|
506
|
-
var function_1 = (0,
|
|
506
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
507
507
|
var Functor_1 = require_Functor();
|
|
508
508
|
function getApplicativeMonoid(F) {
|
|
509
509
|
var f = (0, Apply_1.getApplySemigroup)(F);
|
|
@@ -530,7 +530,7 @@ var require_Applicative = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
532
|
var require_Chain = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
533
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
533
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Chain.js"(exports) {
|
|
534
534
|
"use strict";
|
|
535
535
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
536
536
|
exports.chainFirst = chainFirst;
|
|
@@ -568,7 +568,7 @@ var require_Chain = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
568
568
|
}
|
|
569
569
|
});
|
|
570
570
|
var require_FromEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
571
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
571
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/FromEither.js"(exports) {
|
|
572
572
|
"use strict";
|
|
573
573
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
574
574
|
if (k2 === void 0) k2 = k;
|
|
@@ -608,7 +608,7 @@ var require_FromEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
608
608
|
exports.filterOrElse = filterOrElse;
|
|
609
609
|
exports.tapEither = tapEither;
|
|
610
610
|
var Chain_1 = require_Chain();
|
|
611
|
-
var function_1 = (0,
|
|
611
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
612
612
|
var _ = __importStar(require_internal());
|
|
613
613
|
function fromOption(F) {
|
|
614
614
|
return function(onNone) {
|
|
@@ -684,11 +684,11 @@ var require_FromEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
var require_Predicate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
687
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
687
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Predicate.js"(exports) {
|
|
688
688
|
"use strict";
|
|
689
689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
690
690
|
exports.and = exports.or = exports.not = exports.Contravariant = exports.getMonoidAll = exports.getSemigroupAll = exports.getMonoidAny = exports.getSemigroupAny = exports.URI = exports.contramap = void 0;
|
|
691
|
-
var function_1 = (0,
|
|
691
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
692
692
|
var contramap_ = function(predicate, f) {
|
|
693
693
|
return (0, function_1.pipe)(predicate, (0, exports.contramap)(f));
|
|
694
694
|
};
|
|
@@ -758,7 +758,7 @@ var require_Predicate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
760
|
var require_Magma = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
761
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
761
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Magma.js"(exports) {
|
|
762
762
|
"use strict";
|
|
763
763
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
764
764
|
exports.concatAll = exports.endo = exports.filterSecond = exports.filterFirst = exports.reverse = void 0;
|
|
@@ -813,11 +813,11 @@ var require_Magma = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
815
|
var require_Eq = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
816
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
816
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Eq.js"(exports) {
|
|
817
817
|
"use strict";
|
|
818
818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
819
819
|
exports.eqDate = exports.eqNumber = exports.eqString = exports.eqBoolean = exports.eq = exports.strictEqual = exports.getStructEq = exports.getTupleEq = exports.Contravariant = exports.getMonoid = exports.getSemigroup = exports.eqStrict = exports.URI = exports.contramap = exports.tuple = exports.struct = exports.fromEquals = void 0;
|
|
820
|
-
var function_1 = (0,
|
|
820
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
821
821
|
var fromEquals = function(equals) {
|
|
822
822
|
return {
|
|
823
823
|
equals: function(x, y) {
|
|
@@ -907,12 +907,12 @@ var require_Eq = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
907
907
|
}
|
|
908
908
|
});
|
|
909
909
|
var require_Ord = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
910
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
910
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Ord.js"(exports) {
|
|
911
911
|
"use strict";
|
|
912
912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
913
913
|
exports.ordDate = exports.ordNumber = exports.ordString = exports.ordBoolean = exports.ord = exports.getDualOrd = exports.getTupleOrd = exports.between = exports.clamp = exports.max = exports.min = exports.geq = exports.leq = exports.gt = exports.lt = exports.equals = exports.trivial = exports.Contravariant = exports.getMonoid = exports.getSemigroup = exports.URI = exports.contramap = exports.reverse = exports.tuple = exports.fromCompare = exports.equalsDefault = void 0;
|
|
914
914
|
var Eq_1 = require_Eq();
|
|
915
|
-
var function_1 = (0,
|
|
915
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
916
916
|
var equalsDefault = function(compare2) {
|
|
917
917
|
return function(first, second) {
|
|
918
918
|
return first === second || compare2(first, second) === 0;
|
|
@@ -1077,7 +1077,7 @@ var require_Ord = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1077
1077
|
}
|
|
1078
1078
|
});
|
|
1079
1079
|
var require_Semigroup = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1080
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1080
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Semigroup.js"(exports) {
|
|
1081
1081
|
"use strict";
|
|
1082
1082
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1083
1083
|
if (k2 === void 0) k2 = k;
|
|
@@ -1109,7 +1109,7 @@ var require_Semigroup = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1109
1109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1110
1110
|
exports.semigroupProduct = exports.semigroupSum = exports.semigroupString = exports.getFunctionSemigroup = exports.semigroupAny = exports.semigroupAll = exports.getIntercalateSemigroup = exports.getMeetSemigroup = exports.getJoinSemigroup = exports.getDualSemigroup = exports.getStructSemigroup = exports.getTupleSemigroup = exports.getFirstSemigroup = exports.getLastSemigroup = exports.getObjectSemigroup = exports.semigroupVoid = exports.concatAll = exports.last = exports.first = exports.intercalate = exports.tuple = exports.struct = exports.reverse = exports.constant = exports.max = exports.min = void 0;
|
|
1111
1111
|
exports.fold = fold;
|
|
1112
|
-
var function_1 = (0,
|
|
1112
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
1113
1113
|
var _ = __importStar(require_internal());
|
|
1114
1114
|
var M = __importStar(require_Magma());
|
|
1115
1115
|
var Or = __importStar(require_Ord());
|
|
@@ -1235,11 +1235,11 @@ var require_Semigroup = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
1237
|
var require_Separated = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1238
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1238
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Separated.js"(exports) {
|
|
1239
1239
|
"use strict";
|
|
1240
1240
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1241
1241
|
exports.right = exports.left = exports.flap = exports.Functor = exports.Bifunctor = exports.URI = exports.bimap = exports.mapLeft = exports.map = exports.separated = void 0;
|
|
1242
|
-
var function_1 = (0,
|
|
1242
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
1243
1243
|
var Functor_1 = require_Functor();
|
|
1244
1244
|
var separated = function(left2, right2) {
|
|
1245
1245
|
return { left: left2, right: right2 };
|
|
@@ -1294,7 +1294,7 @@ var require_Separated = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
1296
|
var require_Witherable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1297
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1297
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Witherable.js"(exports) {
|
|
1298
1298
|
"use strict";
|
|
1299
1299
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1300
1300
|
if (k2 === void 0) k2 = k;
|
|
@@ -1361,7 +1361,7 @@ var require_Witherable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1361
1361
|
}
|
|
1362
1362
|
});
|
|
1363
1363
|
var require_Zero = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1364
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1364
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Zero.js"(exports) {
|
|
1365
1365
|
"use strict";
|
|
1366
1366
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1367
1367
|
exports.guard = guard;
|
|
@@ -1373,7 +1373,7 @@ var require_Zero = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1373
1373
|
}
|
|
1374
1374
|
});
|
|
1375
1375
|
var require_Option = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1376
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1376
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Option.js"(exports) {
|
|
1377
1377
|
"use strict";
|
|
1378
1378
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1379
1379
|
if (k2 === void 0) k2 = k;
|
|
@@ -1412,7 +1412,7 @@ var require_Option = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1412
1412
|
var Apply_1 = require_Apply();
|
|
1413
1413
|
var chainable = __importStar(require_Chain());
|
|
1414
1414
|
var FromEither_1 = require_FromEither();
|
|
1415
|
-
var function_1 = (0,
|
|
1415
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
1416
1416
|
var Functor_1 = require_Functor();
|
|
1417
1417
|
var _ = __importStar(require_internal());
|
|
1418
1418
|
var Predicate_1 = require_Predicate();
|
|
@@ -1915,7 +1915,7 @@ var require_Option = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
var require_Compactable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1918
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1918
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Compactable.js"(exports) {
|
|
1919
1919
|
"use strict";
|
|
1920
1920
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1921
1921
|
if (k2 === void 0) k2 = k;
|
|
@@ -1948,7 +1948,7 @@ var require_Compactable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1948
1948
|
exports.compact = compact;
|
|
1949
1949
|
exports.separate = separate;
|
|
1950
1950
|
exports.getCompactableComposition = getCompactableComposition;
|
|
1951
|
-
var function_1 = (0,
|
|
1951
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
1952
1952
|
var Functor_1 = require_Functor();
|
|
1953
1953
|
var Option_1 = require_Option();
|
|
1954
1954
|
var S = __importStar(require_Separated());
|
|
@@ -1975,7 +1975,7 @@ var require_Compactable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1975
1975
|
}
|
|
1976
1976
|
});
|
|
1977
1977
|
var require_ChainRec = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1978
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1978
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/ChainRec.js"(exports) {
|
|
1979
1979
|
"use strict";
|
|
1980
1980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1981
1981
|
exports.tailRec = void 0;
|
|
@@ -1990,7 +1990,7 @@ var require_ChainRec = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1990
1990
|
}
|
|
1991
1991
|
});
|
|
1992
1992
|
var require_Either = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1993
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1993
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Either.js"(exports) {
|
|
1994
1994
|
"use strict";
|
|
1995
1995
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1996
1996
|
if (k2 === void 0) k2 = k;
|
|
@@ -2032,7 +2032,7 @@ var require_Either = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2032
2032
|
var chainable = __importStar(require_Chain());
|
|
2033
2033
|
var ChainRec_1 = require_ChainRec();
|
|
2034
2034
|
var FromEither_1 = require_FromEither();
|
|
2035
|
-
var function_1 = (0,
|
|
2035
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
2036
2036
|
var Functor_1 = require_Functor();
|
|
2037
2037
|
var _ = __importStar(require_internal());
|
|
2038
2038
|
var Separated_1 = require_Separated();
|
|
@@ -2598,7 +2598,7 @@ var require_Either = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2598
2598
|
}
|
|
2599
2599
|
});
|
|
2600
2600
|
var require_EitherT = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2601
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2601
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/EitherT.js"(exports) {
|
|
2602
2602
|
"use strict";
|
|
2603
2603
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2604
2604
|
if (k2 === void 0) k2 = k;
|
|
@@ -2657,7 +2657,7 @@ var require_EitherT = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2657
2657
|
exports.getEitherM = getEitherM;
|
|
2658
2658
|
var Apply_1 = require_Apply();
|
|
2659
2659
|
var E = __importStar(require_Either());
|
|
2660
|
-
var function_1 = (0,
|
|
2660
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
2661
2661
|
var Functor_1 = require_Functor();
|
|
2662
2662
|
function right(F) {
|
|
2663
2663
|
return (0, function_1.flow)(E.right, F.of);
|
|
@@ -2883,7 +2883,7 @@ var require_EitherT = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2883
2883
|
}
|
|
2884
2884
|
});
|
|
2885
2885
|
var require_Filterable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2886
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2886
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Filterable.js"(exports) {
|
|
2887
2887
|
"use strict";
|
|
2888
2888
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2889
2889
|
exports.filter = filter;
|
|
@@ -2892,7 +2892,7 @@ var require_Filterable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2892
2892
|
exports.partitionMap = partitionMap;
|
|
2893
2893
|
exports.getFilterableComposition = getFilterableComposition;
|
|
2894
2894
|
var Compactable_1 = require_Compactable();
|
|
2895
|
-
var function_1 = (0,
|
|
2895
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
2896
2896
|
var Functor_1 = require_Functor();
|
|
2897
2897
|
var Option_1 = require_Option();
|
|
2898
2898
|
var Predicate_1 = require_Predicate();
|
|
@@ -2966,7 +2966,7 @@ var require_Filterable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2966
2966
|
}
|
|
2967
2967
|
});
|
|
2968
2968
|
var require_FromIO = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2969
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2969
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/FromIO.js"(exports) {
|
|
2970
2970
|
"use strict";
|
|
2971
2971
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2972
2972
|
exports.fromIOK = fromIOK;
|
|
@@ -2974,7 +2974,7 @@ var require_FromIO = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2974
2974
|
exports.chainFirstIOK = chainFirstIOK;
|
|
2975
2975
|
exports.tapIO = tapIO;
|
|
2976
2976
|
var Chain_1 = require_Chain();
|
|
2977
|
-
var function_1 = (0,
|
|
2977
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
2978
2978
|
function fromIOK(F) {
|
|
2979
2979
|
return function(f) {
|
|
2980
2980
|
return (0, function_1.flow)(f, F.fromIO);
|
|
@@ -3005,7 +3005,7 @@ var require_FromIO = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3005
3005
|
}
|
|
3006
3006
|
});
|
|
3007
3007
|
var require_FromTask = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3008
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3008
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/FromTask.js"(exports) {
|
|
3009
3009
|
"use strict";
|
|
3010
3010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3011
3011
|
exports.fromTaskK = fromTaskK;
|
|
@@ -3013,7 +3013,7 @@ var require_FromTask = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3013
3013
|
exports.chainFirstTaskK = chainFirstTaskK;
|
|
3014
3014
|
exports.tapTask = tapTask;
|
|
3015
3015
|
var Chain_1 = require_Chain();
|
|
3016
|
-
var function_1 = (0,
|
|
3016
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
3017
3017
|
function fromTaskK(F) {
|
|
3018
3018
|
return function(f) {
|
|
3019
3019
|
return (0, function_1.flow)(f, F.fromTask);
|
|
@@ -3044,7 +3044,7 @@ var require_FromTask = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3044
3044
|
}
|
|
3045
3045
|
});
|
|
3046
3046
|
var require_Task = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3047
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3047
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Task.js"(exports) {
|
|
3048
3048
|
"use strict";
|
|
3049
3049
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3050
3050
|
if (k2 === void 0) k2 = k;
|
|
@@ -3082,7 +3082,7 @@ var require_Task = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3082
3082
|
var Apply_1 = require_Apply();
|
|
3083
3083
|
var chainable = __importStar(require_Chain());
|
|
3084
3084
|
var FromIO_1 = require_FromIO();
|
|
3085
|
-
var function_1 = (0,
|
|
3085
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
3086
3086
|
var Functor_1 = require_Functor();
|
|
3087
3087
|
var _ = __importStar(require_internal());
|
|
3088
3088
|
var fromIO = function(ma) {
|
|
@@ -3339,7 +3339,7 @@ var require_Task = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3339
3339
|
}
|
|
3340
3340
|
});
|
|
3341
3341
|
var require_TaskEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3342
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3342
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/TaskEither.js"(exports) {
|
|
3343
3343
|
"use strict";
|
|
3344
3344
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3345
3345
|
if (k2 === void 0) k2 = k;
|
|
@@ -3483,7 +3483,7 @@ var require_TaskEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3483
3483
|
var FromEither_1 = require_FromEither();
|
|
3484
3484
|
var FromIO_1 = require_FromIO();
|
|
3485
3485
|
var FromTask_1 = require_FromTask();
|
|
3486
|
-
var function_1 = (0,
|
|
3486
|
+
var function_1 = (0, import_chunk_PFLLVWZX.require_function)();
|
|
3487
3487
|
var Functor_1 = require_Functor();
|
|
3488
3488
|
var _ = __importStar(require_internal());
|
|
3489
3489
|
var T = __importStar(require_Task());
|
|
@@ -3979,7 +3979,7 @@ var fs_functional_exports = {};
|
|
|
3979
3979
|
removeFile: () => removeFile,
|
|
3980
3980
|
writeFile: () => writeFile2
|
|
3981
3981
|
});
|
|
3982
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
3982
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
3983
3983
|
var TE = (0, import_chunk_WWAWV7DQ.__toESM)(require_TaskEither());
|
|
3984
3984
|
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_E3APO3ZG.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
|
|
3985
3985
|
var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_E3APO3ZG.writeFile)(params), createTaggedSystemError("fs-write-file", params));
|
|
@@ -26,29 +26,29 @@ 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_TZ2WAB57_exports = {};
|
|
30
|
+
__export(chunk_TZ2WAB57_exports, {
|
|
31
31
|
GetConfigError: () => GetConfigError,
|
|
32
32
|
getConfig: () => getConfig,
|
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
|
35
35
|
resolveUrl: () => resolveUrl
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(chunk_TZ2WAB57_exports);
|
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
|
40
40
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_chunk_DQMYNBP3 = require("./chunk-DQMYNBP3.js");
|
|
42
|
+
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
43
43
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_KK64NLNR = require("./chunk-KK64NLNR.js");
|
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
46
|
-
var
|
|
46
|
+
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
48
48
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
49
49
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
50
50
|
var import_get_platform = require("@prisma/get-platform");
|
|
51
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
51
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
52
52
|
var debug = (0, import_debug.default)("prisma:getConfig");
|
|
53
53
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
|
54
54
|
var GetConfigError = class extends Error {
|
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
|
65
65
|
}).exhaustive();
|
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
67
67
|
[Context: getConfig]`;
|
|
68
|
-
super((0,
|
|
68
|
+
super((0, import_chunk_DQMYNBP3.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
69
69
|
this.name = "GetConfigError";
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
|
|
|
83
83
|
return urlFromValue ?? urlEnvVarValue;
|
|
84
84
|
}
|
|
85
85
|
async function getConfig(options) {
|
|
86
|
-
const debugErrorType = (0,
|
|
86
|
+
const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "getConfigWasm");
|
|
87
87
|
debug(`Using getConfig Wasm`);
|
|
88
88
|
const configEither = (0, import_function.pipe)(
|
|
89
|
-
(0,
|
|
89
|
+
(0, import_chunk_7MD6344A.tryCatch)(
|
|
90
90
|
() => {
|
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
92
92
|
debug("Triggering a Rust panic...");
|
|
93
|
-
|
|
93
|
+
import_chunk_KK64NLNR.prismaSchemaWasm.debug_panic();
|
|
94
94
|
}
|
|
95
95
|
const params = JSON.stringify({
|
|
96
96
|
prismaSchema: options.datamodel,
|
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
99
99
|
env: process.env
|
|
100
100
|
});
|
|
101
|
-
const data =
|
|
101
|
+
const data = import_chunk_KK64NLNR.prismaSchemaWasm.get_config(params);
|
|
102
102
|
return data;
|
|
103
103
|
},
|
|
104
104
|
(e) => ({
|
|
@@ -107,11 +107,11 @@ async function getConfig(options) {
|
|
|
107
107
|
error: e
|
|
108
108
|
})
|
|
109
109
|
),
|
|
110
|
-
(0,
|
|
111
|
-
(0,
|
|
110
|
+
(0, import_chunk_7MD6344A.map)((result) => ({ result })),
|
|
111
|
+
(0, import_chunk_7MD6344A.chainW)(
|
|
112
112
|
({ result }) => (
|
|
113
113
|
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
|
114
|
-
(0,
|
|
114
|
+
(0, import_chunk_7MD6344A.tryCatch)(
|
|
115
115
|
() => JSON.parse(result),
|
|
116
116
|
(e) => ({
|
|
117
117
|
type: "parse-json",
|
|
@@ -121,18 +121,18 @@ async function getConfig(options) {
|
|
|
121
121
|
)
|
|
122
122
|
)
|
|
123
123
|
),
|
|
124
|
-
(0,
|
|
124
|
+
(0, import_chunk_7MD6344A.chainW)((response) => {
|
|
125
125
|
if (response.errors.length > 0) {
|
|
126
|
-
return (0,
|
|
126
|
+
return (0, import_chunk_7MD6344A.left)({
|
|
127
127
|
type: "validation-error",
|
|
128
128
|
reason: "(get-config wasm)",
|
|
129
129
|
error: response.errors
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
return (0,
|
|
132
|
+
return (0, import_chunk_7MD6344A.right)(response.config);
|
|
133
133
|
})
|
|
134
134
|
);
|
|
135
|
-
if ((0,
|
|
135
|
+
if ((0, import_chunk_7MD6344A.isRight)(configEither)) {
|
|
136
136
|
debug("config data retrieved without errors in getConfig Wasm");
|
|
137
137
|
const { right: data } = configEither;
|
|
138
138
|
for (const generator of data.generators) {
|
|
@@ -160,12 +160,12 @@ async function getConfig(options) {
|
|
|
160
160
|
return panic;
|
|
161
161
|
}
|
|
162
162
|
const errorOutput = e.error.message;
|
|
163
|
-
return new GetConfigError((0,
|
|
163
|
+
return new GetConfigError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
164
164
|
}).with({ type: "validation-error" }, (e) => {
|
|
165
165
|
return new GetConfigError({
|
|
166
166
|
_tag: "parsed",
|
|
167
167
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
|
168
|
-
reason: (0,
|
|
168
|
+
reason: (0, import_chunk_IAEMHQAC.createSchemaValidationError)(e.reason),
|
|
169
169
|
message: formatErrors(e.error)
|
|
170
170
|
});
|
|
171
171
|
}).otherwise((e) => {
|