exodus-framework 2.0.696 → 2.0.699
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/settings.d.ts.map +1 -1
- package/lib/contracts/messaging.d.ts +28 -1
- package/lib/contracts/messaging.d.ts.map +1 -1
- package/lib/contracts/security.d.ts +11 -0
- package/lib/contracts/security.d.ts.map +1 -0
- package/lib/contracts/settings.d.ts +6 -0
- package/lib/contracts/settings.d.ts.map +1 -1
- package/lib/controllers/messaging/database.d.ts +9 -0
- package/lib/controllers/messaging/database.d.ts.map +1 -0
- package/lib/controllers/messaging/environment.d.ts +10 -0
- package/lib/controllers/messaging/environment.d.ts.map +1 -0
- package/lib/middlewares/access.d.ts.map +1 -1
- package/lib/middlewares/authentication.d.ts +1 -1
- package/lib/middlewares/authentication.d.ts.map +1 -1
- package/lib/models/Application.d.ts +13 -0
- package/lib/models/Application.d.ts.map +1 -0
- package/lib/models/Connection.d.ts +1 -0
- package/lib/models/Connection.d.ts.map +1 -1
- package/lib/models/EnvConnection.d.ts +9 -0
- package/lib/models/EnvConnection.d.ts.map +1 -0
- package/lib/models/index.d.ts +4 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/routes/index.d.ts +2 -0
- package/lib/routes/index.d.ts.map +1 -0
- package/lib/routes/messaging/index.d.ts +4 -0
- package/lib/routes/messaging/index.d.ts.map +1 -0
- package/lib/services/rabitmq.d.ts.map +1 -1
- package/lib/services/security.d.ts +29 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/sequelize.d.ts.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/package.json +3 -1
- package/lib/app/app.js +0 -84
- package/lib/app/controller.js +0 -95
- package/lib/app/core.js +0 -66
- package/lib/app/index.js +0 -60
- package/lib/app/service.js +0 -24
- package/lib/app/settings.js +0 -130
- package/lib/app/singleton.js +0 -29
- package/lib/contracts/console.js +0 -5
- package/lib/contracts/entity.js +0 -5
- package/lib/contracts/http.js +0 -50
- package/lib/contracts/index.js +0 -104
- package/lib/contracts/messaging.js +0 -14
- package/lib/contracts/service.js +0 -5
- package/lib/contracts/session.js +0 -5
- package/lib/contracts/settings.js +0 -5
- package/lib/contracts/singleton.js +0 -5
- package/lib/contracts/socket.js +0 -11
- package/lib/contracts/tenant.d.ts +0 -1
- package/lib/contracts/tenant.d.ts.map +0 -1
- package/lib/contracts/tenant.js +0 -1
- package/lib/controllers/api/file.js +0 -24
- package/lib/controllers/api/index.js +0 -13
- package/lib/controllers/index.js +0 -16
- package/lib/express.d.js +0 -5
- package/lib/index.js +0 -92
- package/lib/middlewares/access.js +0 -35
- package/lib/middlewares/authentication.js +0 -27
- package/lib/middlewares/file.js +0 -41
- package/lib/middlewares/index.js +0 -27
- package/lib/models/Connection.js +0 -50
- package/lib/models/index.js +0 -16
- package/lib/services/error.js +0 -49
- package/lib/services/express.js +0 -140
- package/lib/services/file.js +0 -65
- package/lib/services/index.js +0 -80
- package/lib/services/rabitmq.js +0 -87
- package/lib/services/redis.js +0 -60
- package/lib/services/sequelize.js +0 -238
- package/lib/services/socket.js +0 -56
- package/lib/services/task.js +0 -162
- package/lib/utils/api.js +0 -50
- package/lib/utils/database.js +0 -36
- package/lib/utils/date.js +0 -28
- package/lib/utils/index.js +0 -60
- package/lib/utils/logger.js +0 -55
- package/lib/utils/session.js +0 -23
package/lib/utils/session.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.SessionAPI = void 0;
|
7
|
-
var _app = require("../app");
|
8
|
-
var _api = _interopRequireDefault(require("./api"));
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
-
class SessionAPI extends _api.default {
|
11
|
-
host = process.env.APP_SESSION_URL;
|
12
|
-
headers = {
|
13
|
-
'X-Exodus-App-Sec': this.getLogicalSecurityId(),
|
14
|
-
'X-Exodus-Core-Version': _app.Exodus.getVersion()
|
15
|
-
};
|
16
|
-
validateStatus(status) {
|
17
|
-
return status < 400;
|
18
|
-
}
|
19
|
-
async getCertificate() {
|
20
|
-
return this.request(this.host + '/api/v1/session/certificate', 'get');
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.SessionAPI = SessionAPI;
|