@prisma/adapter-better-sqlite3 6.9.0-dev.5 → 6.9.0-dev.50
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -441,17 +441,17 @@ function convertDriverError(error) {
|
|
|
441
441
|
if (error.message.startsWith("no such table")) {
|
|
442
442
|
return {
|
|
443
443
|
kind: "TableDoesNotExist",
|
|
444
|
-
table: error.message.split(": ").
|
|
444
|
+
table: error.message.split(": ").at(1)
|
|
445
445
|
};
|
|
446
446
|
} else if (error.message.startsWith("no such column")) {
|
|
447
447
|
return {
|
|
448
448
|
kind: "ColumnNotFound",
|
|
449
|
-
column: error.message.split(": ").
|
|
449
|
+
column: error.message.split(": ").at(1)
|
|
450
450
|
};
|
|
451
451
|
} else if (error.message.includes("has no column named ")) {
|
|
452
452
|
return {
|
|
453
453
|
kind: "ColumnNotFound",
|
|
454
|
-
column: error.message.split("has no column named ").
|
|
454
|
+
column: error.message.split("has no column named ").at(1)
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
457
|
throw error;
|
package/dist/index.mjs
CHANGED
|
@@ -405,17 +405,17 @@ function convertDriverError(error) {
|
|
|
405
405
|
if (error.message.startsWith("no such table")) {
|
|
406
406
|
return {
|
|
407
407
|
kind: "TableDoesNotExist",
|
|
408
|
-
table: error.message.split(": ").
|
|
408
|
+
table: error.message.split(": ").at(1)
|
|
409
409
|
};
|
|
410
410
|
} else if (error.message.startsWith("no such column")) {
|
|
411
411
|
return {
|
|
412
412
|
kind: "ColumnNotFound",
|
|
413
|
-
column: error.message.split(": ").
|
|
413
|
+
column: error.message.split(": ").at(1)
|
|
414
414
|
};
|
|
415
415
|
} else if (error.message.includes("has no column named ")) {
|
|
416
416
|
return {
|
|
417
417
|
kind: "ColumnNotFound",
|
|
418
|
-
column: error.message.split("has no column named ").
|
|
418
|
+
column: error.message.split("has no column named ").at(1)
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-better-sqlite3",
|
|
3
|
-
"version": "6.9.0-dev.
|
|
3
|
+
"version": "6.9.0-dev.50",
|
|
4
4
|
"description": "Prisma's driver adapter for better-sqlite3, a fast SQLite3 driver for JavaScript runtimes",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@prisma/driver-adapter-utils": "6.9.0-dev.
|
|
34
|
+
"@prisma/driver-adapter-utils": "6.9.0-dev.50"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/better-sqlite3": "7.6.12",
|