@prisma/adapter-libsql 6.12.0-dev.34 → 6.12.0-dev.36

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.
@@ -178,7 +178,7 @@ function convertDriverError(error) {
178
178
  if (!isDbError(error)) {
179
179
  throw error;
180
180
  }
181
- const rawCode = error.rawCode ?? error.cause?.["rawCode"];
181
+ const rawCode = error.rawCode ?? error.cause?.["rawCode"] ?? 1;
182
182
  switch (rawCode) {
183
183
  case 2067:
184
184
  case 1555: {
@@ -152,7 +152,7 @@ function convertDriverError(error) {
152
152
  if (!isDbError(error)) {
153
153
  throw error;
154
154
  }
155
- const rawCode = error.rawCode ?? error.cause?.["rawCode"];
155
+ const rawCode = error.rawCode ?? error.cause?.["rawCode"] ?? 1;
156
156
  switch (rawCode) {
157
157
  case 2067:
158
158
  case 1555: {
package/dist/index-web.js CHANGED
@@ -178,7 +178,7 @@ function convertDriverError(error) {
178
178
  if (!isDbError(error)) {
179
179
  throw error;
180
180
  }
181
- const rawCode = error.rawCode ?? error.cause?.["rawCode"];
181
+ const rawCode = error.rawCode ?? error.cause?.["rawCode"] ?? 1;
182
182
  switch (rawCode) {
183
183
  case 2067:
184
184
  case 1555: {
@@ -152,7 +152,7 @@ function convertDriverError(error) {
152
152
  if (!isDbError(error)) {
153
153
  throw error;
154
154
  }
155
- const rawCode = error.rawCode ?? error.cause?.["rawCode"];
155
+ const rawCode = error.rawCode ?? error.cause?.["rawCode"] ?? 1;
156
156
  switch (rawCode) {
157
157
  case 2067:
158
158
  case 1555: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-libsql",
3
- "version": "6.12.0-dev.34",
3
+ "version": "6.12.0-dev.36",
4
4
  "description": "Prisma's driver adapter for libSQL and Turso",
5
5
  "main": "dist/index-node.js",
6
6
  "module": "dist/index-node.mjs",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@libsql/client": "^0.3.5 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0",
45
45
  "async-mutex": "0.5.0",
46
- "@prisma/driver-adapter-utils": "6.12.0-dev.34"
46
+ "@prisma/driver-adapter-utils": "6.12.0-dev.36"
47
47
  },
48
48
  "devDependencies": {
49
49
  "jest": "29.7.0",