@prisma/internals 6.12.0-dev.3 → 6.12.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-GZ2TPZ3Z.js → chunk-2ORSHFJL.js} +8 -8
- package/dist/{chunk-UNK64JUK.js → chunk-3OLT56WB.js} +5 -5
- package/dist/{chunk-ZTG5U3SV.js → chunk-5TMZQTBW.js} +5 -5
- package/dist/{chunk-KKPRCG5W.js → chunk-6IXFMTOC.js} +5 -5
- package/dist/{chunk-273FCHKA.js → chunk-6LFG6PVP.js} +8 -8
- package/dist/{chunk-4QZONFD5.js → chunk-73JNXPJS.js} +7 -7
- package/dist/{chunk-QZXQSFCZ.js → chunk-7H6RP42V.js} +6 -6
- package/dist/{chunk-2H6XXXKO.js → chunk-BCQZ6JQE.js} +9 -9
- package/dist/{chunk-C4OGCQX6.js → chunk-CM2NDVVN.js} +8 -8
- package/dist/{chunk-MAZARAWD.js → chunk-CS2YLXXM.js} +8 -8
- package/dist/{chunk-NEFI633E.js → chunk-D2UE6E7T.js} +8 -8
- package/dist/{chunk-GHQJUW26.js → chunk-DRHEA5DB.js} +18 -18
- package/dist/{chunk-RLC4VAPZ.js → chunk-EJNN56Q2.js} +5 -5
- package/dist/{chunk-PKVL3HMN.js → chunk-FATFYTFW.js} +18 -18
- package/dist/{chunk-54NHJZZY.js → chunk-J3JFJMUS.js} +8 -8
- 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-MHGHJ47C.js} +7 -7
- package/dist/{chunk-GUGU7DSM.js → chunk-N2BV4XP6.js} +7 -7
- package/dist/{chunk-X7HOWY5C.js → chunk-QNIQ4QWI.js} +5 -5
- package/dist/{chunk-FEGRD2ZV.js → chunk-QROPWFOB.js} +5 -5
- package/dist/{chunk-NKDNDKOE.js → chunk-YNU6RAUM.js} +5 -5
- package/dist/{chunk-IK2XEOPR.js → chunk-Z4TVJW5X.js} +5 -5
- 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
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_LPNBWFQ3.PRISMA_POSTGRES_PROTOCOL,
|
27
|
+
PRISMA_POSTGRES_PROVIDER: () => import_chunk_LPNBWFQ3.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_DRHEA5DB.checkUnsupportedDataProxy,
|
39
|
+
checkUnsupportedSchemaEngineWasm: () => import_chunk_DRHEA5DB.checkUnsupportedSchemaEngineWasm,
|
40
40
|
chmodPlusX: () => import_chunk_TWSLDIFL.chmodPlusX,
|
41
41
|
createDatabase: () => import_chunk_ONPT5QRX.createDatabase,
|
42
|
-
credentialsToUri: () =>
|
42
|
+
credentialsToUri: () => import_chunk_LYFOJ5NK.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_DRHEA5DB.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_DRHEA5DB.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_J3JFJMUS.getConfig,
|
60
|
+
getDMMF: () => import_chunk_6LFG6PVP.getDMMF,
|
61
|
+
getDirectUrl: () => import_chunk_J3JFJMUS.getDirectUrl,
|
62
|
+
getEffectiveUrl: () => import_chunk_J3JFJMUS.getEffectiveUrl,
|
63
63
|
getEngineVersion: () => import_chunk_PRGTOMXU.getEngineVersion,
|
64
64
|
getEnginesInfo: () => import_chunk_TN5X76G7.getEnginesInfo,
|
65
65
|
getEnvPaths: () => import_chunk_WXRTT6AT.getEnvPaths,
|
66
|
-
getGenerator: () =>
|
66
|
+
getGenerator: () => import_chunk_DRHEA5DB.getGenerator,
|
67
67
|
getGeneratorSuccessMessage: () => import_chunk_WANK3LVF.getGeneratorSuccessMessage,
|
68
|
-
getGenerators: () =>
|
69
|
-
getLintWarningsAsText: () =>
|
68
|
+
getGenerators: () => import_chunk_DRHEA5DB.getGenerators,
|
69
|
+
getLintWarningsAsText: () => import_chunk_QROPWFOB.getLintWarningsAsText,
|
70
70
|
getMigrateConfigDir: () => import_chunk_RFB2U4GQ.getMigrateConfigDir,
|
71
|
-
getNodeAPIName: () =>
|
71
|
+
getNodeAPIName: () => import_chunk_DRHEA5DB.getNodeAPIName,
|
72
72
|
getPackedPackage: () => import_chunk_ZIFBTC6Y.getPackedPackage,
|
73
73
|
getPrismaConfigFromPackageJson: () => import_chunk_ZCBEMBHR.getPrismaConfigFromPackageJson,
|
74
74
|
getProjectHash: () => import_chunk_CHOXBASF.getProjectHash,
|
@@ -77,31 +77,31 @@ __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_QROPWFOB.handleLintPanic,
|
81
81
|
handlePanic: () => import_chunk_S6Z7TU3K.handlePanic,
|
82
82
|
hasOwnProperty: () => import_chunk_WV4QHCSM.hasOwnProperty,
|
83
83
|
highlightDatamodel: () => import_chunk_TQCLUNM2.highlightDatamodel,
|
84
84
|
highlightSql: () => import_chunk_TQCLUNM2.highlightSql,
|
85
85
|
highlightTS: () => import_chunk_TQCLUNM2.highlightTS,
|
86
|
-
inferDirectoryConfig: () =>
|
86
|
+
inferDirectoryConfig: () => import_chunk_BCQZ6JQE.inferDirectoryConfig,
|
87
87
|
isCi: () => import_chunk_H4NI2RIK.isCi,
|
88
88
|
isCurrentBinInstalledGlobally: () => import_chunk_CR3XKUEA.isCurrentBinInstalledGlobally,
|
89
89
|
isError: () => import_chunk_D4VZUY3O.isError,
|
90
90
|
isInContainer: () => import_chunk_XXTPN4LB.isInContainer,
|
91
91
|
isInNpmLifecycleHook: () => import_chunk_2IOZUH3U.isInNpmLifecycleHook,
|
92
92
|
isInteractive: () => import_chunk_ICFLO5JW.isInteractive,
|
93
|
-
isPrismaPostgres: () =>
|
94
|
-
isPrismaPostgresDev: () =>
|
93
|
+
isPrismaPostgres: () => import_chunk_LPNBWFQ3.isPrismaPostgres,
|
94
|
+
isPrismaPostgresDev: () => import_chunk_LPNBWFQ3.isPrismaPostgresDev,
|
95
95
|
isPromiseLike: () => import_chunk_JTKAT4KZ.isPromiseLike,
|
96
96
|
isRustPanic: () => import_chunk_LMVSIVKQ.isRustPanic,
|
97
97
|
isValidJsIdentifier: () => import_chunk_JYMY3OAI.isValidJsIdentifier,
|
98
98
|
isWasmPanic: () => import_chunk_LMVSIVKQ.isWasmPanic,
|
99
99
|
keyBy: () => import_chunk_ZKWDIAVF.keyBy,
|
100
100
|
link: () => import_chunk_I6WLABB2.link,
|
101
|
-
lintSchema: () =>
|
101
|
+
lintSchema: () => import_chunk_QROPWFOB.lintSchema,
|
102
102
|
load: () => import_chunk_6TTRTZXU.loadLibrary,
|
103
103
|
loadEnvFile: () => import_chunk_7G7FICFI.loadEnvFile,
|
104
|
-
loadSchemaContext: () =>
|
104
|
+
loadSchemaContext: () => import_chunk_DRHEA5DB.loadSchemaContext,
|
105
105
|
locateLocalCloudflareD1: () => import_chunk_D4VDA2TZ.locateLocalCloudflareD1,
|
106
106
|
logger: () => import_chunk_ZJWZK45Z.logger_exports,
|
107
107
|
longestCommonPathPrefix: () => import_chunk_J77ZIDXB.longestCommonPathPrefix,
|
@@ -110,7 +110,7 @@ __export(index_exports, {
|
|
110
110
|
maxBy: () => import_chunk_CGFNDGGI.maxBy,
|
111
111
|
maxWithComparator: () => import_chunk_CGFNDGGI.maxWithComparator,
|
112
112
|
maybeInGitHook: () => import_chunk_LRBXMV4B.maybeInGitHook,
|
113
|
-
mergeSchemas: () =>
|
113
|
+
mergeSchemas: () => import_chunk_N2BV4XP6.mergeSchemas,
|
114
114
|
missingGeneratorMessage: () => import_chunk_AX5N26KG.missingGeneratorMessage,
|
115
115
|
parseAWSNodejsRuntimeEnvVarVersion: () => import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion,
|
116
116
|
parseBinaryTargetsEnvValue: () => import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue,
|
@@ -120,13 +120,13 @@ __export(index_exports, {
|
|
120
120
|
printConfigWarnings: () => import_chunk_5FJ3MENK.printConfigWarnings,
|
121
121
|
printGeneratorConfig: () => import_chunk_LRU47BGE.printGeneratorConfig,
|
122
122
|
printSchemaLoadedMessage: () => import_chunk_ZCBEMBHR.printSchemaLoadedMessage,
|
123
|
-
processSchemaResult: () =>
|
124
|
-
protocolToConnectorType: () =>
|
123
|
+
processSchemaResult: () => import_chunk_DRHEA5DB.processSchemaResult,
|
124
|
+
protocolToConnectorType: () => import_chunk_LYFOJ5NK.protocolToConnectorType,
|
125
125
|
relativizePathInPSLError: () => import_chunk_C47SCASR.relativizePathInPSLError,
|
126
126
|
resolveBinary: () => import_chunk_FYZCPL2Z.resolveBinary,
|
127
127
|
resolveEngine: () => import_chunk_TN5X76G7.resolveEngine,
|
128
128
|
resolvePkg: () => import_chunk_MY5KA4VU.resolvePkg,
|
129
|
-
resolveUrl: () =>
|
129
|
+
resolveUrl: () => import_chunk_J3JFJMUS.resolveUrl,
|
130
130
|
sendPanic: () => import_chunk_YR5KNFKN.sendPanic,
|
131
131
|
serializeQueryEngineName: () => import_chunk_HO5HRHFZ.serializeQueryEngineName,
|
132
132
|
setClassName: () => import_chunk_ANU3HEGF.setClassName,
|
@@ -134,16 +134,16 @@ __export(index_exports, {
|
|
134
134
|
toSchemasWithConfigDir: () => import_chunk_OSHZ4P3G.toSchemasWithConfigDir,
|
135
135
|
tryLoadEnvs: () => import_chunk_3FP46GUV.tryLoadEnvs,
|
136
136
|
unknownCommand: () => import_chunk_6JE6QGSJ.unknownCommand,
|
137
|
-
uriToCredentials: () =>
|
138
|
-
validate: () =>
|
137
|
+
uriToCredentials: () => import_chunk_LYFOJ5NK.uriToCredentials,
|
138
|
+
validate: () => import_chunk_2ORSHFJL.validate,
|
139
139
|
vercelPkgPathRegex: () => import_chunk_M3GBKLGE.vercelPkgPathRegex,
|
140
|
-
version: () =>
|
140
|
+
version: () => import_chunk_6IXFMTOC.version,
|
141
141
|
warnOnce: () => import_chunk_DTPFRZWV.warnOnce,
|
142
|
-
wasm: () =>
|
142
|
+
wasm: () => import_chunk_QNIQ4QWI.wasm_exports,
|
143
143
|
wasmSchemaEngineLoader: () => import_chunk_SBUSVJCV.wasmSchemaEngineLoader
|
144
144
|
});
|
145
145
|
module.exports = __toCommonJS(index_exports);
|
146
|
-
var
|
146
|
+
var import_chunk_DRHEA5DB = require("./chunk-DRHEA5DB.js");
|
147
147
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
148
148
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
149
149
|
var import_chunk_OSHZ4P3G = require("./chunk-OSHZ4P3G.js");
|
@@ -193,20 +193,20 @@ var import_chunk_NIWBAJZV = require("./chunk-NIWBAJZV.js");
|
|
193
193
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
194
194
|
var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
|
195
195
|
var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
|
196
|
-
var
|
196
|
+
var import_chunk_2ORSHFJL = require("./chunk-2ORSHFJL.js");
|
197
197
|
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
198
198
|
var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
|
199
199
|
var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
|
200
200
|
var import_chunk_HPVMQFIY = require("./chunk-HPVMQFIY.js");
|
201
201
|
var import_chunk_E23HYCQJ = require("./chunk-E23HYCQJ.js");
|
202
|
-
var
|
203
|
-
var
|
202
|
+
var import_chunk_J3JFJMUS = require("./chunk-J3JFJMUS.js");
|
203
|
+
var import_chunk_6LFG6PVP = require("./chunk-6LFG6PVP.js");
|
204
204
|
var import_chunk_TN5X76G7 = require("./chunk-TN5X76G7.js");
|
205
205
|
var import_chunk_PRGTOMXU = require("./chunk-PRGTOMXU.js");
|
206
206
|
var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
|
207
207
|
var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
|
208
|
-
var
|
209
|
-
var
|
208
|
+
var import_chunk_QROPWFOB = require("./chunk-QROPWFOB.js");
|
209
|
+
var import_chunk_N2BV4XP6 = require("./chunk-N2BV4XP6.js");
|
210
210
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
211
211
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
212
212
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
@@ -214,14 +214,14 @@ var import_chunk_J7ZPY2XA = require("./chunk-J7ZPY2XA.js");
|
|
214
214
|
var import_chunk_CHOXBASF = require("./chunk-CHOXBASF.js");
|
215
215
|
var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
|
216
216
|
var import_chunk_D4VZUY3O = require("./chunk-D4VZUY3O.js");
|
217
|
-
var
|
218
|
-
var
|
217
|
+
var import_chunk_Z4TVJW5X = require("./chunk-Z4TVJW5X.js");
|
218
|
+
var import_chunk_6IXFMTOC = require("./chunk-6IXFMTOC.js");
|
219
219
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
220
220
|
var import_chunk_DTPFRZWV = require("./chunk-DTPFRZWV.js");
|
221
|
-
var
|
222
|
-
var
|
221
|
+
var import_chunk_QNIQ4QWI = require("./chunk-QNIQ4QWI.js");
|
222
|
+
var import_chunk_73JNXPJS = require("./chunk-73JNXPJS.js");
|
223
223
|
var import_chunk_6JE6QGSJ = require("./chunk-6JE6QGSJ.js");
|
224
|
-
var
|
224
|
+
var import_chunk_BCQZ6JQE = require("./chunk-BCQZ6JQE.js");
|
225
225
|
var import_chunk_WANK3LVF = require("./chunk-WANK3LVF.js");
|
226
226
|
var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
|
227
227
|
var import_chunk_QA4OGZAI = require("./chunk-QA4OGZAI.js");
|
@@ -244,8 +244,8 @@ var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
244
244
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
245
245
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
246
246
|
var import_chunk_SBUSVJCV = require("./chunk-SBUSVJCV.js");
|
247
|
-
var
|
248
|
-
var
|
247
|
+
var import_chunk_LYFOJ5NK = require("./chunk-LYFOJ5NK.js");
|
248
|
+
var import_chunk_LPNBWFQ3 = require("./chunk-LPNBWFQ3.js");
|
249
249
|
var import_chunk_T2PM5TKT = require("./chunk-T2PM5TKT.js");
|
250
250
|
var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
|
251
251
|
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_6IXFMTOC.version
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getVersionFromPackageJson_exports);
|
24
|
-
var
|
25
|
-
var
|
24
|
+
var import_chunk_6IXFMTOC = require("../chunk-6IXFMTOC.js");
|
25
|
+
var import_chunk_73JNXPJS = require("../chunk-73JNXPJS.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_QNIQ4QWI.prismaSchemaWasm,
|
22
|
+
prismaSchemaWasmVersion: () => import_chunk_QNIQ4QWI.prismaSchemaWasmVersion,
|
23
|
+
schemaEngineWasmVersion: () => import_chunk_QNIQ4QWI.schemaEngineWasmVersion
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(wasm_exports);
|
26
|
-
var
|
27
|
-
var
|
26
|
+
var import_chunk_QNIQ4QWI = require("./chunk-QNIQ4QWI.js");
|
27
|
+
var import_chunk_73JNXPJS = require("./chunk-73JNXPJS.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.31",
|
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-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
76
|
+
"@prisma/schema-engine-wasm": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
77
77
|
"arg": "5.0.2",
|
78
78
|
"prompts": "2.4.2",
|
79
|
-
"@prisma/config": "6.12.0-dev.
|
80
|
-
"@prisma/dmmf": "6.12.0-dev.
|
81
|
-
"@prisma/debug": "6.12.0-dev.
|
82
|
-
"@prisma/driver-adapter-utils": "6.12.0-dev.
|
83
|
-
"@prisma/engines": "6.12.0-dev.
|
84
|
-
"@prisma/fetch-engine": "6.12.0-dev.
|
85
|
-
"@prisma/generator": "6.12.0-dev.
|
86
|
-
"@prisma/generator-helper": "6.12.0-dev.
|
87
|
-
"@prisma/
|
88
|
-
"@prisma/
|
79
|
+
"@prisma/config": "6.12.0-dev.31",
|
80
|
+
"@prisma/dmmf": "6.12.0-dev.31",
|
81
|
+
"@prisma/debug": "6.12.0-dev.31",
|
82
|
+
"@prisma/driver-adapter-utils": "6.12.0-dev.31",
|
83
|
+
"@prisma/engines": "6.12.0-dev.31",
|
84
|
+
"@prisma/fetch-engine": "6.12.0-dev.31",
|
85
|
+
"@prisma/generator": "6.12.0-dev.31",
|
86
|
+
"@prisma/generator-helper": "6.12.0-dev.31",
|
87
|
+
"@prisma/get-platform": "6.12.0-dev.31",
|
88
|
+
"@prisma/schema-files-loader": "6.12.0-dev.31"
|
89
89
|
},
|
90
90
|
"peerDependencies": {
|
91
91
|
"typescript": ">=5.1.0"
|