@prisma/client-engine-runtime 7.2.0-dev.5 → 7.2.0-integration-fix-enums-mapped-types-v7.1
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.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -300,6 +300,8 @@ function getErrorCode(err) {
|
|
|
300
300
|
return "P2002";
|
|
301
301
|
case "ForeignKeyConstraintViolation":
|
|
302
302
|
return "P2003";
|
|
303
|
+
case "InvalidInputValue":
|
|
304
|
+
return "P2007";
|
|
303
305
|
case "UnsupportedNativeDataType":
|
|
304
306
|
return "P2010";
|
|
305
307
|
case "NullConstraintViolation":
|
|
@@ -396,6 +398,8 @@ function renderErrorMessage(err) {
|
|
|
396
398
|
return `Error in external connector (id ${err.cause.id})`;
|
|
397
399
|
case "TooManyConnections":
|
|
398
400
|
return `Too many database connections opened: ${err.cause.cause}`;
|
|
401
|
+
case "InvalidInputValue":
|
|
402
|
+
return `Invalid input value: ${err.cause.message}`;
|
|
399
403
|
case "sqlite":
|
|
400
404
|
case "postgres":
|
|
401
405
|
case "mysql":
|
package/dist/index.mjs
CHANGED
|
@@ -249,6 +249,8 @@ function getErrorCode(err) {
|
|
|
249
249
|
return "P2002";
|
|
250
250
|
case "ForeignKeyConstraintViolation":
|
|
251
251
|
return "P2003";
|
|
252
|
+
case "InvalidInputValue":
|
|
253
|
+
return "P2007";
|
|
252
254
|
case "UnsupportedNativeDataType":
|
|
253
255
|
return "P2010";
|
|
254
256
|
case "NullConstraintViolation":
|
|
@@ -345,6 +347,8 @@ function renderErrorMessage(err) {
|
|
|
345
347
|
return `Error in external connector (id ${err.cause.id})`;
|
|
346
348
|
case "TooManyConnections":
|
|
347
349
|
return `Too many database connections opened: ${err.cause.cause}`;
|
|
350
|
+
case "InvalidInputValue":
|
|
351
|
+
return `Invalid input value: ${err.cause.message}`;
|
|
348
352
|
case "sqlite":
|
|
349
353
|
case "postgres":
|
|
350
354
|
case "mysql":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "7.2.0-
|
|
3
|
+
"version": "7.2.0-integration-fix-enums-mapped-types-v7.1",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"nanoid": "5.1.5",
|
|
31
31
|
"ulid": "3.0.0",
|
|
32
32
|
"uuid": "11.1.0",
|
|
33
|
-
"@prisma/client-runtime-utils": "7.2.0-
|
|
34
|
-
"@prisma/
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/
|
|
33
|
+
"@prisma/client-runtime-utils": "7.2.0-integration-fix-enums-mapped-types-v7.1",
|
|
34
|
+
"@prisma/debug": "7.2.0-integration-fix-enums-mapped-types-v7.1",
|
|
35
|
+
"@prisma/sqlcommenter": "7.2.0-integration-fix-enums-mapped-types-v7.1",
|
|
36
|
+
"@prisma/driver-adapter-utils": "7.2.0-integration-fix-enums-mapped-types-v7.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/jest": "29.5.14",
|