@prisma/adapter-neon 7.10.0-dev.43 → 7.10.0-dev.45
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -424,7 +424,8 @@ function mapDriverError(error) {
|
|
|
424
424
|
const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
|
|
425
425
|
return {
|
|
426
426
|
kind: "UniqueConstraintViolation",
|
|
427
|
-
constraint: fields !== void 0 ? { fields } : void 0
|
|
427
|
+
constraint: fields !== void 0 ? { fields } : void 0,
|
|
428
|
+
table: error.table
|
|
428
429
|
};
|
|
429
430
|
}
|
|
430
431
|
case "23502": {
|
package/dist/index.mjs
CHANGED
|
@@ -387,7 +387,8 @@ function mapDriverError(error) {
|
|
|
387
387
|
const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
|
|
388
388
|
return {
|
|
389
389
|
kind: "UniqueConstraintViolation",
|
|
390
|
-
constraint: fields !== void 0 ? { fields } : void 0
|
|
390
|
+
constraint: fields !== void 0 ? { fields } : void 0,
|
|
391
|
+
table: error.table
|
|
391
392
|
};
|
|
392
393
|
}
|
|
393
394
|
case "23502": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "7.10.0-dev.
|
|
3
|
+
"version": "7.10.0-dev.45",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"postgres-array": "3.0.4",
|
|
35
35
|
"@neondatabase/serverless": ">0.6.0 <2",
|
|
36
|
-
"@prisma/driver-adapter-utils": "7.10.0-dev.
|
|
36
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.45"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@prisma/debug": "7.10.0-dev.
|
|
39
|
+
"@prisma/debug": "7.10.0-dev.45"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "DEV=true tsx helpers/build.ts",
|