adaptic-backend 1.0.210 → 1.0.212
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
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
//
|
3
|
-
|
4
|
-
// import { PrismaClient } from "@prisma/client";
|
2
|
+
// client with accelerate
|
3
|
+
// import { PrismaClient } from "@prisma/client/edge";
|
5
4
|
// import { withAccelerate } from '@prisma/extension-accelerate'
|
5
|
+
// import { withPulse } from '@prisma/extension-pulse'
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
7
|
// declare global {
|
7
8
|
// namespace NodeJS {
|
8
9
|
// interface Global {
|
@@ -12,11 +13,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
// }
|
13
14
|
// let prisma: PrismaClient;
|
14
15
|
// if (process.env.NODE_ENV === "production") {
|
15
|
-
// prisma = new PrismaClient().$extends(withAccelerate())
|
16
|
+
// prisma = new PrismaClient().$extends(withAccelerate()).$extends(withPulse({
|
17
|
+
// apiKey: process.env['PULSE_API_KEY'] as string
|
18
|
+
// })) as unknown as PrismaClient;
|
16
19
|
// } else {
|
17
20
|
// const globalWithPrisma = global as typeof globalThis & { prisma?: PrismaClient };
|
18
21
|
// if (!globalWithPrisma.prisma) {
|
19
|
-
// globalWithPrisma.prisma = new PrismaClient().$extends(withAccelerate())
|
22
|
+
// globalWithPrisma.prisma = new PrismaClient().$extends(withAccelerate()).$extends(withPulse({
|
23
|
+
// apiKey: process.env['PULSE_API_KEY'] as string
|
24
|
+
// })) as unknown as PrismaClient;
|
20
25
|
// }
|
21
26
|
// prisma = globalWithPrisma.prisma;
|
22
27
|
// }
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prismaClient.d.ts","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"prismaClient.d.ts","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAoCA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM,CAAC;QACf,UAAU,MAAM;YACd,MAAM,EAAE,YAAY,CAAC;SACtB;KACF;CACF;AAED,QAAA,IAAI,MAAM,EAAE,YAAY,CAAC;AAczB,eAAe,MAAM,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prismaClient.js","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"prismaClient.js","sourceRoot":"","sources":["../../src/prismaClient.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,sDAAsD;AACtD,gEAAgE;AAChE,sDAAsD;AAEtD,mBAAmB;AACnB,uBAAuB;AACvB,yBAAyB;AACzB,8BAA8B;AAC9B,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,4BAA4B;AAE5B,+CAA+C;AAC/C,gFAAgF;AAChF,uDAAuD;AACvD,sCAAsC;AACtC,WAAW;AACX,sFAAsF;AAEtF,oCAAoC;AACpC,mGAAmG;AACnG,uDAAuD;AACvD,sCAAsC;AACtC,MAAM;AAEN,sCAAsC;AACtC,IAAI;AAEJ,yBAAyB;AAGzB,gBAAgB;AAEhB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAU9C,IAAI,MAAoB,CAAC;AAEzB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;IAC1C,MAAM,GAAG,IAAI,YAAY,EAA4B,CAAC;AACxD,CAAC;KAAM,CAAC;IACN,MAAM,gBAAgB,GAAG,MAAuD,CAAC;IAEjF,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC7B,gBAAgB,CAAC,MAAM,GAAG,IAAI,YAAY,EAA6B,CAAC;IAC1E,CAAC;IAED,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC;AACnC,CAAC;AAED,eAAe,MAAM,CAAC"}
|
package/server/prismaClient.mjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
//
|
2
|
-
// import { PrismaClient } from "@prisma/client";
|
1
|
+
// client with accelerate
|
2
|
+
// import { PrismaClient } from "@prisma/client/edge";
|
3
3
|
// import { withAccelerate } from '@prisma/extension-accelerate'
|
4
|
+
// import { withPulse } from '@prisma/extension-pulse'
|
4
5
|
// declare global {
|
5
6
|
// namespace NodeJS {
|
6
7
|
// interface Global {
|
@@ -10,11 +11,15 @@
|
|
10
11
|
// }
|
11
12
|
// let prisma: PrismaClient;
|
12
13
|
// if (process.env.NODE_ENV === "production") {
|
13
|
-
// prisma = new PrismaClient().$extends(withAccelerate())
|
14
|
+
// prisma = new PrismaClient().$extends(withAccelerate()).$extends(withPulse({
|
15
|
+
// apiKey: process.env['PULSE_API_KEY'] as string
|
16
|
+
// })) as unknown as PrismaClient;
|
14
17
|
// } else {
|
15
18
|
// const globalWithPrisma = global as typeof globalThis & { prisma?: PrismaClient };
|
16
19
|
// if (!globalWithPrisma.prisma) {
|
17
|
-
// globalWithPrisma.prisma = new PrismaClient().$extends(withAccelerate())
|
20
|
+
// globalWithPrisma.prisma = new PrismaClient().$extends(withAccelerate()).$extends(withPulse({
|
21
|
+
// apiKey: process.env['PULSE_API_KEY'] as string
|
22
|
+
// })) as unknown as PrismaClient;
|
18
23
|
// }
|
19
24
|
// prisma = globalWithPrisma.prisma;
|
20
25
|
// }
|