@mikro-orm/entity-generator 7.0.0-dev.34 → 7.0.0-dev.36

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/SourceFile.js +2 -2
  2. package/package.json +4 -4
package/SourceFile.js CHANGED
@@ -318,7 +318,7 @@ export class SourceFile {
318
318
  options.expression = this.quote(this.meta.expression);
319
319
  }
320
320
  else if (typeof this.meta.expression === 'function') {
321
- options.expression = `${this.meta.expression}`;
321
+ options.expression = this.meta.expression.toString();
322
322
  }
323
323
  if (this.meta.repositoryClass) {
324
324
  this.entityImports.add(this.meta.repositoryClass);
@@ -379,7 +379,7 @@ export class SourceFile {
379
379
  decorator = [...indexes.sort(), decorator].map(d => padding + d).join('\n');
380
380
  const decoratorArgs = [];
381
381
  if (prop.formula) {
382
- decoratorArgs.push(`${prop.formula}`);
382
+ decoratorArgs.push(prop.formula.toString());
383
383
  }
384
384
  if (Utils.hasObjectKeys(options)) {
385
385
  decoratorArgs.push(`${this.serializeObject(options)}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/entity-generator",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.34",
4
+ "version": "7.0.0-dev.36",
5
5
  "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.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
@@ -50,12 +50,12 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/knex": "7.0.0-dev.34"
53
+ "@mikro-orm/knex": "7.0.0-dev.36"
54
54
  },
55
55
  "devDependencies": {
56
- "@mikro-orm/core": "^6.5.7"
56
+ "@mikro-orm/core": "^6.5.8"
57
57
  },
58
58
  "peerDependencies": {
59
- "@mikro-orm/core": "7.0.0-dev.34"
59
+ "@mikro-orm/core": "7.0.0-dev.36"
60
60
  }
61
61
  }