adaptic-backend 1.0.185 → 1.0.186
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/package.json
CHANGED
package/prismaClient.cjs
CHANGED
@@ -4,10 +4,7 @@ exports.prisma = void 0;
|
|
4
4
|
const client_1 = require("@prisma/client");
|
5
5
|
const prismaGlobal = global;
|
6
6
|
exports.prisma = prismaGlobal.prisma ||
|
7
|
-
new client_1.PrismaClient(
|
8
|
-
// Optionally, enable logging for debugging
|
9
|
-
log: ['query', 'info', 'warn', 'error'],
|
10
|
-
});
|
7
|
+
new client_1.PrismaClient();
|
11
8
|
if (process.env.NODE_ENV !== 'production') {
|
12
9
|
prismaGlobal.prisma = exports.prisma;
|
13
10
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prismaClient.d.ts","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,eAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"prismaClient.d.ts","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,eAAO,MAAM,MAAM,gIAEC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prismaClient.js","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,YAAY,GAAG,MAEpB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GACjB,YAAY,CAAC,MAAM;IACnB,IAAI,YAAY,
|
1
|
+
{"version":3,"file":"prismaClient.js","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,YAAY,GAAG,MAEpB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GACjB,YAAY,CAAC,MAAM;IACnB,IAAI,YAAY,EAAE,CAAC;AAErB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;IAC1C,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC;AAC/B,CAAC"}
|
package/server/prismaClient.mjs
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
import { PrismaClient } from "@prisma/client";
|
2
2
|
const prismaGlobal = global;
|
3
3
|
export const prisma = prismaGlobal.prisma ||
|
4
|
-
new PrismaClient(
|
5
|
-
// Optionally, enable logging for debugging
|
6
|
-
log: ['query', 'info', 'warn', 'error'],
|
7
|
-
});
|
4
|
+
new PrismaClient();
|
8
5
|
if (process.env.NODE_ENV !== 'production') {
|
9
6
|
prismaGlobal.prisma = prisma;
|
10
7
|
}
|