{"version":3,"file":"get-prisma-internals.mjs","names":[],"sources":["../../src/utils/get-prisma-internals.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n                       ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website:                  https://stormsoftware.com\n Repository:               https://github.com/storm-software/stryke\n Documentation:            https://docs.stormsoftware.com/projects/stryke\n Contact:                  https://stormsoftware.com/contact\n\n SPDX-License-Identifier:  Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF, EnvValue } from \"@prisma/generator-helper\";\nimport type { Handler } from \"@prisma/generator-helper/dist/generatorHandler\";\nimport type { GetDMMFOptions } from \"@prisma/internals\";\nimport { getJiti } from \"./get-jiti\";\n\nexport async function getPrismaInternals() {\n  return getJiti().import<{\n    parseEnvValue: (p: EnvValue) => string;\n    getDMMF: (options: GetDMMFOptions) => Promise<DMMF.Document>;\n  }>(getJiti().esmResolve(\"@prisma/internals\"));\n}\n\nexport async function getPrismaGeneratorHelper() {\n  return getJiti().import<{\n    generatorHandler: (handler: Handler) => void;\n  }>(getJiti().esmResolve(\"@prisma/generator-helper\"));\n}\n"],"mappings":";;;AAuBA,eAAsB,qBAAqB;AACzC,QAAO,SAAS,CAAC,OAGd,SAAS,CAAC,WAAW,oBAAoB,CAAC;;AAG/C,eAAsB,2BAA2B;AAC/C,QAAO,SAAS,CAAC,OAEd,SAAS,CAAC,WAAW,2BAA2B,CAAC"}