exodus-framework 2.0.993 → 2.0.995

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.
@@ -0,0 +1,8 @@
1
+ import { QueryInterface } from 'sequelize';
2
+ export type UmzugMigration = {
3
+ path: string;
4
+ name: string;
5
+ context: QueryInterface;
6
+ queryGenerator: unknown;
7
+ };
8
+ //# sourceMappingURL=database.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/contracts/database.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,cAAc,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -7,4 +7,5 @@ export * from './settings';
7
7
  export * from './singleton';
8
8
  export * from './socket';
9
9
  export * from './communication';
10
+ export * from './database';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
@@ -101,4 +101,15 @@ Object.keys(_communication).forEach(function (key) {
101
101
  return _communication[key];
102
102
  }
103
103
  });
104
+ });
105
+ var _database = require("./database");
106
+ Object.keys(_database).forEach(function (key) {
107
+ if (key === "default" || key === "__esModule") return;
108
+ if (key in exports && exports[key] === _database[key]) return;
109
+ Object.defineProperty(exports, key, {
110
+ enumerable: true,
111
+ get: function () {
112
+ return _database[key];
113
+ }
114
+ });
104
115
  });
@@ -71,8 +71,7 @@ class DatabaseService extends _app.Service {
71
71
  const sequelize = new _sequelize.Sequelize({
72
72
  host,
73
73
  port,
74
- dialect: dialect == 'mariadb' ? 'mysql' : dialect,
75
- // mariadb é um alias para mysql
74
+ dialect,
76
75
  database,
77
76
  username,
78
77
  password,
@@ -103,8 +102,7 @@ class DatabaseService extends _app.Service {
103
102
  port: data.port,
104
103
  username: data.username,
105
104
  password: data.password,
106
- dialect: data.dialect == 'mariadb' ? 'mysql' : data.dialect,
107
- // mariadb é um alias para mysql,
105
+ dialect: data.dialect,
108
106
  timezone: '-03:00',
109
107
  pool: _app.Core.settings.getDatabase().service.pool,
110
108
  logging: _app.Core.settings.getDatabase().service.log
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.993",
3
+ "version": "2.0.995",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",