@anncic-api/event 3.4.32 → 3.4.34
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_0x344071=a0_0x7c60;function a0_0x5cb3(){var _0x59da34=['__decorate','3637680HLiywT','toString','725chNAIl','object','__metadata','23874nevYCG','732837fngaTa','length','CustomConfiguration','@midwayjs/core','defineProperty','Configuration','20qbJtol','(((.+)+)+)+$','metadata','MidwayConfigService','prototype','decorator','anncic-api:event','search','32saACJw','10245ZHwTwo','Inject','525954lDYuoG','function','design:type','5906376dbgeFO','decorate','12fLKhyj','116JHRgPE','MidwayDecoratorService','3559039XzMnSb'];a0_0x5cb3=function(){return _0x59da34;};return a0_0x5cb3();}(function(_0x1acc1a,_0x5d4ffa){var _0x452840=a0_0x7c60,_0x5d547f=_0x1acc1a();while(!![]){try{var _0x5d73a5=parseInt(_0x452840(0xd5))/0x1*(-parseInt(_0x452840(0xdd))/0x2)+-parseInt(_0x452840(0xd7))/0x3*(-parseInt(_0x452840(0xdc))/0x4)+-parseInt(_0x452840(0xe3))/0x5*(-parseInt(_0x452840(0xe6))/0x6)+parseInt(_0x452840(0xe7))/0x7*(-parseInt(_0x452840(0xd4))/0x8)+parseInt(_0x452840(0xda))/0x9+parseInt(_0x452840(0xed))/0xa*(-parseInt(_0x452840(0xdf))/0xb)+parseInt(_0x452840(0xe1))/0xc;if(_0x5d73a5===_0x5d4ffa)break;else _0x5d547f['push'](_0x5d547f['shift']());}catch(_0x4eec4a){_0x5d547f['push'](_0x5d547f['shift']());}}}(a0_0x5cb3,0x62341));function a0_0x7c60(_0x1fc9bd,_0x51fc39){var _0x1ddc58=a0_0x5cb3();return a0_0x7c60=function(_0x5eb686,_0x24cb19){_0x5eb686=_0x5eb686-0xce;var _0x5cb304=_0x1ddc58[_0x5eb686];return _0x5cb304;},a0_0x7c60(_0x1fc9bd,_0x51fc39);}var a0_0x24cb19=(function(){var _0x3ab9e2=!![];return function(_0x5f48b3,_0xc63a94){var _0x3f836b=_0x3ab9e2?function(){if(_0xc63a94){var _0x20c3d3=_0xc63a94['apply'](_0x5f48b3,arguments);return _0xc63a94=null,_0x20c3d3;}}:function(){};return _0x3ab9e2=![],_0x3f836b;};}()),a0_0x5eb686=a0_0x24cb19(this,function(){var _0x217b6d=a0_0x7c60;return a0_0x5eb686[_0x217b6d(0xe2)]()[_0x217b6d(0xd3)]('(((.+)+)+)+$')[_0x217b6d(0xe2)]()['constructor'](a0_0x5eb686)[_0x217b6d(0xd3)](_0x217b6d(0xee));});a0_0x5eb686();'use strict';var __decorate=this&&this[a0_0x344071(0xe0)]||function(_0x7476ad,_0x3f32dd,_0x3b32ae,_0x81f244){var _0x5d7ea1=a0_0x344071,_0x46d5d3=arguments[_0x5d7ea1(0xe8)],_0x5c9a84=_0x46d5d3<0x3?_0x3f32dd:_0x81f244===null?_0x81f244=Object['getOwnPropertyDescriptor'](_0x3f32dd,_0x3b32ae):_0x81f244,_0x1e1065;if(typeof Reflect===_0x5d7ea1(0xe4)&&typeof Reflect[_0x5d7ea1(0xdb)]==='function')_0x5c9a84=Reflect[_0x5d7ea1(0xdb)](_0x7476ad,_0x3f32dd,_0x3b32ae,_0x81f244);else{for(var _0x376b87=_0x7476ad['length']-0x1;_0x376b87>=0x0;_0x376b87--)if(_0x1e1065=_0x7476ad[_0x376b87])_0x5c9a84=(_0x46d5d3<0x3?_0x1e1065(_0x5c9a84):_0x46d5d3>0x3?_0x1e1065(_0x3f32dd,_0x3b32ae,_0x5c9a84):_0x1e1065(_0x3f32dd,_0x3b32ae))||_0x5c9a84;}return _0x46d5d3>0x3&&_0x5c9a84&&Object[_0x5d7ea1(0xeb)](_0x3f32dd,_0x3b32ae,_0x5c9a84),_0x5c9a84;},__metadata=this&&this[a0_0x344071(0xe5)]||function(_0x417159,_0x1a60fe){var _0x4bb930=a0_0x344071;if(typeof Reflect===_0x4bb930(0xe4)&&typeof Reflect['metadata']===_0x4bb930(0xd8))return Reflect[_0x4bb930(0xce)](_0x417159,_0x1a60fe);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x344071(0xea));let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1[a0_0x344071(0xd6)])(),__metadata('design:type',core_2[a0_0x344071(0xcf)])],CustomConfiguration[a0_0x344071(0xd0)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x344071(0xd6)])(),__metadata(a0_0x344071(0xd9),core_2[a0_0x344071(0xde)])],CustomConfiguration['prototype'],a0_0x344071(0xd1),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x344071(0xec)])({'conflictCheck':![],'namespace':a0_0x344071(0xd2)})],CustomConfiguration),exports[a0_0x344071(0xe9)]=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
|
+
const a1_0x267011=a1_0x2a8e;(function(_0x3fcb3a,_0x322c9d){const _0x49a39e=a1_0x2a8e,_0x29e386=_0x3fcb3a();while(!![]){try{const _0x1bb3e4=-parseInt(_0x49a39e(0x7b))/0x1+parseInt(_0x49a39e(0x8e))/0x2*(parseInt(_0x49a39e(0x84))/0x3)+-parseInt(_0x49a39e(0x8c))/0x4+-parseInt(_0x49a39e(0x8f))/0x5+-parseInt(_0x49a39e(0x82))/0x6*(parseInt(_0x49a39e(0x8a))/0x7)+-parseInt(_0x49a39e(0x83))/0x8+parseInt(_0x49a39e(0x91))/0x9;if(_0x1bb3e4===_0x322c9d)break;else _0x29e386['push'](_0x29e386['shift']());}catch(_0x3d5ec4){_0x29e386['push'](_0x29e386['shift']());}}}(a1_0x172b,0xc1211));function a1_0x2a8e(_0x207c85,_0x2a0355){const _0x30f01f=a1_0x172b();return a1_0x2a8e=function(_0xef7bb,_0x4ee231){_0xef7bb=_0xef7bb-0x7b;let _0x172b9d=_0x30f01f[_0xef7bb];return _0x172b9d;},a1_0x2a8e(_0x207c85,_0x2a0355);}const a1_0x4ee231=(function(){let _0x4973c6=!![];return function(_0x2034e0,_0x3839a2){const _0x43ef89=_0x4973c6?function(){const _0x3e01dd=a1_0x2a8e;if(_0x3839a2){const _0x3eea67=_0x3839a2[_0x3e01dd(0x81)](_0x2034e0,arguments);return _0x3839a2=null,_0x3eea67;}}:function(){};return _0x4973c6=![],_0x43ef89;};}()),a1_0xef7bb=a1_0x4ee231(this,function(){const _0x2bb2d1=a1_0x2a8e;return a1_0xef7bb[_0x2bb2d1(0x92)]()[_0x2bb2d1(0x93)](_0x2bb2d1(0x7d))[_0x2bb2d1(0x92)]()['constructor'](a1_0xef7bb)[_0x2bb2d1(0x93)](_0x2bb2d1(0x7d));});a1_0xef7bb();'use strict';Object[a1_0x267011(0x7f)](exports,a1_0x267011(0x8b),{'value':!![]}),exports['Event']=void 0x0;function a1_0x172b(){const _0x1dd01f=['24HIQYmH','EVENT_ON_KEY','Event','saveModule','Request','attachClassMetadata','7574539nOqrlA','__esModule','887488xSHHOl','../interface','188114wOkkPR','4196445dVQzVW','Provide','41038929mDdTNc','toString','search','1013743KpZPSb','@midwayjs/core','(((.+)+)+)+$','EVENT_KEY','defineProperty','Scope','apply','6gEgADK','10914392QENQIw'];a1_0x172b=function(){return _0x1dd01f;};return a1_0x172b();}const core_1=require(a1_0x267011(0x7c)),interface_1=require(a1_0x267011(0x8d));function Event(){return _0x39ddde=>{const _0x3ec61b=a1_0x2a8e;(0x0,core_1[_0x3ec61b(0x90)])()(_0x39ddde),(0x0,core_1[_0x3ec61b(0x87)])(interface_1[_0x3ec61b(0x7e)],_0x39ddde),(0x0,core_1[_0x3ec61b(0x80)])(core_1['ScopeEnum'][_0x3ec61b(0x88)],{'allowDowngrade':!![]})(_0x39ddde);};}exports[a1_0x267011(0x86)]=Event,Event['On']=function(_0x179a02,_0x2018bd=0x0){return(_0x26cac4,_0x22da7b,_0x2407ed)=>{const _0x267697=a1_0x2a8e;return(0x0,core_1[_0x267697(0x89)])(interface_1[_0x267697(0x85)],{'name':_0x179a02,'priority':_0x2018bd,'propertyKey':_0x22da7b,'descriptor':_0x2407ed},_0x26cac4),_0x2407ed;};};
|
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
|
-
var
|
|
1
|
+
var a2_0x2652b2=a2_0x27d3;(function(_0x2b0888,_0x386196){var _0x1292b8=a2_0x27d3,_0xa36584=_0x2b0888();while(!![]){try{var _0x4e604d=-parseInt(_0x1292b8(0x13a))/0x1*(parseInt(_0x1292b8(0x13e))/0x2)+-parseInt(_0x1292b8(0x139))/0x3+-parseInt(_0x1292b8(0x147))/0x4+parseInt(_0x1292b8(0x13d))/0x5*(parseInt(_0x1292b8(0x13b))/0x6)+parseInt(_0x1292b8(0x136))/0x7+parseInt(_0x1292b8(0x144))/0x8+parseInt(_0x1292b8(0x140))/0x9*(parseInt(_0x1292b8(0x135))/0xa);if(_0x4e604d===_0x386196)break;else _0xa36584['push'](_0xa36584['shift']());}catch(_0x2fc21f){_0xa36584['push'](_0xa36584['shift']());}}}(a2_0x27e1,0x7260f));var a2_0x41690a=(function(){var _0x208ee7=!![];return function(_0x50fa5e,_0x2daa16){var _0x16847a=_0x208ee7?function(){var _0x2622b8=a2_0x27d3;if(_0x2daa16){var _0x2712da=_0x2daa16[_0x2622b8(0x13c)](_0x50fa5e,arguments);return _0x2daa16=null,_0x2712da;}}:function(){};return _0x208ee7=![],_0x16847a;};}()),a2_0x4b9e42=a2_0x41690a(this,function(){var _0x380bc8=a2_0x27d3;return a2_0x4b9e42[_0x380bc8(0x142)]()[_0x380bc8(0x138)](_0x380bc8(0x14a))[_0x380bc8(0x142)]()[_0x380bc8(0x143)](a2_0x4b9e42)[_0x380bc8(0x138)](_0x380bc8(0x14a));});a2_0x4b9e42();function a2_0x27d3(_0x26a835,_0x3bd03e){var _0x8c4100=a2_0x27e1();return a2_0x27d3=function(_0x4b9e42,_0x41690a){_0x4b9e42=_0x4b9e42-0x134;var _0x27e1c2=_0x8c4100[_0x4b9e42];return _0x27e1c2;},a2_0x27d3(_0x26a835,_0x3bd03e);}'use strict';Object[a2_0x2652b2(0x13f)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports[a2_0x2652b2(0x146)]=exports['Event']=void 0x0;var Event_1=require(a2_0x2652b2(0x134));Object[a2_0x2652b2(0x13f)](exports,a2_0x2652b2(0x148),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x2652b2(0x149));Object[a2_0x2652b2(0x13f)](exports,a2_0x2652b2(0x146),{'enumerable':!![],'get':function(){var _0x4a4952=a2_0x2652b2;return EventService_1[_0x4a4952(0x146)];}});var configuration_1=require(a2_0x2652b2(0x137));function a2_0x27e1(){var _0x56864d=['1393572kpxgDv','138938TflPua','1926SyCZis','apply','14150HTHVzx','8Uwaymh','defineProperty','42111QkCNTE','Configuration','toString','constructor','3080808AmiRRn','CustomConfiguration','EventService','2668932IcBjrS','Event','./service/EventService','(((.+)+)+)+$','./decorator/Event','180VkBppq','5447757pLJxTx','./configuration','search'];a2_0x27e1=function(){return _0x56864d;};return a2_0x27e1();}Object['defineProperty'](exports,a2_0x2652b2(0x141),{'enumerable':!![],'get':function(){var _0x25b916=a2_0x2652b2;return configuration_1[_0x25b916(0x145)];}});
|
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
|
-
function
|
|
1
|
+
var a3_0x4b4a49=a3_0x4ad6;function a3_0x2d3c(){var _0x3bf3b5=['44MXFPND','2222920jpBKtD','1062888cuFWoq','EVENT_ON_KEY','__esModule','501866vvBbyz','constructor','(((.+)+)+)+$','apply','toString','anncic-api:event:on','292653mKfuRT','EVENT_KEY','7773388BzESIk','23968456FKLJtI','4097256iTrvQX','defineProperty','search','anncic-api:event'];a3_0x2d3c=function(){return _0x3bf3b5;};return a3_0x2d3c();}(function(_0x1d224f,_0xecfd26){var _0x36b499=a3_0x4ad6,_0x32a3ca=_0x1d224f();while(!![]){try{var _0x498af1=-parseInt(_0x36b499(0x18c))/0x1+parseInt(_0x36b499(0x189))/0x2+-parseInt(_0x36b499(0x192))/0x3*(parseInt(_0x36b499(0x187))/0x4)+parseInt(_0x36b499(0x188))/0x5+-parseInt(_0x36b499(0x196))/0x6+-parseInt(_0x36b499(0x194))/0x7+parseInt(_0x36b499(0x195))/0x8;if(_0x498af1===_0xecfd26)break;else _0x32a3ca['push'](_0x32a3ca['shift']());}catch(_0x520f06){_0x32a3ca['push'](_0x32a3ca['shift']());}}}(a3_0x2d3c,0x93696));var a3_0x2f6b5c=(function(){var _0x538f85=!![];return function(_0x486bde,_0x544591){var _0x55b503=_0x538f85?function(){var _0x408773=a3_0x4ad6;if(_0x544591){var _0x4aa9ba=_0x544591[_0x408773(0x18f)](_0x486bde,arguments);return _0x544591=null,_0x4aa9ba;}}:function(){};return _0x538f85=![],_0x55b503;};}()),a3_0x5a6791=a3_0x2f6b5c(this,function(){var _0x1b9e07=a3_0x4ad6;return a3_0x5a6791[_0x1b9e07(0x190)]()[_0x1b9e07(0x185)](_0x1b9e07(0x18e))[_0x1b9e07(0x190)]()[_0x1b9e07(0x18d)](a3_0x5a6791)[_0x1b9e07(0x185)](_0x1b9e07(0x18e));});function a3_0x4ad6(_0x39a868,_0x202d0d){var _0x1f7ff9=a3_0x2d3c();return a3_0x4ad6=function(_0x5a6791,_0x2f6b5c){_0x5a6791=_0x5a6791-0x184;var _0x2d3c72=_0x1f7ff9[_0x5a6791];return _0x2d3c72;},a3_0x4ad6(_0x39a868,_0x202d0d);}a3_0x5a6791();'use strict';Object[a3_0x4b4a49(0x184)](exports,a3_0x4b4a49(0x18b),{'value':!![]}),exports['EVENT_ON_KEY']=exports['EVENT_KEY']=void 0x0,exports[a3_0x4b4a49(0x193)]=a3_0x4b4a49(0x186),exports[a3_0x4b4a49(0x18a)]=a3_0x4b4a49(0x191);
|
|
@@ -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
|
-
const
|
|
1
|
+
function a4_0x46ba(){const _0xacb75d=['object','listevent','getClassMetadata','init','__esModule','getApplicationContext','__metadata','collect.js','1152739uLgpWy','propertyKey','search','7987856rtwPpV','387310mzNMmg','getOwnPropertyDescriptor','getListevent','477969basxEv','defineProperty','6872013OMVGFC','64HXrZcx','ScopeEnum','285auCHZT','getAsync','EVENT_KEY','EventService','908coAEbf','default','listModule','event','6KdfhHV','resolve','name','function','8414670dHwsJa','priority','off','all','__decorate','toString','bind','EVENT_ON_KEY','decorate','length','Scope','app','Singleton','emit','metadata'];a4_0x46ba=function(){return _0xacb75d;};return a4_0x46ba();}const a4_0x523c57=a4_0x3087;(function(_0x478157,_0x11f1a1){const _0x43b846=a4_0x3087,_0x355708=_0x478157();while(!![]){try{const _0x5a68f2=-parseInt(_0x43b846(0xec))/0x1+-parseInt(_0x43b846(0xf5))/0x2*(parseInt(_0x43b846(0xf1))/0x3)+-parseInt(_0x43b846(0xef))/0x4*(parseInt(_0x43b846(0xe9))/0x5)+-parseInt(_0x43b846(0xca))/0x6*(parseInt(_0x43b846(0xe5))/0x7)+parseInt(_0x43b846(0xe8))/0x8+parseInt(_0x43b846(0xee))/0x9+parseInt(_0x43b846(0xce))/0xa;if(_0x5a68f2===_0x11f1a1)break;else _0x355708['push'](_0x355708['shift']());}catch(_0x5e121c){_0x355708['push'](_0x355708['shift']());}}}(a4_0x46ba,0xa59c2));function a4_0x3087(_0x455528,_0x467db0){const _0x5b5d59=a4_0x46ba();return a4_0x3087=function(_0xc16bd8,_0x3fccb1){_0xc16bd8=_0xc16bd8-0xc9;let _0x46ba8c=_0x5b5d59[_0xc16bd8];return _0x46ba8c;},a4_0x3087(_0x455528,_0x467db0);}const a4_0x3fccb1=(function(){let _0x4993e8=!![];return function(_0x3113fa,_0x3c6cf3){const _0x16d79e=_0x4993e8?function(){if(_0x3c6cf3){const _0x39912b=_0x3c6cf3['apply'](_0x3113fa,arguments);return _0x3c6cf3=null,_0x39912b;}}:function(){};return _0x4993e8=![],_0x16d79e;};}()),a4_0xc16bd8=a4_0x3fccb1(this,function(){const _0x493e48=a4_0x3087;return a4_0xc16bd8[_0x493e48(0xd3)]()[_0x493e48(0xe7)]('(((.+)+)+)+$')[_0x493e48(0xd3)]()['constructor'](a4_0xc16bd8)['search']('(((.+)+)+)+$');});a4_0xc16bd8();'use strict';var __decorate=this&&this[a4_0x523c57(0xd2)]||function(_0x32e62f,_0x3854c8,_0x45e302,_0x408e69){const _0x4c93fb=a4_0x523c57;var _0x247e95=arguments[_0x4c93fb(0xd7)],_0x1cbf9f=_0x247e95<0x3?_0x3854c8:_0x408e69===null?_0x408e69=Object[_0x4c93fb(0xea)](_0x3854c8,_0x45e302):_0x408e69,_0x47a59f;if(typeof Reflect===_0x4c93fb(0xdd)&&typeof Reflect[_0x4c93fb(0xd6)]==='function')_0x1cbf9f=Reflect[_0x4c93fb(0xd6)](_0x32e62f,_0x3854c8,_0x45e302,_0x408e69);else{for(var _0x4942c3=_0x32e62f[_0x4c93fb(0xd7)]-0x1;_0x4942c3>=0x0;_0x4942c3--)if(_0x47a59f=_0x32e62f[_0x4942c3])_0x1cbf9f=(_0x247e95<0x3?_0x47a59f(_0x1cbf9f):_0x247e95>0x3?_0x47a59f(_0x3854c8,_0x45e302,_0x1cbf9f):_0x47a59f(_0x3854c8,_0x45e302))||_0x1cbf9f;}return _0x247e95>0x3&&_0x1cbf9f&&Object['defineProperty'](_0x3854c8,_0x45e302,_0x1cbf9f),_0x1cbf9f;},__metadata=this&&this[a4_0x523c57(0xe3)]||function(_0x5da0ec,_0x155237){const _0xb825eb=a4_0x523c57;if(typeof Reflect===_0xb825eb(0xdd)&&typeof Reflect[_0xb825eb(0xdc)]==='function')return Reflect[_0xb825eb(0xdc)](_0x5da0ec,_0x155237);};Object[a4_0x523c57(0xed)](exports,a4_0x523c57(0xe1),{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require(a4_0x523c57(0xe4)),core_1=require('@midwayjs/core'),interface_1=require('../interface');let EventService=class EventService{constructor(){const _0x506785=a4_0x523c57;this[_0x506785(0xe0)]=![];}async['getListevent'](_0x1f5d43){const _0x1bd8a9=a4_0x523c57;if(!this['init']){this[_0x1bd8a9(0xe0)]=!![],this[_0x1bd8a9(0xde)]={};for(const _0xa688a4 of(0x0,core_1[_0x1bd8a9(0xf7)])(interface_1[_0x1bd8a9(0xf3)])||[]){const _0x5ecc6b=await this[_0x1bd8a9(0xd9)][_0x1bd8a9(0xe2)]()[_0x1bd8a9(0xf2)](_0xa688a4);for(const _0x2209ec of(0x0,core_1[_0x1bd8a9(0xdf)])(interface_1[_0x1bd8a9(0xd5)],_0xa688a4)||[]){typeof(_0x5ecc6b[_0x2209ec[_0x1bd8a9(0xe6)]]==_0x1bd8a9(0xcd))&&(!this['listevent'][_0x2209ec[_0x1bd8a9(0xcc)]]&&(this['listevent'][_0x2209ec[_0x1bd8a9(0xcc)]]=[]),this[_0x1bd8a9(0xde)][_0x2209ec[_0x1bd8a9(0xcc)]]['push']({'priority':_0x2209ec[_0x1bd8a9(0xcf)],'resolve':_0x5ecc6b[_0x2209ec['propertyKey']][_0x1bd8a9(0xd4)](_0x5ecc6b),'propertyKey':_0xa688a4[_0x1bd8a9(0xcc)]+'@'+_0x2209ec[_0x1bd8a9(0xe6)]}));}}for(const _0x4f2c8a in this['listevent']){this[_0x1bd8a9(0xde)][_0x4f2c8a]=(0x0,collect_js_1[_0x1bd8a9(0xf6)])(this[_0x1bd8a9(0xde)][_0x4f2c8a])['sortByDesc'](_0x1bd8a9(0xcf))[_0x1bd8a9(0xd1)]();}}return _0x1f5d43?this[_0x1bd8a9(0xde)][_0x1f5d43]||[]:this[_0x1bd8a9(0xde)];}async[a4_0x523c57(0xdb)](_0x19b1c3,..._0x102d7e){const _0x2b448b=a4_0x523c57;var _0x1ddb70,_0x15fa61;await this[_0x2b448b(0xeb)]();for(let _0x4129df in(_0x1ddb70=this[_0x2b448b(0xde)])===null||_0x1ddb70===void 0x0?void 0x0:_0x1ddb70[_0x19b1c3]){const _0x27ddc3=(_0x15fa61=this[_0x2b448b(0xde)][_0x19b1c3])===null||_0x15fa61===void 0x0?void 0x0:_0x15fa61[_0x4129df];(_0x27ddc3===null||_0x27ddc3===void 0x0?void 0x0:_0x27ddc3[_0x2b448b(0xcb)])&&typeof(_0x27ddc3===null||_0x27ddc3===void 0x0?void 0x0:_0x27ddc3[_0x2b448b(0xcb)])==_0x2b448b(0xcd)&&await _0x27ddc3['resolve'](..._0x102d7e);}}async['once'](_0x206711,..._0x4a0aed){const _0xcb782f=a4_0x523c57;return await this[_0xcb782f(0xeb)](),await this[_0xcb782f(0xdb)](_0x206711,..._0x4a0aed),this['off'](_0x206711);}async[a4_0x523c57(0xd0)](_0x40bfc6){const _0x494aa7=a4_0x523c57;return await this[_0x494aa7(0xeb)](),this[_0x494aa7(0xde)][_0x40bfc6]&&delete this[_0x494aa7(0xde)][_0x40bfc6],!!this[_0x494aa7(0xde)][_0x40bfc6];}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],EventService['prototype'],a4_0x523c57(0xd9),void 0x0),EventService=__decorate([(0x0,core_1['Provide'])(a4_0x523c57(0xc9)),(0x0,core_1[a4_0x523c57(0xd8)])(core_1[a4_0x523c57(0xf0)][a4_0x523c57(0xda)])],EventService),exports[a4_0x523c57(0xf4)]=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.34",
|
|
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": "ee5d6108f5470a0eac75bcbc1fde8f24de4e68be"
|
|
25
25
|
}
|