mysql2-core 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2-core",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "mysql2-core",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -209,10 +209,10 @@ export async function query<T>(pool: Pool | PoolConnection, sql: string, args?:
209
209
  } else {
210
210
  if (results.length > 0) {
211
211
  const arrayResult = results.map(item => {
212
- if(Array.isArray(item)) {
212
+ if (Array.isArray(item)) {
213
213
  return formatData<T>(fields, item);
214
214
  } else {
215
- return item
215
+ return item;
216
216
  }
217
217
  });
218
218
  return resolve(handleResults(arrayResult, m, bools));