@prisma/adapter-neon 6.11.0-dev.34 → 6.11.0-dev.35
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 +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -379,6 +379,11 @@ function convertDriverError(error) {
|
|
|
379
379
|
kind: "LengthMismatch",
|
|
380
380
|
column: error.column
|
|
381
381
|
};
|
|
382
|
+
case "22003":
|
|
383
|
+
return {
|
|
384
|
+
kind: "ValueOutOfRange",
|
|
385
|
+
cause: error.message
|
|
386
|
+
};
|
|
382
387
|
case "23505": {
|
|
383
388
|
const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
|
|
384
389
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -342,6 +342,11 @@ function convertDriverError(error) {
|
|
|
342
342
|
kind: "LengthMismatch",
|
|
343
343
|
column: error.column
|
|
344
344
|
};
|
|
345
|
+
case "22003":
|
|
346
|
+
return {
|
|
347
|
+
kind: "ValueOutOfRange",
|
|
348
|
+
cause: error.message
|
|
349
|
+
};
|
|
345
350
|
case "23505": {
|
|
346
351
|
const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
|
|
347
352
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "6.11.0-dev.
|
|
3
|
+
"version": "6.11.0-dev.35",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"postgres-array": "3.0.4",
|
|
35
35
|
"@neondatabase/serverless": ">0.6.0 <2",
|
|
36
|
-
"@prisma/driver-adapter-utils": "6.11.0-dev.
|
|
36
|
+
"@prisma/driver-adapter-utils": "6.11.0-dev.35"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@swc/core": "1.11.5",
|