kfreelance-project-postgresql-prisma 1.0.2 → 1.0.4
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.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/generated/prisma/edge.js +1 -2
- package/generated/prisma/index.js +1 -2
- package/generated/prisma/wasm.js +1 -2
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export { PrismaClient } from "../generated/prisma";
|
|
2
2
|
export type { User, PasswordResetToken, Prisma } from "../generated/prisma";
|
|
3
|
+
import { PrismaClient } from "../generated/prisma";
|
|
3
4
|
export declare const createPrismaClient: (options?: {
|
|
4
5
|
databaseUrl?: string;
|
|
5
6
|
log?: Array<"query" | "info" | "warn" | "error">;
|
|
6
|
-
}) =>
|
|
7
|
+
}) => PrismaClient<{
|
|
8
|
+
datasources: {
|
|
9
|
+
db: {
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
log: ("query" | "info" | "warn" | "error")[];
|
|
14
|
+
}, "query" | "info" | "warn" | "error", import("../generated/prisma/runtime/library").DefaultArgs>;
|
|
7
15
|
export declare const getDefaultDatabaseUrl: () => string;
|
|
8
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,eAAO,MAAM,kBAAkB,GAAI,UAAU;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAClD;;;;;;;kGASA,CAAC;AAGF,eAAO,MAAM,qBAAqB,cAKjC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,23 +4,10 @@ exports.getDefaultDatabaseUrl = exports.createPrismaClient = exports.PrismaClien
|
|
|
4
4
|
// Library entry point - exports PrismaClient and types for consuming microservices
|
|
5
5
|
var prisma_1 = require("../generated/prisma");
|
|
6
6
|
Object.defineProperty(exports, "PrismaClient", { enumerable: true, get: function () { return prisma_1.PrismaClient; } });
|
|
7
|
-
|
|
7
|
+
const prisma_2 = require("../generated/prisma");
|
|
8
8
|
// Utility function to create a PrismaClient with custom options
|
|
9
9
|
const createPrismaClient = (options) => {
|
|
10
|
-
|
|
11
|
-
// if (options?.databaseUrl) {
|
|
12
|
-
// config.datasources = {
|
|
13
|
-
// db: {
|
|
14
|
-
// url: options.databaseUrl,
|
|
15
|
-
// },
|
|
16
|
-
// };
|
|
17
|
-
// }
|
|
18
|
-
// if (options?.log) {
|
|
19
|
-
// config.log = options.log;
|
|
20
|
-
// }
|
|
21
|
-
// return new PrismaClient(config);
|
|
22
|
-
const { PrismaClient } = require("../generated/prisma");
|
|
23
|
-
return new PrismaClient({
|
|
10
|
+
return new prisma_2.PrismaClient({
|
|
24
11
|
datasources: {
|
|
25
12
|
db: {
|
|
26
13
|
url: options?.databaseUrl || (0, exports.getDefaultDatabaseUrl)(),
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACnF,8CAAmD;AAA1C,sGAAA,YAAY,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACnF,8CAAmD;AAA1C,sGAAA,YAAY,OAAA;AAKrB,gDAAmD;AAEnD,gEAAgE;AACzD,MAAM,kBAAkB,GAAG,CAAC,OAGlC,EAAE,EAAE;IACH,OAAO,IAAI,qBAAY,CAAC;QACtB,WAAW,EAAE;YACX,EAAE,EAAE;gBACF,GAAG,EAAE,OAAO,EAAE,WAAW,IAAI,IAAA,6BAAqB,GAAE;aACrD;SACF;QACD,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;KACvC,CAAC,CAAC;AACL,CAAC,CAAC;AAZW,QAAA,kBAAkB,sBAY7B;AAEF,wCAAwC;AACjC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,OAAO,CACL,OAAO,CAAC,GAAG,CAAC,YAAY;QACxB,sFAAsF,CACvF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
|
package/generated/prisma/edge.js
CHANGED
package/generated/prisma/wasm.js
CHANGED
package/package.json
CHANGED