@prisma/client-engine-runtime 6.11.0-dev.14 → 6.11.0-dev.16

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 CHANGED
@@ -230,6 +230,12 @@ function mapValue(value, columnName, resultType, enums) {
230
230
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
231
231
  }
232
232
  }
233
+ if (value instanceof Uint8Array) {
234
+ for (const byte of value) {
235
+ if (byte !== 0) return true;
236
+ }
237
+ return false;
238
+ }
233
239
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
234
240
  }
235
241
  case "Decimal":
package/dist/index.mjs CHANGED
@@ -182,6 +182,12 @@ function mapValue(value, columnName, resultType, enums) {
182
182
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
183
183
  }
184
184
  }
185
+ if (value instanceof Uint8Array) {
186
+ for (const byte of value) {
187
+ if (byte !== 0) return true;
188
+ }
189
+ return false;
190
+ }
185
191
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
186
192
  }
187
193
  case "Decimal":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-engine-runtime",
3
- "version": "6.11.0-dev.14",
3
+ "version": "6.11.0-dev.16",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,8 +31,8 @@
31
31
  "nanoid": "5.1.5",
32
32
  "ulid": "3.0.0",
33
33
  "uuid": "11.1.0",
34
- "@prisma/debug": "6.11.0-dev.14",
35
- "@prisma/driver-adapter-utils": "6.11.0-dev.14"
34
+ "@prisma/debug": "6.11.0-dev.16",
35
+ "@prisma/driver-adapter-utils": "6.11.0-dev.16"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "29.5.14",