({
runtimeBase,
runtimeName,
browser,
clientVersion,
engineVersion,
generator,
}: TSClientOptions)
| 4 | import type { TSClientOptions } from class="st">'./TSClient' |
| 5 | |
| 6 | export const commonCodeJS = ({ |
| 7 | runtimeBase, |
| 8 | runtimeName, |
| 9 | browser, |
| 10 | clientVersion, |
| 11 | engineVersion, |
| 12 | generator, |
| 13 | }: TSClientOptions): string => ` |
| 14 | Object.defineProperty(exports, class="st">"__esModule", { value: true }); |
| 15 | ${ |
| 16 | browser |
| 17 | ? ` |
| 18 | const { |
| 19 | Decimal, |
| 20 | DbNull, |
| 21 | JsonNull, |
| 22 | AnyNull, |
| 23 | NullTypes, |
| 24 | makeStrictEnum, |
| 25 | Public, |
| 26 | getRuntime, |
| 27 | skip |
| 28 | } = require(class="st">'${runtimeBase}/${runtimeName}.js') |
| 29 | ` |
| 30 | : ` |
| 31 | const { |
| 32 | PrismaClientKnownRequestError, |
| 33 | PrismaClientUnknownRequestError, |
| 34 | PrismaClientRustPanicError, |
| 35 | PrismaClientInitializationError, |
| 36 | PrismaClientValidationError, |
| 37 | getPrismaClient, |
| 38 | sqltag, |
| 39 | empty, |
| 40 | join, |
| 41 | raw, |
| 42 | skip, |
| 43 | Decimal, |
| 44 | Debug, |
| 45 | DbNull, |
| 46 | JsonNull, |
| 47 | AnyNull, |
| 48 | NullTypes, |
| 49 | makeStrictEnum, |
| 50 | Extensions, |
| 51 | warnOnce, |
| 52 | defineDmmfProperty, |
| 53 | Public, |
| 54 | getRuntime, |
| 55 | createParam, |
| 56 | } = require(class="st">'${runtimeBase}/${runtimeName}.js') |
| 57 | ` |
| 58 | } |
| 59 | |
| 60 | const Prisma = {} |
| 61 | |
| 62 | exports.Prisma = Prisma |
| 63 | exports.$Enums = {} |
no test coverage detected