@prisma/internals 6.13.0-dev.3 → 6.13.0-dev.31
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-67Y3H3QN.js → chunk-2MSHYWMA.js} +5 -5
- package/dist/{chunk-VMDJ6R7V.js → chunk-3PZELVH3.js} +8 -8
- package/dist/{chunk-CHOXBASF.js → chunk-4JCVHBYR.js} +5 -5
- package/dist/{chunk-MMDCFN6O.js → chunk-5OP3XZGE.js} +7 -7
- package/dist/{chunk-MY5KA4VU.js → chunk-67I7CEQJ.js} +329 -12
- package/dist/{chunk-HCLB23CV.js → chunk-7QYPTKF6.js} +5 -5
- package/dist/{chunk-JIFFPM7F.js → chunk-7RFO7IBT.js} +5 -5
- package/dist/{chunk-PYESN73R.js → chunk-AOC6CKVB.js} +26 -26
- package/dist/{chunk-SFFH45R3.js → chunk-AZZVNSJU.js} +5 -5
- package/dist/{chunk-X4L5SQSX.js → chunk-BPDSYUHC.js} +5 -5
- package/dist/{chunk-ZIFBTC6Y.js → chunk-CILEY36B.js} +5150 -477
- package/dist/{chunk-F44R72ET.js → chunk-DNBGUGMK.js} +7 -7
- package/dist/{chunk-ZCBEMBHR.js → chunk-EYVG6XQS.js} +11 -23
- package/dist/{chunk-7LZMIPS5.js → chunk-FJWKIEZH.js} +8 -8
- package/dist/{chunk-NNDSWLTF.js → chunk-GIP47CQ4.js} +5 -5
- package/dist/{chunk-3R5MIUGK.js → chunk-LJ6T2BOT.js} +5 -5
- package/dist/{chunk-BL6J3WTY.js → chunk-LJJRFSMO.js} +5 -5
- package/dist/chunk-LWJT6EL5.js +27 -0
- package/dist/{chunk-VYQWNWBL.js → chunk-NUJNCHJZ.js} +8 -8
- package/dist/{chunk-YU3N5MWB.js → chunk-PWHLRKOF.js} +8 -8
- package/dist/{chunk-6I574ZIF.js → chunk-U2URCEW5.js} +26 -26
- package/dist/{chunk-7G7FICFI.js → chunk-VXUA6PHH.js} +7 -7
- package/dist/{chunk-7ZY357OA.js → chunk-WKKMDPTL.js} +6 -6
- package/dist/{chunk-WXRTT6AT.js → chunk-XLPPGCBH.js} +8 -8
- package/dist/{chunk-O3FLU6UD.js → chunk-XP7WVNLW.js} +8 -8
- package/dist/{chunk-NSA7BFND.js → chunk-YQ4BHVLI.js} +5 -5
- package/dist/{chunk-FUVIRDZG.js → chunk-ZNGIGXXJ.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +20 -21
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +20 -21
- package/dist/cli/getSchema.d.ts +6 -8
- package/dist/cli/getSchema.js +5 -9
- package/dist/cli/hashes.js +4 -7
- package/dist/cli/schemaContext.js +20 -21
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +19 -20
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +28 -29
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/getGenerators.js +22 -23
- package/dist/getPackedPackage.js +5 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +48 -50
- package/dist/migrateTypes.d.ts +10 -0
- package/dist/resolvePkg.js +2 -3
- package/dist/utils/getEnvPaths.js +4 -6
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/loadEnvFile.js +5 -7
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
- package/dist/chunk-PSFQKG2Q.js +0 -6291
- package/dist/chunk-QS3WUGE3.js +0 -341
|
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_2MSHYWMA_exports = {};
|
|
20
|
+
__export(chunk_2MSHYWMA_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_2MSHYWMA_exports);
|
|
24
|
+
var import_chunk_BPDSYUHC = require("./chunk-BPDSYUHC.js");
|
|
25
|
+
var packageJson = (0, import_chunk_BPDSYUHC.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -26,16 +26,16 @@ 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_3PZELVH3_exports = {};
|
|
30
|
+
__export(chunk_3PZELVH3_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_3PZELVH3_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var import_chunk_LJ6T2BOT = require("./chunk-LJ6T2BOT.js");
|
|
38
|
+
var import_chunk_YQ4BHVLI = require("./chunk-YQ4BHVLI.js");
|
|
39
39
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
41
41
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
|
|
|
58
58
|
}).exhaustive();
|
|
59
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
60
60
|
[Context: getDmmf]`;
|
|
61
|
-
super((0,
|
|
61
|
+
super((0, import_chunk_LJ6T2BOT.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
62
62
|
this.name = "GetDmmfError";
|
|
63
63
|
}
|
|
64
64
|
};
|
|
@@ -70,13 +70,13 @@ async function getDMMF(options) {
|
|
|
70
70
|
() => {
|
|
71
71
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
72
72
|
debug("Triggering a Rust panic...");
|
|
73
|
-
|
|
73
|
+
import_chunk_YQ4BHVLI.prismaSchemaWasm.debug_panic();
|
|
74
74
|
}
|
|
75
75
|
const params = JSON.stringify({
|
|
76
76
|
prismaSchema: options.datamodel,
|
|
77
77
|
noColor: Boolean(process.env.NO_COLOR)
|
|
78
78
|
});
|
|
79
|
-
const data =
|
|
79
|
+
const data = import_chunk_YQ4BHVLI.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
@@ -26,16 +26,16 @@ 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_4JCVHBYR_exports = {};
|
|
30
|
+
__export(chunk_4JCVHBYR_exports, {
|
|
31
31
|
getCLIPathHash: () => getCLIPathHash,
|
|
32
32
|
getProjectHash: () => getProjectHash
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
|
|
35
|
+
var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
|
|
36
36
|
var import_crypto = __toESM(require("crypto"));
|
|
37
37
|
async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
|
|
38
|
-
const projectPath = (await (0,
|
|
38
|
+
const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
|
|
39
39
|
return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
|
|
40
40
|
}
|
|
41
41
|
function getCLIPathHash() {
|
|
@@ -26,17 +26,17 @@ 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_5OP3XZGE_exports = {};
|
|
30
|
+
__export(chunk_5OP3XZGE_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_5OP3XZGE_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_LJJRFSMO = require("./chunk-LJJRFSMO.js");
|
|
39
|
+
var import_chunk_7QYPTKF6 = require("./chunk-7QYPTKF6.js");
|
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: mergeSchemas]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_LJJRFSMO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "MergeSchemasError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
|
|
|
72
72
|
const params = JSON.stringify({
|
|
73
73
|
schema: options.schemas
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return import_chunk_7QYPTKF6.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -26,12 +26,12 @@ 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_67I7CEQJ_exports = {};
|
|
30
|
+
__export(chunk_67I7CEQJ_exports, {
|
|
31
|
+
require_is_core_module: () => require_is_core_module,
|
|
31
32
|
resolvePkg: () => resolvePkg
|
|
32
33
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var import_chunk_QS3WUGE3 = require("./chunk-QS3WUGE3.js");
|
|
34
|
+
module.exports = __toCommonJS(chunk_67I7CEQJ_exports);
|
|
35
35
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
36
36
|
var import_path = __toESM(require("path"));
|
|
37
37
|
var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
@@ -175,6 +175,323 @@ var require_normalize_options = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
+
var require_implementation = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
179
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
|
180
|
+
"use strict";
|
|
181
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
182
|
+
var toStr = Object.prototype.toString;
|
|
183
|
+
var max = Math.max;
|
|
184
|
+
var funcType = "[object Function]";
|
|
185
|
+
var concatty = function concatty2(a, b) {
|
|
186
|
+
var arr = [];
|
|
187
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
188
|
+
arr[i] = a[i];
|
|
189
|
+
}
|
|
190
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
191
|
+
arr[j + a.length] = b[j];
|
|
192
|
+
}
|
|
193
|
+
return arr;
|
|
194
|
+
};
|
|
195
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
196
|
+
var arr = [];
|
|
197
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
198
|
+
arr[j] = arrLike[i];
|
|
199
|
+
}
|
|
200
|
+
return arr;
|
|
201
|
+
};
|
|
202
|
+
var joiny = function(arr, joiner) {
|
|
203
|
+
var str = "";
|
|
204
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
205
|
+
str += arr[i];
|
|
206
|
+
if (i + 1 < arr.length) {
|
|
207
|
+
str += joiner;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return str;
|
|
211
|
+
};
|
|
212
|
+
module2.exports = function bind(that) {
|
|
213
|
+
var target = this;
|
|
214
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
215
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
216
|
+
}
|
|
217
|
+
var args = slicy(arguments, 1);
|
|
218
|
+
var bound;
|
|
219
|
+
var binder = function() {
|
|
220
|
+
if (this instanceof bound) {
|
|
221
|
+
var result = target.apply(
|
|
222
|
+
this,
|
|
223
|
+
concatty(args, arguments)
|
|
224
|
+
);
|
|
225
|
+
if (Object(result) === result) {
|
|
226
|
+
return result;
|
|
227
|
+
}
|
|
228
|
+
return this;
|
|
229
|
+
}
|
|
230
|
+
return target.apply(
|
|
231
|
+
that,
|
|
232
|
+
concatty(args, arguments)
|
|
233
|
+
);
|
|
234
|
+
};
|
|
235
|
+
var boundLength = max(0, target.length - args.length);
|
|
236
|
+
var boundArgs = [];
|
|
237
|
+
for (var i = 0; i < boundLength; i++) {
|
|
238
|
+
boundArgs[i] = "$" + i;
|
|
239
|
+
}
|
|
240
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
241
|
+
if (target.prototype) {
|
|
242
|
+
var Empty = function Empty2() {
|
|
243
|
+
};
|
|
244
|
+
Empty.prototype = target.prototype;
|
|
245
|
+
bound.prototype = new Empty();
|
|
246
|
+
Empty.prototype = null;
|
|
247
|
+
}
|
|
248
|
+
return bound;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
var require_function_bind = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
253
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
|
254
|
+
"use strict";
|
|
255
|
+
var implementation = require_implementation();
|
|
256
|
+
module2.exports = Function.prototype.bind || implementation;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
var require_hasown = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
260
|
+
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
|
|
261
|
+
"use strict";
|
|
262
|
+
var call = Function.prototype.call;
|
|
263
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
264
|
+
var bind = require_function_bind();
|
|
265
|
+
module2.exports = bind.call(call, $hasOwn);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
269
|
+
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports, module2) {
|
|
270
|
+
module2.exports = {
|
|
271
|
+
assert: true,
|
|
272
|
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
|
273
|
+
"assert/strict": ">= 15",
|
|
274
|
+
"node:assert/strict": ">= 16",
|
|
275
|
+
async_hooks: ">= 8",
|
|
276
|
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
277
|
+
buffer_ieee754: ">= 0.5 && < 0.9.7",
|
|
278
|
+
buffer: true,
|
|
279
|
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
|
280
|
+
child_process: true,
|
|
281
|
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
|
282
|
+
cluster: ">= 0.5",
|
|
283
|
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
|
284
|
+
console: true,
|
|
285
|
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
|
286
|
+
constants: true,
|
|
287
|
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
|
288
|
+
crypto: true,
|
|
289
|
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
|
290
|
+
_debug_agent: ">= 1 && < 8",
|
|
291
|
+
_debugger: "< 8",
|
|
292
|
+
dgram: true,
|
|
293
|
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
|
294
|
+
diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
|
|
295
|
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
|
296
|
+
dns: true,
|
|
297
|
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
|
298
|
+
"dns/promises": ">= 15",
|
|
299
|
+
"node:dns/promises": ">= 16",
|
|
300
|
+
domain: ">= 0.7.12",
|
|
301
|
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
|
302
|
+
events: true,
|
|
303
|
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
|
304
|
+
freelist: "< 6",
|
|
305
|
+
fs: true,
|
|
306
|
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
|
307
|
+
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
|
308
|
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
|
309
|
+
_http_agent: ">= 0.11.1",
|
|
310
|
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
|
311
|
+
_http_client: ">= 0.11.1",
|
|
312
|
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
|
313
|
+
_http_common: ">= 0.11.1",
|
|
314
|
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
|
315
|
+
_http_incoming: ">= 0.11.1",
|
|
316
|
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
|
317
|
+
_http_outgoing: ">= 0.11.1",
|
|
318
|
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
|
319
|
+
_http_server: ">= 0.11.1",
|
|
320
|
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
|
321
|
+
http: true,
|
|
322
|
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
|
323
|
+
http2: ">= 8.8",
|
|
324
|
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
|
325
|
+
https: true,
|
|
326
|
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
|
327
|
+
inspector: ">= 8",
|
|
328
|
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
|
329
|
+
"inspector/promises": [">= 19"],
|
|
330
|
+
"node:inspector/promises": [">= 19"],
|
|
331
|
+
_linklist: "< 8",
|
|
332
|
+
module: true,
|
|
333
|
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
|
334
|
+
net: true,
|
|
335
|
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
|
336
|
+
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
|
337
|
+
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
|
338
|
+
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
|
339
|
+
os: true,
|
|
340
|
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
|
341
|
+
path: true,
|
|
342
|
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
|
343
|
+
"path/posix": ">= 15.3",
|
|
344
|
+
"node:path/posix": ">= 16",
|
|
345
|
+
"path/win32": ">= 15.3",
|
|
346
|
+
"node:path/win32": ">= 16",
|
|
347
|
+
perf_hooks: ">= 8.5",
|
|
348
|
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
349
|
+
process: ">= 1",
|
|
350
|
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
|
351
|
+
punycode: ">= 0.5",
|
|
352
|
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
|
353
|
+
querystring: true,
|
|
354
|
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
|
355
|
+
readline: true,
|
|
356
|
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
|
357
|
+
"readline/promises": ">= 17",
|
|
358
|
+
"node:readline/promises": ">= 17",
|
|
359
|
+
repl: true,
|
|
360
|
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
361
|
+
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
362
|
+
smalloc: ">= 0.11.5 && < 3",
|
|
363
|
+
"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
|
|
364
|
+
_stream_duplex: ">= 0.9.4",
|
|
365
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
366
|
+
_stream_transform: ">= 0.9.4",
|
|
367
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
|
368
|
+
_stream_wrap: ">= 1.4.1",
|
|
369
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
370
|
+
_stream_passthrough: ">= 0.9.4",
|
|
371
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
|
372
|
+
_stream_readable: ">= 0.9.4",
|
|
373
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
|
374
|
+
_stream_writable: ">= 0.9.4",
|
|
375
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
|
376
|
+
stream: true,
|
|
377
|
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
|
378
|
+
"stream/consumers": ">= 16.7",
|
|
379
|
+
"node:stream/consumers": ">= 16.7",
|
|
380
|
+
"stream/promises": ">= 15",
|
|
381
|
+
"node:stream/promises": ">= 16",
|
|
382
|
+
"stream/web": ">= 16.5",
|
|
383
|
+
"node:stream/web": ">= 16.5",
|
|
384
|
+
string_decoder: true,
|
|
385
|
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
386
|
+
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
|
387
|
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
388
|
+
"test/reporters": ">= 19.9 && < 20.2",
|
|
389
|
+
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
|
390
|
+
"test/mock_loader": ">= 22.3 && < 22.7",
|
|
391
|
+
"node:test/mock_loader": ">= 22.3 && < 22.7",
|
|
392
|
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
393
|
+
timers: true,
|
|
394
|
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
395
|
+
"timers/promises": ">= 15",
|
|
396
|
+
"node:timers/promises": ">= 16",
|
|
397
|
+
_tls_common: ">= 0.11.13",
|
|
398
|
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
|
399
|
+
_tls_legacy: ">= 0.11.3 && < 10",
|
|
400
|
+
_tls_wrap: ">= 0.11.3",
|
|
401
|
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
402
|
+
tls: true,
|
|
403
|
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
|
404
|
+
trace_events: ">= 10",
|
|
405
|
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
|
406
|
+
tty: true,
|
|
407
|
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
|
408
|
+
url: true,
|
|
409
|
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
|
410
|
+
util: true,
|
|
411
|
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
|
412
|
+
"util/types": ">= 15.3",
|
|
413
|
+
"node:util/types": ">= 16",
|
|
414
|
+
"v8/tools/arguments": ">= 10 && < 12",
|
|
415
|
+
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
416
|
+
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
417
|
+
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
418
|
+
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
419
|
+
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
420
|
+
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
421
|
+
v8: ">= 1",
|
|
422
|
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
|
423
|
+
vm: true,
|
|
424
|
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
|
425
|
+
wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
|
426
|
+
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
|
427
|
+
worker_threads: ">= 11.7",
|
|
428
|
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
|
429
|
+
zlib: ">= 0.5",
|
|
430
|
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
var require_is_core_module = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
435
|
+
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(exports, module2) {
|
|
436
|
+
"use strict";
|
|
437
|
+
var hasOwn = require_hasown();
|
|
438
|
+
function specifierIncluded(current, specifier) {
|
|
439
|
+
var nodeParts = current.split(".");
|
|
440
|
+
var parts = specifier.split(" ");
|
|
441
|
+
var op = parts.length > 1 ? parts[0] : "=";
|
|
442
|
+
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
|
|
443
|
+
for (var i = 0; i < 3; ++i) {
|
|
444
|
+
var cur = parseInt(nodeParts[i] || 0, 10);
|
|
445
|
+
var ver = parseInt(versionParts[i] || 0, 10);
|
|
446
|
+
if (cur === ver) {
|
|
447
|
+
continue;
|
|
448
|
+
}
|
|
449
|
+
if (op === "<") {
|
|
450
|
+
return cur < ver;
|
|
451
|
+
}
|
|
452
|
+
if (op === ">=") {
|
|
453
|
+
return cur >= ver;
|
|
454
|
+
}
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
return op === ">=";
|
|
458
|
+
}
|
|
459
|
+
function matchesRange(current, range) {
|
|
460
|
+
var specifiers = range.split(/ ?&& ?/);
|
|
461
|
+
if (specifiers.length === 0) {
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
464
|
+
for (var i = 0; i < specifiers.length; ++i) {
|
|
465
|
+
if (!specifierIncluded(current, specifiers[i])) {
|
|
466
|
+
return false;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
function versionIncluded(nodeVersion, specifierValue) {
|
|
472
|
+
if (typeof specifierValue === "boolean") {
|
|
473
|
+
return specifierValue;
|
|
474
|
+
}
|
|
475
|
+
var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion;
|
|
476
|
+
if (typeof current !== "string") {
|
|
477
|
+
throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
|
|
478
|
+
}
|
|
479
|
+
if (specifierValue && typeof specifierValue === "object") {
|
|
480
|
+
for (var i = 0; i < specifierValue.length; ++i) {
|
|
481
|
+
if (matchesRange(current, specifierValue[i])) {
|
|
482
|
+
return true;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
return false;
|
|
486
|
+
}
|
|
487
|
+
return matchesRange(current, specifierValue);
|
|
488
|
+
}
|
|
489
|
+
var data = require_core();
|
|
490
|
+
module2.exports = function isCore(x, nodeVersion) {
|
|
491
|
+
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
});
|
|
178
495
|
var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
179
496
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/async.js"(exports, module2) {
|
|
180
497
|
"use strict";
|
|
@@ -184,7 +501,7 @@ var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
184
501
|
var caller = require_caller();
|
|
185
502
|
var nodeModulesPaths = require_node_modules_paths();
|
|
186
503
|
var normalizeOptions = require_normalize_options();
|
|
187
|
-
var isCore =
|
|
504
|
+
var isCore = require_is_core_module();
|
|
188
505
|
var realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath;
|
|
189
506
|
var homedir = getHomedir();
|
|
190
507
|
var defaultPaths = function() {
|
|
@@ -469,7 +786,7 @@ var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
469
786
|
};
|
|
470
787
|
}
|
|
471
788
|
});
|
|
472
|
-
var
|
|
789
|
+
var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
473
790
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(exports, module2) {
|
|
474
791
|
module2.exports = {
|
|
475
792
|
assert: true,
|
|
@@ -635,11 +952,11 @@ var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
635
952
|
};
|
|
636
953
|
}
|
|
637
954
|
});
|
|
638
|
-
var
|
|
955
|
+
var require_core3 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
639
956
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(exports, module2) {
|
|
640
957
|
"use strict";
|
|
641
|
-
var isCoreModule =
|
|
642
|
-
var data =
|
|
958
|
+
var isCoreModule = require_is_core_module();
|
|
959
|
+
var data = require_core2();
|
|
643
960
|
var core = {};
|
|
644
961
|
for (mod in data) {
|
|
645
962
|
if (Object.prototype.hasOwnProperty.call(data, mod)) {
|
|
@@ -653,7 +970,7 @@ var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
653
970
|
var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
654
971
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(exports, module2) {
|
|
655
972
|
"use strict";
|
|
656
|
-
var isCoreModule =
|
|
973
|
+
var isCoreModule = require_is_core_module();
|
|
657
974
|
module2.exports = function isCore(x) {
|
|
658
975
|
return isCoreModule(x);
|
|
659
976
|
};
|
|
@@ -662,7 +979,7 @@ var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
662
979
|
var require_sync = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
663
980
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/sync.js"(exports, module2) {
|
|
664
981
|
"use strict";
|
|
665
|
-
var isCore =
|
|
982
|
+
var isCore = require_is_core_module();
|
|
666
983
|
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
|
667
984
|
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
668
985
|
var getHomedir = require_homedir();
|
|
@@ -855,7 +1172,7 @@ var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
855
1172
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(exports, module2) {
|
|
856
1173
|
"use strict";
|
|
857
1174
|
var async = require_async();
|
|
858
|
-
async.core =
|
|
1175
|
+
async.core = require_core3();
|
|
859
1176
|
async.isCore = require_is_core();
|
|
860
1177
|
async.sync = require_sync();
|
|
861
1178
|
module2.exports = async;
|
|
@@ -26,15 +26,15 @@ 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_7QYPTKF6_exports = {};
|
|
30
|
+
__export(chunk_7QYPTKF6_exports, {
|
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
|
33
33
|
schemaEngineWasmVersion: () => schemaEngineWasmVersion,
|
|
34
34
|
wasm_exports: () => wasm_exports
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
37
|
-
var
|
|
36
|
+
module.exports = __toCommonJS(chunk_7QYPTKF6_exports);
|
|
37
|
+
var import_chunk_BPDSYUHC = require("./chunk-BPDSYUHC.js");
|
|
38
38
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
40
40
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
@@ -46,6 +46,6 @@ var wasm_exports = {};
|
|
|
46
46
|
});
|
|
47
47
|
var globalWithPanicRegistry = globalThis;
|
|
48
48
|
globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
|
49
|
-
var { dependencies } = (0,
|
|
49
|
+
var { dependencies } = (0, import_chunk_BPDSYUHC.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_7RFO7IBT_exports = {};
|
|
20
|
+
__export(chunk_7RFO7IBT_exports, {
|
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
|
24
24
|
lintSchema: () => lintSchema,
|
|
25
25
|
warningToString: () => warningToString
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
28
|
-
var
|
|
27
|
+
module.exports = __toCommonJS(chunk_7RFO7IBT_exports);
|
|
28
|
+
var import_chunk_YQ4BHVLI = require("./chunk-YQ4BHVLI.js");
|
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
31
31
|
function lintSchema({ schemas }) {
|
|
32
|
-
const lintResult =
|
|
32
|
+
const lintResult = import_chunk_YQ4BHVLI.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|