@prisma/internals 6.19.0-integration-engines-6-19-0-31-next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23.1 → 6.19.0-integration-next.16

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.
Files changed (85) hide show
  1. package/dist/{chunk-Q64XHKHF.js → chunk-25QIR2OA.js} +8 -8
  2. package/dist/{chunk-RNYJUEDU.js → chunk-2ONERNWE.js} +5 -5
  3. package/dist/{chunk-3NZLOTZP.js → chunk-3GU5WOTV.js} +7 -8
  4. package/dist/{chunk-OAT7ZJED.js → chunk-5FUXDJAN.js} +5 -9
  5. package/dist/{chunk-FYZCPL2Z.js → chunk-5NV3W7KM.js} +4 -4
  6. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  7. package/dist/{chunk-F2OZV76L.js → chunk-5XFNC2RY.js} +7 -7
  8. package/dist/{chunk-IE6Y4PMC.js → chunk-63H7LVQK.js} +5 -5
  9. package/dist/{chunk-APZUC47O.js → chunk-6GH4RAXF.js} +5 -5
  10. package/dist/{chunk-NGOAZIZY.js → chunk-6OLUZD6G.js} +9 -15
  11. package/dist/{chunk-C2HOY5Z2.js → chunk-A7LJSXBL.js} +31 -49
  12. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  13. package/dist/{chunk-RS2R7COT.js → chunk-B22EOFPW.js} +3 -6
  14. package/dist/{chunk-UQUWZJVN.js → chunk-BLBFB7XV.js} +7 -7
  15. package/dist/{chunk-NE544QTB.js → chunk-CAACRLTC.js} +8 -8
  16. package/dist/{chunk-FP7Y7C33.js → chunk-FMYHDVAC.js} +7 -7
  17. package/dist/{chunk-ERSH2BQA.js → chunk-FUYRCYVL.js} +3 -8
  18. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  19. package/dist/{chunk-HFFWZTVM.js → chunk-GSH4BXBI.js} +4 -6
  20. package/dist/{chunk-3D5WFBNU.js → chunk-HC7ALJJ2.js} +31 -49
  21. package/dist/{chunk-GMW36QQF.js → chunk-HL6M6I6N.js} +7 -7
  22. package/dist/{chunk-2QAF26LC.js → chunk-I6IIL2R7.js} +5 -5
  23. package/dist/{chunk-BZFXOLVC.js → chunk-INJO27TY.js} +9 -15
  24. package/dist/{chunk-OQH4MI73.js → chunk-MH5DW7MH.js} +7 -7
  25. package/dist/{chunk-VSGMGR6A.js → chunk-NDSHLEAN.js} +8 -8
  26. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  27. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  28. package/dist/{chunk-XZBDRJF3.js → chunk-R3RVIOOH.js} +5 -5
  29. package/dist/{chunk-VFCLWZ3O.js → chunk-RXUFT5US.js} +8 -8
  30. package/dist/{chunk-4YZH45V6.js → chunk-SIMRXUXR.js} +5 -5
  31. package/dist/{chunk-77HI77IU.js → chunk-SVPXYUIM.js} +6 -7
  32. package/dist/{chunk-UHI6VYFX.js → chunk-SYOFVVNN.js} +5 -5
  33. package/dist/{chunk-4CGPN5SR.js → chunk-VRGMXDRD.js} +3 -6
  34. package/dist/{chunk-TBA7BNPC.js → chunk-XCUYCN3Z.js} +5 -5
  35. package/dist/{chunk-5MVBCW2Z.js → chunk-XQFPAFQE.js} +5 -5
  36. package/dist/cli/checkUnsupportedDataProxy.js +41 -45
  37. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +41 -45
  38. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  39. package/dist/cli/getSchema.d.ts +1 -15
  40. package/dist/cli/getSchema.js +4 -5
  41. package/dist/cli/hashes.js +4 -4
  42. package/dist/cli/schemaContext.d.ts +1 -3
  43. package/dist/cli/schemaContext.js +41 -45
  44. package/dist/client/getClientEngineType.d.ts +0 -1
  45. package/dist/client/getClientEngineType.js +3 -3
  46. package/dist/engine-commands/errorHelpers.js +4 -4
  47. package/dist/engine-commands/formatSchema.js +40 -44
  48. package/dist/engine-commands/getConfig.d.ts +0 -1
  49. package/dist/engine-commands/getConfig.js +11 -11
  50. package/dist/engine-commands/getDmmf.js +8 -8
  51. package/dist/engine-commands/getEngineVersion.js +6 -6
  52. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  53. package/dist/engine-commands/getEnginesInfo.js +7 -7
  54. package/dist/engine-commands/index.js +52 -56
  55. package/dist/engine-commands/lintSchema.js +9 -9
  56. package/dist/engine-commands/mergeSchemas.js +8 -8
  57. package/dist/engine-commands/validate.js +8 -8
  58. package/dist/get-generators/getGenerators.d.ts +0 -1
  59. package/dist/get-generators/getGenerators.js +43 -47
  60. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  61. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  62. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  63. package/dist/index.d.ts +0 -4
  64. package/dist/index.js +82 -89
  65. package/dist/resolveBinary.js +7 -7
  66. package/dist/schemaEngineCommands.js +8 -8
  67. package/dist/sendPanic.js +2 -2
  68. package/dist/utils/canPrompt.js +3 -3
  69. package/dist/utils/getVersionFromPackageJson.js +3 -3
  70. package/dist/utils/handlePanic.js +6 -6
  71. package/dist/utils/serializeQueryEngineName.js +2 -2
  72. package/dist/wasm.js +5 -5
  73. package/package.json +14 -15
  74. package/dist/chunk-3FP46GUV.js +0 -471
  75. package/dist/chunk-46ABODUM.js +0 -186
  76. package/dist/chunk-PZMRR772.js +0 -41
  77. package/dist/chunk-T2PM5TKT.js +0 -55
  78. package/dist/dotenvExpand.d.ts +0 -35
  79. package/dist/dotenvExpand.js +0 -25
  80. package/dist/utils/getEnvPaths.d.ts +0 -14
  81. package/dist/utils/getEnvPaths.js +0 -29
  82. package/dist/utils/loadEnvFile.d.ts +0 -10
  83. package/dist/utils/loadEnvFile.js +0 -30
  84. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  85. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -1,55 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_T2PM5TKT_exports = {};
