@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,407 @@
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 chunk_HPVMQFIY_exports = {};
20
+ __export(chunk_HPVMQFIY_exports, {
21
+ Prism: () => Prism,
22
+ Token: () => Token
23
+ });
24
+ module.exports = __toCommonJS(chunk_HPVMQFIY_exports);
25
+ var import_chunk_E23HYCQJ = require("./chunk-E23HYCQJ.js");
26
+ var identity = (str) => str;
27
+ var _self = {};
28
+ var uniqueId = 0;
29
+ var Prism = {
30
+ manual: _self.Prism && _self.Prism.manual,
31
+ disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
32
+ util: {
33
+ encode: function(tokens) {
34
+ if (tokens instanceof Token) {
35
+ const anyTokens = tokens;
36
+ return new Token(anyTokens.type, Prism.util.encode(anyTokens.content), anyTokens.alias);
37
+ } else if (Array.isArray(tokens)) {
38
+ return tokens.map(Prism.util.encode);
39
+ } else {
40
+ return tokens.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
41
+ }
42
+ },
43
+ type: function(o) {
44
+ return Object.prototype.toString.call(o).slice(8, -1);
45
+ },
46
+ objId: function(obj) {
47
+ if (!obj["__id"]) {
48
+ Object.defineProperty(obj, "__id", { value: ++uniqueId });
49
+ }
50
+ return obj["__id"];
51
+ },
52
+ // Deep clone a language definition (e.g. to extend it)
53
+ clone: function deepClone(o, visited) {
54
+ visited = visited || {};
55
+ let clone, id;
56
+ const type = Prism.util.type(o);
57
+ switch (type) {
58
+ case "Object":
59
+ id = Prism.util.objId(o);
60
+ if (visited[id]) {
61
+ return visited[id];
62
+ }
63
+ clone = {};
64
+ visited[id] = clone;
65
+ for (const key in o) {
66
+ if (o.hasOwnProperty(key)) {
67
+ clone[key] = deepClone(o[key], visited);
68
+ }
69
+ }
70
+ return clone;
71
+ case "Array":
72
+ id = Prism.util.objId(o);
73
+ if (visited[id]) {
74
+ return visited[id];
75
+ }
76
+ clone = [];
77
+ visited[id] = clone;
78
+ o.forEach(function(v, i) {
79
+ clone[i] = deepClone(v, visited);
80
+ });
81
+ return clone;
82
+ default:
83
+ return o;
84
+ }
85
+ }
86
+ },
87
+ languages: {
88
+ extend: function(id, redef) {
89
+ const lang = Prism.util.clone(Prism.languages[id]);
90
+ for (const key in redef) {
91
+ lang[key] = redef[key];
92
+ }
93
+ return lang;
94
+ },
95
+ /**
96
+ * Insert a token before another token in a language literal
97
+ * As this needs to recreate the object (we cannot actually insert before keys in object literals),
98
+ * we cannot just provide an object, we need an object and a key.
99
+ * @param inside The key (or language id) of the parent
100
+ * @param before The key to insert before.
101
+ * @param insert Object with the key/value pairs to insert
102
+ * @param root The object that contains `inside`. If equal to Prism.languages, it can be omitted.
103
+ */
104
+ insertBefore: function(inside, before, insert, root) {
105
+ root = root || Prism.languages;
106
+ const grammar = root[inside];
107
+ const ret = {};
108
+ for (const token in grammar) {
109
+ if (grammar.hasOwnProperty(token)) {
110
+ if (token == before) {
111
+ for (const newToken in insert) {
112
+ if (insert.hasOwnProperty(newToken)) {
113
+ ret[newToken] = insert[newToken];
114
+ }
115
+ }
116
+ }
117
+ if (!insert.hasOwnProperty(token)) {
118
+ ret[token] = grammar[token];
119
+ }
120
+ }
121
+ }
122
+ const old = root[inside];
123
+ root[inside] = ret;
124
+ Prism.languages.DFS(Prism.languages, function(key, value) {
125
+ if (value === old && key != inside) {
126
+ this[key] = ret;
127
+ }
128
+ });
129
+ return ret;
130
+ },
131
+ // Traverse a language definition with Depth First Search
132
+ DFS: function DFS(o, callback, type, visited) {
133
+ visited = visited || {};
134
+ const objId = Prism.util.objId;
135
+ for (const i in o) {
136
+ if (o.hasOwnProperty(i)) {
137
+ callback.call(o, i, o[i], type || i);
138
+ const property = o[i], propertyType = Prism.util.type(property);
139
+ if (propertyType === "Object" && !visited[objId(property)]) {
140
+ visited[objId(property)] = true;
141
+ DFS(property, callback, null, visited);
142
+ } else if (propertyType === "Array" && !visited[objId(property)]) {
143
+ visited[objId(property)] = true;
144
+ DFS(property, callback, i, visited);
145
+ }
146
+ }
147
+ }
148
+ }
149
+ },
150
+ plugins: {},
151
+ highlight: function(text, grammar, language) {
152
+ const env = {
153
+ code: text,
154
+ grammar,
155
+ language
156
+ };
157
+ Prism.hooks.run("before-tokenize", env);
158
+ env.tokens = Prism.tokenize(env.code, env.grammar);
159
+ Prism.hooks.run("after-tokenize", env);
160
+ return Token.stringify(Prism.util.encode(env.tokens), env.language);
161
+ },
162
+ matchGrammar: function(text, strarr, grammar, index, startPos, oneshot, target) {
163
+ for (const token in grammar) {
164
+ if (!grammar.hasOwnProperty(token) || !grammar[token]) {
165
+ continue;
166
+ }
167
+ if (token == target) {
168
+ return;
169
+ }
170
+ let patterns = grammar[token];
171
+ patterns = Prism.util.type(patterns) === "Array" ? patterns : [patterns];
172
+ for (let j = 0; j < patterns.length; ++j) {
173
+ let pattern = patterns[j], inside = pattern.inside, lookbehind = !!pattern.lookbehind, greedy = !!pattern.greedy, lookbehindLength = 0, alias = pattern.alias;
174
+ if (greedy && !pattern.pattern.global) {
175
+ const flags = pattern.pattern.toString().match(/[imuy]*$/)[0];
176
+ pattern.pattern = RegExp(pattern.pattern.source, flags + "g");
177
+ }
178
+ pattern = pattern.pattern || pattern;
179
+ for (let i = index, pos = startPos; i < strarr.length; pos += strarr[i].length, ++i) {
180
+ let str = strarr[i];
181
+ if (strarr.length > text.length) {
182
+ return;
183
+ }
184
+ if (str instanceof Token) {
185
+ continue;
186
+ }
187
+ if (greedy && i != strarr.length - 1) {
188
+ pattern.lastIndex = pos;
189
+ const match2 = pattern.exec(text);
190
+ if (!match2) {
191
+ break;
192
+ }
193
+ var from = match2.index + (lookbehind ? match2[1].length : 0), to = match2.index + match2[0].length, k = i, p = pos;
194
+ for (let len = strarr.length; k < len && (p < to || !strarr[k].type && !strarr[k - 1].greedy); ++k) {
195
+ p += strarr[k].length;
196
+ if (from >= p) {
197
+ ++i;
198
+ pos = p;
199
+ }
200
+ }
201
+ if (strarr[i] instanceof Token) {
202
+ continue;
203
+ }
204
+ delNum = k - i;
205
+ str = text.slice(pos, p);
206
+ match2.index -= pos;
207
+ } else {
208
+ pattern.lastIndex = 0;
209
+ var match = pattern.exec(str), delNum = 1;
210
+ }
211
+ if (!match) {
212
+ if (oneshot) {
213
+ break;
214
+ }
215
+ continue;
216
+ }
217
+ if (lookbehind) {
218
+ lookbehindLength = match[1] ? match[1].length : 0;
219
+ }
220
+ var from = match.index + lookbehindLength, match = match[0].slice(lookbehindLength), to = from + match.length, before = str.slice(0, from), after = str.slice(to);
221
+ const args = [i, delNum];
222
+ if (before) {
223
+ ++i;
224
+ pos += before.length;
225
+ args.push(before);
226
+ }
227
+ const wrapped = new Token(token, inside ? Prism.tokenize(match, inside) : match, alias, match, greedy);
228
+ args.push(wrapped);
229
+ if (after) {
230
+ args.push(after);
231
+ }
232
+ Array.prototype.splice.apply(strarr, args);
233
+ if (delNum != 1) Prism.matchGrammar(text, strarr, grammar, i, pos, true, token);
234
+ if (oneshot) break;
235
+ }
236
+ }
237
+ }
238
+ },
239
+ tokenize: function(text, grammar) {
240
+ const strarr = [text];
241
+ const rest = grammar.rest;
242
+ if (rest) {
243
+ for (const token in rest) {
244
+ grammar[token] = rest[token];
245
+ }
246
+ delete grammar.rest;
247
+ }
248
+ Prism.matchGrammar(text, strarr, grammar, 0, 0, false);
249
+ return strarr;
250
+ },
251
+ hooks: {
252
+ all: {},
253
+ add: function(name, callback) {
254
+ const hooks = Prism.hooks.all;
255
+ hooks[name] = hooks[name] || [];
256
+ hooks[name].push(callback);
257
+ },
258
+ run: function(name, env) {
259
+ const callbacks = Prism.hooks.all[name];
260
+ if (!callbacks || !callbacks.length) {
261
+ return;
262
+ }
263
+ for (var i = 0, callback; callback = callbacks[i++]; ) {
264
+ callback(env);
265
+ }
266
+ }
267
+ },
268
+ Token
269
+ };
270
+ Prism.languages.clike = {
271
+ comment: [
272
+ {
273
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
274
+ lookbehind: true
275
+ },
276
+ {
277
+ pattern: /(^|[^\\:])\/\/.*/,
278
+ lookbehind: true,
279
+ greedy: true
280
+ }
281
+ ],
282
+ string: {
283
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
284
+ greedy: true
285
+ },
286
+ "class-name": {
287
+ pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,
288
+ lookbehind: true,
289
+ inside: {
290
+ punctuation: /[.\\]/
291
+ }
292
+ },
293
+ keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
294
+ boolean: /\b(?:true|false)\b/,
295
+ function: /\w+(?=\()/,
296
+ number: /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,
297
+ operator: /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,
298
+ punctuation: /[{}[\];(),.:]/
299
+ };
300
+ Prism.languages.javascript = Prism.languages.extend("clike", {
301
+ "class-name": [
302
+ Prism.languages.clike["class-name"],
303
+ {
304
+ pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,
305
+ lookbehind: true
306
+ }
307
+ ],
308
+ keyword: [
309
+ {
310
+ pattern: /((?:^|})\s*)(?:catch|finally)\b/,
311
+ lookbehind: true
312
+ },
313
+ {
314
+ pattern: /(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
315
+ lookbehind: true
316
+ }
317
+ ],
318
+ number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,
319
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
320
+ function: /[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
321
+ operator: /-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/
322
+ });
323
+ Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;
324
+ Prism.languages.insertBefore("javascript", "keyword", {
325
+ regex: {
326
+ pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,
327
+ lookbehind: true,
328
+ greedy: true
329
+ },
330
+ // This must be declared before keyword because we use "function" inside the look-forward
331
+ "function-variable": {
332
+ pattern: /[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,
333
+ alias: "function"
334
+ },
335
+ parameter: [
336
+ {
337
+ pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,
338
+ lookbehind: true,
339
+ inside: Prism.languages.javascript
340
+ },
341
+ {
342
+ pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,
343
+ inside: Prism.languages.javascript
344
+ },
345
+ {
346
+ pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,
347
+ lookbehind: true,
348
+ inside: Prism.languages.javascript
349
+ },
350
+ {
351
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,
352
+ lookbehind: true,
353
+ inside: Prism.languages.javascript
354
+ }
355
+ ],
356
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
357
+ });
358
+ Prism.languages.insertBefore("javascript", "string", {
359
+ "template-string": {
360
+ pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|[^\\`])*`/,
361
+ greedy: true,
362
+ inside: {
363
+ interpolation: {
364
+ pattern: /\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,
365
+ inside: {
366
+ "interpolation-punctuation": {
367
+ pattern: /^\${|}$/,
368
+ alias: "punctuation"
369
+ },
370
+ rest: Prism.languages.javascript
371
+ }
372
+ },
373
+ string: /[\s\S]+/
374
+ }
375
+ }
376
+ });
377
+ if (Prism.languages.markup) {
378
+ Prism.languages.markup.tag.addInlined("script", "javascript");
379
+ }
380
+ Prism.languages.js = Prism.languages.javascript;
381
+ Prism.languages.typescript = Prism.languages.extend("javascript", {
382
+ // From JavaScript Prism keyword list and TypeScript language spec: https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#221-reserved-words
383
+ keyword: /\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,
384
+ builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/
385
+ });
386
+ Prism.languages.ts = Prism.languages.typescript;
387
+ function Token(type, content, alias, matchedStr, greedy) {
388
+ this.type = type;
389
+ this.content = content;
390
+ this.alias = alias;
391
+ this.length = (matchedStr || "").length | 0;
392
+ this.greedy = !!greedy;
393
+ }
394
+ Token.stringify = function(o, language) {
395
+ if (typeof o == "string") {
396
+ return o;
397
+ }
398
+ if (Array.isArray(o)) {
399
+ return o.map(function(element) {
400
+ return Token.stringify(element, language);
401
+ }).join("");
402
+ }
403
+ return getColorForSyntaxKind(o.type)(o.content);
404
+ };
405
+ function getColorForSyntaxKind(syntaxKind) {
406
+ return import_chunk_E23HYCQJ.theme[syntaxKind] || identity;
407
+ }
@@ -0,0 +1,122 @@
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 chunk_I2CBQZJY_exports = {};
20
+ __export(chunk_I2CBQZJY_exports, {
21
+ require_package: () => require_package
22
+ });
23
+ module.exports = __toCommonJS(chunk_I2CBQZJY_exports);
24
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
+ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
+ "package.json"(exports, module2) {
27
+ module2.exports = {
28
+ name: "@prisma/internals",
29
+ version: "7.10.0",
30
+ description: "This package is intended for Prisma's internal use",
31
+ main: "dist/index.js",
32
+ types: "dist/index.d.ts",
33
+ repository: {
34
+ type: "git",
35
+ url: "https://github.com/prisma/prisma.git",
36
+ directory: "packages/internals"
37
+ },
38
+ homepage: "https://www.prisma.io",
39
+ author: "Tim Suchanek <suchanek@prisma.io>",
40
+ bugs: "https://github.com/prisma/prisma/issues",
41
+ license: "Apache-2.0",
42
+ scripts: {
43
+ dev: "DEV=true tsx helpers/build.ts",
44
+ build: "tsx helpers/build.ts",
45
+ test: "dotenv -e ../../.db.env -- vitest run --silent",
46
+ prepublishOnly: "pnpm run build"
47
+ },
48
+ files: [
49
+ "README.md",
50
+ "dist",
51
+ "!dist/get-generators/engines/*",
52
+ "scripts"
53
+ ],
54
+ devDependencies: {
55
+ "@babel/helper-validator-identifier": "7.25.9",
56
+ "@opentelemetry/api": "1.9.0",
57
+ "@types/babel__helper-validator-identifier": "7.15.2",
58
+ "@types/node": "~20.19.24",
59
+ "@types/resolve": "1.20.6",
60
+ "checkpoint-client": "1.1.33",
61
+ "cli-truncate": "4.0.0",
62
+ empathic: "2.0.0",
63
+ "escape-string-regexp": "5.0.0",
64
+ execa: "8.0.1",
65
+ "find-up": "8.0.0",
66
+ "fp-ts": "2.16.9",
67
+ "fs-extra": "11.3.0",
68
+ "global-directory": "4.0.0",
69
+ globby: "11.1.0",
70
+ "identifier-regex": "1.0.0",
71
+ "indent-string": "4.0.0",
72
+ "is-windows": "1.0.2",
73
+ "is-wsl": "3.1.0",
74
+ kleur: "4.1.5",
75
+ "mock-stdin": "1.0.0",
76
+ "new-github-issue-url": "0.2.1",
77
+ "node-fetch": "3.3.2",
78
+ "npm-packlist": "5.1.3",
79
+ open: "7.4.2",
80
+ "p-map": "4.0.0",
81
+ resolve: "1.22.10",
82
+ "string-width": "7.2.0",
83
+ "strip-indent": "4.0.0",
84
+ "temp-dir": "2.0.0",
85
+ tempy: "1.0.1",
86
+ "terminal-link": "4.0.0",
87
+ tmp: "0.2.3",
88
+ "ts-pattern": "5.9.0",
89
+ "ts-toolbelt": "9.6.0",
90
+ typescript: "5.4.5",
91
+ yarn: "1.22.22"
92
+ },
93
+ dependencies: {
94
+ "@prisma/config": "workspace:*",
95
+ "@prisma/debug": "workspace:*",
96
+ "@prisma/dmmf": "workspace:*",
97
+ "@prisma/driver-adapter-utils": "workspace:*",
98
+ "@prisma/engines": "workspace:*",
99
+ "@prisma/fetch-engine": "workspace:*",
100
+ "@prisma/generator": "workspace:*",
101
+ "@prisma/generator-helper": "workspace:*",
102
+ "@prisma/get-dmmf": "workspace:*",
103
+ "@prisma/get-platform": "workspace:*",
104
+ "@prisma/prisma-schema-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
105
+ "@prisma/schema-engine-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
106
+ "@prisma/schema-files-loader": "workspace:*",
107
+ "@streamparser/json": "0.0.22",
108
+ arg: "5.0.2",
109
+ prompts: "2.4.2"
110
+ },
111
+ peerDependencies: {
112
+ typescript: ">=5.4.0"
113
+ },
114
+ peerDependenciesMeta: {
115
+ typescript: {
116
+ optional: true
117
+ }
118
+ },
119
+ sideEffects: false
120
+ };
121
+ }
122
+ });
@@ -0,0 +1,31 @@
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 chunk_I4K46RGG_exports = {};
20
+ __export(chunk_I4K46RGG_exports, {
21
+ addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
+ });
23
+ module.exports = __toCommonJS(chunk_I4K46RGG_exports);
24
+ var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
+ var import_chunk_EU6UOKRD = require("./chunk-EU6UOKRD.js");
26
+ function addVersionDetailsToErrorMessage(message) {
27
+ const rows = [["Prisma CLI Version", import_chunk_EU6UOKRD.version]];
28
+ return `${message}
29
+
30
+ ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
31
+ }