exodus-framework 2.0.361 → 2.0.591
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/lib/app/app.d.ts +2 -3
- package/lib/app/app.d.ts.map +1 -1
- package/lib/app/app.js +24 -8
- package/lib/app/controller.d.ts +1 -1
- package/lib/app/controller.d.ts.map +1 -1
- package/lib/app/controller.js +2 -1
- package/lib/app/core.d.ts +3 -0
- package/lib/app/core.d.ts.map +1 -1
- package/lib/app/core.js +5 -0
- package/lib/app/index.d.ts +1 -0
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +9 -1
- package/lib/app/settings.d.ts +24 -0
- package/lib/app/settings.d.ts.map +1 -0
- package/lib/app/settings.js +130 -0
- package/lib/contracts/index.d.ts +1 -1
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +11 -11
- package/lib/contracts/messaging.d.ts +6 -0
- package/lib/contracts/messaging.d.ts.map +1 -1
- package/lib/contracts/messaging.js +1 -0
- package/lib/contracts/settings.d.ts +62 -0
- package/lib/contracts/settings.d.ts.map +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -12
- package/lib/middlewares/authentication.d.ts.map +1 -1
- package/lib/middlewares/authentication.js +9 -4
- package/lib/middlewares/file.js +3 -3
- package/lib/services/error.d.ts.map +1 -1
- package/lib/services/error.js +3 -10
- package/lib/services/express.d.ts.map +1 -1
- package/lib/services/express.js +12 -14
- package/lib/services/file.d.ts +3 -3
- package/lib/services/file.d.ts.map +1 -1
- package/lib/services/file.js +6 -6
- package/lib/services/rabitmq.d.ts.map +1 -1
- package/lib/services/rabitmq.js +2 -2
- package/lib/services/redis.js +3 -3
- package/lib/services/sequelize.d.ts.map +1 -1
- package/lib/services/sequelize.js +5 -5
- package/lib/services/task.d.ts +4 -4
- package/lib/services/task.d.ts.map +1 -1
- package/lib/services/task.js +15 -12
- package/lib/utils/database.d.ts.map +1 -1
- package/lib/utils/database.js +9 -9
- package/lib/utils/logger.d.ts.map +1 -1
- package/lib/utils/logger.js +13 -10
- package/package.json +3 -1
- package/lib/config/app.d.ts +0 -16
- package/lib/config/app.d.ts.map +0 -1
- package/lib/config/app.js +0 -25
- package/lib/config/auth.d.ts +0 -5
- package/lib/config/auth.d.ts.map +0 -1
- package/lib/config/auth.js +0 -11
- package/lib/config/cache.d.ts +0 -7
- package/lib/config/cache.d.ts.map +0 -1
- package/lib/config/cache.js +0 -12
- package/lib/config/db.d.ts +0 -13
- package/lib/config/db.d.ts.map +0 -1
- package/lib/config/db.js +0 -17
- package/lib/config/http.d.ts +0 -5
- package/lib/config/http.d.ts.map +0 -1
- package/lib/config/http.js +0 -10
- package/lib/config/index.d.ts +0 -9
- package/lib/config/index.d.ts.map +0 -1
- package/lib/config/index.js +0 -92
- package/lib/config/logger.d.ts +0 -7
- package/lib/config/logger.d.ts.map +0 -1
- package/lib/config/logger.js +0 -33
- package/lib/config/messaging.d.ts +0 -7
- package/lib/config/messaging.d.ts.map +0 -1
- package/lib/config/messaging.js +0 -12
- package/lib/config/task.d.ts +0 -6
- package/lib/config/task.d.ts.map +0 -1
- package/lib/config/task.js +0 -13
- package/lib/contracts/app.d.ts +0 -5
- package/lib/contracts/app.d.ts.map +0 -1
- /package/lib/contracts/{app.js → settings.js} +0 -0
package/lib/config/db.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.DatabaseConfig = void 0;
|
7
|
-
const DatabaseConfig = exports.DatabaseConfig = {
|
8
|
-
master: {
|
9
|
-
database: process.env.MASTER_DB_NAME || 'common',
|
10
|
-
dialect: process.env.MASTER_DB_DIALECT || 'mariadb',
|
11
|
-
username: process.env.MASTER_DB_USER || 'root',
|
12
|
-
password: process.env.MASTER_DB_PASS || ''
|
13
|
-
},
|
14
|
-
service: {
|
15
|
-
database: process.env.SERVICE_DB_NAME || 'unknow'
|
16
|
-
}
|
17
|
-
};
|
package/lib/config/http.d.ts
DELETED
package/lib/config/http.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/config/http.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;CAGtB,CAAC"}
|
package/lib/config/http.js
DELETED
package/lib/config/index.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
export * from './app';
|
2
|
-
export * from './auth';
|
3
|
-
export { default as CacheConfig } from './cache';
|
4
|
-
export * from './db';
|
5
|
-
export * from './http';
|
6
|
-
export * from './logger';
|
7
|
-
export { default as MessagingConfig } from './messaging';
|
8
|
-
export { default as JobConfig } from './task';
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,SAAS,CAAC;AAC/C,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,QAAQ,CAAC"}
|
package/lib/config/index.js
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
var _exportNames = {
|
7
|
-
CacheConfig: true,
|
8
|
-
MessagingConfig: true,
|
9
|
-
JobConfig: true
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "CacheConfig", {
|
12
|
-
enumerable: true,
|
13
|
-
get: function () {
|
14
|
-
return _cache.default;
|
15
|
-
}
|
16
|
-
});
|
17
|
-
Object.defineProperty(exports, "JobConfig", {
|
18
|
-
enumerable: true,
|
19
|
-
get: function () {
|
20
|
-
return _task.default;
|
21
|
-
}
|
22
|
-
});
|
23
|
-
Object.defineProperty(exports, "MessagingConfig", {
|
24
|
-
enumerable: true,
|
25
|
-
get: function () {
|
26
|
-
return _messaging.default;
|
27
|
-
}
|
28
|
-
});
|
29
|
-
var _app = require("./app");
|
30
|
-
Object.keys(_app).forEach(function (key) {
|
31
|
-
if (key === "default" || key === "__esModule") return;
|
32
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
33
|
-
if (key in exports && exports[key] === _app[key]) return;
|
34
|
-
Object.defineProperty(exports, key, {
|
35
|
-
enumerable: true,
|
36
|
-
get: function () {
|
37
|
-
return _app[key];
|
38
|
-
}
|
39
|
-
});
|
40
|
-
});
|
41
|
-
var _auth = require("./auth");
|
42
|
-
Object.keys(_auth).forEach(function (key) {
|
43
|
-
if (key === "default" || key === "__esModule") return;
|
44
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
45
|
-
if (key in exports && exports[key] === _auth[key]) return;
|
46
|
-
Object.defineProperty(exports, key, {
|
47
|
-
enumerable: true,
|
48
|
-
get: function () {
|
49
|
-
return _auth[key];
|
50
|
-
}
|
51
|
-
});
|
52
|
-
});
|
53
|
-
var _cache = _interopRequireDefault(require("./cache"));
|
54
|
-
var _db = require("./db");
|
55
|
-
Object.keys(_db).forEach(function (key) {
|
56
|
-
if (key === "default" || key === "__esModule") return;
|
57
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
58
|
-
if (key in exports && exports[key] === _db[key]) return;
|
59
|
-
Object.defineProperty(exports, key, {
|
60
|
-
enumerable: true,
|
61
|
-
get: function () {
|
62
|
-
return _db[key];
|
63
|
-
}
|
64
|
-
});
|
65
|
-
});
|
66
|
-
var _http = require("./http");
|
67
|
-
Object.keys(_http).forEach(function (key) {
|
68
|
-
if (key === "default" || key === "__esModule") return;
|
69
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
70
|
-
if (key in exports && exports[key] === _http[key]) return;
|
71
|
-
Object.defineProperty(exports, key, {
|
72
|
-
enumerable: true,
|
73
|
-
get: function () {
|
74
|
-
return _http[key];
|
75
|
-
}
|
76
|
-
});
|
77
|
-
});
|
78
|
-
var _logger = require("./logger");
|
79
|
-
Object.keys(_logger).forEach(function (key) {
|
80
|
-
if (key === "default" || key === "__esModule") return;
|
81
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
82
|
-
if (key in exports && exports[key] === _logger[key]) return;
|
83
|
-
Object.defineProperty(exports, key, {
|
84
|
-
enumerable: true,
|
85
|
-
get: function () {
|
86
|
-
return _logger[key];
|
87
|
-
}
|
88
|
-
});
|
89
|
-
});
|
90
|
-
var _messaging = _interopRequireDefault(require("./messaging"));
|
91
|
-
var _task = _interopRequireDefault(require("./task"));
|
92
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/lib/config/logger.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/config/logger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;CA+BxB,CAAC"}
|
package/lib/config/logger.js
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.LoggerConfig = void 0;
|
7
|
-
var _dateFns = require("date-fns");
|
8
|
-
var _path = _interopRequireDefault(require("path"));
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
-
const LoggerConfig = exports.LoggerConfig = {
|
11
|
-
/**
|
12
|
-
* Diretório pardrão de logs
|
13
|
-
* @date 24/03/2023 - 20:19:18
|
14
|
-
*
|
15
|
-
*/
|
16
|
-
path: _path.default.resolve(__dirname, '../../logs', (0, _dateFns.format)(new Date(), 'dd-MM-yyyy'), (0, _dateFns.format)(new Date(), 'HH_mm')),
|
17
|
-
/**
|
18
|
-
* Formato de saída dos arquivos de logs
|
19
|
-
* @date 24/03/2023 - 20:19:18
|
20
|
-
*
|
21
|
-
*/
|
22
|
-
fileformat: '.json',
|
23
|
-
/**
|
24
|
-
* Nível do logger
|
25
|
-
*/
|
26
|
-
level: process.env.LOGGER_LEVEL || 'info',
|
27
|
-
/**
|
28
|
-
* Transportar logs para o console do prompt
|
29
|
-
* @date 24/03/2023 - 20:19:18
|
30
|
-
*
|
31
|
-
*/
|
32
|
-
console: !!parseInt(process.env.LOGGER_CONSOLE) || false
|
33
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/config/messaging.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe;;;;CAIpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/lib/config/messaging.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
const MessagingConfig = {
|
8
|
-
user: process.env.MSG_USER || 'guest',
|
9
|
-
pass: process.env.MSG_PASS || 'guest',
|
10
|
-
host: process.env.MSG_HOST || 'localhost'
|
11
|
-
};
|
12
|
-
var _default = exports.default = MessagingConfig;
|
package/lib/config/task.d.ts
DELETED
package/lib/config/task.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/config/task.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/config/task.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
var _path = _interopRequireDefault(require("path"));
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
9
|
-
const JobConfig = {
|
10
|
-
schedulerPath: _path.default.resolve(__dirname, '../tasks/schedulers/'),
|
11
|
-
queuePath: _path.default.resolve(__dirname, '../tasks/queue/')
|
12
|
-
};
|
13
|
-
var _default = exports.default = JobConfig;
|
package/lib/contracts/app.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/contracts/app.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC"}
|
File without changes
|