mythix 2.1.0 → 2.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "express": "^4.17.3",
31
31
  "express-busboy": "^8.0.2",
32
32
  "form-data": "^4.0.0",
33
- "mythix-orm": "^1.0.4",
33
+ "mythix-orm": "^1.3.0",
34
34
  "nife": "^1.11.3",
35
35
  "prompts": "^2.4.2"
36
36
  }
@@ -10,7 +10,7 @@ module.exports = defineCommand('routes', ({ Parent }) => {
10
10
  return class RoutesCommand extends Parent {
11
11
  static description = 'List application routes';
12
12
 
13
- static applicationConfig = { logger: { level: Logger.LEVEL_ERROR } };
13
+ static applicationConfig = { database: false, logger: { level: Logger.LEVEL_ERROR } };
14
14
 
15
15
  buildRoutes(httpServer, routes) {
16
16
  let application = this.getApplication();
@@ -12,6 +12,11 @@ class Model extends _Model {
12
12
  return this;
13
13
  }
14
14
 
15
+ static getModels() {
16
+ let connection = this.getConnection();
17
+ return connection.getModels();
18
+ }
19
+
15
20
  getModel(modelName) {
16
21
  return this.constructor.getModel(modelName);
17
22
  }