@nextage/nx-frame-be 1.0.2 → 1.0.5
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.
|
@@ -687,11 +687,12 @@ class BaseModel extends events_1.EventEmitter {
|
|
|
687
687
|
* @param {*} context
|
|
688
688
|
*/
|
|
689
689
|
publishCRUDEvent(evt, context = {}) {
|
|
690
|
+
var _a;
|
|
690
691
|
if (!this.defaultParams.CRUDEvents)
|
|
691
692
|
return;
|
|
692
693
|
if (context === null || context === void 0 ? void 0 : context.evtType)
|
|
693
694
|
evt.type = context.evtType;
|
|
694
|
-
constants_1.APP.nxPubSub.publish(constants_1.MODEL_CRUD_EVENT, evt, context);
|
|
695
|
+
(_a = constants_1.APP.nxPubSub) === null || _a === void 0 ? void 0 : _a.publish(constants_1.MODEL_CRUD_EVENT, evt, context);
|
|
695
696
|
}
|
|
696
697
|
/**
|
|
697
698
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { AppData } from './types';
|
|
3
3
|
import { CryptoUtils } from './crypto';
|
|
4
|
-
import { CryptoManager } from './manager/crypto-manager';
|
|
5
4
|
export declare const APP: AppData;
|
|
6
5
|
export declare const FILE_CONTENT_TYPES: {
|
|
7
6
|
none: string;
|
|
@@ -23,5 +22,4 @@ export declare const REGEX: {
|
|
|
23
22
|
export declare const BUFFER_NULL: Buffer;
|
|
24
23
|
export declare const EVENT_TYPE: {};
|
|
25
24
|
export declare const MODEL_CRUD_EVENT = "crudEvent";
|
|
26
|
-
export declare const cryptoManager: CryptoManager;
|
|
27
25
|
export declare const cryptoUtils: CryptoUtils;
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
// import { CryptoUtils } from './crypto-utils';
|
|
4
4
|
// import { PubSubManager } from './pubsub-manager';
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.cryptoUtils = exports.
|
|
6
|
+
exports.cryptoUtils = exports.MODEL_CRUD_EVENT = exports.EVENT_TYPE = exports.BUFFER_NULL = exports.REGEX = exports.MIME_TYPES = exports.FILE_CONTENT_TYPES = exports.APP = void 0;
|
|
7
7
|
const pubsub_manager_1 = require("./manager/pubsub-manager");
|
|
8
8
|
const shutdown_manager_1 = require("./manager/shutdown-manager");
|
|
9
9
|
const enums_1 = require("./enums");
|
|
10
10
|
const crypto_1 = require("./crypto");
|
|
11
|
-
const crypto_manager_1 = require("./manager/crypto-manager");
|
|
12
11
|
exports.APP = {
|
|
13
12
|
status: enums_1.AppStatus.INIT,
|
|
14
13
|
logger: console,
|
|
@@ -66,5 +65,5 @@ exports.BUFFER_NULL = Buffer.from([0x00]);
|
|
|
66
65
|
exports.EVENT_TYPE = {};
|
|
67
66
|
exports.MODEL_CRUD_EVENT = 'crudEvent';
|
|
68
67
|
// export const nxPubSub = new PubSubManager();
|
|
69
|
-
|
|
68
|
+
// export const cryptoManager = new CryptoManager();
|
|
70
69
|
exports.cryptoUtils = new crypto_1.CryptoUtils();
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./bulk-manager"), exports);
|
|
|
18
18
|
__exportStar(require("./crypto-manager"), exports);
|
|
19
19
|
__exportStar(require("./pubsub-manager"), exports);
|
|
20
20
|
__exportStar(require("./socket-io-cli-manager"), exports);
|
|
21
|
+
__exportStar(require("./shutdown-manager"), exports);
|
|
21
22
|
__exportStar(require("./tunnel-manager"), exports);
|
package/build/common/types.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { BaseModel } from './base/base.model';
|
|
|
33
33
|
import { NxObject, NxTypeObject } from './interfaces';
|
|
34
34
|
import { PubSubManager } from './manager/pubsub-manager';
|
|
35
35
|
import { ShutdownManager } from './manager/shutdown-manager';
|
|
36
|
+
import { CryptoManager } from './manager/crypto-manager';
|
|
36
37
|
export type NxDateRage = {
|
|
37
38
|
from?: Date;
|
|
38
39
|
to?: Date;
|
|
@@ -51,8 +52,9 @@ export type AppData = {
|
|
|
51
52
|
mongoModels: NxTypeObject<BaseModel<any, any, any>>;
|
|
52
53
|
mongoose?: Mongoose;
|
|
53
54
|
sqlz?: Sequelize;
|
|
54
|
-
nxPubSub
|
|
55
|
+
nxPubSub?: PubSubManager;
|
|
55
56
|
shutdownMng?: ShutdownManager;
|
|
57
|
+
cryptoMng?: CryptoManager;
|
|
56
58
|
streams: ChangeStreamData[];
|
|
57
59
|
config: AppConfig;
|
|
58
60
|
};
|