@prisma/internals 7.7.0-dev.3 → 7.7.0-dev.5
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-IN7DJEWK.js → chunk-3Y5ZLWOH.js} +7 -7
- package/dist/{chunk-Q75TMXCR.js → chunk-6I5EQPM7.js} +5 -5
- package/dist/{chunk-ZI7BX3VK.js → chunk-DVMCRKSY.js} +7 -7
- package/dist/{chunk-PKOQQT7I.js → chunk-DZ4QWHTB.js} +5 -5
- package/dist/{chunk-IDINCQMN.js → chunk-E476ARWS.js} +6 -7
- package/dist/{chunk-H5RJM5KP.js → chunk-EZT2M4Z7.js} +5 -5
- package/dist/{chunk-OBFJDH7C.js → chunk-HUKX6SK2.js} +8 -8
- package/dist/{chunk-VPHYIISP.js → chunk-JK5WQKJF.js} +5 -5
- package/dist/{chunk-YV4IFLW4.js → chunk-JPZYSRK3.js} +262 -15
- package/dist/{chunk-5BRXEOYH.js → chunk-K2EOOA2X.js} +5 -5
- package/dist/{chunk-2GPDFPDR.js → chunk-KARIQA23.js} +7 -7
- package/dist/{chunk-2HPKSKDE.js → chunk-NFSRS3ET.js} +5 -5
- package/dist/{chunk-BXIKQUP5.js → chunk-PTPRBA7K.js} +289 -93
- package/dist/{chunk-57ZFKPEC.js → chunk-Q53Z2MAO.js} +8 -8
- package/dist/{chunk-Q5XW7CMJ.js → chunk-QVJ2BXKF.js} +9 -9
- package/dist/{chunk-YJVCIN4F.js → chunk-T3R75LJS.js} +5 -5
- package/dist/{chunk-M32TYUAI.js → chunk-TBOIOJW5.js} +5 -5
- package/dist/{chunk-XV2QLA4M.js → chunk-TBTQBU6S.js} +19 -19
- package/dist/{chunk-ELUS2FGF.js → chunk-UOIOPEYB.js} +4 -4
- package/dist/{chunk-3TFDMTMW.js → chunk-VFNP7Q3Y.js} +481 -466
- package/dist/{chunk-DQWKFZPY.js → chunk-WMYLXKKD.js} +5 -5
- package/dist/{chunk-UINW4OZY.js → chunk-WRATAHFA.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +22 -22
- package/dist/cli/schemaContext.js +23 -23
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +21 -21
- package/dist/engine-commands/getConfig.js +7 -7
- package/dist/engine-commands/getDmmf.js +8 -8
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesInfo.js +6 -6
- package/dist/engine-commands/index.js +33 -33
- 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 +24 -24
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.js +52 -52
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/utils/__tests__/isCi.test.js +16 -16
- package/dist/utils/__tests__/isInteractive.test.js +14 -14
- package/dist/utils/callOnce.test.js +17 -17
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/max.test.js +11 -11
- package/dist/utils/path.test.js +30 -30
- package/dist/utils/prismaPostgres.test.js +23 -23
- package/dist/wasm.js +5 -5
- package/package.json +12 -12
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
|
|
3
3
|
var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
|
|
4
4
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
5
|
-
(0,
|
|
6
|
-
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(
|
|
7
|
-
await (0,
|
|
5
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns the result correctly", async () => {
|
|
6
|
+
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(import_chunk_VFNP7Q3Y.vi.fn().mockResolvedValue("hello"));
|
|
7
|
+
await (0, import_chunk_VFNP7Q3Y.globalExpect)(wrapper()).resolves.toBe("hello");
|
|
8
8
|
});
|
|
9
|
-
(0,
|
|
9
|
+
(0, import_chunk_VFNP7Q3Y.test)("forwards the arguments correctly", async () => {
|
|
10
10
|
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)((x) => Promise.resolve(x + 1));
|
|
11
|
-
await (0,
|
|
11
|
+
await (0, import_chunk_VFNP7Q3Y.globalExpect)(wrapper(2)).resolves.toBe(3);
|
|
12
12
|
});
|
|
13
|
-
(0,
|
|
14
|
-
const wrapped =
|
|
13
|
+
(0, import_chunk_VFNP7Q3Y.test)("\u0441alls wrapped function only once before promise resolves", async () => {
|
|
14
|
+
const wrapped = import_chunk_VFNP7Q3Y.vi.fn().mockResolvedValue("hello");
|
|
15
15
|
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(wrapped);
|
|
16
16
|
void wrapper();
|
|
17
17
|
void wrapper();
|
|
18
18
|
await wrapper();
|
|
19
|
-
(0,
|
|
19
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(wrapped).toHaveBeenCalledTimes(1);
|
|
20
20
|
});
|
|
21
|
-
(0,
|
|
22
|
-
const wrapped =
|
|
21
|
+
(0, import_chunk_VFNP7Q3Y.test)("caches the result when it succeeds", async () => {
|
|
22
|
+
const wrapped = import_chunk_VFNP7Q3Y.vi.fn().mockResolvedValue("hello");
|
|
23
23
|
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(wrapped);
|
|
24
24
|
await wrapper();
|
|
25
25
|
await wrapper();
|
|
26
26
|
const result = await wrapper();
|
|
27
|
-
(0,
|
|
28
|
-
(0,
|
|
27
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(wrapped).toHaveBeenCalledTimes(1);
|
|
28
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(result).toBe("hello");
|
|
29
29
|
});
|
|
30
|
-
(0,
|
|
31
|
-
const wrapped =
|
|
30
|
+
(0, import_chunk_VFNP7Q3Y.test)("does not cache the result when it fails", async () => {
|
|
31
|
+
const wrapped = import_chunk_VFNP7Q3Y.vi.fn().mockRejectedValue(new Error("hello"));
|
|
32
32
|
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(wrapped);
|
|
33
33
|
await Promise.allSettled([wrapper(), wrapper()]);
|
|
34
|
-
await (0,
|
|
35
|
-
(0,
|
|
34
|
+
await (0, import_chunk_VFNP7Q3Y.globalExpect)(wrapper()).rejects.toThrow("hello");
|
|
35
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(wrapped).toHaveBeenCalledTimes(2);
|
|
36
36
|
});
|
|
@@ -18,18 +18,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var fs_functional_exports = {};
|
|
20
20
|
__export(fs_functional_exports, {
|
|
21
|
-
createDirIfNotExists: () =>
|
|
22
|
-
getFilesInDir: () =>
|
|
23
|
-
getNestedFoldersInDir: () =>
|
|
24
|
-
removeDir: () =>
|
|
25
|
-
removeEmptyDirs: () =>
|
|
26
|
-
removeFile: () =>
|
|
27
|
-
writeFile: () =>
|
|
21
|
+
createDirIfNotExists: () => import_chunk_QVJ2BXKF.createDirIfNotExists,
|
|
22
|
+
getFilesInDir: () => import_chunk_QVJ2BXKF.getFilesInDir,
|
|
23
|
+
getNestedFoldersInDir: () => import_chunk_QVJ2BXKF.getNestedFoldersInDir,
|
|
24
|
+
removeDir: () => import_chunk_QVJ2BXKF.removeDir,
|
|
25
|
+
removeEmptyDirs: () => import_chunk_QVJ2BXKF.removeEmptyDirs,
|
|
26
|
+
removeFile: () => import_chunk_QVJ2BXKF.removeFile,
|
|
27
|
+
writeFile: () => import_chunk_QVJ2BXKF.writeFile
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(fs_functional_exports);
|
|
30
|
-
var
|
|
31
|
-
var
|
|
30
|
+
var import_chunk_QVJ2BXKF = require("../chunk-QVJ2BXKF.js");
|
|
31
|
+
var import_chunk_K2EOOA2X = require("../chunk-K2EOOA2X.js");
|
|
32
32
|
var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
|
|
33
33
|
var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
|
|
34
|
-
var
|
|
34
|
+
var import_chunk_JPZYSRK3 = require("../chunk-JPZYSRK3.js");
|
|
35
35
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
package/dist/utils/fs-utils.js
CHANGED
|
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var fs_utils_exports = {};
|
|
20
20
|
__export(fs_utils_exports, {
|
|
21
|
-
createDirIfNotExists: () =>
|
|
22
|
-
getFilesInDir: () =>
|
|
23
|
-
getNestedFoldersInDir: () =>
|
|
24
|
-
getTopLevelFoldersInDir: () =>
|
|
25
|
-
removeEmptyDirs: () =>
|
|
26
|
-
writeFile: () =>
|
|
21
|
+
createDirIfNotExists: () => import_chunk_K2EOOA2X.createDirIfNotExists,
|
|
22
|
+
getFilesInDir: () => import_chunk_K2EOOA2X.getFilesInDir,
|
|
23
|
+
getNestedFoldersInDir: () => import_chunk_K2EOOA2X.getNestedFoldersInDir,
|
|
24
|
+
getTopLevelFoldersInDir: () => import_chunk_K2EOOA2X.getTopLevelFoldersInDir,
|
|
25
|
+
removeEmptyDirs: () => import_chunk_K2EOOA2X.removeEmptyDirs,
|
|
26
|
+
writeFile: () => import_chunk_K2EOOA2X.writeFile
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(fs_utils_exports);
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_K2EOOA2X = require("../chunk-K2EOOA2X.js");
|
|
30
30
|
var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
|
|
31
|
-
var
|
|
31
|
+
var import_chunk_JPZYSRK3 = require("../chunk-JPZYSRK3.js");
|
|
32
32
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -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_TBOIOJW5.version
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(getVersionFromPackageJson_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_TBOIOJW5 = require("../chunk-TBOIOJW5.js");
|
|
25
|
+
var import_chunk_UOIOPEYB = require("../chunk-UOIOPEYB.js");
|
|
26
26
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
package/dist/utils/max.test.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
|
|
3
3
|
var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
|
|
4
4
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
5
|
-
(0,
|
|
6
|
-
(0,
|
|
7
|
-
(0,
|
|
5
|
+
(0, import_chunk_VFNP7Q3Y.describe)("maxWithComparator", () => {
|
|
6
|
+
(0, import_chunk_VFNP7Q3Y.test)("empty array", () => {
|
|
7
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_CGFNDGGI.maxWithComparator)([], () => 0)).toBe(void 0);
|
|
8
8
|
});
|
|
9
|
-
(0,
|
|
9
|
+
(0, import_chunk_VFNP7Q3Y.test)("with items", () => {
|
|
10
10
|
const items = [{ count: 1 }, { count: 10 }, { count: 5 }];
|
|
11
|
-
(0,
|
|
11
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_CGFNDGGI.maxWithComparator)(items, (a, b) => a.count - b.count)).toBe(items[1]);
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
15
|
-
(0,
|
|
16
|
-
(0,
|
|
14
|
+
(0, import_chunk_VFNP7Q3Y.describe)("maxBy", () => {
|
|
15
|
+
(0, import_chunk_VFNP7Q3Y.test)("empty array", () => {
|
|
16
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_CGFNDGGI.maxBy)([], () => 1)).toBe(void 0);
|
|
17
17
|
});
|
|
18
|
-
(0,
|
|
18
|
+
(0, import_chunk_VFNP7Q3Y.test)("with items", () => {
|
|
19
19
|
const items = [{ count: 1 }, { count: 10 }, { count: 5 }];
|
|
20
|
-
(0,
|
|
20
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_CGFNDGGI.maxBy)(items, (item) => item.count)).toBe(items[1]);
|
|
21
21
|
});
|
|
22
22
|
});
|
package/dist/utils/path.test.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
|
|
3
3
|
var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
|
|
4
4
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
5
|
-
var testIf = (condition) => condition ?
|
|
6
|
-
var describeIf = (condition) => condition ?
|
|
7
|
-
(0,
|
|
8
|
-
(0,
|
|
9
|
-
(0,
|
|
5
|
+
var testIf = (condition) => condition ? import_chunk_VFNP7Q3Y.test : import_chunk_VFNP7Q3Y.test.skip;
|
|
6
|
+
var describeIf = (condition) => condition ? import_chunk_VFNP7Q3Y.describe : import_chunk_VFNP7Q3Y.describe.skip;
|
|
7
|
+
(0, import_chunk_VFNP7Q3Y.describe)("pathToPosix", () => {
|
|
8
|
+
(0, import_chunk_VFNP7Q3Y.test)("forward slashes", () => {
|
|
9
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.pathToPosix)("a/b/c")).toBe("a/b/c");
|
|
10
10
|
});
|
|
11
11
|
testIf(process.platform === "win32")("backslashes on windows", () => {
|
|
12
|
-
(0,
|
|
12
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.pathToPosix)("a\\b\\c")).toBe("a/b/c");
|
|
13
13
|
});
|
|
14
14
|
testIf(process.platform !== "win32")("backslashes on posix", () => {
|
|
15
|
-
(0,
|
|
15
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.pathToPosix)("a\\b\\c")).toBe("a\\b\\c");
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
|
-
(0,
|
|
18
|
+
(0, import_chunk_VFNP7Q3Y.describe)("longestCommonPathPrefix", () => {
|
|
19
19
|
describeIf(process.platform !== "win32")("posix", () => {
|
|
20
|
-
(0,
|
|
21
|
-
(0,
|
|
20
|
+
(0, import_chunk_VFNP7Q3Y.test)("common ancestor directory", () => {
|
|
21
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("/usr/lib/libprisma.so", "/usr/bin/prisma")).toBe("/usr");
|
|
22
22
|
});
|
|
23
|
-
(0,
|
|
24
|
-
(0,
|
|
23
|
+
(0, import_chunk_VFNP7Q3Y.test)("common ancestor is root", () => {
|
|
24
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("/usr/bin/prisma", "/home/prisma")).toBe("/");
|
|
25
25
|
});
|
|
26
|
-
(0,
|
|
27
|
-
(0,
|
|
26
|
+
(0, import_chunk_VFNP7Q3Y.test)("common ancestor is the path itself", () => {
|
|
27
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("/home/prisma", "/home/prisma")).toBe("/home/prisma");
|
|
28
28
|
});
|
|
29
|
-
(0,
|
|
30
|
-
(0,
|
|
29
|
+
(0, import_chunk_VFNP7Q3Y.test)("substring is not treated as a path component", () => {
|
|
30
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("/prisma", "/pri")).toBe("/");
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
describeIf(process.platform === "win32")("windows", () => {
|
|
34
|
-
(0,
|
|
35
|
-
(0,
|
|
34
|
+
(0, import_chunk_VFNP7Q3Y.test)("common ancestor directory", () => {
|
|
35
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("C:\\Common\\A\\Prisma", "C:\\Common\\B\\Prisma")).toBe("C:\\Common");
|
|
36
36
|
});
|
|
37
|
-
(0,
|
|
38
|
-
(0,
|
|
37
|
+
(0, import_chunk_VFNP7Q3Y.test)("common ancestor is disk", () => {
|
|
38
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("C:\\A\\Prisma", "C:\\B\\Prisma")).toBe("C:\\");
|
|
39
39
|
});
|
|
40
|
-
(0,
|
|
41
|
-
(0,
|
|
40
|
+
(0, import_chunk_VFNP7Q3Y.test)("substring is not treated as a path component", () => {
|
|
41
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("C:\\Prisma", "C:\\Pri")).toBe("C:\\");
|
|
42
42
|
});
|
|
43
|
-
(0,
|
|
44
|
-
(0,
|
|
43
|
+
(0, import_chunk_VFNP7Q3Y.test)("namespaced path works", () => {
|
|
44
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("C:\\Common\\A\\Prisma", "\\\\?\\C:\\Common\\B\\Prisma")).toBe("\\\\?\\C:\\Common");
|
|
45
45
|
});
|
|
46
|
-
(0,
|
|
47
|
-
(0,
|
|
48
|
-
(0,
|
|
46
|
+
(0, import_chunk_VFNP7Q3Y.test)("different disks", () => {
|
|
47
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("C:\\Prisma", "D:\\Prisma")).toBeUndefined();
|
|
48
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("\\\\?\\C:\\Prisma", "\\\\?\\D:\\Prisma")).toBeUndefined();
|
|
49
49
|
});
|
|
50
|
-
(0,
|
|
51
|
-
(0,
|
|
50
|
+
(0, import_chunk_VFNP7Q3Y.test)("different namespaces", () => {
|
|
51
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("\\\\?\\C:\\Prisma", "\\\\.\\COM1")).toBeUndefined();
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
});
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
|
|
3
3
|
var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
|
|
4
4
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
5
|
-
(0,
|
|
6
|
-
(0,
|
|
7
|
-
(0,
|
|
8
|
-
(0,
|
|
9
|
-
(0,
|
|
10
|
-
(0,
|
|
5
|
+
(0, import_chunk_VFNP7Q3Y.describe)("isPrismaPostgres", () => {
|
|
6
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns false on invalid or non Prisma Postgres protocols", () => {
|
|
7
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)()).toBe(false);
|
|
8
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("")).toBe(false);
|
|
9
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("mysql://database.url/test")).toBe(false);
|
|
10
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("prisma://database.url/test")).toBe(false);
|
|
11
11
|
});
|
|
12
|
-
(0,
|
|
13
|
-
(0,
|
|
14
|
-
(0,
|
|
12
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns true on valid Prisma Postgres protocols", () => {
|
|
13
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("prisma+postgres://database.url/test")).toBe(true);
|
|
14
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)(`${import_chunk_LPNBWFQ3.PRISMA_POSTGRES_PROTOCOL}//database.url/test`)).toBe(true);
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
18
|
-
(0,
|
|
19
|
-
(0,
|
|
20
|
-
(0,
|
|
21
|
-
(0,
|
|
22
|
-
(0,
|
|
17
|
+
(0, import_chunk_VFNP7Q3Y.describe)("isPrismaPostgresDev", () => {
|
|
18
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns false on invalid or non Prisma Postgres protocols", () => {
|
|
19
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)()).toBe(false);
|
|
20
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("")).toBe(false);
|
|
21
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("mysql://database.url/test")).toBe(false);
|
|
22
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgres)("prisma://database.url/test")).toBe(false);
|
|
23
23
|
});
|
|
24
|
-
(0,
|
|
25
|
-
(0,
|
|
26
|
-
(0,
|
|
27
|
-
(0,
|
|
24
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns false on valid Prisma Postgres protocols with non localhost host", () => {
|
|
25
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://database.url/test")).toBe(false);
|
|
26
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)(`${import_chunk_LPNBWFQ3.PRISMA_POSTGRES_PROTOCOL}//database.url/test`)).toBe(false);
|
|
27
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://127.0.0.2:5432/test")).toBe(false);
|
|
28
28
|
});
|
|
29
|
-
(0,
|
|
30
|
-
(0,
|
|
31
|
-
(0,
|
|
29
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns true on valid Prisma Postgres protocols with localhost host", () => {
|
|
30
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://localhost:5432/test")).toBe(true);
|
|
31
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_LPNBWFQ3.isPrismaPostgresDev)("prisma+postgres://127.0.0.1:5432/test")).toBe(true);
|
|
32
32
|
});
|
|
33
33
|
});
|
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_NFSRS3ET.prismaSchemaWasm,
|
|
22
|
+
prismaSchemaWasmVersion: () => import_chunk_NFSRS3ET.prismaSchemaWasmVersion,
|
|
23
|
+
schemaEngineWasmVersion: () => import_chunk_NFSRS3ET.schemaEngineWasmVersion
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(wasm_exports);
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var import_chunk_NFSRS3ET = require("./chunk-NFSRS3ET.js");
|
|
27
|
+
var import_chunk_UOIOPEYB = require("./chunk-UOIOPEYB.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": "7.7.0-dev.
|
|
3
|
+
"version": "7.7.0-dev.5",
|
|
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",
|
|
@@ -64,17 +64,17 @@
|
|
|
64
64
|
"@streamparser/json": "0.0.22",
|
|
65
65
|
"arg": "5.0.2",
|
|
66
66
|
"prompts": "2.4.2",
|
|
67
|
-
"@prisma/config": "7.7.0-dev.
|
|
68
|
-
"@prisma/
|
|
69
|
-
"@prisma/
|
|
70
|
-
"@prisma/
|
|
71
|
-
"@prisma/engines": "7.7.0-dev.
|
|
72
|
-
"@prisma/fetch-engine": "7.7.0-dev.
|
|
73
|
-
"@prisma/generator": "7.7.0-dev.
|
|
74
|
-
"@prisma/generator
|
|
75
|
-
"@prisma/get-
|
|
76
|
-
"@prisma/
|
|
77
|
-
"@prisma/
|
|
67
|
+
"@prisma/config": "7.7.0-dev.5",
|
|
68
|
+
"@prisma/debug": "7.7.0-dev.5",
|
|
69
|
+
"@prisma/dmmf": "7.7.0-dev.5",
|
|
70
|
+
"@prisma/driver-adapter-utils": "7.7.0-dev.5",
|
|
71
|
+
"@prisma/engines": "7.7.0-dev.5",
|
|
72
|
+
"@prisma/fetch-engine": "7.7.0-dev.5",
|
|
73
|
+
"@prisma/generator-helper": "7.7.0-dev.5",
|
|
74
|
+
"@prisma/generator": "7.7.0-dev.5",
|
|
75
|
+
"@prisma/get-dmmf": "7.7.0-dev.5",
|
|
76
|
+
"@prisma/schema-files-loader": "7.7.0-dev.5",
|
|
77
|
+
"@prisma/get-platform": "7.7.0-dev.5"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"typescript": ">=5.4.0"
|