@prisma/adapter-libsql 7.2.0-dev.19 → 7.2.0-dev.20

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.
@@ -152,7 +152,7 @@ function mapRow(row, columnTypes) {
152
152
  for (let i = 0; i < row.length; i++) {
153
153
  const value = row[i];
154
154
  if (value instanceof ArrayBuffer) {
155
- result[i] = Array.from(new Uint8Array(value));
155
+ result[i] = new Uint8Array(value);
156
156
  continue;
157
157
  }
158
158
  if (typeof value === "number" && (columnTypes[i] === import_driver_adapter_utils.ColumnTypeEnum.Int32 || columnTypes[i] === import_driver_adapter_utils.ColumnTypeEnum.Int64) && !Number.isInteger(value)) {
@@ -198,9 +198,6 @@ function mapArg(arg, argType, options) {
198
198
  if (typeof arg === "string" && argType.scalarType === "bytes") {
199
199
  return Buffer.from(arg, "base64");
200
200
  }
201
- if (Array.isArray(arg) && argType.scalarType === "bytes") {
202
- return new Uint8Array(arg);
203
- }
204
201
  return arg;
205
202
  }
206
203
 
@@ -126,7 +126,7 @@ function mapRow(row, columnTypes) {
126
126
  for (let i = 0; i < row.length; i++) {
127
127
  const value = row[i];
128
128
  if (value instanceof ArrayBuffer) {
129
- result[i] = Array.from(new Uint8Array(value));
129
+ result[i] = new Uint8Array(value);
130
130
  continue;
131
131
  }
132
132
  if (typeof value === "number" && (columnTypes[i] === ColumnTypeEnum.Int32 || columnTypes[i] === ColumnTypeEnum.Int64) && !Number.isInteger(value)) {
@@ -172,9 +172,6 @@ function mapArg(arg, argType, options) {
172
172
  if (typeof arg === "string" && argType.scalarType === "bytes") {
173
173
  return Buffer.from(arg, "base64");
174
174
  }
175
- if (Array.isArray(arg) && argType.scalarType === "bytes") {
176
- return new Uint8Array(arg);
177
- }
178
175
  return arg;
179
176
  }
180
177
 
package/dist/index-web.js CHANGED
@@ -152,7 +152,7 @@ function mapRow(row, columnTypes) {
152
152
  for (let i = 0; i < row.length; i++) {
153
153
  const value = row[i];
154
154
  if (value instanceof ArrayBuffer) {
155
- result[i] = Array.from(new Uint8Array(value));
155
+ result[i] = new Uint8Array(value);
156
156
  continue;
157
157
  }
158
158
  if (typeof value === "number" && (columnTypes[i] === import_driver_adapter_utils.ColumnTypeEnum.Int32 || columnTypes[i] === import_driver_adapter_utils.ColumnTypeEnum.Int64) && !Number.isInteger(value)) {
@@ -198,9 +198,6 @@ function mapArg(arg, argType, options) {
198
198
  if (typeof arg === "string" && argType.scalarType === "bytes") {
199
199
  return Buffer.from(arg, "base64");
200
200
  }
201
- if (Array.isArray(arg) && argType.scalarType === "bytes") {
202
- return new Uint8Array(arg);
203
- }
204
201
  return arg;
205
202
  }
206
203
 
@@ -126,7 +126,7 @@ function mapRow(row, columnTypes) {
126
126
  for (let i = 0; i < row.length; i++) {
127
127
  const value = row[i];
128
128
  if (value instanceof ArrayBuffer) {
129
- result[i] = Array.from(new Uint8Array(value));
129
+ result[i] = new Uint8Array(value);
130
130
  continue;
131
131
  }
132
132
  if (typeof value === "number" && (columnTypes[i] === ColumnTypeEnum.Int32 || columnTypes[i] === ColumnTypeEnum.Int64) && !Number.isInteger(value)) {
@@ -172,9 +172,6 @@ function mapArg(arg, argType, options) {
172
172
  if (typeof arg === "string" && argType.scalarType === "bytes") {
173
173
  return Buffer.from(arg, "base64");
174
174
  }
175
- if (Array.isArray(arg) && argType.scalarType === "bytes") {
176
- return new Uint8Array(arg);
177
- }
178
175
  return arg;
179
176
  }
180
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-libsql",
3
- "version": "7.2.0-dev.19",
3
+ "version": "7.2.0-dev.20",
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.8.1",
45
45
  "async-mutex": "0.5.0",
46
- "@prisma/driver-adapter-utils": "7.2.0-dev.19"
46
+ "@prisma/driver-adapter-utils": "7.2.0-dev.20"
47
47
  },
48
48
  "scripts": {
49
49
  "dev": "DEV=true tsx helpers/build.ts",