@prisma/internals 6.12.0-dev.4 → 6.12.0-dev.40
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-FEGRD2ZV.js → chunk-2RHGAFDU.js} +5 -5
- package/dist/{chunk-KMUTKTNC.js → chunk-4HBUSBZZ.js} +8 -8
- package/dist/{chunk-GZ2TPZ3Z.js → chunk-5DLXWUFX.js} +8 -8
- package/dist/{chunk-PKVL3HMN.js → chunk-6I574ZIF.js} +18 -18
- package/dist/{chunk-5OWPJC4G.js → chunk-7LZMIPS5.js} +8 -8
- package/dist/{chunk-CBFJDBKO.js → chunk-A6GTPCEO.js} +7 -7
- package/dist/{chunk-2H6XXXKO.js → chunk-BCQZ6JQE.js} +9 -9
- package/dist/{chunk-UNK64JUK.js → chunk-BL6J3WTY.js} +5 -5
- package/dist/{chunk-CZ67HW53.js → chunk-GD6SEB2H.js} +5 -5
- package/dist/{chunk-4DMI3WIG.js → chunk-HOG6WF4T.js} +7 -7
- package/dist/{chunk-MZ2ORLZ6.js → chunk-IGJRQLKG.js} +5 -5
- package/dist/{chunk-E3FC66I4.js → chunk-JIFFPM7F.js} +5 -5
- package/dist/{chunk-CYQLJPPO.js → chunk-LPNBWFQ3.js} +4 -4
- package/dist/{chunk-5IQHBX6X.js → chunk-LYFOJ5NK.js} +5 -5
- package/dist/{chunk-7MZE7LI4.js → chunk-MMDCFN6O.js} +7 -7
- package/dist/{chunk-FSGN3KQL.js → chunk-NSA7BFND.js} +5 -5
- package/dist/{chunk-NEFI633E.js → chunk-O3FLU6UD.js} +8 -8
- package/dist/{chunk-NKDNDKOE.js → chunk-SFFH45R3.js} +5 -5
- package/dist/{chunk-RLC4VAPZ.js → chunk-UG6AY2CN.js} +5 -5
- package/dist/{chunk-DQQRPBD5.js → chunk-UKT4HWVS.js} +8 -8
- package/dist/{chunk-C4OGCQX6.js → chunk-VMDJ6R7V.js} +8 -8
- package/dist/{chunk-QZXQSFCZ.js → chunk-X4L5SQSX.js} +6 -6
- package/dist/{chunk-ZNVU4OK3.js → chunk-ZZVENPGH.js} +18 -18
- package/dist/cli/checkUnsupportedDataProxy.js +15 -15
- package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +1 -1
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +15 -15
- package/dist/cli/directoryConfig.d.ts +2 -1
- package/dist/cli/directoryConfig.js +2 -2
- package/dist/cli/schemaContext.js +15 -15
- package/dist/convertCredentials.js +5 -5
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +14 -14
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +23 -23
- 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 +17 -17
- package/dist/index.js +42 -42
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/prismaPostgres.d.ts +11 -2
- package/dist/utils/prismaPostgres.js +5 -5
- package/dist/utils/prismaPostgres.test.js +16 -16
- package/dist/wasm.js +5 -5
- package/package.json +14 -14
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var getVersionFromPackageJson_exports = {};
|
20
20
|
__export(getVersionFromPackageJson_exports, {
|
21
|
-
version: () =>
|
21
|
+
version: () => import_chunk_IGJRQLKG.version
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getVersionFromPackageJson_exports);
|
24
|
-
var
|
25
|
-
var
|
24
|
+
var import_chunk_IGJRQLKG = require("../chunk-IGJRQLKG.js");
|
25
|
+
var import_chunk_A6GTPCEO = require("../chunk-A6GTPCEO.js");
|
26
26
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
@@ -1,4 +1,13 @@
|
|
1
1
|
export declare const PRISMA_POSTGRES_PROVIDER = "prisma+postgres";
|
2
2
|
export declare const PRISMA_POSTGRES_PROTOCOL = "prisma+postgres:";
|
3
|
-
|
4
|
-
|
3
|
+
declare const prismaPostgresBrand: unique symbol;
|
4
|
+
declare const prismaPostgresDevBrand: unique symbol;
|
5
|
+
export type PrismaPostgresUrl<T extends string | URL> = T & {
|
6
|
+
readonly [prismaPostgresBrand]: true;
|
7
|
+
};
|
8
|
+
export type PrismaPostgresDevUrl<T extends string | URL> = PrismaPostgresUrl<T> & {
|
9
|
+
readonly [prismaPostgresDevBrand]: true;
|
10
|
+
};
|
11
|
+
export declare function isPrismaPostgres<T extends string | URL>(connectionString?: T): connectionString is PrismaPostgresUrl<T>;
|
12
|
+
export declare function isPrismaPostgresDev<T extends string | URL>(connectionString?: T): connectionString is PrismaPostgresDevUrl<T>;
|
13
|
+
export {};
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var prismaPostgres_exports = {};
|
20
20
|
__export(prismaPostgres_exports, {
|
21
|
-
PRISMA_POSTGRES_PROTOCOL: () =>
|
22
|
-
PRISMA_POSTGRES_PROVIDER: () =>
|
23
|
-
isPrismaPostgres: () =>
|
24
|
-
isPrismaPostgresDev: () =>
|
21
|
+
PRISMA_POSTGRES_PROTOCOL: () => import_chunk_LPNBWFQ3.PRISMA_POSTGRES_PROTOCOL,
|
22
|
+
PRISMA_POSTGRES_PROVIDER: () => import_chunk_LPNBWFQ3.PRISMA_POSTGRES_PROVIDER,
|
23
|
+
isPrismaPostgres: () => import_chunk_LPNBWFQ3.isPrismaPostgres,
|
24
|
+
isPrismaPostgresDev: () => import_chunk_LPNBWFQ3.isPrismaPostgresDev
|
25
25
|
});
|
26
26
|
module.exports = __toCommonJS(prismaPostgres_exports);
|
27
|
-
var
|
27
|
+
var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
|
28
28
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
@@ -1,32 +1,32 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
2
|
+
var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
|
3
3
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
4
4
|
describe("isPrismaPostgres", () => {
|
5
5
|
test("returns false on invalid or non Prisma Postgres protocols", () => {
|
6
|
-
expect((0,
|
7
|
-
expect((0,
|
8
|
-
expect((0,
|
9
|
-
expect((0,
|
6
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)()).toBe(false);
|
7
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("")).toBe(false);
|
8
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("mysql://database.url/test")).toBe(false);
|
9
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("prisma://database.url/test")).toBe(false);
|
10
10
|
});
|
11
11
|
test("returns true on valid Prisma Postgres protocols", () => {
|
12
|
-
expect((0,
|
13
|
-
expect((0,
|
12
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("prisma+postgres://database.url/test")).toBe(true);
|
13
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)(`${import_chunk_LPNBWFQ3.PRISMA_POSTGRES_PROTOCOL}//database.url/test`)).toBe(true);
|
14
14
|
});
|
15
15
|
});
|
16
16
|
describe("isPrismaPostgresDev", () => {
|
17
17
|
test("returns false on invalid or non Prisma Postgres protocols", () => {
|
18
|
-
expect((0,
|
19
|
-
expect((0,
|
20
|
-
expect((0,
|
21
|
-
expect((0,
|
18
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)()).toBe(false);
|
19
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("")).toBe(false);
|
20
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("mysql://database.url/test")).toBe(false);
|
21
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("prisma://database.url/test")).toBe(false);
|
22
22
|
});
|
23
23
|
test("returns false on valid Prisma Postgres protocols with non localhost host", () => {
|
24
|
-
expect((0,
|
25
|
-
expect((0,
|
26
|
-
expect((0,
|
24
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://database.url/test")).toBe(false);
|
25
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)(`${import_chunk_LPNBWFQ3.PRISMA_POSTGRES_PROTOCOL}//database.url/test`)).toBe(false);
|
26
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://127.0.0.2:5432/test")).toBe(false);
|
27
27
|
});
|
28
28
|
test("returns true on valid Prisma Postgres protocols with localhost host", () => {
|
29
|
-
expect((0,
|
30
|
-
expect((0,
|
29
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://localhost:5432/test")).toBe(true);
|
30
|
+
expect((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://127.0.0.1:5432/test")).toBe(true);
|
31
31
|
});
|
32
32
|
});
|
package/dist/wasm.js
CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var wasm_exports = {};
|
20
20
|
__export(wasm_exports, {
|
21
|
-
prismaSchemaWasm: () =>
|
22
|
-
prismaSchemaWasmVersion: () =>
|
23
|
-
schemaEngineWasmVersion: () =>
|
21
|
+
prismaSchemaWasm: () => import_chunk_UG6AY2CN.prismaSchemaWasm,
|
22
|
+
prismaSchemaWasmVersion: () => import_chunk_UG6AY2CN.prismaSchemaWasmVersion,
|
23
|
+
schemaEngineWasmVersion: () => import_chunk_UG6AY2CN.schemaEngineWasmVersion
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(wasm_exports);
|
26
|
-
var
|
27
|
-
var
|
26
|
+
var import_chunk_UG6AY2CN = require("./chunk-UG6AY2CN.js");
|
27
|
+
var import_chunk_A6GTPCEO = require("./chunk-A6GTPCEO.js");
|
28
28
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
29
29
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/internals",
|
3
|
-
"version": "6.12.0-dev.
|
3
|
+
"version": "6.12.0-dev.40",
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"checkpoint-client": "1.1.33",
|
34
34
|
"cli-truncate": "4.0.0",
|
35
35
|
"dotenv": "16.5.0",
|
36
|
-
"esbuild": "0.25.
|
36
|
+
"esbuild": "0.25.5",
|
37
37
|
"escape-string-regexp": "5.0.0",
|
38
38
|
"execa": "5.1.1",
|
39
39
|
"fast-glob": "3.3.3",
|
@@ -72,20 +72,20 @@
|
|
72
72
|
"yarn": "1.22.22"
|
73
73
|
},
|
74
74
|
"dependencies": {
|
75
|
-
"@prisma/prisma-schema-wasm": "6.
|
76
|
-
"@prisma/schema-engine-wasm": "6.
|
75
|
+
"@prisma/prisma-schema-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
|
76
|
+
"@prisma/schema-engine-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
|
77
77
|
"arg": "5.0.2",
|
78
78
|
"prompts": "2.4.2",
|
79
|
-
"@prisma/config": "6.12.0-dev.
|
80
|
-
"@prisma/
|
81
|
-
"@prisma/
|
82
|
-
"@prisma/
|
83
|
-
"@prisma/driver-adapter-utils": "6.12.0-dev.
|
84
|
-
"@prisma/
|
85
|
-
"@prisma/
|
86
|
-
"@prisma/
|
87
|
-
"@prisma/
|
88
|
-
"@prisma/schema-files-loader": "6.12.0-dev.
|
79
|
+
"@prisma/config": "6.12.0-dev.40",
|
80
|
+
"@prisma/debug": "6.12.0-dev.40",
|
81
|
+
"@prisma/dmmf": "6.12.0-dev.40",
|
82
|
+
"@prisma/engines": "6.12.0-dev.40",
|
83
|
+
"@prisma/driver-adapter-utils": "6.12.0-dev.40",
|
84
|
+
"@prisma/fetch-engine": "6.12.0-dev.40",
|
85
|
+
"@prisma/generator": "6.12.0-dev.40",
|
86
|
+
"@prisma/get-platform": "6.12.0-dev.40",
|
87
|
+
"@prisma/generator-helper": "6.12.0-dev.40",
|
88
|
+
"@prisma/schema-files-loader": "6.12.0-dev.40"
|
89
89
|
},
|
90
90
|
"peerDependencies": {
|
91
91
|
"typescript": ">=5.1.0"
|