@prisma/adapter-mariadb 7.4.0-dev.2 → 7.4.0-dev.21

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
@@ -136,8 +136,9 @@ function mapArg(arg, argType) {
136
136
  return arg;
137
137
  }
138
138
  function mapRow(row, fields) {
139
- return row.map((value, i) => {
140
- const type = fields?.[i].type;
139
+ const values = Array.isArray(row) ? row : Object.values(row);
140
+ return values.map((value, i) => {
141
+ const type = fields?.[i]?.type;
141
142
  if (value === null) {
142
143
  return null;
143
144
  }
package/dist/index.mjs CHANGED
@@ -100,8 +100,9 @@ function mapArg(arg, argType) {
100
100
  return arg;
101
101
  }
102
102
  function mapRow(row, fields) {
103
- return row.map((value, i) => {
104
- const type = fields?.[i].type;
103
+ const values = Array.isArray(row) ? row : Object.values(row);
104
+ return values.map((value, i) => {
105
+ const type = fields?.[i]?.type;
105
106
  if (value === null) {
106
107
  return null;
107
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-mariadb",
3
- "version": "7.4.0-dev.2",
3
+ "version": "7.4.0-dev.21",
4
4
  "description": "Prisma's driver adapter for \"mariadb\"",
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
  "mariadb": "3.4.5",
35
- "@prisma/driver-adapter-utils": "7.4.0-dev.2"
35
+ "@prisma/driver-adapter-utils": "7.4.0-dev.21"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "DEV=true tsx helpers/build.ts",