@mikro-orm/knex 6.1.11-dev.3 → 6.1.11-dev.5

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.
@@ -72,7 +72,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
72
72
  return result;
73
73
  }
74
74
  async findOne(entityName, where, options) {
75
- const opts = { populate: [], ...(options || {}) };
75
+ const opts = { populate: [], ...options };
76
76
  const meta = this.metadata.find(entityName);
77
77
  const populate = this.autoJoinOneToOneOwner(meta, opts.populate, opts.fields);
78
78
  const joinedProps = this.joinedProps(meta, populate, options);
@@ -575,7 +575,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
575
575
  params.push(cond[pk]);
576
576
  }
577
577
  });
578
- return `(${new Array(pks.length).fill('?').join(', ')})`;
578
+ return `(${Array.from({ length: pks.length }).fill('?').join(', ')})`;
579
579
  }
580
580
  params.push(cond);
581
581
  return '?';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.1.11-dev.3",
3
+ "version": "6.1.11-dev.5",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -66,6 +66,6 @@
66
66
  "@mikro-orm/core": "^6.1.10"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.1.11-dev.3"
69
+ "@mikro-orm/core": "6.1.11-dev.5"
70
70
  }
71
71
  }