@anncic-api/event 3.4.24 → 3.4.33
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/dist/configuration.d.ts +6 -6
- package/dist/configuration.js +1 -1
- package/dist/decorator/Event.d.ts +4 -4
- package/dist/decorator/Event.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +2 -2
- package/dist/interface.js +1 -1
- package/dist/service/EventService.d.ts +26 -26
- package/dist/service/EventService.js +1 -1
- package/package.json +2 -2
package/dist/configuration.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
|
|
2
|
-
export declare class CustomConfiguration {
|
|
3
|
-
config: MidwayConfigService;
|
|
4
|
-
decorator: MidwayDecoratorService;
|
|
5
|
-
onReady(): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
|
|
2
|
+
export declare class CustomConfiguration {
|
|
3
|
+
config: MidwayConfigService;
|
|
4
|
+
decorator: MidwayDecoratorService;
|
|
5
|
+
onReady(): Promise<void>;
|
|
6
|
+
}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x3caf5f=a0_0x48ae;(function(_0x40c4cb,_0x31d6bd){var _0x175ef0=a0_0x48ae,_0x94c1bd=_0x40c4cb();while(!![]){try{var _0x133e4e=-parseInt(_0x175ef0(0x17d))/0x1+-parseInt(_0x175ef0(0x171))/0x2+parseInt(_0x175ef0(0x189))/0x3*(parseInt(_0x175ef0(0x179))/0x4)+-parseInt(_0x175ef0(0x172))/0x5*(-parseInt(_0x175ef0(0x18c))/0x6)+-parseInt(_0x175ef0(0x178))/0x7+-parseInt(_0x175ef0(0x183))/0x8+-parseInt(_0x175ef0(0x18a))/0x9*(-parseInt(_0x175ef0(0x16e))/0xa);if(_0x133e4e===_0x31d6bd)break;else _0x94c1bd['push'](_0x94c1bd['shift']());}catch(_0x3e298e){_0x94c1bd['push'](_0x94c1bd['shift']());}}}(a0_0x8779,0x5438f));var a0_0x3ff4e1=(function(){var _0x537e73=!![];return function(_0x56783a,_0x43820f){var _0x22850f=_0x537e73?function(){var _0x45a353=a0_0x48ae;if(_0x43820f){var _0x1e6f72=_0x43820f[_0x45a353(0x186)](_0x56783a,arguments);return _0x43820f=null,_0x1e6f72;}}:function(){};return _0x537e73=![],_0x22850f;};}()),a0_0x144d77=a0_0x3ff4e1(this,function(){var _0x399bf8=a0_0x48ae;return a0_0x144d77[_0x399bf8(0x18d)]()[_0x399bf8(0x184)]('(((.+)+)+)+$')[_0x399bf8(0x18d)]()[_0x399bf8(0x182)](a0_0x144d77)[_0x399bf8(0x184)](_0x399bf8(0x16f));});a0_0x144d77();'use strict';var __decorate=this&&this[a0_0x3caf5f(0x177)]||function(_0x48db9c,_0x387016,_0x5399f9,_0x47fc95){var _0x49d631=a0_0x3caf5f,_0x1ac3d9=arguments[_0x49d631(0x175)],_0x2e7e56=_0x1ac3d9<0x3?_0x387016:_0x47fc95===null?_0x47fc95=Object[_0x49d631(0x170)](_0x387016,_0x5399f9):_0x47fc95,_0x29d7e1;if(typeof Reflect==='object'&&typeof Reflect[_0x49d631(0x185)]===_0x49d631(0x16d))_0x2e7e56=Reflect[_0x49d631(0x185)](_0x48db9c,_0x387016,_0x5399f9,_0x47fc95);else{for(var _0x160862=_0x48db9c[_0x49d631(0x175)]-0x1;_0x160862>=0x0;_0x160862--)if(_0x29d7e1=_0x48db9c[_0x160862])_0x2e7e56=(_0x1ac3d9<0x3?_0x29d7e1(_0x2e7e56):_0x1ac3d9>0x3?_0x29d7e1(_0x387016,_0x5399f9,_0x2e7e56):_0x29d7e1(_0x387016,_0x5399f9))||_0x2e7e56;}return _0x1ac3d9>0x3&&_0x2e7e56&&Object[_0x49d631(0x17c)](_0x387016,_0x5399f9,_0x2e7e56),_0x2e7e56;},__metadata=this&&this[a0_0x3caf5f(0x176)]||function(_0x2e74af,_0x390973){var _0x38224e=a0_0x3caf5f;if(typeof Reflect===_0x38224e(0x187)&&typeof Reflect[_0x38224e(0x17a)]===_0x38224e(0x16d))return Reflect[_0x38224e(0x17a)](_0x2e74af,_0x390973);};Object['defineProperty'](exports,a0_0x3caf5f(0x17b),{'value':!![]}),exports[a0_0x3caf5f(0x180)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x3caf5f(0x173));function a0_0x8779(){var _0x25a1a5=['Inject','constructor','1314072PteRDc','search','decorate','apply','object','prototype','12iTyRWQ','5239746LWpeVd','MidwayConfigService','564cKPyWT','toString','MidwayDecoratorService','function','10KiBrTF','(((.+)+)+)+$','getOwnPropertyDescriptor','446676sVHVkR','21715JYhtGm','@midwayjs/core','design:type','length','__metadata','__decorate','2562553qdyTgf','336328xhWoDJ','metadata','__esModule','defineProperty','228113tkZDas','Configuration','config','CustomConfiguration'];a0_0x8779=function(){return _0x25a1a5;};return a0_0x8779();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};function a0_0x48ae(_0x33b89f,_0x1b66fc){var _0x4618da=a0_0x8779();return a0_0x48ae=function(_0x144d77,_0x3ff4e1){_0x144d77=_0x144d77-0x16c;var _0x87793a=_0x4618da[_0x144d77];return _0x87793a;},a0_0x48ae(_0x33b89f,_0x1b66fc);}__decorate([(0x0,core_1[a0_0x3caf5f(0x181)])(),__metadata(a0_0x3caf5f(0x174),core_2[a0_0x3caf5f(0x18b)])],CustomConfiguration[a0_0x3caf5f(0x188)],a0_0x3caf5f(0x17f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x3caf5f(0x174),core_2[a0_0x3caf5f(0x16c)])],CustomConfiguration[a0_0x3caf5f(0x188)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x3caf5f(0x17e)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x3caf5f(0x180)]=CustomConfiguration;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function Event(): ClassDecorator;
|
|
2
|
-
export declare namespace Event {
|
|
3
|
-
var On: (name: string, priority?: number) => MethodDecorator;
|
|
4
|
-
}
|
|
1
|
+
export declare function Event(): ClassDecorator;
|
|
2
|
+
export declare namespace Event {
|
|
3
|
+
var On: (name: string, priority?: number) => MethodDecorator;
|
|
4
|
+
}
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x4d10(_0x356f96,_0x1080eb){const _0x1ef927=a1_0x3bd7();return a1_0x4d10=function(_0x1511c3,_0x46e172){_0x1511c3=_0x1511c3-0x197;let _0x3bd704=_0x1ef927[_0x1511c3];return _0x3bd704;},a1_0x4d10(_0x356f96,_0x1080eb);}const a1_0x4bbd9a=a1_0x4d10;(function(_0x4bd872,_0x436635){const _0x1a2607=a1_0x4d10,_0x3718f3=_0x4bd872();while(!![]){try{const _0x3c0e8f=parseInt(_0x1a2607(0x1a1))/0x1+-parseInt(_0x1a2607(0x197))/0x2*(-parseInt(_0x1a2607(0x1a9))/0x3)+parseInt(_0x1a2607(0x19c))/0x4*(parseInt(_0x1a2607(0x1a0))/0x5)+-parseInt(_0x1a2607(0x1a8))/0x6*(parseInt(_0x1a2607(0x1aa))/0x7)+-parseInt(_0x1a2607(0x1a6))/0x8+-parseInt(_0x1a2607(0x1ad))/0x9*(-parseInt(_0x1a2607(0x1ab))/0xa)+parseInt(_0x1a2607(0x1a5))/0xb;if(_0x3c0e8f===_0x436635)break;else _0x3718f3['push'](_0x3718f3['shift']());}catch(_0x11a6d9){_0x3718f3['push'](_0x3718f3['shift']());}}}(a1_0x3bd7,0x63dfb));const a1_0x46e172=(function(){let _0x534956=!![];return function(_0x1d3854,_0x359518){const _0x257737=_0x534956?function(){if(_0x359518){const _0x41a0b0=_0x359518['apply'](_0x1d3854,arguments);return _0x359518=null,_0x41a0b0;}}:function(){};return _0x534956=![],_0x257737;};}()),a1_0x1511c3=a1_0x46e172(this,function(){const _0x5ac541=a1_0x4d10;return a1_0x1511c3[_0x5ac541(0x1a7)]()[_0x5ac541(0x1ae)](_0x5ac541(0x1af))['toString']()[_0x5ac541(0x19a)](a1_0x1511c3)[_0x5ac541(0x1ae)]('(((.+)+)+)+$');});a1_0x1511c3();'use strict';Object[a1_0x4bbd9a(0x19e)](exports,'__esModule',{'value':!![]}),exports[a1_0x4bbd9a(0x198)]=void 0x0;const core_1=require(a1_0x4bbd9a(0x1a4)),interface_1=require(a1_0x4bbd9a(0x19f));function a1_0x3bd7(){const _0xa37c69=['@midwayjs/core','8393495nsOqLv','5699616BhtrJq','toString','72hkJYIV','6JzpyFO','119749nIXptG','925030AwbqEr','Scope','9XvlBke','search','(((.+)+)+)+$','88400WVKWFv','Event','Provide','constructor','EVENT_KEY','456436FSMXjL','Request','defineProperty','../interface','10XAxPZg','154653elRAuC','EVENT_ON_KEY','attachClassMetadata'];a1_0x3bd7=function(){return _0xa37c69;};return a1_0x3bd7();}function Event(){return _0x4352e7=>{const _0x4020bc=a1_0x4d10;(0x0,core_1[_0x4020bc(0x199)])()(_0x4352e7),(0x0,core_1['saveModule'])(interface_1[_0x4020bc(0x19b)],_0x4352e7),(0x0,core_1[_0x4020bc(0x1ac)])(core_1['ScopeEnum'][_0x4020bc(0x19d)],{'allowDowngrade':!![]})(_0x4352e7);};}exports['Event']=Event,Event['On']=function(_0x15a559,_0x5cebea=0x0){return(_0x1a404a,_0x4be2cb,_0x51f5ee)=>{const _0x2b673c=a1_0x4d10;return(0x0,core_1[_0x2b673c(0x1a3)])(interface_1[_0x2b673c(0x1a2)],{'name':_0x15a559,'priority':_0x5cebea,'propertyKey':_0x4be2cb,'descriptor':_0x51f5ee},_0x1a404a),_0x51f5ee;};};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Event } from './decorator/Event';
|
|
2
|
-
export { EventService } from "./service/EventService";
|
|
3
|
-
export { CustomConfiguration as Configuration } from './configuration';
|
|
1
|
+
export { Event } from './decorator/Event';
|
|
2
|
+
export { EventService } from "./service/EventService";
|
|
3
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a2_0x5559fa=a2_0x584a;(function(_0x34de7a,_0x157923){var _0xf866ed=a2_0x584a,_0x597bc5=_0x34de7a();while(!![]){try{var _0x4f0d02=-parseInt(_0xf866ed(0xc0))/0x1+parseInt(_0xf866ed(0xc7))/0x2+-parseInt(_0xf866ed(0xc2))/0x3*(parseInt(_0xf866ed(0xcd))/0x4)+parseInt(_0xf866ed(0xcb))/0x5*(-parseInt(_0xf866ed(0xb7))/0x6)+parseInt(_0xf866ed(0xc6))/0x7*(-parseInt(_0xf866ed(0xba))/0x8)+-parseInt(_0xf866ed(0xb9))/0x9*(parseInt(_0xf866ed(0xc5))/0xa)+-parseInt(_0xf866ed(0xca))/0xb*(-parseInt(_0xf866ed(0xbe))/0xc);if(_0x4f0d02===_0x157923)break;else _0x597bc5['push'](_0x597bc5['shift']());}catch(_0x189fde){_0x597bc5['push'](_0x597bc5['shift']());}}}(a2_0x30b6,0xddcdd));function a2_0x30b6(){var _0x208d96=['5690OzWSKi','1064sAcMgs','2919924ACQlFI','CustomConfiguration','constructor','39599109nBKIBz','3124235MhuDsM','__esModule','16VlPmfQ','Event','toString','6qgagal','search','15543oHiQgZ','18968LTrajY','EventService','./decorator/Event','(((.+)+)+)+$','12fZQTTg','defineProperty','410034MGsIsR','Configuration','1330077DWJrfS','apply','./configuration'];a2_0x30b6=function(){return _0x208d96;};return a2_0x30b6();}var a2_0x7b3734=(function(){var _0x5446ab=!![];return function(_0x482904,_0x440374){var _0x1ed226=_0x5446ab?function(){var _0x298f5f=a2_0x584a;if(_0x440374){var _0x6615a2=_0x440374[_0x298f5f(0xc3)](_0x482904,arguments);return _0x440374=null,_0x6615a2;}}:function(){};return _0x5446ab=![],_0x1ed226;};}()),a2_0x3c25ba=a2_0x7b3734(this,function(){var _0x32caad=a2_0x584a;return a2_0x3c25ba[_0x32caad(0xb6)]()[_0x32caad(0xb8)](_0x32caad(0xbd))[_0x32caad(0xb6)]()[_0x32caad(0xc9)](a2_0x3c25ba)['search']('(((.+)+)+)+$');});a2_0x3c25ba();function a2_0x584a(_0x197ecb,_0x198d0f){var _0xaa8b6d=a2_0x30b6();return a2_0x584a=function(_0x3c25ba,_0x7b3734){_0x3c25ba=_0x3c25ba-0xb5;var _0x30b664=_0xaa8b6d[_0x3c25ba];return _0x30b664;},a2_0x584a(_0x197ecb,_0x198d0f);}'use strict';Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xcc),{'value':!![]}),exports['Configuration']=exports[a2_0x5559fa(0xbb)]=exports[a2_0x5559fa(0xb5)]=void 0x0;var Event_1=require(a2_0x5559fa(0xbc));Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xb5),{'enumerable':!![],'get':function(){var _0x545ff7=a2_0x5559fa;return Event_1[_0x545ff7(0xb5)];}});var EventService_1=require('./service/EventService');Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xbb),{'enumerable':!![],'get':function(){var _0x5596d3=a2_0x5559fa;return EventService_1[_0x5596d3(0xbb)];}});var configuration_1=require(a2_0x5559fa(0xc4));Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xc1),{'enumerable':!![],'get':function(){var _0x3457be=a2_0x5559fa;return configuration_1[_0x3457be(0xc8)];}});
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const EVENT_KEY = "anncic-api:event";
|
|
2
|
-
export declare const EVENT_ON_KEY = "anncic-api:event:on";
|
|
1
|
+
export declare const EVENT_KEY = "anncic-api:event";
|
|
2
|
+
export declare const EVENT_ON_KEY = "anncic-api:event:on";
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a3_0x5cff8c=a3_0x2ee2;(function(_0x20091c,_0x5449e8){var _0x32a8a9=a3_0x2ee2,_0x2b71ea=_0x20091c();while(!![]){try{var _0x3b8bfa=-parseInt(_0x32a8a9(0x149))/0x1+-parseInt(_0x32a8a9(0x159))/0x2*(parseInt(_0x32a8a9(0x14e))/0x3)+parseInt(_0x32a8a9(0x14c))/0x4+parseInt(_0x32a8a9(0x158))/0x5*(-parseInt(_0x32a8a9(0x153))/0x6)+-parseInt(_0x32a8a9(0x152))/0x7+parseInt(_0x32a8a9(0x14b))/0x8+-parseInt(_0x32a8a9(0x151))/0x9*(-parseInt(_0x32a8a9(0x156))/0xa);if(_0x3b8bfa===_0x5449e8)break;else _0x2b71ea['push'](_0x2b71ea['shift']());}catch(_0x583d2f){_0x2b71ea['push'](_0x2b71ea['shift']());}}}(a3_0x1db2,0x4bdf9));function a3_0x2ee2(_0x20d812,_0x1bc1a4){var _0x49edd2=a3_0x1db2();return a3_0x2ee2=function(_0x5325ce,_0x41c2f2){_0x5325ce=_0x5325ce-0x148;var _0x1db25f=_0x49edd2[_0x5325ce];return _0x1db25f;},a3_0x2ee2(_0x20d812,_0x1bc1a4);}var a3_0x41c2f2=(function(){var _0x2f2f49=!![];return function(_0x121e37,_0x182f8f){var _0x245d70=_0x2f2f49?function(){var _0x51a95d=a3_0x2ee2;if(_0x182f8f){var _0x552133=_0x182f8f[_0x51a95d(0x150)](_0x121e37,arguments);return _0x182f8f=null,_0x552133;}}:function(){};return _0x2f2f49=![],_0x245d70;};}()),a3_0x5325ce=a3_0x41c2f2(this,function(){var _0x2ad02e=a3_0x2ee2;return a3_0x5325ce[_0x2ad02e(0x14d)]()['search']('(((.+)+)+)+$')[_0x2ad02e(0x14d)]()[_0x2ad02e(0x148)](a3_0x5325ce)[_0x2ad02e(0x14f)](_0x2ad02e(0x157));});function a3_0x1db2(){var _0x4ad888=['288FZkQhz','2772497huuZjO','12CSHouJ','EVENT_ON_KEY','EVENT_KEY','306560dJoLin','(((.+)+)+)+$','1017155qKgrII','311126RLchwX','anncic-api:event:on','constructor','571783ELSeyP','anncic-api:event','4765712FUcwFE','2301904wGvrDW','toString','9orlfOw','search','apply'];a3_0x1db2=function(){return _0x4ad888;};return a3_0x1db2();}a3_0x5325ce();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x5cff8c(0x154)]=exports[a3_0x5cff8c(0x155)]=void 0x0,exports[a3_0x5cff8c(0x155)]=a3_0x5cff8c(0x14a),exports[a3_0x5cff8c(0x154)]=a3_0x5cff8c(0x15a);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { IMidwayApplication } from '@midwayjs/core';
|
|
2
|
-
export declare class EventService {
|
|
3
|
-
app: IMidwayApplication;
|
|
4
|
-
protected init: boolean;
|
|
5
|
-
protected listevent: {
|
|
6
|
-
[key: string]: {
|
|
7
|
-
priority: number;
|
|
8
|
-
resolve: Function;
|
|
9
|
-
propertyKey: string;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
getListevent(name?: string): Promise<{
|
|
13
|
-
[key: string]: {
|
|
14
|
-
priority: number;
|
|
15
|
-
resolve: Function;
|
|
16
|
-
propertyKey: string;
|
|
17
|
-
}[];
|
|
18
|
-
} | {
|
|
19
|
-
priority: number;
|
|
20
|
-
resolve: Function;
|
|
21
|
-
propertyKey: string;
|
|
22
|
-
}[]>;
|
|
23
|
-
emit(name: string, ...args: any[]): Promise<void>;
|
|
24
|
-
once(name: string, ...args: any[]): Promise<boolean>;
|
|
25
|
-
off(name: string): Promise<boolean>;
|
|
26
|
-
}
|
|
1
|
+
import { IMidwayApplication } from '@midwayjs/core';
|
|
2
|
+
export declare class EventService {
|
|
3
|
+
app: IMidwayApplication;
|
|
4
|
+
protected init: boolean;
|
|
5
|
+
protected listevent: {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
priority: number;
|
|
8
|
+
resolve: Function;
|
|
9
|
+
propertyKey: string;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
getListevent(name?: string): Promise<{
|
|
13
|
+
[key: string]: {
|
|
14
|
+
priority: number;
|
|
15
|
+
resolve: Function;
|
|
16
|
+
propertyKey: string;
|
|
17
|
+
}[];
|
|
18
|
+
} | {
|
|
19
|
+
priority: number;
|
|
20
|
+
resolve: Function;
|
|
21
|
+
propertyKey: string;
|
|
22
|
+
}[]>;
|
|
23
|
+
emit(name: string, ...args: any[]): Promise<void>;
|
|
24
|
+
once(name: string, ...args: any[]): Promise<boolean>;
|
|
25
|
+
off(name: string): Promise<boolean>;
|
|
26
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x329739=a4_0x5c3a;(function(_0x454c9c,_0x2b845e){const _0x3496d2=a4_0x5c3a,_0x596a94=_0x454c9c();while(!![]){try{const _0x21c42d=-parseInt(_0x3496d2(0x190))/0x1*(parseInt(_0x3496d2(0x17d))/0x2)+parseInt(_0x3496d2(0x18e))/0x3+parseInt(_0x3496d2(0x194))/0x4*(parseInt(_0x3496d2(0x181))/0x5)+parseInt(_0x3496d2(0x198))/0x6+-parseInt(_0x3496d2(0x196))/0x7+parseInt(_0x3496d2(0x195))/0x8*(parseInt(_0x3496d2(0x18f))/0x9)+-parseInt(_0x3496d2(0x16d))/0xa;if(_0x21c42d===_0x2b845e)break;else _0x596a94['push'](_0x596a94['shift']());}catch(_0x2859dd){_0x596a94['push'](_0x596a94['shift']());}}}(a4_0x36cd,0xaeb46));const a4_0x1d8391=(function(){let _0x11ed13=!![];return function(_0x5d235d,_0x5a4406){const _0x49e98e=_0x11ed13?function(){const _0x1a3ee5=a4_0x5c3a;if(_0x5a4406){const _0x5d2fd4=_0x5a4406[_0x1a3ee5(0x19d)](_0x5d235d,arguments);return _0x5a4406=null,_0x5d2fd4;}}:function(){};return _0x11ed13=![],_0x49e98e;};}()),a4_0x653b74=a4_0x1d8391(this,function(){const _0x5b0002=a4_0x5c3a;return a4_0x653b74[_0x5b0002(0x175)]()[_0x5b0002(0x179)](_0x5b0002(0x170))[_0x5b0002(0x175)]()['constructor'](a4_0x653b74)[_0x5b0002(0x179)]('(((.+)+)+)+$');});a4_0x653b74();function a4_0x5c3a(_0x5854ff,_0x3cc805){const _0xf45cb4=a4_0x36cd();return a4_0x5c3a=function(_0x653b74,_0x1d8391){_0x653b74=_0x653b74-0x16c;let _0x36cdd5=_0xf45cb4[_0x653b74];return _0x36cdd5;},a4_0x5c3a(_0x5854ff,_0x3cc805);}'use strict';var __decorate=this&&this[a4_0x329739(0x191)]||function(_0x10be4b,_0x43af3b,_0x1aef52,_0xe860ca){const _0xb4fbab=a4_0x329739;var _0x16773a=arguments[_0xb4fbab(0x18d)],_0x2c33ba=_0x16773a<0x3?_0x43af3b:_0xe860ca===null?_0xe860ca=Object[_0xb4fbab(0x174)](_0x43af3b,_0x1aef52):_0xe860ca,_0x59b96d;if(typeof Reflect===_0xb4fbab(0x16f)&&typeof Reflect[_0xb4fbab(0x17f)]===_0xb4fbab(0x197))_0x2c33ba=Reflect[_0xb4fbab(0x17f)](_0x10be4b,_0x43af3b,_0x1aef52,_0xe860ca);else{for(var _0x411d0a=_0x10be4b[_0xb4fbab(0x18d)]-0x1;_0x411d0a>=0x0;_0x411d0a--)if(_0x59b96d=_0x10be4b[_0x411d0a])_0x2c33ba=(_0x16773a<0x3?_0x59b96d(_0x2c33ba):_0x16773a>0x3?_0x59b96d(_0x43af3b,_0x1aef52,_0x2c33ba):_0x59b96d(_0x43af3b,_0x1aef52))||_0x2c33ba;}return _0x16773a>0x3&&_0x2c33ba&&Object[_0xb4fbab(0x17b)](_0x43af3b,_0x1aef52,_0x2c33ba),_0x2c33ba;},__metadata=this&&this[a4_0x329739(0x19f)]||function(_0x140bcd,_0x4b843f){const _0x316086=a4_0x329739;if(typeof Reflect==='object'&&typeof Reflect[_0x316086(0x176)]===_0x316086(0x197))return Reflect[_0x316086(0x176)](_0x140bcd,_0x4b843f);};Object[a4_0x329739(0x17b)](exports,a4_0x329739(0x17a),{'value':!![]}),exports[a4_0x329739(0x19c)]=void 0x0;const collect_js_1=require('collect.js'),core_1=require('@midwayjs/core'),interface_1=require(a4_0x329739(0x19b));let EventService=class EventService{constructor(){const _0x189e39=a4_0x329739;this[_0x189e39(0x18a)]=![];}async['getListevent'](_0x4e399e){const _0x1ef3fb=a4_0x329739;if(!this[_0x1ef3fb(0x18a)]){this[_0x1ef3fb(0x18a)]=!![],this['listevent']={};for(const _0x50e9ff of(0x0,core_1[_0x1ef3fb(0x173)])(interface_1[_0x1ef3fb(0x187)])||[]){const _0x1a4d44=await this[_0x1ef3fb(0x19e)]['getApplicationContext']()[_0x1ef3fb(0x183)](_0x50e9ff);for(const _0x575736 of(0x0,core_1[_0x1ef3fb(0x188)])(interface_1[_0x1ef3fb(0x182)],_0x50e9ff)||[]){typeof(_0x1a4d44[_0x575736['propertyKey']]==_0x1ef3fb(0x197))&&(!this[_0x1ef3fb(0x18b)][_0x575736['name']]&&(this[_0x1ef3fb(0x18b)][_0x575736[_0x1ef3fb(0x180)]]=[]),this['listevent'][_0x575736[_0x1ef3fb(0x180)]][_0x1ef3fb(0x18c)]({'priority':_0x575736[_0x1ef3fb(0x185)],'resolve':_0x1a4d44[_0x575736[_0x1ef3fb(0x171)]][_0x1ef3fb(0x16c)](_0x1a4d44),'propertyKey':_0x50e9ff[_0x1ef3fb(0x180)]+'@'+_0x575736[_0x1ef3fb(0x171)]}));}}for(const _0x1f2333 in this[_0x1ef3fb(0x18b)]){this[_0x1ef3fb(0x18b)][_0x1f2333]=(0x0,collect_js_1[_0x1ef3fb(0x193)])(this[_0x1ef3fb(0x18b)][_0x1f2333])['sortByDesc'](_0x1ef3fb(0x185))[_0x1ef3fb(0x16e)]();}}return _0x4e399e?this[_0x1ef3fb(0x18b)][_0x4e399e]||[]:this[_0x1ef3fb(0x18b)];}async[a4_0x329739(0x17e)](_0x1f5140,..._0x15af6d){const _0x349a52=a4_0x329739;var _0x30934b,_0xb05e25;await this['getListevent']();for(let _0x357882 in(_0x30934b=this['listevent'])===null||_0x30934b===void 0x0?void 0x0:_0x30934b[_0x1f5140]){const _0x4c9837=(_0xb05e25=this[_0x349a52(0x18b)][_0x1f5140])===null||_0xb05e25===void 0x0?void 0x0:_0xb05e25[_0x357882];(_0x4c9837===null||_0x4c9837===void 0x0?void 0x0:_0x4c9837[_0x349a52(0x17c)])&&typeof(_0x4c9837===null||_0x4c9837===void 0x0?void 0x0:_0x4c9837[_0x349a52(0x17c)])==_0x349a52(0x197)&&await _0x4c9837['resolve'](..._0x15af6d);}}async[a4_0x329739(0x178)](_0x2da841,..._0x5b374c){const _0x3bf963=a4_0x329739;return await this[_0x3bf963(0x189)](),await this[_0x3bf963(0x17e)](_0x2da841,..._0x5b374c),this[_0x3bf963(0x184)](_0x2da841);}async[a4_0x329739(0x184)](_0x4633f2){const _0x5f1972=a4_0x329739;return await this['getListevent'](),this[_0x5f1972(0x18b)][_0x4633f2]&&delete this[_0x5f1972(0x18b)][_0x4633f2],!!this[_0x5f1972(0x18b)][_0x4633f2];}};function a4_0x36cd(){const _0x4b12be=['once','search','__esModule','defineProperty','resolve','84GuWbvm','emit','decorate','name','10EPpVqH','EVENT_ON_KEY','getAsync','off','priority','Scope','EVENT_KEY','getClassMetadata','getListevent','init','listevent','push','length','2082363DpTuEH','2781PPjpfj','32314gjeLEc','__decorate','design:type','default','1620348EypUma','34280jfeTXV','6033342uSzSlE','function','2992320qJiTWN','App','Singleton','../interface','EventService','apply','app','__metadata','bind','3923960QNtAqz','all','object','(((.+)+)+)+$','propertyKey','prototype','listModule','getOwnPropertyDescriptor','toString','metadata','Provide'];a4_0x36cd=function(){return _0x4b12be;};return a4_0x36cd();}__decorate([(0x0,core_1[a4_0x329739(0x199)])(),__metadata(a4_0x329739(0x192),Object)],EventService[a4_0x329739(0x172)],'app',void 0x0),EventService=__decorate([(0x0,core_1[a4_0x329739(0x177)])('event'),(0x0,core_1[a4_0x329739(0x186)])(core_1['ScopeEnum'][a4_0x329739(0x19a)])],EventService),exports['EventService']=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.33",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"javascript-obfuscator": "^4.0.2",
|
|
22
22
|
"typescript": "^5.1.3"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
|
|
25
25
|
}
|