20
- __export(chunk_T2PM5TKT_exports, {
21
- dotenvExpand: () => dotenvExpand
22
- });
23
- module.exports = __toCommonJS(chunk_T2PM5TKT_exports);
24
- function dotenvExpand(config) {
25
- const environment = config.ignoreProcessEnv ? {} : process.env;
26
- const interpolate = (envValue) => {
27
- const matches = envValue.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g);
28
- return matches?.reduce(function(newEnv, match) {
29
- const parts = /(.?)\${([a-zA-Z0-9_]+)?}/g.exec(match);
30
- if (!parts) {
31
- return newEnv;
32
- }
33
- const prefix = parts[1];
34
- let value, replacePart;
35
- if (prefix === "\\") {
36
- replacePart = parts[0];
37
- value = replacePart.replace("\\$", "$");
38
- } else {
39
- const key = parts[2];
40
- replacePart = parts[0].substring(prefix.length);
41
- value = Object.hasOwnProperty.call(environment, key) ? environment[key] : config.parsed[key] || "";
42
- value = interpolate(value);
43
- }
44
- return newEnv.replace(replacePart, value);
45
- }, envValue) ?? envValue;
46
- };
47
- for (const configKey in config.parsed) {
48
- const value = Object.hasOwnProperty.call(environment, configKey) ? environment[configKey] : config.parsed[configKey];
49
- config.parsed[configKey] = interpolate(value);
50
- }
51
- for (const processKey in config.parsed) {
52
- environment[processKey] = config.parsed[processKey];
53
- }
54
- return config;
55
- }
@@ -1,35 +0,0 @@
1
- import type { DotenvConfigOutput } from 'dotenv';
2
- /**
3
- * Modified version of https://github.com/motdotla/dotenv-expand
4
- * Our version does only expand ${ENV} - curly braces but not without curly braces
5
- *
6
- * Original License from https://github.com/motdotla/dotenv-expand/blob/de9e5cb0215495452f475f5be4dea1580b8217cd/LICENSE
7
- * Copyright (c) 2016, Scott Motte
8
- * All rights reserved.
9
- *
10
- * Redistribution and use in source and binary forms, with or without
11
- * modification, are permitted provided that the following conditions are met:
12
- *
13
- * * Redistributions of source code must retain the above copyright notice, this
14
- * list of conditions and the following disclaimer.
15
- *
16
- * * Redistributions in binary form must reproduce the above copyright notice,
17
- * this list of conditions and the following disclaimer in the documentation
18
- * and/or other materials provided with the distribution.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- */
31
- export declare function dotenvExpand(config: DotenvConfigOutput & {
32
- ignoreProcessEnv?: boolean;
33
- }): DotenvConfigOutput & {
34
- ignoreProcessEnv?: boolean | undefined;
35
- };
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var dotenvExpand_exports = {};
20
- __export(dotenvExpand_exports, {
21
- dotenvExpand: () => import_chunk_T2PM5TKT.dotenvExpand
22
- });
23
- module.exports = __toCommonJS(dotenvExpand_exports);
24
- var import_chunk_T2PM5TKT = require("./chunk-T2PM5TKT.js");
25
- var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -1,14 +0,0 @@
1
- import { EnvPaths } from '@prisma/generator';
2
- /**
3
- * 1. Search in project root
4
- * 1. Schema
5
- * 1. Search location from schema arg `--schema`
6
- * 1. Search location from pkgJSON `"prisma": {"schema": "/path/to/schema.prisma"}`
7
- * 1. Search default location `./prisma/.env`
8
- * 1. Search cwd `./.env`
9
- *
10
- * @returns `{ rootEnvPath, schemaEnvPath }`
11
- */
12
- export declare function getEnvPaths(schemaPath?: string | null, opts?: {
13
- cwd: string;
14
- }): Promise<EnvPaths>;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var getEnvPaths_exports = {};
20
- __export(getEnvPaths_exports, {
21
- getEnvPaths: () => import_chunk_46ABODUM.getEnvPaths
22
- });
23
- module.exports = __toCommonJS(getEnvPaths_exports);
24
- var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
25
- var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
26
- var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
27
- var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
28
- var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
29
- var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -1,10 +0,0 @@
1
- import type { PrismaConfigInternal } from '@prisma/config';
2
- /**
3
- * Read .env file only if next to schema.prisma
4
- * .env found: print to console its relative path
5
- */
6
- export declare function loadEnvFile({ schemaPath, config, printMessage, }: {
7
- schemaPath?: string;
8
- printMessage?: boolean;
9
- config: PrismaConfigInternal;
10
- }): Promise<void>;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var loadEnvFile_exports = {};
20
- __export(loadEnvFile_exports, {
21
- loadEnvFile: () => import_chunk_PZMRR772.loadEnvFile
22
- });
23
- module.exports = __toCommonJS(loadEnvFile_exports);
24
- var import_chunk_PZMRR772 = require("../chunk-PZMRR772.js");
25
- var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
26
- var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
27
- var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
28
- var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
- var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
30
- var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -1,25 +0,0 @@
1
- import dotenv from 'dotenv';
2
- type DotenvResult = dotenv.DotenvConfigOutput & {
3
- ignoreProcessEnv?: boolean | undefined;
4
- };
5
- interface DotenvLoadEnvResult {
6
- message: string;
7
- path: string;
8
- dotenvResult: DotenvResult;
9
- }
10
- export type LoadedEnv = {
11
- message?: string;
12
- parsed: {
13
- [x: string]: string;
14
- };
15
- } | undefined;
16
- export declare function tryLoadEnvs({ rootEnvPath, schemaEnvPath, }: {
17
- rootEnvPath: string | null | undefined;
18
- schemaEnvPath: string | null | undefined;
19
- }, opts?: {
20
- conflictCheck: 'warn' | 'error' | 'none';
21
- }): LoadedEnv;
22
- export declare function loadEnv(envPath: string | null | undefined): DotenvLoadEnvResult | null;
23
- export declare function pathsEqual(path1: string | null | undefined, path2: string | null | undefined): boolean | "" | null | undefined;
24
- export declare function exists(p: string | null | undefined): p is string;
25
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var tryLoadEnvs_exports = {};
20
- __export(tryLoadEnvs_exports, {
21
- exists: () => import_chunk_3FP46GUV.exists,
22
- loadEnv: () => import_chunk_3FP46GUV.loadEnv,
23
- pathsEqual: () => import_chunk_3FP46GUV.pathsEqual,
24
- tryLoadEnvs: () => import_chunk_3FP46GUV.tryLoadEnvs
25
- });
26
- module.exports = __toCommonJS(tryLoadEnvs_exports);
27
- var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
28
- var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
- var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
30
- var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");