@trycompai/db 1.0.3 → 1.0.5
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/chunk-I3YC3IVF.mjs +7196 -0
- package/dist/index.d.ts +4 -8
- package/dist/index.js +7173 -2
- package/dist/index.mjs +10 -4
- package/dist/prisma/schema.prisma +1 -0
- package/dist/types.js +7172 -5
- package/dist/types.mjs +8 -1
- package/package.json +18 -24
- package/prisma/schema.prisma +1 -0
- package/dist/index.d.mts +0 -10
- package/dist/types.d.mts +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_client
|
|
4
|
+
} from "./chunk-I3YC3IVF.mjs";
|
|
5
|
+
|
|
1
6
|
// src/index.ts
|
|
2
|
-
|
|
3
|
-
|
|
7
|
+
var import_client = __toESM(require_client());
|
|
8
|
+
var import_client2 = __toESM(require_client());
|
|
4
9
|
var createPrismaClient = () => {
|
|
5
|
-
return new PrismaClient({
|
|
10
|
+
return new import_client.PrismaClient({
|
|
6
11
|
datasourceUrl: process.env.DATABASE_URL,
|
|
7
12
|
log: ["error", "warn"]
|
|
8
13
|
});
|
|
@@ -10,7 +15,8 @@ var createPrismaClient = () => {
|
|
|
10
15
|
var globalForPrisma = globalThis;
|
|
11
16
|
var db = globalForPrisma.prisma ?? createPrismaClient();
|
|
12
17
|
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = db;
|
|
18
|
+
var export_PrismaClient = import_client2.PrismaClient;
|
|
13
19
|
export {
|
|
14
|
-
|
|
20
|
+
export_PrismaClient as PrismaClient,
|
|
15
21
|
db
|
|
16
22
|
};
|
|
@@ -2,6 +2,7 @@ generator client {
|
|
|
2
2
|
provider = "prisma-client-js"
|
|
3
3
|
previewFeatures = ["driverAdapters", "postgresqlExtensions", "prismaSchemaFolder"]
|
|
4
4
|
binaryTargets = ["native", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x"]
|
|
5
|
+
output = "../src/generated/client"
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
datasource db {
|