@pkgverse/prismock 2.0.0-beta.8 → 2.0.0-beta.9
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/index.mjs +2 -1
- package/dist/lib/prismock.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index.cjs +0 -5355
package/dist/index.mjs
CHANGED
|
@@ -629,7 +629,6 @@ var require_src = __commonJS((exports, module) => {
|
|
|
629
629
|
|
|
630
630
|
// src/lib/prismock.ts
|
|
631
631
|
import * as path from "path";
|
|
632
|
-
import { getDMMF, getGenerator, getSchema } from "@prisma/internals";
|
|
633
632
|
|
|
634
633
|
// src/lib/operations/aggregate.ts
|
|
635
634
|
function aggregate(args, items) {
|
|
@@ -5256,6 +5255,8 @@ async function createPrismockClient(prismaModule) {
|
|
|
5256
5255
|
}
|
|
5257
5256
|
|
|
5258
5257
|
// src/lib/prismock.ts
|
|
5258
|
+
var PrismaInternals = await import("@prisma/internals");
|
|
5259
|
+
var { getDMMF, getGenerator, getSchema } = PrismaInternals;
|
|
5259
5260
|
async function generateDMMF(schemaPath) {
|
|
5260
5261
|
const pathToModule = schemaPath ?? __require.resolve(path.resolve(process.cwd(), "prisma/schema.prisma"));
|
|
5261
5262
|
const datamodel = await getSchema(pathToModule);
|
package/dist/lib/prismock.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrismaClient } from '@prisma/client';
|
|
2
2
|
import { DMMF } from '@prisma/generator-helper';
|
|
3
|
-
import {
|
|
3
|
+
import type { Generator } from '@prisma/internals';
|
|
4
4
|
import { Delegate, DelegateProperties, Item } from './delegate';
|
|
5
5
|
import { PrismockClientType } from './client';
|
|
6
6
|
type Options = {
|