@prisma/adapter-better-sqlite3 6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2 → 6.15.0-integration-fix-prisma-client-dirname-aws-lambda.3
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 +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -366,9 +366,9 @@ var UnexpectedTypeError = class extends Error {
|
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
function mapRow(row, columnTypes) {
|
|
369
|
-
const result =
|
|
370
|
-
for (let i = 0; i <
|
|
371
|
-
const value =
|
|
369
|
+
const result = [];
|
|
370
|
+
for (let i = 0; i < row.length; i++) {
|
|
371
|
+
const value = row[i];
|
|
372
372
|
if (value instanceof ArrayBuffer || value instanceof Buffer) {
|
|
373
373
|
result[i] = Array.from(new Uint8Array(value));
|
|
374
374
|
continue;
|
|
@@ -385,6 +385,7 @@ function mapRow(row, columnTypes) {
|
|
|
385
385
|
result[i] = value.toString();
|
|
386
386
|
continue;
|
|
387
387
|
}
|
|
388
|
+
result[i] = value;
|
|
388
389
|
}
|
|
389
390
|
return result;
|
|
390
391
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -330,9 +330,9 @@ var UnexpectedTypeError = class extends Error {
|
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
function mapRow(row, columnTypes) {
|
|
333
|
-
const result =
|
|
334
|
-
for (let i = 0; i <
|
|
335
|
-
const value =
|
|
333
|
+
const result = [];
|
|
334
|
+
for (let i = 0; i < row.length; i++) {
|
|
335
|
+
const value = row[i];
|
|
336
336
|
if (value instanceof ArrayBuffer || value instanceof Buffer) {
|
|
337
337
|
result[i] = Array.from(new Uint8Array(value));
|
|
338
338
|
continue;
|
|
@@ -349,6 +349,7 @@ function mapRow(row, columnTypes) {
|
|
|
349
349
|
result[i] = value.toString();
|
|
350
350
|
continue;
|
|
351
351
|
}
|
|
352
|
+
result[i] = value;
|
|
352
353
|
}
|
|
353
354
|
return result;
|
|
354
355
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-better-sqlite3",
|
|
3
|
-
"version": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.
|
|
3
|
+
"version": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.3",
|
|
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": "^11.9.0",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/better-sqlite3": "7.6.12",
|