@anncic-api/event 3.4.37 → 3.4.39
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 +4 -4
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
|
-
|
|
1
|
+
var a0_0x28fd1e=a0_0x1c47;(function(_0xc7bdb8,_0x35da4d){var _0x1a430d=a0_0x1c47,_0x34529f=_0xc7bdb8();while(!![]){try{var _0x21214d=parseInt(_0x1a430d(0xac))/0x1+parseInt(_0x1a430d(0xb3))/0x2*(-parseInt(_0x1a430d(0xc0))/0x3)+-parseInt(_0x1a430d(0xbd))/0x4+parseInt(_0x1a430d(0xb5))/0x5*(parseInt(_0x1a430d(0xba))/0x6)+parseInt(_0x1a430d(0xc5))/0x7+-parseInt(_0x1a430d(0xad))/0x8+parseInt(_0x1a430d(0xbe))/0x9;if(_0x21214d===_0x35da4d)break;else _0x34529f['push'](_0x34529f['shift']());}catch(_0x579767){_0x34529f['push'](_0x34529f['shift']());}}}(a0_0x1dec,0x87f77));function a0_0x1dec(){var _0xedbcdb=['apply','function','MidwayDecoratorService','config','defineProperty','6YnKjsE','anncic-api:event','35NNmCXQ','decorate','toString','constructor','MidwayConfigService','585138QFoGQJ','object','search','597480LwlxAK','6312870GiZSkS','decorator','1101999WQHuci','length','__esModule','prototype','getOwnPropertyDescriptor','2618553IXJmqo','Inject','design:type','(((.+)+)+)+$','metadata','CustomConfiguration','@midwayjs/core','113535sgEmbw','507336VOwLyt'];a0_0x1dec=function(){return _0xedbcdb;};return a0_0x1dec();}var a0_0x219fab=(function(){var _0x34ece9=!![];return function(_0x4979dc,_0x2888f0){var _0x388734=_0x34ece9?function(){var _0x14b268=a0_0x1c47;if(_0x2888f0){var _0x40d8a6=_0x2888f0[_0x14b268(0xae)](_0x4979dc,arguments);return _0x2888f0=null,_0x40d8a6;}}:function(){};return _0x34ece9=![],_0x388734;};}()),a0_0x42a728=a0_0x219fab(this,function(){var _0x3f2729=a0_0x1c47;return a0_0x42a728[_0x3f2729(0xb7)]()[_0x3f2729(0xbc)](_0x3f2729(0xc8))[_0x3f2729(0xb7)]()[_0x3f2729(0xb8)](a0_0x42a728)[_0x3f2729(0xbc)](_0x3f2729(0xc8));});a0_0x42a728();'use strict';var __decorate=this&&this['__decorate']||function(_0x37b11c,_0x54d905,_0x57d4f4,_0x48f623){var _0x471b58=a0_0x1c47,_0x35b8d7=arguments[_0x471b58(0xc1)],_0x40c0ea=_0x35b8d7<0x3?_0x54d905:_0x48f623===null?_0x48f623=Object[_0x471b58(0xc4)](_0x54d905,_0x57d4f4):_0x48f623,_0x3c04fd;if(typeof Reflect===_0x471b58(0xbb)&&typeof Reflect[_0x471b58(0xb6)]===_0x471b58(0xaf))_0x40c0ea=Reflect[_0x471b58(0xb6)](_0x37b11c,_0x54d905,_0x57d4f4,_0x48f623);else{for(var _0x1bdd38=_0x37b11c[_0x471b58(0xc1)]-0x1;_0x1bdd38>=0x0;_0x1bdd38--)if(_0x3c04fd=_0x37b11c[_0x1bdd38])_0x40c0ea=(_0x35b8d7<0x3?_0x3c04fd(_0x40c0ea):_0x35b8d7>0x3?_0x3c04fd(_0x54d905,_0x57d4f4,_0x40c0ea):_0x3c04fd(_0x54d905,_0x57d4f4))||_0x40c0ea;}return _0x35b8d7>0x3&&_0x40c0ea&&Object[_0x471b58(0xb2)](_0x54d905,_0x57d4f4,_0x40c0ea),_0x40c0ea;},__metadata=this&&this['__metadata']||function(_0x54af9c,_0x287d8a){var _0x4fc2f8=a0_0x1c47;if(typeof Reflect===_0x4fc2f8(0xbb)&&typeof Reflect['metadata']==='function')return Reflect[_0x4fc2f8(0xc9)](_0x54af9c,_0x287d8a);};function a0_0x1c47(_0x46c6c9,_0x201267){var _0x254d6d=a0_0x1dec();return a0_0x1c47=function(_0x42a728,_0x219fab){_0x42a728=_0x42a728-0xaa;var _0x1decfc=_0x254d6d[_0x42a728];return _0x1decfc;},a0_0x1c47(_0x46c6c9,_0x201267);}Object[a0_0x28fd1e(0xb2)](exports,a0_0x28fd1e(0xc2),{'value':!![]}),exports[a0_0x28fd1e(0xaa)]=void 0x0;const core_1=require(a0_0x28fd1e(0xab)),core_2=require('@midwayjs/core');let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};exports[a0_0x28fd1e(0xaa)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x28fd1e(0xc6)])(),__metadata(a0_0x28fd1e(0xc7),core_2[a0_0x28fd1e(0xb9)])],CustomConfiguration[a0_0x28fd1e(0xc3)],a0_0x28fd1e(0xb1),void 0x0),__decorate([(0x0,core_1[a0_0x28fd1e(0xc6)])(),__metadata(a0_0x28fd1e(0xc7),core_2[a0_0x28fd1e(0xb0)])],CustomConfiguration[a0_0x28fd1e(0xc3)],a0_0x28fd1e(0xbf),void 0x0),exports[a0_0x28fd1e(0xaa)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a0_0x28fd1e(0xb4)})],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_0x253a94=a1_0x53c7;(function(_0x195b2c,_0x32e568){const _0x48a2db=a1_0x53c7,_0x57bdb1=_0x195b2c();while(!![]){try{const _0x2506da=-parseInt(_0x48a2db(0x138))/0x1*(parseInt(_0x48a2db(0x14a))/0x2)+-parseInt(_0x48a2db(0x144))/0x3*(-parseInt(_0x48a2db(0x139))/0x4)+parseInt(_0x48a2db(0x13b))/0x5+-parseInt(_0x48a2db(0x143))/0x6+parseInt(_0x48a2db(0x140))/0x7+parseInt(_0x48a2db(0x13d))/0x8+-parseInt(_0x48a2db(0x13e))/0x9;if(_0x2506da===_0x32e568)break;else _0x57bdb1['push'](_0x57bdb1['shift']());}catch(_0x15091f){_0x57bdb1['push'](_0x57bdb1['shift']());}}}(a1_0x9bbf,0x458a1));function a1_0x9bbf(){const _0x2fe52b=['EVENT_ON_KEY','2920242cRXOht','5160adqdQn','constructor','EVENT_KEY','ScopeEnum','../interface','Event','1952RQxlbi','__esModule','attachClassMetadata','search','toString','saveModule','523SwrFGX','428zAxudX','(((.+)+)+)+$','1894960ziBVQG','apply','4247456SERKsS','2760777cVWjSd','@midwayjs/core','3463439fxpSlq','Provide'];a1_0x9bbf=function(){return _0x2fe52b;};return a1_0x9bbf();}const a1_0x1d0e31=(function(){let _0x1b1311=!![];return function(_0x57f63f,_0x178f17){const _0xfba8dd=_0x1b1311?function(){const _0x239b2e=a1_0x53c7;if(_0x178f17){const _0x2b0578=_0x178f17[_0x239b2e(0x13c)](_0x57f63f,arguments);return _0x178f17=null,_0x2b0578;}}:function(){};return _0x1b1311=![],_0xfba8dd;};}()),a1_0x2e5e89=a1_0x1d0e31(this,function(){const _0x1965e0=a1_0x53c7;return a1_0x2e5e89[_0x1965e0(0x14e)]()[_0x1965e0(0x14d)](_0x1965e0(0x13a))['toString']()[_0x1965e0(0x145)](a1_0x2e5e89)['search']('(((.+)+)+)+$');});a1_0x2e5e89();function a1_0x53c7(_0x2dfc66,_0x7145a3){const _0x5b9902=a1_0x9bbf();return a1_0x53c7=function(_0x2e5e89,_0x1d0e31){_0x2e5e89=_0x2e5e89-0x137;let _0x9bbfec=_0x5b9902[_0x2e5e89];return _0x9bbfec;},a1_0x53c7(_0x2dfc66,_0x7145a3);}'use strict';Object['defineProperty'](exports,a1_0x253a94(0x14b),{'value':!![]}),exports[a1_0x253a94(0x149)]=Event;const core_1=require(a1_0x253a94(0x13f)),interface_1=require(a1_0x253a94(0x148));function Event(){return _0x31ad28=>{const _0xc3993f=a1_0x53c7;(0x0,core_1[_0xc3993f(0x141)])()(_0x31ad28),(0x0,core_1[_0xc3993f(0x137)])(interface_1[_0xc3993f(0x146)],_0x31ad28),(0x0,core_1['Scope'])(core_1[_0xc3993f(0x147)]['Request'],{'allowDowngrade':!![]})(_0x31ad28);};}Event['On']=function(_0x2ff8d9,_0x8861d1=0x0){return(_0x54de95,_0x48557c,_0x410cad)=>{const _0x39fe55=a1_0x53c7;return(0x0,core_1[_0x39fe55(0x14c)])(interface_1[_0x39fe55(0x142)],{'name':_0x2ff8d9,'priority':_0x8861d1,'propertyKey':_0x48557c,'descriptor':_0x410cad},_0x54de95),_0x410cad;};};
|
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_0x4fda6a=a2_0x4460;(function(_0x217a07,_0x3dd49c){var _0x812b3c=a2_0x4460,_0x7773e=_0x217a07();while(!![]){try{var _0x130110=-parseInt(_0x812b3c(0xb9))/0x1*(parseInt(_0x812b3c(0xbd))/0x2)+parseInt(_0x812b3c(0xbb))/0x3+-parseInt(_0x812b3c(0xca))/0x4*(-parseInt(_0x812b3c(0xc0))/0x5)+-parseInt(_0x812b3c(0xbc))/0x6*(parseInt(_0x812b3c(0xcd))/0x7)+parseInt(_0x812b3c(0xc3))/0x8*(parseInt(_0x812b3c(0xc7))/0x9)+-parseInt(_0x812b3c(0xb7))/0xa*(parseInt(_0x812b3c(0xc4))/0xb)+parseInt(_0x812b3c(0xbe))/0xc;if(_0x130110===_0x3dd49c)break;else _0x7773e['push'](_0x7773e['shift']());}catch(_0x663925){_0x7773e['push'](_0x7773e['shift']());}}}(a2_0x54bb,0x3c894));var a2_0x57f7e5=(function(){var _0x40f11f=!![];return function(_0x1f45b4,_0x17d2dc){var _0x1a9b3c=_0x40f11f?function(){if(_0x17d2dc){var _0x451d96=_0x17d2dc['apply'](_0x1f45b4,arguments);return _0x17d2dc=null,_0x451d96;}}:function(){};return _0x40f11f=![],_0x1a9b3c;};}()),a2_0xc27141=a2_0x57f7e5(this,function(){var _0x57f038=a2_0x4460;return a2_0xc27141['toString']()[_0x57f038(0xcc)](_0x57f038(0xb8))[_0x57f038(0xcb)]()[_0x57f038(0xba)](a2_0xc27141)[_0x57f038(0xcc)]('(((.+)+)+)+$');});a2_0xc27141();'use strict';Object[a2_0x4fda6a(0xc5)](exports,a2_0x4fda6a(0xc2),{'value':!![]}),exports['Configuration']=exports[a2_0x4fda6a(0xbf)]=exports['Event']=void 0x0;function a2_0x4460(_0x2e528c,_0x14d283){var _0x26621d=a2_0x54bb();return a2_0x4460=function(_0xc27141,_0x57f7e5){_0xc27141=_0xc27141-0xb6;var _0x54bb2f=_0x26621d[_0xc27141];return _0x54bb2f;},a2_0x4460(_0x2e528c,_0x14d283);}var Event_1=require(a2_0x4fda6a(0xc8));Object[a2_0x4fda6a(0xc5)](exports,a2_0x4fda6a(0xc1),{'enumerable':!![],'get':function(){var _0x7ccee5=a2_0x4fda6a;return Event_1[_0x7ccee5(0xc1)];}});var EventService_1=require(a2_0x4fda6a(0xb6));Object[a2_0x4fda6a(0xc5)](exports,a2_0x4fda6a(0xbf),{'enumerable':!![],'get':function(){var _0x363084=a2_0x4fda6a;return EventService_1[_0x363084(0xbf)];}});function a2_0x54bb(){var _0x5afede=['747688cjitNf','22MmjjBW','defineProperty','./configuration','18vYlkpC','./decorator/Event','CustomConfiguration','89084ZabzDV','toString','search','7DfYRze','./service/EventService','1159590rKwzWQ','(((.+)+)+)+$','57920tOBnqQ','constructor','1211598FVarzH','2654178MNFQRC','6rxDtOG','3657240wZWZIH','EventService','45XdKASh','Event','__esModule'];a2_0x54bb=function(){return _0x5afede;};return a2_0x54bb();}var configuration_1=require(a2_0x4fda6a(0xc6));Object[a2_0x4fda6a(0xc5)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x393e51=a2_0x4fda6a;return configuration_1[_0x393e51(0xc9)];}});
|
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_0x3d9153=a3_0x433e;(function(_0x338ac3,_0x51386e){var _0x221c5e=a3_0x433e,_0x235220=_0x338ac3();while(!![]){try{var _0x3b884f=parseInt(_0x221c5e(0x81))/0x1+parseInt(_0x221c5e(0x77))/0x2+-parseInt(_0x221c5e(0x74))/0x3*(parseInt(_0x221c5e(0x7b))/0x4)+parseInt(_0x221c5e(0x83))/0x5+parseInt(_0x221c5e(0x79))/0x6+-parseInt(_0x221c5e(0x7d))/0x7+-parseInt(_0x221c5e(0x7f))/0x8;if(_0x3b884f===_0x51386e)break;else _0x235220['push'](_0x235220['shift']());}catch(_0x2e47ac){_0x235220['push'](_0x235220['shift']());}}}(a3_0x4055,0x217dc));var a3_0x34cc90=(function(){var _0x1e3582=!![];return function(_0x1ad052,_0x1d7818){var _0x5202f7=_0x1e3582?function(){var _0x542c4c=a3_0x433e;if(_0x1d7818){var _0x13173d=_0x1d7818[_0x542c4c(0x78)](_0x1ad052,arguments);return _0x1d7818=null,_0x13173d;}}:function(){};return _0x1e3582=![],_0x5202f7;};}()),a3_0x5adc35=a3_0x34cc90(this,function(){var _0x1b97c8=a3_0x433e;return a3_0x5adc35[_0x1b97c8(0x7e)]()[_0x1b97c8(0x7a)](_0x1b97c8(0x7c))['toString']()[_0x1b97c8(0x80)](a3_0x5adc35)[_0x1b97c8(0x7a)](_0x1b97c8(0x7c));});a3_0x5adc35();'use strict';function a3_0x433e(_0x2f6e2c,_0x549a57){var _0x389608=a3_0x4055();return a3_0x433e=function(_0x5adc35,_0x34cc90){_0x5adc35=_0x5adc35-0x74;var _0x4055e4=_0x389608[_0x5adc35];return _0x4055e4;},a3_0x433e(_0x2f6e2c,_0x549a57);}Object['defineProperty'](exports,a3_0x3d9153(0x84),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x3d9153(0x82)]=void 0x0,exports['EVENT_KEY']=a3_0x3d9153(0x76),exports['EVENT_ON_KEY']=a3_0x3d9153(0x75);function a3_0x4055(){var _0x12d2a6=['886415RDuBDU','__esModule','3OHwliy','anncic-api:event:on','anncic-api:event','214902LIGrzu','apply','721266PlPJjB','search','838388wopnol','(((.+)+)+)+$','943243yJeFSb','toString','1084536gBjdQv','constructor','212148usPAsk','EVENT_KEY'];a3_0x4055=function(){return _0x12d2a6;};return a3_0x4055();}
|
|
@@ -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
|
+
const a4_0x2aedef=a4_0x5d86;(function(_0x2ca735,_0x594a27){const _0x3e937f=a4_0x5d86,_0x14447c=_0x2ca735();while(!![]){try{const _0x4bb0e8=parseInt(_0x3e937f(0xe9))/0x1+-parseInt(_0x3e937f(0xdf))/0x2*(parseInt(_0x3e937f(0xc2))/0x3)+parseInt(_0x3e937f(0xb5))/0x4*(-parseInt(_0x3e937f(0xea))/0x5)+-parseInt(_0x3e937f(0xd7))/0x6+parseInt(_0x3e937f(0xca))/0x7*(parseInt(_0x3e937f(0xcc))/0x8)+-parseInt(_0x3e937f(0xd8))/0x9+-parseInt(_0x3e937f(0xd0))/0xa*(-parseInt(_0x3e937f(0xcf))/0xb);if(_0x4bb0e8===_0x594a27)break;else _0x14447c['push'](_0x14447c['shift']());}catch(_0x21cd3e){_0x14447c['push'](_0x14447c['shift']());}}}(a4_0x9db2,0x6dec5));const a4_0x3e353e=(function(){let _0x58ba46=!![];return function(_0x3ce1be,_0x5f0d60){const _0x3ed9ae=_0x58ba46?function(){const _0x2dd53e=a4_0x5d86;if(_0x5f0d60){const _0x3b4ac5=_0x5f0d60[_0x2dd53e(0xc4)](_0x3ce1be,arguments);return _0x5f0d60=null,_0x3b4ac5;}}:function(){};return _0x58ba46=![],_0x3ed9ae;};}()),a4_0x43eb48=a4_0x3e353e(this,function(){const _0x2fe87b=a4_0x5d86;return a4_0x43eb48[_0x2fe87b(0xb8)]()[_0x2fe87b(0xda)](_0x2fe87b(0xcd))[_0x2fe87b(0xb8)]()[_0x2fe87b(0xb7)](a4_0x43eb48)[_0x2fe87b(0xda)](_0x2fe87b(0xcd));});a4_0x43eb48();'use strict';function a4_0x5d86(_0x469476,_0x26ce3b){const _0x28b802=a4_0x9db2();return a4_0x5d86=function(_0x43eb48,_0x3e353e){_0x43eb48=_0x43eb48-0xb5;let _0x9db25a=_0x28b802[_0x43eb48];return _0x9db25a;},a4_0x5d86(_0x469476,_0x26ce3b);}var __decorate=this&&this[a4_0x2aedef(0xc7)]||function(_0x2c4830,_0x3ac4bd,_0x4d541e,_0x33df6b){const _0x3fb7ce=a4_0x2aedef;var _0x4557ef=arguments['length'],_0x401a13=_0x4557ef<0x3?_0x3ac4bd:_0x33df6b===null?_0x33df6b=Object[_0x3fb7ce(0xd4)](_0x3ac4bd,_0x4d541e):_0x33df6b,_0x2480e5;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3fb7ce(0xc3))_0x401a13=Reflect[_0x3fb7ce(0xd5)](_0x2c4830,_0x3ac4bd,_0x4d541e,_0x33df6b);else{for(var _0x5541a3=_0x2c4830[_0x3fb7ce(0xb9)]-0x1;_0x5541a3>=0x0;_0x5541a3--)if(_0x2480e5=_0x2c4830[_0x5541a3])_0x401a13=(_0x4557ef<0x3?_0x2480e5(_0x401a13):_0x4557ef>0x3?_0x2480e5(_0x3ac4bd,_0x4d541e,_0x401a13):_0x2480e5(_0x3ac4bd,_0x4d541e))||_0x401a13;}return _0x4557ef>0x3&&_0x401a13&&Object[_0x3fb7ce(0xe1)](_0x3ac4bd,_0x4d541e,_0x401a13),_0x401a13;},__metadata=this&&this[a4_0x2aedef(0xde)]||function(_0x530d2c,_0xfb4472){const _0x1d890e=a4_0x2aedef;if(typeof Reflect===_0x1d890e(0xd6)&&typeof Reflect[_0x1d890e(0xd3)]===_0x1d890e(0xc3))return Reflect[_0x1d890e(0xd3)](_0x530d2c,_0xfb4472);};Object[a4_0x2aedef(0xe1)](exports,a4_0x2aedef(0xbc),{'value':!![]}),exports[a4_0x2aedef(0xba)]=void 0x0;const collect_js_1=require(a4_0x2aedef(0xeb)),core_1=require('@midwayjs/core'),interface_1=require(a4_0x2aedef(0xc0));let EventService=class EventService{constructor(){const _0x195684=a4_0x2aedef;this[_0x195684(0xd2)]=![];}async['getListevent'](_0x1289de){const _0x1206ed=a4_0x2aedef;if(!this[_0x1206ed(0xd2)]){this[_0x1206ed(0xd2)]=!![],this[_0x1206ed(0xb6)]={};for(const _0x1ee282 of(0x0,core_1[_0x1206ed(0xc1)])(interface_1[_0x1206ed(0xe5)])||[]){const _0x12df8f=await this[_0x1206ed(0xbe)][_0x1206ed(0xc6)]()[_0x1206ed(0xe0)](_0x1ee282);for(const _0x21c3f8 of(0x0,core_1['getClassMetadata'])(interface_1[_0x1206ed(0xbb)],_0x1ee282)||[]){typeof(_0x12df8f[_0x21c3f8[_0x1206ed(0xe8)]]=='function')&&(!this[_0x1206ed(0xb6)][_0x21c3f8[_0x1206ed(0xc5)]]&&(this[_0x1206ed(0xb6)][_0x21c3f8[_0x1206ed(0xc5)]]=[]),this[_0x1206ed(0xb6)][_0x21c3f8[_0x1206ed(0xc5)]][_0x1206ed(0xdb)]({'priority':_0x21c3f8[_0x1206ed(0xe6)],'resolve':_0x12df8f[_0x21c3f8[_0x1206ed(0xe8)]]['bind'](_0x12df8f),'propertyKey':_0x1ee282['name']+'@'+_0x21c3f8[_0x1206ed(0xe8)]}));}}for(const _0x33acdf in this['listevent']){this[_0x1206ed(0xb6)][_0x33acdf]=(0x0,collect_js_1[_0x1206ed(0xe4)])(this[_0x1206ed(0xb6)][_0x33acdf])[_0x1206ed(0xbd)](_0x1206ed(0xe6))[_0x1206ed(0xc8)]();}}return _0x1289de?this['listevent'][_0x1289de]||[]:this['listevent'];}async['emit'](_0x36daa8,..._0x586c80){const _0xe5b25a=a4_0x2aedef;var _0x1080ca,_0x542624;await this[_0xe5b25a(0xce)]();for(let _0x48be56 in(_0x1080ca=this[_0xe5b25a(0xb6)])===null||_0x1080ca===void 0x0?void 0x0:_0x1080ca[_0x36daa8]){const _0x19de1b=(_0x542624=this[_0xe5b25a(0xb6)][_0x36daa8])===null||_0x542624===void 0x0?void 0x0:_0x542624[_0x48be56];(_0x19de1b===null||_0x19de1b===void 0x0?void 0x0:_0x19de1b[_0xe5b25a(0xe7)])&&typeof(_0x19de1b===null||_0x19de1b===void 0x0?void 0x0:_0x19de1b[_0xe5b25a(0xe7)])=='function'&&await _0x19de1b[_0xe5b25a(0xe7)](..._0x586c80);}}async[a4_0x2aedef(0xc9)](_0x4048ad,..._0x6074ca){const _0x31b283=a4_0x2aedef;return await this['getListevent'](),await this[_0x31b283(0xd1)](_0x4048ad,..._0x6074ca),this['off'](_0x4048ad);}async[a4_0x2aedef(0xbf)](_0x4104a4){const _0x3b32d9=a4_0x2aedef;return await this['getListevent'](),this[_0x3b32d9(0xb6)][_0x4104a4]&&delete this[_0x3b32d9(0xb6)][_0x4104a4],!!this[_0x3b32d9(0xb6)][_0x4104a4];}};exports['EventService']=EventService,__decorate([(0x0,core_1['App'])(),__metadata(a4_0x2aedef(0xdd),Object)],EventService[a4_0x2aedef(0xd9)],a4_0x2aedef(0xbe),void 0x0),exports['EventService']=EventService=__decorate([(0x0,core_1[a4_0x2aedef(0xe2)])(a4_0x2aedef(0xe3)),(0x0,core_1[a4_0x2aedef(0xcb)])(core_1[a4_0x2aedef(0xdc)]['Singleton'])],EventService);function a4_0x9db2(){const _0x5e5acd=['EventService','EVENT_ON_KEY','__esModule','sortByDesc','app','off','../interface','listModule','27123IKvufS','function','apply','name','getApplicationContext','__decorate','all','once','7xkixPK','Scope','2695192oFAkPg','(((.+)+)+)+$','getListevent','109593BzSuMI','1230wwGVEe','emit','init','metadata','getOwnPropertyDescriptor','decorate','object','2968656vOPlRn','1073754JqkElS','prototype','search','push','ScopeEnum','design:type','__metadata','44xfbvlE','getAsync','defineProperty','Provide','event','default','EVENT_KEY','priority','resolve','propertyKey','147940XKdYRF','13385mUHwJs','collect.js','668INBpba','listevent','constructor','toString','length'];a4_0x9db2=function(){return _0x5e5acd;};return a4_0x9db2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.39",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"collect.js": "
|
|
17
|
+
"collect.js": "~4.36.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^20.3.2",
|
|
21
21
|
"javascript-obfuscator": "^4.0.2",
|
|
22
|
-
"typescript": "^5.
|
|
22
|
+
"typescript": "^5.5.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "a34be632fbc14c4127142f2281341b234b27b8e8"
|
|
25
25
|
}
|