@ohos-ports/prisma-internals 7.10.0-beta.0

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 (328) hide show
  1. package/LICENSE +201 -0
  2. package/dist/Generator.d.ts +42 -0
  3. package/dist/Generator.js +29 -0
  4. package/dist/WasmPanicRegistry.d.ts +5 -0
  5. package/dist/WasmPanicRegistry.js +25 -0
  6. package/dist/WasmSchemaEngineLoader.d.ts +5 -0
  7. package/dist/WasmSchemaEngineLoader.js +25 -0
  8. package/dist/built-in-provider.d.ts +5 -0
  9. package/dist/built-in-provider.js +25 -0
  10. package/dist/chunk-2B26F5N3.js +72 -0
  11. package/dist/chunk-2IOZUH3U.js +26 -0
  12. package/dist/chunk-2SDPW6AX.js +39 -0
  13. package/dist/chunk-3IMRWXIL.js +176 -0
  14. package/dist/chunk-3TYD3ZGQ.js +115 -0
  15. package/dist/chunk-3U4QB2G3.js +166 -0
  16. package/dist/chunk-3VD46SL7.js +151 -0
  17. package/dist/chunk-3YOF262C.js +176 -0
  18. package/dist/chunk-3ZHE2IX4.js +55 -0
  19. package/dist/chunk-4VNS5WPM.js +61 -0
  20. package/dist/chunk-5AI4FIZ3.js +1342 -0
  21. package/dist/chunk-5BDP445D.js +51 -0
  22. package/dist/chunk-5DBOS77Y.js +609 -0
  23. package/dist/chunk-5FJ3MENK.js +30 -0
  24. package/dist/chunk-5I4ERIIY.js +30 -0
  25. package/dist/chunk-5PJQQKQI.js +106 -0
  26. package/dist/chunk-5VQNKCKW.js +38 -0
  27. package/dist/chunk-5WRIOIZY.js +31 -0
  28. package/dist/chunk-6JE6QGSJ.js +37 -0
  29. package/dist/chunk-6PWHYRKR.js +74 -0
  30. package/dist/chunk-6QMQ2JYG.js +122 -0
  31. package/dist/chunk-6Z766KGR.js +95 -0
  32. package/dist/chunk-74RGCSUJ.js +44 -0
  33. package/dist/chunk-7B5PXS6N.js +29 -0
  34. package/dist/chunk-ANU3HEGF.js +29 -0
  35. package/dist/chunk-BERN76ZI.js +347 -0
  36. package/dist/chunk-BGMZPA2F.js +39 -0
  37. package/dist/chunk-BPDMLM32.js +105 -0
  38. package/dist/chunk-C47SCASR.js +37 -0
  39. package/dist/chunk-CGFNDGGI.js +40 -0
  40. package/dist/chunk-CTQD6OLG.js +438 -0
  41. package/dist/chunk-CUD726EK.js +36 -0
  42. package/dist/chunk-CXEXLFVL.js +166 -0
  43. package/dist/chunk-CYAS6B5N.js +48 -0
  44. package/dist/chunk-D4VZUY3O.js +71 -0
  45. package/dist/chunk-DODIJPCS.js +34 -0
  46. package/dist/chunk-DTPFRZWV.js +31 -0
  47. package/dist/chunk-DUDEWDFC.js +101 -0
  48. package/dist/chunk-DZ4QWHTB.js +127 -0
  49. package/dist/chunk-E23HYCQJ.js +37 -0
  50. package/dist/chunk-E476ARWS.js +2091 -0
  51. package/dist/chunk-EKGEKB22.js +28 -0
  52. package/dist/chunk-EU6UOKRD.js +26 -0
  53. package/dist/chunk-EWPXLBGE.js +115 -0
  54. package/dist/chunk-FCYHZHVW.js +43 -0
  55. package/dist/chunk-FRVJZOHP.js +1823 -0
  56. package/dist/chunk-GJSFP4V4.js +30 -0
  57. package/dist/chunk-GXW4NTU2.js +34 -0
  58. package/dist/chunk-H4NI2RIK.js +35 -0
  59. package/dist/chunk-HHG4DGHC.js +496 -0
  60. package/dist/chunk-HPVMQFIY.js +407 -0
  61. package/dist/chunk-I2CBQZJY.js +122 -0
  62. package/dist/chunk-I4K46RGG.js +31 -0
  63. package/dist/chunk-I6WLABB2.js +429 -0
  64. package/dist/chunk-ICFLO5JW.js +26 -0
  65. package/dist/chunk-IL7PSY44.js +26 -0
  66. package/dist/chunk-IOIAK7V7.js +53 -0
  67. package/dist/chunk-IYN5VKMD.js +110 -0
  68. package/dist/chunk-J77ZIDXB.js +69 -0
  69. package/dist/chunk-J7ZPY2XA.js +47 -0
  70. package/dist/chunk-JFXHOFJA.js +46 -0
  71. package/dist/chunk-JOIHHXR6.js +2067 -0
  72. package/dist/chunk-JPZYSRK3.js +6412 -0
  73. package/dist/chunk-JTKAT4KZ.js +26 -0
  74. package/dist/chunk-K2EOOA2X.js +91 -0
  75. package/dist/chunk-KDP6C3CB.js +56 -0
  76. package/dist/chunk-L3LDE52J.js +51 -0
  77. package/dist/chunk-L6V54WGO.js +39 -0
  78. package/dist/chunk-LMVSIVKQ.js +62 -0
  79. package/dist/chunk-LPNBWFQ3.js +38 -0
  80. package/dist/chunk-LRBXMV4B.js +26 -0
  81. package/dist/chunk-LRU47BGE.js +78 -0
  82. package/dist/chunk-M3GBKLGE.js +24 -0
  83. package/dist/chunk-MCS5ZY6Y.js +27 -0
  84. package/dist/chunk-NBWRGVYR.js +47 -0
  85. package/dist/chunk-NIWBAJZV.js +36 -0
  86. package/dist/chunk-NTDBN2N2.js +104 -0
  87. package/dist/chunk-NVNI2SRU.js +4230 -0
  88. package/dist/chunk-OIVPX3BR.js +32 -0
  89. package/dist/chunk-PFYALFCY.js +26 -0
  90. package/dist/chunk-PG5FDKSF.js +79 -0
  91. package/dist/chunk-PKF53VLJ.js +26 -0
  92. package/dist/chunk-PTPRBA7K.js +6675 -0
  93. package/dist/chunk-QBNYSYZK.js +74 -0
  94. package/dist/chunk-QMNPESAP.js +124 -0
  95. package/dist/chunk-QN6PSQY7.js +37 -0
  96. package/dist/chunk-QVJ2BXKF.js +3997 -0
  97. package/dist/chunk-R47SFJ5Z.js +104 -0
  98. package/dist/chunk-R6QH57HZ.js +311 -0
  99. package/dist/chunk-RBDYOTWB.js +193 -0
  100. package/dist/chunk-SBUSVJCV.js +62 -0
  101. package/dist/chunk-SP2ETLT2.js +41 -0
  102. package/dist/chunk-TPCPXGC5.js +218 -0
  103. package/dist/chunk-TWSLDIFL.js +48 -0
  104. package/dist/chunk-UGR6KLZN.js +30 -0
  105. package/dist/chunk-UMM35VP5.js +1193 -0
  106. package/dist/chunk-VFNP7Q3Y.js +15529 -0
  107. package/dist/chunk-VNIE2AZB.js +41 -0
  108. package/dist/chunk-VUGB2H7M.js +438 -0
  109. package/dist/chunk-WFMA7DI5.js +92 -0
  110. package/dist/chunk-WV4QHCSM.js +26 -0
  111. package/dist/chunk-WXRVYSYN.js +33 -0
  112. package/dist/chunk-X3P4J7WW.js +28 -0
  113. package/dist/chunk-X77CS5RK.js +33 -0
  114. package/dist/chunk-XAAVALN7.js +110 -0
  115. package/dist/chunk-XXTPN4LB.js +41 -0
  116. package/dist/chunk-XYCIH36R.js +29 -0
  117. package/dist/chunk-Y4TOGY6I.js +30 -0
  118. package/dist/chunk-YNDZCLVL.js +307 -0
  119. package/dist/chunk-YXB6APHS.js +447 -0
  120. package/dist/chunk-ZJWZK45Z.js +68 -0
  121. package/dist/chunk-ZKWDIAVF.js +29 -0
  122. package/dist/cli/Help.d.ts +11 -0
  123. package/dist/cli/Help.js +27 -0
  124. package/dist/cli/checkUnsupportedDataProxy.d.ts +16 -0
  125. package/dist/cli/checkUnsupportedDataProxy.js +125 -0
  126. package/dist/cli/completion-values.d.ts +24 -0
  127. package/dist/cli/completion-values.js +47 -0
  128. package/dist/cli/directoryConfig.d.ts +11 -0
  129. package/dist/cli/directoryConfig.js +25 -0
  130. package/dist/cli/getGeneratorSuccessMessage.d.ts +7 -0
  131. package/dist/cli/getGeneratorSuccessMessage.js +29 -0
  132. package/dist/cli/getSchema.d.ts +46 -0
  133. package/dist/cli/getSchema.js +31 -0
  134. package/dist/cli/getTypescriptVersion.d.ts +1 -0
  135. package/dist/cli/getTypescriptVersion.js +25 -0
  136. package/dist/cli/hashes.d.ts +11 -0
  137. package/dist/cli/hashes.js +28 -0
  138. package/dist/cli/schemaContext.d.ts +56 -0
  139. package/dist/cli/schemaContext.js +126 -0
  140. package/dist/cli/types.d.ts +63 -0
  141. package/dist/cli/types.js +1 -0
  142. package/dist/cli/utils.d.ts +13 -0
  143. package/dist/cli/utils.js +27 -0
  144. package/dist/convertCredentials.d.ts +10 -0
  145. package/dist/convertCredentials.js +28 -0
  146. package/dist/engine-commands/errorHelpers.d.ts +4 -0
  147. package/dist/engine-commands/errorHelpers.js +28 -0
  148. package/dist/engine-commands/formatSchema.d.ts +22 -0
  149. package/dist/engine-commands/formatSchema.js +124 -0
  150. package/dist/engine-commands/getConfig.d.ts +27 -0
  151. package/dist/engine-commands/getConfig.js +39 -0
  152. package/dist/engine-commands/getDmmf.d.ts +21 -0
  153. package/dist/engine-commands/getDmmf.js +40 -0
  154. package/dist/engine-commands/getEngineVersion.d.ts +4 -0
  155. package/dist/engine-commands/getEngineVersion.js +33 -0
  156. package/dist/engine-commands/getEnginesInfo.d.ts +20 -0
  157. package/dist/engine-commands/getEnginesInfo.js +36 -0
  158. package/dist/engine-commands/index.d.ts +10 -0
  159. package/dist/engine-commands/index.js +136 -0
  160. package/dist/engine-commands/lintSchema.d.ts +26 -0
  161. package/dist/engine-commands/lintSchema.js +34 -0
  162. package/dist/engine-commands/mergeSchemas.d.ts +12 -0
  163. package/dist/engine-commands/mergeSchemas.js +39 -0
  164. package/dist/engine-commands/queryEngineCommons.d.ts +31 -0
  165. package/dist/engine-commands/queryEngineCommons.js +33 -0
  166. package/dist/engine-commands/relativizePathInPSLError.d.ts +1 -0
  167. package/dist/engine-commands/relativizePathInPSLError.js +25 -0
  168. package/dist/engine-commands/validate.d.ts +12 -0
  169. package/dist/engine-commands/validate.js +39 -0
  170. package/dist/errorReporting.d.ts +25 -0
  171. package/dist/errorReporting.js +29 -0
  172. package/dist/get-generators/getGenerators.d.ts +71 -0
  173. package/dist/get-generators/getGenerators.js +127 -0
  174. package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +3 -0
  175. package/dist/get-generators/utils/binaryTypeToEngineType.js +25 -0
  176. package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +3 -0
  177. package/dist/get-generators/utils/engineTypeToBinaryType.js +25 -0
  178. package/dist/get-generators/utils/fixBinaryTargets.d.ts +3 -0
  179. package/dist/get-generators/utils/fixBinaryTargets.js +25 -0
  180. package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +7 -0
  181. package/dist/get-generators/utils/getBinaryPathsByVersion.js +30 -0
  182. package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +2 -0
  183. package/dist/get-generators/utils/getEngineVersionForGenerator.js +25 -0
  184. package/dist/get-generators/utils/printGeneratorConfig.d.ts +9 -0
  185. package/dist/get-generators/utils/printGeneratorConfig.js +29 -0
  186. package/dist/getPackedPackage.d.ts +1 -0
  187. package/dist/getPackedPackage.js +29 -0
  188. package/dist/highlight/highlight.d.ts +3 -0
  189. package/dist/highlight/highlight.js +32 -0
  190. package/dist/highlight/languages/dml.d.ts +2 -0
  191. package/dist/highlight/languages/dml.js +25 -0
  192. package/dist/highlight/languages/sql.d.ts +2 -0
  193. package/dist/highlight/languages/sql.js +25 -0
  194. package/dist/highlight/prism.d.ts +6 -0
  195. package/dist/highlight/prism.js +28 -0
  196. package/dist/highlight/theme.d.ts +2 -0
  197. package/dist/highlight/theme.js +26 -0
  198. package/dist/highlight/types.d.ts +35 -0
  199. package/dist/highlight/types.js +1 -0
  200. package/dist/index.d.ts +80 -0
  201. package/dist/index.js +257 -0
  202. package/dist/logger.d.ts +14 -0
  203. package/dist/logger.js +32 -0
  204. package/dist/magic-string.es-B2CP4FDB.js +1324 -0
  205. package/dist/migrateTypes.d.ts +99 -0
  206. package/dist/migrateTypes.js +1 -0
  207. package/dist/multipart-parser-3AFJFP6K.js +374 -0
  208. package/dist/panic.d.ts +31 -0
  209. package/dist/panic.js +29 -0
  210. package/dist/resolveBinary.d.ts +6 -0
  211. package/dist/resolveBinary.js +34 -0
  212. package/dist/resolveOutput.d.ts +5 -0
  213. package/dist/resolveOutput.js +25 -0
  214. package/dist/resolvePkg.d.ts +7 -0
  215. package/dist/resolvePkg.js +25 -0
  216. package/dist/schemaEngineCommands.d.ts +36 -0
  217. package/dist/schemaEngineCommands.js +36 -0
  218. package/dist/sendPanic.d.ts +10 -0
  219. package/dist/sendPanic.js +29 -0
  220. package/dist/types.d.ts +34 -0
  221. package/dist/types.js +1 -0
  222. package/dist/utils/__tests__/isCi.test.js +58 -0
  223. package/dist/utils/__tests__/isInteractive.test.js +47 -0
  224. package/dist/utils/assertAlways.d.ts +14 -0
  225. package/dist/utils/assertAlways.js +25 -0
  226. package/dist/utils/assertNever.d.ts +27 -0
  227. package/dist/utils/assertNever.js +25 -0
  228. package/dist/utils/binaryTargetRegex.d.ts +8 -0
  229. package/dist/utils/binaryTargetRegex.js +25 -0
  230. package/dist/utils/callOnce.d.ts +13 -0
  231. package/dist/utils/callOnce.js +25 -0
  232. package/dist/utils/callOnce.test.d.ts +1 -0
  233. package/dist/utils/callOnce.test.js +36 -0
  234. package/dist/utils/canPrompt.d.ts +1 -0
  235. package/dist/utils/canPrompt.js +27 -0
  236. package/dist/utils/chmodPlusX.d.ts +1 -0
  237. package/dist/utils/chmodPlusX.js +25 -0
  238. package/dist/utils/drawBox.d.ts +9 -0
  239. package/dist/utils/drawBox.js +26 -0
  240. package/dist/utils/extractPreviewFeatures.d.ts +2 -0
  241. package/dist/utils/extractPreviewFeatures.js +28 -0
  242. package/dist/utils/formatTable.d.ts +5 -0
  243. package/dist/utils/formatTable.js +25 -0
  244. package/dist/utils/formatms.d.ts +5 -0
  245. package/dist/utils/formatms.js +25 -0
  246. package/dist/utils/fs-functional.d.ts +53 -0
  247. package/dist/utils/fs-functional.js +35 -0
  248. package/dist/utils/fs-utils.d.ts +30 -0
  249. package/dist/utils/fs-utils.js +32 -0
  250. package/dist/utils/getCommandWithExecutor.d.ts +1 -0
  251. package/dist/utils/getCommandWithExecutor.js +26 -0
  252. package/dist/utils/getGitHubIssueUrl.d.ts +18 -0
  253. package/dist/utils/getGitHubIssueUrl.js +27 -0
  254. package/dist/utils/getVersionFromPackageJson.d.ts +1 -0
  255. package/dist/utils/getVersionFromPackageJson.js +26 -0
  256. package/dist/utils/handlePanic.d.ts +11 -0
  257. package/dist/utils/handlePanic.js +36 -0
  258. package/dist/utils/hasOwnProperty.d.ts +1 -0
  259. package/dist/utils/hasOwnProperty.js +25 -0
  260. package/dist/utils/isCi.d.ts +1 -0
  261. package/dist/utils/isCi.js +25 -0
  262. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -0
  263. package/dist/utils/isCurrentBinInstalledGlobally.js +25 -0
  264. package/dist/utils/isInContainer.d.ts +5 -0
  265. package/dist/utils/isInContainer.js +25 -0
  266. package/dist/utils/isInNpmLifecycleHook.d.ts +4 -0
  267. package/dist/utils/isInNpmLifecycleHook.js +25 -0
  268. package/dist/utils/isInteractive.d.ts +6 -0
  269. package/dist/utils/isInteractive.js +25 -0
  270. package/dist/utils/isPromiseLike.d.ts +1 -0
  271. package/dist/utils/isPromiseLike.js +25 -0
  272. package/dist/utils/isValidJsIdentifier.d.ts +1 -0
  273. package/dist/utils/isValidJsIdentifier.js +25 -0
  274. package/dist/utils/keyBy.d.ts +9 -0
  275. package/dist/utils/keyBy.js +25 -0
  276. package/dist/utils/link.d.ts +1 -0
  277. package/dist/utils/link.js +26 -0
  278. package/dist/utils/mapKeys.d.ts +1 -0
  279. package/dist/utils/mapKeys.js +25 -0
  280. package/dist/utils/mapObjectValues.d.ts +1 -0
  281. package/dist/utils/mapObjectValues.js +25 -0
  282. package/dist/utils/max.d.ts +11 -0
  283. package/dist/utils/max.js +26 -0
  284. package/dist/utils/max.test.d.ts +1 -0
  285. package/dist/utils/max.test.js +22 -0
  286. package/dist/utils/maybeInGitHook.d.ts +9 -0
  287. package/dist/utils/maybeInGitHook.js +25 -0
  288. package/dist/utils/missingDatasource.d.ts +1 -0
  289. package/dist/utils/missingDatasource.js +32 -0
  290. package/dist/utils/missingGeneratorMessage.d.ts +3 -0
  291. package/dist/utils/missingGeneratorMessage.js +34 -0
  292. package/dist/utils/now.d.ts +3 -0
  293. package/dist/utils/now.js +51 -0
  294. package/dist/utils/omit.d.ts +6 -0
  295. package/dist/utils/omit.js +30 -0
  296. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +1 -0
  297. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +25 -0
  298. package/dist/utils/parseEnvValue.d.ts +17 -0
  299. package/dist/utils/parseEnvValue.js +27 -0
  300. package/dist/utils/path.d.ts +14 -0
  301. package/dist/utils/path.js +26 -0
  302. package/dist/utils/path.test.d.ts +1 -0
  303. package/dist/utils/path.test.js +54 -0
  304. package/dist/utils/pick.d.ts +1 -0
  305. package/dist/utils/pick.js +25 -0
  306. package/dist/utils/printConfigWarnings.d.ts +1 -0
  307. package/dist/utils/printConfigWarnings.js +26 -0
  308. package/dist/utils/prismaPostgres.d.ts +13 -0
  309. package/dist/utils/prismaPostgres.js +28 -0
  310. package/dist/utils/prismaPostgres.test.d.ts +1 -0
  311. package/dist/utils/prismaPostgres.test.js +33 -0
  312. package/dist/utils/schemaFileInput.d.ts +2 -0
  313. package/dist/utils/schemaFileInput.js +25 -0
  314. package/dist/utils/setClassName.d.ts +9 -0
  315. package/dist/utils/setClassName.js +25 -0
  316. package/dist/utils/toSchemasContainer.d.ts +5 -0
  317. package/dist/utils/toSchemasContainer.js +26 -0
  318. package/dist/utils/unique.d.ts +5 -0
  319. package/dist/utils/unique.js +38 -0
  320. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +17 -0
  321. package/dist/utils/validatePrismaConfigWithDatasource.js +28 -0
  322. package/dist/utils/vercelPkgPathRegex.d.ts +1 -0
  323. package/dist/utils/vercelPkgPathRegex.js +25 -0
  324. package/dist/warnOnce.d.ts +1 -0
  325. package/dist/warnOnce.js +27 -0
  326. package/dist/wasm.d.ts +5 -0
  327. package/dist/wasm.js +29 -0
  328. package/package.json +93 -0
