@prisma/adapter-better-sqlite3 7.2.0-integration-fix-enums-mapped-types-v7.2 → 7.2.0
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 +0 -7
- package/dist/index.mjs +0 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -369,10 +369,6 @@ function mapRow(row, columnTypes) {
|
|
|
369
369
|
const result = [];
|
|
370
370
|
for (let i = 0; i < row.length; i++) {
|
|
371
371
|
const value = row[i];
|
|
372
|
-
if (value instanceof ArrayBuffer || value instanceof Buffer) {
|
|
373
|
-
result[i] = Array.from(new Uint8Array(value));
|
|
374
|
-
continue;
|
|
375
|
-
}
|
|
376
372
|
if (typeof value === "number" && (columnTypes[i] === import_driver_adapter_utils.ColumnTypeEnum.Int32 || columnTypes[i] === import_driver_adapter_utils.ColumnTypeEnum.Int64) && !Number.isInteger(value)) {
|
|
377
373
|
result[i] = Math.trunc(value);
|
|
378
374
|
continue;
|
|
@@ -425,9 +421,6 @@ function mapArg(arg, argType, options) {
|
|
|
425
421
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
426
422
|
return Buffer.from(arg, "base64");
|
|
427
423
|
}
|
|
428
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
429
|
-
return Buffer.from(arg);
|
|
430
|
-
}
|
|
431
424
|
return arg;
|
|
432
425
|
}
|
|
433
426
|
|
package/dist/index.mjs
CHANGED
|
@@ -333,10 +333,6 @@ function mapRow(row, columnTypes) {
|
|
|
333
333
|
const result = [];
|
|
334
334
|
for (let i = 0; i < row.length; i++) {
|
|
335
335
|
const value = row[i];
|
|
336
|
-
if (value instanceof ArrayBuffer || value instanceof Buffer) {
|
|
337
|
-
result[i] = Array.from(new Uint8Array(value));
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
336
|
if (typeof value === "number" && (columnTypes[i] === ColumnTypeEnum.Int32 || columnTypes[i] === ColumnTypeEnum.Int64) && !Number.isInteger(value)) {
|
|
341
337
|
result[i] = Math.trunc(value);
|
|
342
338
|
continue;
|
|
@@ -389,9 +385,6 @@ function mapArg(arg, argType, options) {
|
|
|
389
385
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
390
386
|
return Buffer.from(arg, "base64");
|
|
391
387
|
}
|
|
392
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
393
|
-
return Buffer.from(arg);
|
|
394
|
-
}
|
|
395
388
|
return arg;
|
|
396
389
|
}
|
|
397
390
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-better-sqlite3",
|
|
3
|
-
"version": "7.2.0
|
|
3
|
+
"version": "7.2.0",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"better-sqlite3": "^12.4.5",
|
|
35
|
-
"@prisma/driver-adapter-utils": "7.2.0
|
|
35
|
+
"@prisma/driver-adapter-utils": "7.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/better-sqlite3": "7.6.12",
|