exodus-framework 2.0.361 → 2.0.691
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/contracts/tenant.d.ts +1 -0
- package/lib/contracts/tenant.d.ts.map +1 -0
- package/lib/contracts/tenant.js +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/access.d.ts +1 -0
- package/lib/middlewares/access.d.ts.map +1 -1
- package/lib/middlewares/access.js +14 -0
- 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/models/Connection.d.ts.map +1 -1
- package/lib/models/Connection.js +1 -1
- 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 +4 -3
- package/lib/services/file.d.ts.map +1 -1
- package/lib/services/file.js +17 -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 +11 -3
- package/lib/services/sequelize.d.ts.map +1 -1
- package/lib/services/sequelize.js +56 -14
- 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/lib/utils/session.d.ts +2 -1
- package/lib/utils/session.d.ts.map +1 -1
- package/lib/utils/session.js +3 -1
- 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/utils/database.js
CHANGED
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.serviceDB = exports.masterDB = void 0;
|
7
|
-
var _db = require("../config/db");
|
8
7
|
var _sequelize = require("sequelize");
|
9
8
|
var _logger = _interopRequireDefault(require("./logger"));
|
9
|
+
var _app = require("../app");
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
11
|
const serviceDB = exports.serviceDB = new _sequelize.Sequelize({
|
12
|
-
database:
|
13
|
-
dialect:
|
14
|
-
username:
|
15
|
-
password:
|
12
|
+
database: _app.Core.settings.getDatabase().service.database,
|
13
|
+
dialect: _app.Core.settings.getDatabase().master.dialect,
|
14
|
+
username: _app.Core.settings.getDatabase().master.username,
|
15
|
+
password: _app.Core.settings.getDatabase().master.password,
|
16
16
|
define: {
|
17
17
|
timestamps: true
|
18
18
|
},
|
@@ -22,10 +22,10 @@ const serviceDB = exports.serviceDB = new _sequelize.Sequelize({
|
|
22
22
|
}
|
23
23
|
});
|
24
24
|
const masterDB = exports.masterDB = new _sequelize.Sequelize({
|
25
|
-
database:
|
26
|
-
dialect:
|
27
|
-
username:
|
28
|
-
password:
|
25
|
+
database: _app.Core.settings.getDatabase().master.database,
|
26
|
+
dialect: _app.Core.settings.getDatabase().master.dialect,
|
27
|
+
username: _app.Core.settings.getDatabase().master.username,
|
28
|
+
password: _app.Core.settings.getDatabase().master.password,
|
29
29
|
define: {
|
30
30
|
timestamps: true
|
31
31
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM,oCA4CX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/lib/utils/logger.js
CHANGED
@@ -4,40 +4,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
var _logger = require("../config/logger");
|
8
7
|
var _fs = require("fs");
|
8
|
+
var _path = _interopRequireDefault(require("path"));
|
9
9
|
var _pino = _interopRequireDefault(require("pino"));
|
10
10
|
var _pinoMultiStream = require("pino-multi-stream");
|
11
|
+
var _app = require("../app");
|
12
|
+
var _dateFns = require("date-fns");
|
11
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
14
|
const logger = () => {
|
13
|
-
(0,
|
15
|
+
const basePath = _path.default.resolve(_app.Core.settings.getLogger().path, (0, _dateFns.format)(new Date(), 'dd-MM-yyyy'), (0, _dateFns.format)(new Date(), 'HH_mm'));
|
16
|
+
(0, _fs.mkdirSync)(basePath, {
|
14
17
|
recursive: true
|
15
18
|
});
|
16
19
|
const streams = [{
|
17
20
|
level: 'error',
|
18
|
-
stream: (0, _fs.createWriteStream)(
|
21
|
+
stream: (0, _fs.createWriteStream)(basePath + '/error' + _app.Core.settings.getLogger().fileformat)
|
19
22
|
}, {
|
20
23
|
level: 'info',
|
21
|
-
stream: (0, _fs.createWriteStream)(
|
24
|
+
stream: (0, _fs.createWriteStream)(basePath + '/info' + _app.Core.settings.getLogger().fileformat)
|
22
25
|
}, {
|
23
26
|
level: 'fatal',
|
24
|
-
stream: (0, _fs.createWriteStream)(
|
27
|
+
stream: (0, _fs.createWriteStream)(basePath + '/fatal' + _app.Core.settings.getLogger().fileformat)
|
25
28
|
}, {
|
26
29
|
level: 'warn',
|
27
|
-
stream: (0, _fs.createWriteStream)(
|
30
|
+
stream: (0, _fs.createWriteStream)(basePath + '/warn' + _app.Core.settings.getLogger().fileformat)
|
28
31
|
}, {
|
29
32
|
level: 'silent',
|
30
|
-
stream: (0, _fs.createWriteStream)(
|
33
|
+
stream: (0, _fs.createWriteStream)(basePath + '/silent' + _app.Core.settings.getLogger().fileformat)
|
31
34
|
}, {
|
32
35
|
level: 'trace',
|
33
|
-
stream: (0, _fs.createWriteStream)(
|
36
|
+
stream: (0, _fs.createWriteStream)(basePath + '/trace' + _app.Core.settings.getLogger().fileformat)
|
34
37
|
}];
|
35
|
-
|
38
|
+
_app.Core.settings.getLogger().console ?? streams.push({
|
36
39
|
stream: process.stdout
|
37
40
|
});
|
38
41
|
return (0, _pino.default)({
|
39
42
|
name: 'exodus',
|
40
|
-
level:
|
43
|
+
level: _app.Core.settings.getLogger().level,
|
41
44
|
// this MUST be set at the lowest level of the
|
42
45
|
timestamp: () => `,"time":"${new Date().toJSON()}"`
|
43
46
|
}, (0, _pinoMultiStream.multistream)(streams));
|
package/lib/utils/session.d.ts
CHANGED
@@ -2,7 +2,8 @@ import Api from './api';
|
|
2
2
|
export declare class SessionAPI extends Api {
|
3
3
|
host: string;
|
4
4
|
headers: {
|
5
|
-
'
|
5
|
+
'X-Exodus-App-Sec': string;
|
6
|
+
'X-Exodus-Core-Version': string;
|
6
7
|
};
|
7
8
|
validateStatus(status: number): boolean;
|
8
9
|
getCertificate(): Promise<import("..").IApiResponse<string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,qBAAa,UAAW,SAAQ,GAAG;IACjC,IAAI,SAA+B;IACnC,OAAO;;;MAGL;IAEF,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAIjC,cAAc;CAGrB"}
|
package/lib/utils/session.js
CHANGED
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.SessionAPI = void 0;
|
7
|
+
var _app = require("../app");
|
7
8
|
var _api = _interopRequireDefault(require("./api"));
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
9
10
|
class SessionAPI extends _api.default {
|
10
11
|
host = process.env.APP_SESSION_URL;
|
11
12
|
headers = {
|
12
|
-
'
|
13
|
+
'X-Exodus-App-Sec': this.getLogicalSecurityId(),
|
14
|
+
'X-Exodus-Core-Version': _app.Exodus.getVersion()
|
13
15
|
};
|
14
16
|
validateStatus(status) {
|
15
17
|
return status < 400;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "exodus-framework",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.691",
|
4
4
|
"description": "Exodus Framework",
|
5
5
|
"author": "jhownpaixao",
|
6
6
|
"license": "ISC",
|
@@ -34,6 +34,7 @@
|
|
34
34
|
"express-async-errors": "^2.0.0",
|
35
35
|
"express-jwt": "^8.4.1",
|
36
36
|
"fs": "^0.0.1-security",
|
37
|
+
"lodash": "^4.17.21",
|
37
38
|
"mariadb": "^3.3.1",
|
38
39
|
"multer": "^1.4.5-lts.1",
|
39
40
|
"mysql2": "^3.11.0",
|
@@ -56,6 +57,7 @@
|
|
56
57
|
"@types/amqplib": "^0.10.5",
|
57
58
|
"@types/cors": "^2.8.17",
|
58
59
|
"@types/express": "^4.17.21",
|
60
|
+
"@types/lodash": "^4.17.7",
|
59
61
|
"@types/multer": "^1.4.12",
|
60
62
|
"@types/node": "^22.5.0",
|
61
63
|
"@types/node-schedule": "^2.1.7",
|
package/lib/config/app.d.ts
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
import 'dotenv/config';
|
2
|
-
export declare const AppConfig: {
|
3
|
-
appId: string;
|
4
|
-
port: string;
|
5
|
-
host: string;
|
6
|
-
description: string;
|
7
|
-
clusters: string | number;
|
8
|
-
filePaths: {
|
9
|
-
temporary: string;
|
10
|
-
image: string;
|
11
|
-
audio: string;
|
12
|
-
document: string;
|
13
|
-
video: string;
|
14
|
-
};
|
15
|
-
};
|
16
|
-
//# sourceMappingURL=app.d.ts.map
|
package/lib/config/app.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/config/app.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAIvB,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAerB,CAAC"}
|
package/lib/config/app.js
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.AppConfig = void 0;
|
7
|
-
require("dotenv/config");
|
8
|
-
var _os = _interopRequireDefault(require("os"));
|
9
|
-
var _path = _interopRequireDefault(require("path"));
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
const AppConfig = exports.AppConfig = {
|
12
|
-
appId: process.env.APP_ID,
|
13
|
-
port: process.env.APP_PORT,
|
14
|
-
host: process.env.APP_URL || 'http://localhost',
|
15
|
-
description: process.env.APP_DESCRIPTION || '',
|
16
|
-
clusters: process.env.APP_CLUESTERS || _os.default.cpus().length,
|
17
|
-
/* File */
|
18
|
-
filePaths: {
|
19
|
-
temporary: _path.default.resolve(__dirname, '..', '..', 'public', 'tmp'),
|
20
|
-
image: _path.default.resolve(__dirname, '..', '..', 'public', 'images'),
|
21
|
-
audio: _path.default.resolve(__dirname, '..', '..', 'public', 'audios'),
|
22
|
-
document: _path.default.resolve(__dirname, '..', '..', 'public', 'documents'),
|
23
|
-
video: _path.default.resolve(__dirname, '..', '..', 'public', 'videos')
|
24
|
-
}
|
25
|
-
};
|
package/lib/config/auth.d.ts
DELETED
package/lib/config/auth.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/config/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;CAItB,CAAC"}
|
package/lib/config/auth.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.AuthConfig = void 0;
|
7
|
-
const AuthConfig = exports.AuthConfig = {
|
8
|
-
host: process.env.APP_SESSION_URL,
|
9
|
-
/* APPAuthID:APPAuthPort/SECURITY_JWT_ISSUER */
|
10
|
-
issuer: `exodus.session.hub:4000/${process.env.SECURITY_JWT_ISSUER}`
|
11
|
-
};
|
package/lib/config/cache.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/config/cache.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;CAIhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/lib/config/cache.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 CacheConfig = {
|
8
|
-
host: process.env.CACHE_HOST || 'localhost',
|
9
|
-
port: process.env.CACHE_PORT || 6379,
|
10
|
-
password: process.env.CACHE_USER || 'eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81'
|
11
|
-
};
|
12
|
-
var _default = exports.default = CacheConfig;
|
package/lib/config/db.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Dialect } from 'sequelize';
|
2
|
-
export declare const DatabaseConfig: {
|
3
|
-
master: {
|
4
|
-
database: string;
|
5
|
-
dialect: Dialect;
|
6
|
-
username: string;
|
7
|
-
password: string;
|
8
|
-
};
|
9
|
-
service: {
|
10
|
-
database: string;
|
11
|
-
};
|
12
|
-
};
|
13
|
-
//# sourceMappingURL=db.d.ts.map
|
package/lib/config/db.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/config/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;CAU1B,CAAC"}
|
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
|