@@ -0,0 +1,25 @@
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 mapKeys_exports = {};
20
+ __export(mapKeys_exports, {
21
+ mapKeys: () => import_chunk_7B5PXS6N.mapKeys
22
+ });
23
+ module.exports = __toCommonJS(mapKeys_exports);
24
+ var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
25
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1 @@
1
+ export declare function mapObjectValues<K extends PropertyKey, T, U>(object: Record<K, T>, mapper: (value: T, key: K) => U): Record<K, U>;
@@ -0,0 +1,25 @@
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 mapObjectValues_exports = {};
20
+ __export(mapObjectValues_exports, {
21
+ mapObjectValues: () => import_chunk_UGR6KLZN.mapObjectValues
22
+ });
23
+ module.exports = __toCommonJS(mapObjectValues_exports);
24
+ var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
25
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Accepts an array and comparator function (similar to Array.prototype.sort)
3
+ * and returns max element of that array, ordered with that comparator.
4
+ * Functionally, equivalent of items.sort(comparator).at(-1), but performed non-destructively
5
+ * in O(n)
6
+ * @param items
7
+ * @param comparator callback specifying the relative order of two items. See `Array.prototype.sort`
8
+ * @returns
9
+ */
10
+ export declare function maxWithComparator<T>(items: T[], comparator: (a: T, b: T) => number): T | undefined;
11
+ export declare function maxBy<T>(items: T[], callback: (item: T) => number): T | undefined;
@@ -0,0 +1,26 @@
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 max_exports = {};
20
+ __export(max_exports, {
21
+ maxBy: () => import_chunk_CGFNDGGI.maxBy,
22
+ maxWithComparator: () => import_chunk_CGFNDGGI.maxWithComparator
23
+ });
24
+ module.exports = __toCommonJS(max_exports);
25
+ var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
26
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
3
+ var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
4
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
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
+ });
9
+ (0, import_chunk_VFNP7Q3Y.test)("with items", () => {
10
+ const items = [{ count: 1 }, { count: 10 }, { count: 5 }];
11
+ (0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_CGFNDGGI.maxWithComparator)(items, (a, b) => a.count - b.count)).toBe(items[1]);
12
+ });
13
+ });
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
+ });
18
+ (0, import_chunk_VFNP7Q3Y.test)("with items", () => {
19
+ const items = [{ count: 1 }, { count: 10 }, { count: 5 }];
20
+ (0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_CGFNDGGI.maxBy)(items, (item) => item.count)).toBe(items[1]);
21
+ });
22
+ });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Checks if we may be running inside a git hook (such as pre-commit).
3
+ *
4
+ * It can give false positives in edge cases, if user has `GIT_EXEC_PATH`,
5
+ * `GIT_DIR`, `GIT_INDEX_FILE`, or `GIT_PREFIX` environment variable set in
6
+ * their shell before running the git command (which is rare but possible).
7
+ * This function should only be used where such false positives are acceptable.
8
+ */
9
+ export declare function maybeInGitHook(): boolean;
@@ -0,0 +1,25 @@
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 maybeInGitHook_exports = {};
20
+ __export(maybeInGitHook_exports, {
21
+ maybeInGitHook: () => import_chunk_LRBXMV4B.maybeInGitHook
22
+ });
23
+ module.exports = __toCommonJS(maybeInGitHook_exports);
24
+ var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
25
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1 @@
1
+ export declare const missingDatasource: string;
@@ -0,0 +1,32 @@
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 missingDatasource_exports = {};
20
+ __export(missingDatasource_exports, {
21
+ missingDatasource: () => import_chunk_BGMZPA2F.missingDatasource
22
+ });
23
+ module.exports = __toCommonJS(missingDatasource_exports);
24
+ var import_chunk_BGMZPA2F = require("../chunk-BGMZPA2F.js");
25
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
26
+ var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
27
+ var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
28
+ var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
29
+ var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
30
+ var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
31
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
32
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,3 @@
1
+ export declare function missingGeneratorMessage(cliCommand: string): string;
2
+ export declare function missingModelMessage(cliCommand: string): string;
3
+ export declare function missingModelMessageMongoDB(cliCommand: string): string;
@@ -0,0 +1,34 @@
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 missingGeneratorMessage_exports = {};
20
+ __export(missingGeneratorMessage_exports, {
21
+ missingGeneratorMessage: () => import_chunk_WFMA7DI5.missingGeneratorMessage,
22
+ missingModelMessage: () => import_chunk_WFMA7DI5.missingModelMessage,
23
+ missingModelMessageMongoDB: () => import_chunk_WFMA7DI5.missingModelMessageMongoDB
24
+ });
25
+ module.exports = __toCommonJS(missingGeneratorMessage_exports);
26
+ var import_chunk_WFMA7DI5 = require("../chunk-WFMA7DI5.js");
27
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
28
+ var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
29
+ var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
30
+ var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
31
+ var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
32
+ var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
33
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
34
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,3 @@
1
+ export declare function now(): string;
2
+ export declare function timestampToDate(timestamp: string): Date | undefined;
3
+ export declare function renderDate(date: Date): string;
@@ -0,0 +1,51 @@
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 now_exports = {};
20
+ __export(now_exports, {
21
+ now: () => now,
22
+ renderDate: () => renderDate,
23
+ timestampToDate: () => timestampToDate
24
+ });
25
+ module.exports = __toCommonJS(now_exports);
26
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
27
+ var prefixZero = (value) => ("0" + value).slice(-2);
28
+ function now() {
29
+ const now2 = /* @__PURE__ */ new Date();
30
+ return `${now2.getFullYear()}${prefixZero(now2.getMonth() + 1)}${prefixZero(now2.getDate())}${prefixZero(
31
+ now2.getHours()
32
+ )}${prefixZero(now2.getMinutes())}${prefixZero(now2.getSeconds())}`;
33
+ }
34
+ function timestampToDate(timestamp) {
35
+ if (!timestamp || timestamp.length !== 14) {
36
+ return void 0;
37
+ }
38
+ const year = Number(timestamp.slice(0, 4));
39
+ const month = Number(timestamp.slice(4, 6));
40
+ const date = Number(timestamp.slice(6, 8));
41
+ const hours = Number(timestamp.slice(8, 10));
42
+ const minutes = Number(timestamp.slice(10, 12));
43
+ const seconds = Number(timestamp.slice(12, 14));
44
+ return new Date(year, month - 1, date, hours, minutes, seconds);
45
+ }
46
+ function renderDate(date) {
47
+ if (date.getDate() !== (/* @__PURE__ */ new Date()).getDate()) {
48
+ return date.toLocaleDateString() + " " + date.toLocaleTimeString();
49
+ }
50
+ return date.toLocaleTimeString();
51
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Omit key-value pairs from object.
3
+ * @param obj Object to omit key-value pairs from
4
+ * @param keys Keys to omit
5
+ */
6
+ export declare function omit<T extends object, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
@@ -0,0 +1,30 @@
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 omit_exports = {};
20
+ __export(omit_exports, {
21
+ omit: () => omit
22
+ });
23
+ module.exports = __toCommonJS(omit_exports);
24
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
25
+ function omit(obj, keys) {
26
+ return Object.keys(obj).filter((key) => !keys.includes(key)).reduce((result, key) => {
27
+ result[key] = obj[key];
28
+ return result;
29
+ }, {});
30
+ }
@@ -0,0 +1 @@
1
+ export declare function parseAWSNodejsRuntimeEnvVarVersion(): number | null;
@@ -0,0 +1,25 @@
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 parseAWSNodejsRuntimeEnvVarVersion_exports = {};
20
+ __export(parseAWSNodejsRuntimeEnvVarVersion_exports, {
21
+ parseAWSNodejsRuntimeEnvVarVersion: () => import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion
22
+ });
23
+ module.exports = __toCommonJS(parseAWSNodejsRuntimeEnvVarVersion_exports);
24
+ var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
25
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,17 @@
1
+ import type { BinaryTargetsEnvValue, EnvValue } from '@prisma/generator';
2
+ /**
3
+ * Parses an EnvValue (example: Provider) and return the string value
4
+ *
5
+ * - If there is no env var just return the value
6
+ * - If there is an env var it will be resolve and returned.
7
+ * - If there is an env var is present but can't be resolved an error will be thrown
8
+ */
9
+ export declare function parseEnvValue(object: EnvValue): string;
10
+ /**
11
+ * Parses the BinaryTargetsEnvValue and return the string value
12
+ *
13
+ * - If there is no env var just return the value
14
+ * - If there is an env var it will be resolve and returned.
15
+ * - If there is an env var is present but can't be resolved an error will be thrown
16
+ */
17
+ export declare function parseBinaryTargetsEnvValue(object: BinaryTargetsEnvValue): string[] | string;
@@ -0,0 +1,27 @@
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 parseEnvValue_exports = {};
20
+ __export(parseEnvValue_exports, {
21
+ parseBinaryTargetsEnvValue: () => import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue,
22
+ parseEnvValue: () => import_chunk_IOIAK7V7.parseEnvValue
23
+ });
24
+ module.exports = __toCommonJS(parseEnvValue_exports);
25
+ var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
26
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
27
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Normalize `filePath` to use forward slashes as a separator. `filePath` is
3
+ * treated as a path specific to the current platform, so backslashes will only
4
+ * be replaced with forward slashes on Windows. On other platforms, where a
5
+ * backslash is a valid filename character, it will be treated as such and will
6
+ * not be replaced.
7
+ */
8
+ export declare function pathToPosix(filePath: string): string;
9
+ /**
10
+ * Returns the longest common path ancestor of the two paths (which may also be equal to one or both of them).
11
+ * If they don't share a common ancestor (which may be the case on Windows if both paths are on different disks),
12
+ * returns `undefined`.
13
+ */
14
+ export declare function longestCommonPathPrefix(pathA: string, pathB: string): string | undefined;
@@ -0,0 +1,26 @@
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 path_exports = {};
20
+ __export(path_exports, {
21
+ longestCommonPathPrefix: () => import_chunk_J77ZIDXB.longestCommonPathPrefix,
22
+ pathToPosix: () => import_chunk_J77ZIDXB.pathToPosix
23
+ });
24
+ module.exports = __toCommonJS(path_exports);
25
+ var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
26
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
3
+ var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
4
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
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
+ });
11
+ testIf(process.platform === "win32")("backslashes on windows", () => {
12
+ (0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.pathToPosix)("a\\b\\c")).toBe("a/b/c");
13
+ });
14
+ testIf(process.platform !== "win32")("backslashes on posix", () => {
15
+ (0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.pathToPosix)("a\\b\\c")).toBe("a\\b\\c");
16
+ });
17
+ });
18
+ (0, import_chunk_VFNP7Q3Y.describe)("longestCommonPathPrefix", () => {
19
+ describeIf(process.platform !== "win32")("posix", () => {
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
+ });
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
+ });
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
+ });
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
+ });
32
+ });
33
+ describeIf(process.platform === "win32")("windows", () => {
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
+ });
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
+ });
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
+ });
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
+ });
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
+ });
50
+ (0, import_chunk_VFNP7Q3Y.test)("different namespaces", () => {
51
+ (0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_J77ZIDXB.longestCommonPathPrefix)("\\\\?\\C:\\Prisma", "\\\\.\\COM1")).toBeUndefined();
52
+ });
53
+ });
54
+ });
@@ -0,0 +1 @@
1
+ export declare function pick<T extends object, U extends keyof T>(obj: T, keys: U[]): Pick<T, U>;
@@ -0,0 +1,25 @@
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 pick_exports = {};
20
+ __export(pick_exports, {
21
+ pick: () => import_chunk_GXW4NTU2.pick
22
+ });
23
+ module.exports = __toCommonJS(pick_exports);
24
+ var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
25
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1 @@
1
+ export declare function printConfigWarnings(warnings: string[]): void;
@@ -0,0 +1,26 @@
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 printConfigWarnings_exports = {};
20
+ __export(printConfigWarnings_exports, {
21
+ printConfigWarnings: () => import_chunk_5FJ3MENK.printConfigWarnings
22
+ });
23
+ module.exports = __toCommonJS(printConfigWarnings_exports);
24
+ var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
25
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
26
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,13 @@
1
+ export declare const PRISMA_POSTGRES_PROVIDER = "prisma+postgres";
2
+ export declare const PRISMA_POSTGRES_PROTOCOL = "prisma+postgres:";
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 {};
@@ -0,0 +1,28 @@
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 prismaPostgres_exports = {};
20
+ __export(prismaPostgres_exports, {
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
+ });
26
+ module.exports = __toCommonJS(prismaPostgres_exports);
27
+ var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
28
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1 @@
1
+ export {};