@prisma/internals 6.8.0-dev.45 → 6.8.0-dev.46
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-XON3DWCS.js → chunk-3A5ROUBA.js} +5 -5
- package/dist/{chunk-KRWS7JB4.js → chunk-5IQHBX6X.js} +5 -5
- package/dist/{chunk-653TZLPD.js → chunk-AIGWQA3I.js} +8 -8
- package/dist/{chunk-HHNOHIGW.js → chunk-B4MQX27Q.js} +7 -7
- package/dist/{chunk-HB2Q7X5H.js → chunk-CYQLJPPO.js} +13 -5
- package/dist/{chunk-LHXMHW72.js → chunk-IHWNEMIS.js} +8 -8
- package/dist/{chunk-TOX3GVPN.js → chunk-IJDPLNR7.js} +4 -4
- package/dist/{chunk-FD5YYNQX.js → chunk-OY3JESOK.js} +5 -5
- package/dist/{chunk-BOLJQL5I.js → chunk-V3BXES7I.js} +5 -5
- package/dist/{chunk-RDQPKAZP.js → chunk-WR7X6LA7.js} +17 -17
- package/dist/{chunk-ATDNZ5XD.js → chunk-XUA2QVGK.js} +5 -5
- package/dist/{chunk-YNC6KW2Y.js → chunk-Y6U6SB5L.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +14 -14
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +14 -14
- package/dist/cli/schemaContext.js +14 -14
- package/dist/convertCredentials.js +5 -5
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +13 -13
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +22 -22
- 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 +16 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -39
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/prismaPostgres.d.ts +2 -1
- package/dist/utils/prismaPostgres.js +5 -4
- package/dist/utils/prismaPostgres.test.js +24 -7
- package/dist/wasm.js +5 -5
- package/package.json +11 -11
package/dist/index.js
CHANGED
@@ -23,8 +23,8 @@ __export(index_exports, {
|
|
23
23
|
ErrorArea: () => import_chunk_LMVSIVKQ.ErrorArea,
|
24
24
|
Generator: () => import_chunk_BPDMLM32.Generator,
|
25
25
|
HelpError: () => import_chunk_6JE6QGSJ.HelpError,
|
26
|
-
PRISMA_POSTGRES_PROTOCOL: () =>
|
27
|
-
PRISMA_POSTGRES_PROVIDER: () =>
|
26
|
+
PRISMA_POSTGRES_PROTOCOL: () => import_chunk_CYQLJPPO.PRISMA_POSTGRES_PROTOCOL,
|
27
|
+
PRISMA_POSTGRES_PROVIDER: () => import_chunk_CYQLJPPO.PRISMA_POSTGRES_PROVIDER,
|
28
28
|
RustPanic: () => import_chunk_LMVSIVKQ.RustPanic,
|
29
29
|
SchemaEngineExitCode: () => import_chunk_ONPT5QRX.SchemaEngineExitCode,
|
30
30
|
arg: () => import_chunk_D4VZUY3O.arg,
|
@@ -35,11 +35,11 @@ __export(index_exports, {
|
|
35
35
|
callOnceOnSuccess: () => import_chunk_NIWBAJZV.callOnceOnSuccess,
|
36
36
|
canConnectToDatabase: () => import_chunk_ONPT5QRX.canConnectToDatabase,
|
37
37
|
canPrompt: () => import_chunk_FCYHZHVW.canPrompt,
|
38
|
-
checkUnsupportedDataProxy: () =>
|
39
|
-
checkUnsupportedSchemaEngineWasm: () =>
|
38
|
+
checkUnsupportedDataProxy: () => import_chunk_WR7X6LA7.checkUnsupportedDataProxy,
|
39
|
+
checkUnsupportedSchemaEngineWasm: () => import_chunk_WR7X6LA7.checkUnsupportedSchemaEngineWasm,
|
40
40
|
chmodPlusX: () => import_chunk_TWSLDIFL.chmodPlusX,
|
41
41
|
createDatabase: () => import_chunk_ONPT5QRX.createDatabase,
|
42
|
-
credentialsToUri: () =>
|
42
|
+
credentialsToUri: () => import_chunk_5IQHBX6X.credentialsToUri,
|
43
43
|
drawBox: () => import_chunk_HHG4DGHC.drawBox,
|
44
44
|
dropDatabase: () => import_chunk_ONPT5QRX.dropDatabase,
|
45
45
|
engineEnvVarMap: () => import_chunk_FYZCPL2Z.engineEnvVarMap,
|
@@ -47,28 +47,28 @@ __export(index_exports, {
|
|
47
47
|
extractSchemaContent: () => import_chunk_PFYALFCY.extractSchemaContent,
|
48
48
|
fixBinaryTargets: () => import_chunk_X77CS5RK.fixBinaryTargets,
|
49
49
|
format: () => import_chunk_D4VZUY3O.format,
|
50
|
-
formatSchema: () =>
|
50
|
+
formatSchema: () => import_chunk_WR7X6LA7.formatSchema,
|
51
51
|
formatTable: () => import_chunk_QN6PSQY7.formatTable,
|
52
52
|
formatms: () => import_chunk_XYCIH36R.formatms,
|
53
53
|
fsFunctional: () => import_chunk_75BIJ5PX.fs_functional_exports,
|
54
54
|
fsUtils: () => import_chunk_TQFONRJP.fs_utils_exports,
|
55
|
-
getBinaryTargetForCurrentPlatform: () =>
|
55
|
+
getBinaryTargetForCurrentPlatform: () => import_chunk_WR7X6LA7.getBinaryTargetForCurrentPlatform,
|
56
56
|
getCLIPathHash: () => import_chunk_CHOXBASF.getCLIPathHash,
|
57
57
|
getClientEngineType: () => import_chunk_QA4OGZAI.getClientEngineType,
|
58
58
|
getCommandWithExecutor: () => import_chunk_LRJ4X43J.getCommandWithExecutor,
|
59
|
-
getConfig: () =>
|
60
|
-
getDMMF: () =>
|
61
|
-
getDirectUrl: () =>
|
62
|
-
getEffectiveUrl: () =>
|
59
|
+
getConfig: () => import_chunk_AIGWQA3I.getConfig,
|
60
|
+
getDMMF: () => import_chunk_IHWNEMIS.getDMMF,
|
61
|
+
getDirectUrl: () => import_chunk_AIGWQA3I.getDirectUrl,
|
62
|
+
getEffectiveUrl: () => import_chunk_AIGWQA3I.getEffectiveUrl,
|
63
63
|
getEngineVersion: () => import_chunk_PRGTOMXU.getEngineVersion,
|
64
64
|
getEnginesMetaInfo: () => import_chunk_W67YF34Y.getEnginesMetaInfo,
|
65
65
|
getEnvPaths: () => import_chunk_WXRTT6AT.getEnvPaths,
|
66
|
-
getGenerator: () =>
|
66
|
+
getGenerator: () => import_chunk_WR7X6LA7.getGenerator,
|
67
67
|
getGeneratorSuccessMessage: () => import_chunk_WANK3LVF.getGeneratorSuccessMessage,
|
68
|
-
getGenerators: () =>
|
69
|
-
getLintWarningsAsText: () =>
|
68
|
+
getGenerators: () => import_chunk_WR7X6LA7.getGenerators,
|
69
|
+
getLintWarningsAsText: () => import_chunk_3A5ROUBA.getLintWarningsAsText,
|
70
70
|
getMigrateConfigDir: () => import_chunk_RFB2U4GQ.getMigrateConfigDir,
|
71
|
-
getNodeAPIName: () =>
|
71
|
+
getNodeAPIName: () => import_chunk_WR7X6LA7.getNodeAPIName,
|
72
72
|
getPackedPackage: () => import_chunk_ZIFBTC6Y.getPackedPackage,
|
73
73
|
getPrismaConfigFromPackageJson: () => import_chunk_ZCBEMBHR.getPrismaConfigFromPackageJson,
|
74
74
|
getProjectHash: () => import_chunk_CHOXBASF.getProjectHash,
|
@@ -77,7 +77,7 @@ __export(index_exports, {
|
|
77
77
|
getTypescriptVersion: () => import_chunk_J7ZPY2XA.getTypescriptVersion,
|
78
78
|
getWasmError: () => import_chunk_LMVSIVKQ.getWasmError,
|
79
79
|
handleLibraryLoadingErrors: () => import_chunk_DZYINYAA.handleLibraryLoadingErrors,
|
80
|
-
handleLintPanic: () =>
|
80
|
+
handleLintPanic: () => import_chunk_3A5ROUBA.handleLintPanic,
|
81
81
|
handlePanic: () => import_chunk_S6Z7TU3K.handlePanic,
|
82
82
|
hasOwnProperty: () => import_chunk_WV4QHCSM.hasOwnProperty,
|
83
83
|
highlightDatamodel: () => import_chunk_TQCLUNM2.highlightDatamodel,
|
@@ -90,17 +90,18 @@ __export(index_exports, {
|
|
90
90
|
isInContainer: () => import_chunk_XXTPN4LB.isInContainer,
|
91
91
|
isInNpmLifecycleHook: () => import_chunk_2IOZUH3U.isInNpmLifecycleHook,
|
92
92
|
isInteractive: () => import_chunk_ICFLO5JW.isInteractive,
|
93
|
-
isPrismaPostgres: () =>
|
93
|
+
isPrismaPostgres: () => import_chunk_CYQLJPPO.isPrismaPostgres,
|
94
|
+
isPrismaPostgresDev: () => import_chunk_CYQLJPPO.isPrismaPostgresDev,
|
94
95
|
isPromiseLike: () => import_chunk_JTKAT4KZ.isPromiseLike,
|
95
96
|
isRustPanic: () => import_chunk_LMVSIVKQ.isRustPanic,
|
96
97
|
isValidJsIdentifier: () => import_chunk_JYMY3OAI.isValidJsIdentifier,
|
97
98
|
isWasmPanic: () => import_chunk_LMVSIVKQ.isWasmPanic,
|
98
99
|
keyBy: () => import_chunk_ZKWDIAVF.keyBy,
|
99
100
|
link: () => import_chunk_I6WLABB2.link,
|
100
|
-
lintSchema: () =>
|
101
|
+
lintSchema: () => import_chunk_3A5ROUBA.lintSchema,
|
101
102
|
load: () => import_chunk_6TTRTZXU.loadLibrary,
|
102
103
|
loadEnvFile: () => import_chunk_7G7FICFI.loadEnvFile,
|
103
|
-
loadSchemaContext: () =>
|
104
|
+
loadSchemaContext: () => import_chunk_WR7X6LA7.loadSchemaContext,
|
104
105
|
locateLocalCloudflareD1: () => import_chunk_D4VDA2TZ.locateLocalCloudflareD1,
|
105
106
|
logger: () => import_chunk_ZJWZK45Z.logger_exports,
|
106
107
|
longestCommonPathPrefix: () => import_chunk_J77ZIDXB.longestCommonPathPrefix,
|
@@ -109,7 +110,7 @@ __export(index_exports, {
|
|
109
110
|
maxBy: () => import_chunk_CGFNDGGI.maxBy,
|
110
111
|
maxWithComparator: () => import_chunk_CGFNDGGI.maxWithComparator,
|
111
112
|
maybeInGitHook: () => import_chunk_LRBXMV4B.maybeInGitHook,
|
112
|
-
mergeSchemas: () =>
|
113
|
+
mergeSchemas: () => import_chunk_B4MQX27Q.mergeSchemas,
|
113
114
|
missingGeneratorMessage: () => import_chunk_AX5N26KG.missingGeneratorMessage,
|
114
115
|
parseAWSNodejsRuntimeEnvVarVersion: () => import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion,
|
115
116
|
parseBinaryTargetsEnvValue: () => import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue,
|
@@ -119,12 +120,12 @@ __export(index_exports, {
|
|
119
120
|
printConfigWarnings: () => import_chunk_5FJ3MENK.printConfigWarnings,
|
120
121
|
printGeneratorConfig: () => import_chunk_LRU47BGE.printGeneratorConfig,
|
121
122
|
printSchemaLoadedMessage: () => import_chunk_ZCBEMBHR.printSchemaLoadedMessage,
|
122
|
-
processSchemaResult: () =>
|
123
|
-
protocolToConnectorType: () =>
|
123
|
+
processSchemaResult: () => import_chunk_WR7X6LA7.processSchemaResult,
|
124
|
+
protocolToConnectorType: () => import_chunk_5IQHBX6X.protocolToConnectorType,
|
124
125
|
relativizePathInPSLError: () => import_chunk_C47SCASR.relativizePathInPSLError,
|
125
126
|
resolveBinary: () => import_chunk_FYZCPL2Z.resolveBinary,
|
126
127
|
resolvePkg: () => import_chunk_MY5KA4VU.resolvePkg,
|
127
|
-
resolveUrl: () =>
|
128
|
+
resolveUrl: () => import_chunk_AIGWQA3I.resolveUrl,
|
128
129
|
sendPanic: () => import_chunk_YR5KNFKN.sendPanic,
|
129
130
|
serializeQueryEngineName: () => import_chunk_HO5HRHFZ.serializeQueryEngineName,
|
130
131
|
setClassName: () => import_chunk_ANU3HEGF.setClassName,
|
@@ -132,16 +133,16 @@ __export(index_exports, {
|
|
132
133
|
toSchemasWithConfigDir: () => import_chunk_OSHZ4P3G.toSchemasWithConfigDir,
|
133
134
|
tryLoadEnvs: () => import_chunk_3FP46GUV.tryLoadEnvs,
|
134
135
|
unknownCommand: () => import_chunk_6JE6QGSJ.unknownCommand,
|
135
|
-
uriToCredentials: () =>
|
136
|
-
validate: () =>
|
136
|
+
uriToCredentials: () => import_chunk_5IQHBX6X.uriToCredentials,
|
137
|
+
validate: () => import_chunk_Y6U6SB5L.validate,
|
137
138
|
vercelPkgPathRegex: () => import_chunk_M3GBKLGE.vercelPkgPathRegex,
|
138
|
-
version: () =>
|
139
|
+
version: () => import_chunk_XUA2QVGK.version,
|
139
140
|
warnOnce: () => import_chunk_DTPFRZWV.warnOnce,
|
140
|
-
wasm: () =>
|
141
|
+
wasm: () => import_chunk_V3BXES7I.wasm_exports,
|
141
142
|
wasmSchemaEngineLoader: () => import_chunk_LJYMIEMU.wasmSchemaEngineLoader
|
142
143
|
});
|
143
144
|
module.exports = __toCommonJS(index_exports);
|
144
|
-
var
|
145
|
+
var import_chunk_WR7X6LA7 = require("./chunk-WR7X6LA7.js");
|
145
146
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
146
147
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
147
148
|
var import_chunk_OSHZ4P3G = require("./chunk-OSHZ4P3G.js");
|
@@ -191,20 +192,20 @@ var import_chunk_NIWBAJZV = require("./chunk-NIWBAJZV.js");
|
|
191
192
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
192
193
|
var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
|
193
194
|
var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
|
194
|
-
var
|
195
|
+
var import_chunk_Y6U6SB5L = require("./chunk-Y6U6SB5L.js");
|
195
196
|
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
196
197
|
var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
|
197
198
|
var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
|
198
199
|
var import_chunk_HPVMQFIY = require("./chunk-HPVMQFIY.js");
|
199
200
|
var import_chunk_E23HYCQJ = require("./chunk-E23HYCQJ.js");
|
200
|
-
var
|
201
|
-
var
|
201
|
+
var import_chunk_AIGWQA3I = require("./chunk-AIGWQA3I.js");
|
202
|
+
var import_chunk_IHWNEMIS = require("./chunk-IHWNEMIS.js");
|
202
203
|
var import_chunk_W67YF34Y = require("./chunk-W67YF34Y.js");
|
203
204
|
var import_chunk_PRGTOMXU = require("./chunk-PRGTOMXU.js");
|
204
205
|
var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
|
205
206
|
var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
|
206
|
-
var
|
207
|
-
var
|
207
|
+
var import_chunk_3A5ROUBA = require("./chunk-3A5ROUBA.js");
|
208
|
+
var import_chunk_B4MQX27Q = require("./chunk-B4MQX27Q.js");
|
208
209
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
209
210
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
210
211
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
@@ -212,12 +213,12 @@ var import_chunk_J7ZPY2XA = require("./chunk-J7ZPY2XA.js");
|
|
212
213
|
var import_chunk_CHOXBASF = require("./chunk-CHOXBASF.js");
|
213
214
|
var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
|
214
215
|
var import_chunk_D4VZUY3O = require("./chunk-D4VZUY3O.js");
|
215
|
-
var
|
216
|
-
var
|
216
|
+
var import_chunk_OY3JESOK = require("./chunk-OY3JESOK.js");
|
217
|
+
var import_chunk_XUA2QVGK = require("./chunk-XUA2QVGK.js");
|
217
218
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
218
219
|
var import_chunk_DTPFRZWV = require("./chunk-DTPFRZWV.js");
|
219
|
-
var
|
220
|
-
var
|
220
|
+
var import_chunk_V3BXES7I = require("./chunk-V3BXES7I.js");
|
221
|
+
var import_chunk_IJDPLNR7 = require("./chunk-IJDPLNR7.js");
|
221
222
|
var import_chunk_6JE6QGSJ = require("./chunk-6JE6QGSJ.js");
|
222
223
|
var import_chunk_2H6XXXKO = require("./chunk-2H6XXXKO.js");
|
223
224
|
var import_chunk_WANK3LVF = require("./chunk-WANK3LVF.js");
|
@@ -242,8 +243,8 @@ var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
242
243
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
243
244
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
244
245
|
var import_chunk_LJYMIEMU = require("./chunk-LJYMIEMU.js");
|
245
|
-
var
|
246
|
-
var
|
246
|
+
var import_chunk_5IQHBX6X = require("./chunk-5IQHBX6X.js");
|
247
|
+
var import_chunk_CYQLJPPO = require("./chunk-CYQLJPPO.js");
|
247
248
|
var import_chunk_T2PM5TKT = require("./chunk-T2PM5TKT.js");
|
248
249
|
var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
|
249
250
|
var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.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_XUA2QVGK.version
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getVersionFromPackageJson_exports);
|
24
|
-
var
|
25
|
-
var
|
24
|
+
var import_chunk_XUA2QVGK = require("../chunk-XUA2QVGK.js");
|
25
|
+
var import_chunk_IJDPLNR7 = require("../chunk-IJDPLNR7.js");
|
26
26
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export declare const PRISMA_POSTGRES_PROVIDER = "prisma+postgres";
|
2
2
|
export declare const PRISMA_POSTGRES_PROTOCOL = "prisma+postgres:";
|
3
|
-
export declare function isPrismaPostgres(connectionString?: string):
|
3
|
+
export declare function isPrismaPostgres(connectionString?: string | URL): connectionString is string | URL;
|
4
|
+
export declare function isPrismaPostgresDev(connectionString?: string | URL): connectionString is string | URL;
|
@@ -18,10 +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: () =>
|
21
|
+
PRISMA_POSTGRES_PROTOCOL: () => import_chunk_CYQLJPPO.PRISMA_POSTGRES_PROTOCOL,
|
22
|
+
PRISMA_POSTGRES_PROVIDER: () => import_chunk_CYQLJPPO.PRISMA_POSTGRES_PROVIDER,
|
23
|
+
isPrismaPostgres: () => import_chunk_CYQLJPPO.isPrismaPostgres,
|
24
|
+
isPrismaPostgresDev: () => import_chunk_CYQLJPPO.isPrismaPostgresDev
|
24
25
|
});
|
25
26
|
module.exports = __toCommonJS(prismaPostgres_exports);
|
26
|
-
var
|
27
|
+
var import_chunk_CYQLJPPO = require("../chunk-CYQLJPPO.js");
|
27
28
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
@@ -1,15 +1,32 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
2
|
+
var import_chunk_CYQLJPPO = require("../chunk-CYQLJPPO.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_CYQLJPPO.isPrismaPostgres)()).toBe(false);
|
7
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)("")).toBe(false);
|
8
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)("mysql://database.url/test")).toBe(false);
|
9
|
+
expect((0, import_chunk_CYQLJPPO.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_CYQLJPPO.isPrismaPostgres)("prisma+postgres://database.url/test")).toBe(true);
|
13
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)(`${import_chunk_CYQLJPPO.PRISMA_POSTGRES_PROTOCOL}//database.url/test`)).toBe(true);
|
14
|
+
});
|
15
|
+
});
|
16
|
+
describe("isPrismaPostgresDev", () => {
|
17
|
+
test("returns false on invalid or non Prisma Postgres protocols", () => {
|
18
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)()).toBe(false);
|
19
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)("")).toBe(false);
|
20
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)("mysql://database.url/test")).toBe(false);
|
21
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgres)("prisma://database.url/test")).toBe(false);
|
22
|
+
});
|
23
|
+
test("returns false on valid Prisma Postgres protocols with non localhost host", () => {
|
24
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgresDev)("prisma+postgres://database.url/test")).toBe(false);
|
25
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgresDev)(`${import_chunk_CYQLJPPO.PRISMA_POSTGRES_PROTOCOL}//database.url/test`)).toBe(false);
|
26
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgresDev)("prisma+postgres://127.0.0.2:5432/test")).toBe(false);
|
27
|
+
});
|
28
|
+
test("returns true on valid Prisma Postgres protocols with localhost host", () => {
|
29
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgresDev)("prisma+postgres://localhost:5432/test")).toBe(true);
|
30
|
+
expect((0, import_chunk_CYQLJPPO.isPrismaPostgresDev)("prisma+postgres://127.0.0.1:5432/test")).toBe(true);
|
14
31
|
});
|
15
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_V3BXES7I.prismaSchemaWasm,
|
22
|
+
prismaSchemaWasmVersion: () => import_chunk_V3BXES7I.prismaSchemaWasmVersion,
|
23
|
+
schemaEngineWasmVersion: () => import_chunk_V3BXES7I.schemaEngineWasmVersion
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(wasm_exports);
|
26
|
-
var
|
27
|
-
var
|
26
|
+
var import_chunk_V3BXES7I = require("./chunk-V3BXES7I.js");
|
27
|
+
var import_chunk_IJDPLNR7 = require("./chunk-IJDPLNR7.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.8.0-dev.
|
3
|
+
"version": "6.8.0-dev.46",
|
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",
|
@@ -76,16 +76,16 @@
|
|
76
76
|
"@prisma/schema-engine-wasm": "6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e",
|
77
77
|
"arg": "5.0.2",
|
78
78
|
"prompts": "2.4.2",
|
79
|
-
"@prisma/
|
80
|
-
"@prisma/
|
81
|
-
"@prisma/dmmf": "6.8.0-dev.
|
82
|
-
"@prisma/
|
83
|
-
"@prisma/engines": "6.8.0-dev.
|
84
|
-
"@prisma/
|
85
|
-
"@prisma/generator": "6.8.0-dev.
|
86
|
-
"@prisma/
|
87
|
-
"@prisma/get-platform": "6.8.0-dev.
|
88
|
-
"@prisma/schema-files-loader": "6.8.0-dev.
|
79
|
+
"@prisma/debug": "6.8.0-dev.46",
|
80
|
+
"@prisma/driver-adapter-utils": "6.8.0-dev.46",
|
81
|
+
"@prisma/dmmf": "6.8.0-dev.46",
|
82
|
+
"@prisma/fetch-engine": "6.8.0-dev.46",
|
83
|
+
"@prisma/engines": "6.8.0-dev.46",
|
84
|
+
"@prisma/generator": "6.8.0-dev.46",
|
85
|
+
"@prisma/generator-helper": "6.8.0-dev.46",
|
86
|
+
"@prisma/config": "6.8.0-dev.46",
|
87
|
+
"@prisma/get-platform": "6.8.0-dev.46",
|
88
|
+
"@prisma/schema-files-loader": "6.8.0-dev.46"
|
89
89
|
},
|
90
90
|
"peerDependencies": {
|
91
91
|
"typescript": ">=5.1.0"
|