@friggframework/core 2.0.0--canary.454.1c50057.0 → 2.0.0--canary.454.d57d533.0
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/database/prisma.js
CHANGED
|
@@ -77,9 +77,9 @@ const prismaClientSingleton = () => {
|
|
|
77
77
|
let PrismaClient;
|
|
78
78
|
|
|
79
79
|
if (config.DB_TYPE === 'mongodb') {
|
|
80
|
-
PrismaClient = require('
|
|
80
|
+
PrismaClient = require('../generated/prisma-mongodb').PrismaClient;
|
|
81
81
|
} else if (config.DB_TYPE === 'postgresql') {
|
|
82
|
-
PrismaClient = require('
|
|
82
|
+
PrismaClient = require('../generated/prisma-postgresql').PrismaClient;
|
|
83
83
|
} else {
|
|
84
84
|
throw new Error(
|
|
85
85
|
`Unsupported database type: ${config.DB_TYPE}. Supported values: 'mongodb', 'postgresql'`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.454.
|
|
4
|
+
"version": "2.0.0--canary.454.d57d533.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"aws-sdk": "^2.1200.0",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@friggframework/eslint-config": "2.0.0--canary.454.
|
|
39
|
-
"@friggframework/prettier-config": "2.0.0--canary.454.
|
|
40
|
-
"@friggframework/test": "2.0.0--canary.454.
|
|
38
|
+
"@friggframework/eslint-config": "2.0.0--canary.454.d57d533.0",
|
|
39
|
+
"@friggframework/prettier-config": "2.0.0--canary.454.d57d533.0",
|
|
40
|
+
"@friggframework/test": "2.0.0--canary.454.d57d533.0",
|
|
41
41
|
"@prisma/client": "^6.17.0",
|
|
42
42
|
"@types/lodash": "4.17.15",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "d57d533f4b0408aa33177c61a360d228159251bc"
|
|
81
81
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
generator client {
|
|
6
6
|
provider = "prisma-client-js"
|
|
7
|
-
output = "../
|
|
7
|
+
output = "../generated/prisma-mongodb"
|
|
8
8
|
binaryTargets = ["native", "rhel-openssl-3.0.x"] // native for local dev, rhel for Lambda deployment
|
|
9
9
|
engineType = "binary" // Use binary engines (smaller size)
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
generator client {
|
|
6
6
|
provider = "prisma-client-js"
|
|
7
|
-
output = "../
|
|
7
|
+
output = "../generated/prisma-postgresql"
|
|
8
8
|
binaryTargets = ["native", "rhel-openssl-3.0.x"] // native for local dev, rhel for Lambda deployment
|
|
9
9
|
engineType = "binary" // Use binary engines (smaller size)
|
|
10
10
|
}
|