@anveroapi/event 0.0.0-stage → 4.0.0

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.
@@ -0,0 +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
+ }
@@ -0,0 +1 @@
1
+ var a0_0xd7848=a0_0x7b47;(function(_0x2c4fc4,_0x310831){var _0x24bb26=a0_0x7b47,_0x2d3b38=_0x2c4fc4();while(!![]){try{var _0x5ec0cb=parseInt(_0x24bb26(0x1f6))/0x1*(-parseInt(_0x24bb26(0x20f))/0x2)+parseInt(_0x24bb26(0x20e))/0x3+-parseInt(_0x24bb26(0x1ff))/0x4*(parseInt(_0x24bb26(0x1f8))/0x5)+parseInt(_0x24bb26(0x201))/0x6+-parseInt(_0x24bb26(0x208))/0x7+-parseInt(_0x24bb26(0x202))/0x8+parseInt(_0x24bb26(0x203))/0x9;if(_0x5ec0cb===_0x310831)break;else _0x2d3b38['push'](_0x2d3b38['shift']());}catch(_0x4bab5d){_0x2d3b38['push'](_0x2d3b38['shift']());}}}(a0_0x65c7,0x60f5d));var a0_0x295a90=(function(){var _0x4fb52f=!![];return function(_0x507c59,_0x513eda){var _0x481228=_0x4fb52f?function(){if(_0x513eda){var _0x1aa61a=_0x513eda['apply'](_0x507c59,arguments);return _0x513eda=null,_0x1aa61a;}}:function(){};return _0x4fb52f=![],_0x481228;};}()),a0_0x19a0b4=a0_0x295a90(this,function(){var _0x2473fa=a0_0x7b47;return a0_0x19a0b4[_0x2473fa(0x1fe)]()['search'](_0x2473fa(0x209))['toString']()[_0x2473fa(0x211)](a0_0x19a0b4)[_0x2473fa(0x1f9)](_0x2473fa(0x209));});a0_0x19a0b4();function a0_0x65c7(){var _0x4b5b5f=['17042922WUURRm','anvero-api:event','design:type','Inject','defineProperty','928466aGRaRf','(((.+)+)+)+$','decorator','MidwayConfigService','__metadata','decorate','282309IskHcq','1427986tLNvpL','function','constructor','prototype','Configuration','onReady','__esModule','1ZIfrZV','@midwayjs/core','2878175vnRjoH','search','object','CustomConfiguration','MidwayDecoratorService','getOwnPropertyDescriptor','toString','4SoQGNl','length','17376aZruyc','1369936eFKafF'];a0_0x65c7=function(){return _0x4b5b5f;};return a0_0x65c7();}function a0_0x7b47(_0x2d453d,_0x559369){_0x2d453d=_0x2d453d-0x1f3;var _0x3ee4e6=a0_0x65c7();var _0x19a0b4=_0x3ee4e6[_0x2d453d];return _0x19a0b4;}'use strict';var __decorate=this&&this['__decorate']||function(_0x52b8e0,_0x262ef7,_0x40d5c7,_0x2cb25f){var _0x96dfb2=a0_0x7b47,_0x41d27a=arguments[_0x96dfb2(0x200)],_0x5d4408=_0x41d27a<0x3?_0x262ef7:_0x2cb25f===null?_0x2cb25f=Object[_0x96dfb2(0x1fd)](_0x262ef7,_0x40d5c7):_0x2cb25f,_0x25bb81;if(typeof Reflect===_0x96dfb2(0x1fa)&&typeof Reflect['decorate']===_0x96dfb2(0x210))_0x5d4408=Reflect[_0x96dfb2(0x20d)](_0x52b8e0,_0x262ef7,_0x40d5c7,_0x2cb25f);else{for(var _0x3ec8ea=_0x52b8e0[_0x96dfb2(0x200)]-0x1;_0x3ec8ea>=0x0;_0x3ec8ea--)if(_0x25bb81=_0x52b8e0[_0x3ec8ea])_0x5d4408=(_0x41d27a<0x3?_0x25bb81(_0x5d4408):_0x41d27a>0x3?_0x25bb81(_0x262ef7,_0x40d5c7,_0x5d4408):_0x25bb81(_0x262ef7,_0x40d5c7))||_0x5d4408;}return _0x41d27a>0x3&&_0x5d4408&&Object[_0x96dfb2(0x207)](_0x262ef7,_0x40d5c7,_0x5d4408),_0x5d4408;},__metadata=this&&this[a0_0xd7848(0x20c)]||function(_0x9b582a,_0x408b75){var _0xe52787=a0_0xd7848;if(typeof Reflect===_0xe52787(0x1fa)&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x9b582a,_0x408b75);};Object[a0_0xd7848(0x207)](exports,a0_0xd7848(0x1f5),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a0_0xd7848(0x1f7)),core_2=require(a0_0xd7848(0x1f7));let CustomConfiguration=class CustomConfiguration{async[a0_0xd7848(0x1f4)](){}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a0_0xd7848(0x206)])(),__metadata(a0_0xd7848(0x205),core_2[a0_0xd7848(0x20b)])],CustomConfiguration[a0_0xd7848(0x212)],'config',void 0x0),__decorate([(0x0,core_1[a0_0xd7848(0x206)])(),__metadata(a0_0xd7848(0x205),core_2[a0_0xd7848(0x1fc)])],CustomConfiguration['prototype'],a0_0xd7848(0x20a),void 0x0),exports[a0_0xd7848(0x1fb)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0xd7848(0x1f3)])({'conflictCheck':![],'namespace':a0_0xd7848(0x204)})],CustomConfiguration);
@@ -0,0 +1,4 @@
1
+ export declare function Event(): ClassDecorator;
2
+ export declare namespace Event {
3
+ var On: (name: string, priority?: number, throttle?: number) => MethodDecorator;
4
+ }
@@ -0,0 +1 @@
1
+ const a1_0xb84d4=a1_0x5aa1;function a1_0x5aa1(_0x23bd0b,_0x44c853){_0x23bd0b=_0x23bd0b-0x141;const _0x4c03bd=a1_0xb0b7();let _0x538647=_0x4c03bd[_0x23bd0b];return _0x538647;}(function(_0x2a2d44,_0x3c0bdd){const _0x40db77=a1_0x5aa1,_0x52f221=_0x2a2d44();while(!![]){try{const _0x1295da=-parseInt(_0x40db77(0x14a))/0x1+parseInt(_0x40db77(0x145))/0x2+-parseInt(_0x40db77(0x157))/0x3*(-parseInt(_0x40db77(0x149))/0x4)+parseInt(_0x40db77(0x153))/0x5+parseInt(_0x40db77(0x14b))/0x6*(-parseInt(_0x40db77(0x156))/0x7)+parseInt(_0x40db77(0x14c))/0x8+-parseInt(_0x40db77(0x14d))/0x9*(parseInt(_0x40db77(0x147))/0xa);if(_0x1295da===_0x3c0bdd)break;else _0x52f221['push'](_0x52f221['shift']());}catch(_0x19eace){_0x52f221['push'](_0x52f221['shift']());}}}(a1_0xb0b7,0x98939));const a1_0x434552=(function(){let _0x521e1b=!![];return function(_0x17201b,_0x26926b){const _0xdb4977=_0x521e1b?function(){if(_0x26926b){const _0x34269f=_0x26926b['apply'](_0x17201b,arguments);return _0x26926b=null,_0x34269f;}}:function(){};return _0x521e1b=![],_0xdb4977;};}()),a1_0x538647=a1_0x434552(this,function(){const _0x57da1d=a1_0x5aa1;return a1_0x538647[_0x57da1d(0x155)]()[_0x57da1d(0x14f)](_0x57da1d(0x144))['toString']()[_0x57da1d(0x154)](a1_0x538647)[_0x57da1d(0x14f)](_0x57da1d(0x144));});a1_0x538647();function a1_0xb0b7(){const _0xe89d32=['1144917rfQIbL','18EmeXzE','7680840baAGAk','274203hHrttw','../interface','search','ScopeEnum','EVENT_KEY','Provide','5053445VpLsHE','constructor','toString','908782BsNGDn','21zRHmLo','Scope','Request','EVENT_ON_KEY','@midwayjs/core','(((.+)+)+)+$','2352006GwYDOI','saveModule','470VUDyqk','__esModule','254000GVERrW'];a1_0xb0b7=function(){return _0xe89d32;};return a1_0xb0b7();}'use strict';Object['defineProperty'](exports,a1_0xb84d4(0x148),{'value':!![]}),exports['Event']=Event;const core_1=require(a1_0xb84d4(0x143)),interface_1=require(a1_0xb84d4(0x14e));function Event(){return _0x22a8b5=>{const _0x4c20df=a1_0x5aa1;(0x0,core_1[_0x4c20df(0x152)])()(_0x22a8b5),(0x0,core_1[_0x4c20df(0x146)])(interface_1[_0x4c20df(0x151)],_0x22a8b5),(0x0,core_1[_0x4c20df(0x158)])(core_1[_0x4c20df(0x150)][_0x4c20df(0x141)],{'allowDowngrade':!![]})(_0x22a8b5);};}Event['On']=function(_0x1e03e5,_0xba870a=0x0,_0x18f6db=0x1f4){return(_0x2c340b,_0x3ec609,_0x3ab6c5)=>{const _0x110a58=a1_0x5aa1;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x110a58(0x142)],{'name':_0x1e03e5,'priority':_0xba870a,'propertyKey':_0x3ec609,'descriptor':_0x3ab6c5,'throttle':_0x18f6db},_0x2c340b),_0x3ab6c5;};};
@@ -0,0 +1,3 @@
1
+ export { Event } from './decorator/Event';
2
+ export { EventService } from "./service/EventService";
3
+ export { CustomConfiguration as Configuration } from './configuration';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var a2_0x4f4b51=a2_0x4d31;(function(_0x4300da,_0x40dcdd){var _0x100eb0=a2_0x4d31,_0x422fa7=_0x4300da();while(!![]){try{var _0x374902=parseInt(_0x100eb0(0x7f))/0x1*(-parseInt(_0x100eb0(0x7e))/0x2)+-parseInt(_0x100eb0(0x7a))/0x3+-parseInt(_0x100eb0(0x76))/0x4*(-parseInt(_0x100eb0(0x6c))/0x5)+parseInt(_0x100eb0(0x73))/0x6+parseInt(_0x100eb0(0x80))/0x7+parseInt(_0x100eb0(0x78))/0x8*(-parseInt(_0x100eb0(0x77))/0x9)+-parseInt(_0x100eb0(0x75))/0xa;if(_0x374902===_0x40dcdd)break;else _0x422fa7['push'](_0x422fa7['shift']());}catch(_0x3e71a1){_0x422fa7['push'](_0x422fa7['shift']());}}}(a2_0x2049,0x7217b));var a2_0x23c4e5=(function(){var _0x5d8992=!![];return function(_0x416741,_0x5ce47a){var _0x5c4a50=_0x5d8992?function(){if(_0x5ce47a){var _0x495669=_0x5ce47a['apply'](_0x416741,arguments);return _0x5ce47a=null,_0x495669;}}:function(){};return _0x5d8992=![],_0x5c4a50;};}()),a2_0x4dca57=a2_0x23c4e5(this,function(){var _0x3dc153=a2_0x4d31;return a2_0x4dca57[_0x3dc153(0x74)]()['search']('(((.+)+)+)+$')[_0x3dc153(0x74)]()['constructor'](a2_0x4dca57)[_0x3dc153(0x7b)]('(((.+)+)+)+$');});a2_0x4dca57();'use strict';function a2_0x4d31(_0x25b84a,_0x4e8eae){_0x25b84a=_0x25b84a-0x6c;var _0x2da44e=a2_0x2049();var _0x4dca57=_0x2da44e[_0x25b84a];return _0x4dca57;}Object['defineProperty'](exports,a2_0x4f4b51(0x6e),{'value':!![]}),exports[a2_0x4f4b51(0x79)]=exports['EventService']=exports['Event']=void 0x0;function a2_0x2049(){var _0x918955=['defineProperty','CustomConfiguration','./service/EventService','./decorator/Event','4551060CVhZpv','toString','1426990nDdsFT','348XvlJWI','154332kojOZn','312JsGuYb','Configuration','659616tLONUL','search','Event','./configuration','28170WoKdWa','3HFImKW','1995224hUuvNY','28585rWvfbz','EventService','__esModule'];a2_0x2049=function(){return _0x918955;};return a2_0x2049();}var Event_1=require(a2_0x4f4b51(0x72));Object[a2_0x4f4b51(0x6f)](exports,a2_0x4f4b51(0x7c),{'enumerable':!![],'get':function(){var _0x34bbda=a2_0x4f4b51;return Event_1[_0x34bbda(0x7c)];}});var EventService_1=require(a2_0x4f4b51(0x71));Object['defineProperty'](exports,'EventService',{'enumerable':!![],'get':function(){var _0x961165=a2_0x4f4b51;return EventService_1[_0x961165(0x6d)];}});var configuration_1=require(a2_0x4f4b51(0x7d));Object[a2_0x4f4b51(0x6f)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x429452=a2_0x4f4b51;return configuration_1[_0x429452(0x70)];}});
@@ -0,0 +1,2 @@
1
+ export declare const EVENT_KEY = "anvero-api:event";
2
+ export declare const EVENT_ON_KEY = "anvero-api:event:on";
@@ -0,0 +1 @@
1
+ function a3_0x4b4f(){var _0x5b2d95=['constructor','411650uocWJj','8QcCldK','5905kbScTR','EVENT_KEY','EVENT_ON_KEY','(((.+)+)+)+$','613131nQfxfI','defineProperty','anvero-api:event','3501864ezpKjX','__esModule','4LhHcPl','464606XKoULw','107779pnYlUM','toString','anvero-api:event:on','search','apply','1900998XcshYM'];a3_0x4b4f=function(){return _0x5b2d95;};return a3_0x4b4f();}var a3_0xfc10ab=a3_0xc847;(function(_0x506360,_0x5e26de){var _0x2e345b=a3_0xc847,_0xa067e9=_0x506360();while(!![]){try{var _0x5b6024=-parseInt(_0x2e345b(0x156))/0x1+-parseInt(_0x2e345b(0x160))/0x2+parseInt(_0x2e345b(0x15a))/0x3*(-parseInt(_0x2e345b(0x15f))/0x4)+-parseInt(_0x2e345b(0x154))/0x5+parseInt(_0x2e345b(0x152))/0x6+-parseInt(_0x2e345b(0x161))/0x7*(parseInt(_0x2e345b(0x155))/0x8)+parseInt(_0x2e345b(0x15d))/0x9;if(_0x5b6024===_0x5e26de)break;else _0xa067e9['push'](_0xa067e9['shift']());}catch(_0x349fc5){_0xa067e9['push'](_0xa067e9['shift']());}}}(a3_0x4b4f,0x286f1));var a3_0x2c7f62=(function(){var _0xbdd7a5=!![];return function(_0x5ec514,_0x33294d){var _0x928f5b=_0xbdd7a5?function(){var _0x6b89a8=a3_0xc847;if(_0x33294d){var _0x1afe2a=_0x33294d[_0x6b89a8(0x151)](_0x5ec514,arguments);return _0x33294d=null,_0x1afe2a;}}:function(){};return _0xbdd7a5=![],_0x928f5b;};}()),a3_0x3a7a3f=a3_0x2c7f62(this,function(){var _0x6585d8=a3_0xc847;return a3_0x3a7a3f[_0x6585d8(0x162)]()[_0x6585d8(0x164)](_0x6585d8(0x159))['toString']()[_0x6585d8(0x153)](a3_0x3a7a3f)[_0x6585d8(0x164)]('(((.+)+)+)+$');});a3_0x3a7a3f();'use strict';function a3_0xc847(_0xf19386,_0x1f35a0){_0xf19386=_0xf19386-0x151;var _0x5d626d=a3_0x4b4f();var _0x3a7a3f=_0x5d626d[_0xf19386];return _0x3a7a3f;}Object[a3_0xfc10ab(0x15b)](exports,a3_0xfc10ab(0x15e),{'value':!![]}),exports[a3_0xfc10ab(0x158)]=exports[a3_0xfc10ab(0x157)]=void 0x0,exports[a3_0xfc10ab(0x157)]=a3_0xfc10ab(0x15c),exports[a3_0xfc10ab(0x158)]=a3_0xfc10ab(0x163);
@@ -0,0 +1,32 @@
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
+ throttle: number;
9
+ resolve: Function;
10
+ propertyKey: string;
11
+ }[];
12
+ };
13
+ protected listevent_throttle: {
14
+ [key: string]: number;
15
+ };
16
+ getListevent(name?: string): Promise<{
17
+ [key: string]: {
18
+ priority: number;
19
+ throttle: number;
20
+ resolve: Function;
21
+ propertyKey: string;
22
+ }[];
23
+ } | {
24
+ priority: number;
25
+ throttle: number;
26
+ resolve: Function;
27
+ propertyKey: string;
28
+ }[]>;
29
+ emit(name: string, ...args: any[]): Promise<void>;
30
+ once(name: string, ...args: any[]): Promise<boolean>;
31
+ off(name: string): Promise<boolean>;
32
+ }
@@ -0,0 +1 @@
1
+ function a4_0x6506(_0x4c1800,_0x5c6163){_0x4c1800=_0x4c1800-0x1c2;const _0x21e16b=a4_0x1673();let _0x4eaf83=_0x21e16b[_0x4c1800];return _0x4eaf83;}const a4_0x5d5b17=a4_0x6506;function a4_0x1673(){const _0x53d545=['app','@midwayjs/core','propertyKey','name','listevent_throttle','getClassMetadata','metadata','EventService','__metadata','length','priority','init','5091478AuEnAl','24TTPkId','push','300055fMWSAP','listModule','ScopeEnum','defineProperty','throttle','5916TSeoXu','Scope','EVENT_KEY','function','1422927wRBvJG','36znDmYp','object','getListevent','once','off','design:type','listevent','202232WTXNza','event','default','decorate','search','606810PtbnBW','App','now','emit','toString','resolve','Provide','getOwnPropertyDescriptor','stringify','constructor','getApplicationContext','../interface','Singleton','72dUOWKN','9159942UhiUei','(((.+)+)+)+$'];a4_0x1673=function(){return _0x53d545;};return a4_0x1673();}(function(_0x329cd8,_0x3d0277){const _0x51453e=a4_0x6506,_0x30ef96=_0x329cd8();while(!![]){try{const _0x12f63b=-parseInt(_0x51453e(0x1e3))/0x1+-parseInt(_0x51453e(0x1df))/0x2*(-parseInt(_0x51453e(0x1e4))/0x3)+-parseInt(_0x51453e(0x1d8))/0x4*(parseInt(_0x51453e(0x1da))/0x5)+parseInt(_0x51453e(0x1c9))/0x6+parseInt(_0x51453e(0x1d7))/0x7+-parseInt(_0x51453e(0x1eb))/0x8*(-parseInt(_0x51453e(0x1c8))/0x9)+parseInt(_0x51453e(0x1f0))/0xa;if(_0x12f63b===_0x3d0277)break;else _0x30ef96['push'](_0x30ef96['shift']());}catch(_0xa34f5f){_0x30ef96['push'](_0x30ef96['shift']());}}}(a4_0x1673,0xbbd93));const a4_0x1d40d3=(function(){let _0x5a0f4e=!![];return function(_0x19b9f7,_0x360f6f){const _0x1b5720=_0x5a0f4e?function(){if(_0x360f6f){const _0x2efc70=_0x360f6f['apply'](_0x19b9f7,arguments);return _0x360f6f=null,_0x2efc70;}}:function(){};return _0x5a0f4e=![],_0x1b5720;};}()),a4_0x4eaf83=a4_0x1d40d3(this,function(){const _0x326b6c=a4_0x6506;return a4_0x4eaf83['toString']()[_0x326b6c(0x1ef)]('(((.+)+)+)+$')[_0x326b6c(0x1f4)]()[_0x326b6c(0x1c4)](a4_0x4eaf83)[_0x326b6c(0x1ef)](_0x326b6c(0x1ca));});a4_0x4eaf83();'use strict';var __decorate=this&&this['__decorate']||function(_0x35b9ac,_0x29242b,_0x5e242a,_0x315f6a){const _0x49989b=a4_0x6506;var _0x204f2c=arguments[_0x49989b(0x1d4)],_0xa5999b=_0x204f2c<0x3?_0x29242b:_0x315f6a===null?_0x315f6a=Object[_0x49989b(0x1c2)](_0x29242b,_0x5e242a):_0x315f6a,_0xfb7631;if(typeof Reflect===_0x49989b(0x1e5)&&typeof Reflect[_0x49989b(0x1ee)]===_0x49989b(0x1e2))_0xa5999b=Reflect[_0x49989b(0x1ee)](_0x35b9ac,_0x29242b,_0x5e242a,_0x315f6a);else{for(var _0x3a7501=_0x35b9ac[_0x49989b(0x1d4)]-0x1;_0x3a7501>=0x0;_0x3a7501--)if(_0xfb7631=_0x35b9ac[_0x3a7501])_0xa5999b=(_0x204f2c<0x3?_0xfb7631(_0xa5999b):_0x204f2c>0x3?_0xfb7631(_0x29242b,_0x5e242a,_0xa5999b):_0xfb7631(_0x29242b,_0x5e242a))||_0xa5999b;}return _0x204f2c>0x3&&_0xa5999b&&Object[_0x49989b(0x1dd)](_0x29242b,_0x5e242a,_0xa5999b),_0xa5999b;},__metadata=this&&this[a4_0x5d5b17(0x1d3)]||function(_0x1fdb05,_0x30c9bd){const _0x1de889=a4_0x5d5b17;if(typeof Reflect==='object'&&typeof Reflect[_0x1de889(0x1d1)]==='function')return Reflect['metadata'](_0x1fdb05,_0x30c9bd);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x5d5b17(0x1d2)]=void 0x0;const collect_js_1=require('collect.js'),core_1=require(a4_0x5d5b17(0x1cc)),interface_1=require(a4_0x5d5b17(0x1c6));let EventService=class EventService{constructor(){const _0x5dbbe6=a4_0x5d5b17;this[_0x5dbbe6(0x1d6)]=![];}async[a4_0x5d5b17(0x1e6)](_0x2a9deb){const _0x2d4201=a4_0x5d5b17;if(!this[_0x2d4201(0x1d6)]){this[_0x2d4201(0x1d6)]=!![],this['listevent']={},this['listevent_throttle']={};for(const _0x36f865 of(0x0,core_1[_0x2d4201(0x1db)])(interface_1[_0x2d4201(0x1e1)])||[]){const _0x4b1dfa=await this[_0x2d4201(0x1cb)][_0x2d4201(0x1c5)]()['getAsync'](_0x36f865);for(const _0xb2c58a of(0x0,core_1[_0x2d4201(0x1d0)])(interface_1['EVENT_ON_KEY'],_0x36f865)||[]){typeof(_0x4b1dfa[_0xb2c58a[_0x2d4201(0x1cd)]]==_0x2d4201(0x1e2))&&(!this[_0x2d4201(0x1ea)][_0xb2c58a['name']]&&(this[_0x2d4201(0x1ea)][_0xb2c58a[_0x2d4201(0x1ce)]]=[]),this['listevent'][_0xb2c58a[_0x2d4201(0x1ce)]][_0x2d4201(0x1d9)]({'priority':(_0xb2c58a===null||_0xb2c58a===void 0x0?void 0x0:_0xb2c58a[_0x2d4201(0x1d5)])||0x0,'throttle':(_0xb2c58a===null||_0xb2c58a===void 0x0?void 0x0:_0xb2c58a[_0x2d4201(0x1de)])||0x1f4,'resolve':_0x4b1dfa[_0xb2c58a[_0x2d4201(0x1cd)]]['bind'](_0x4b1dfa),'propertyKey':_0x36f865[_0x2d4201(0x1ce)]+'@'+_0xb2c58a['propertyKey']}));}}for(const _0x1e3af5 in this[_0x2d4201(0x1ea)]){this[_0x2d4201(0x1ea)][_0x1e3af5]=(0x0,collect_js_1[_0x2d4201(0x1ed)])(this[_0x2d4201(0x1ea)][_0x1e3af5])['sortByDesc']('priority')['all']();}}return _0x2a9deb?this[_0x2d4201(0x1ea)][_0x2a9deb]||[]:this[_0x2d4201(0x1ea)];}async['emit'](_0x35e872,..._0x212aa6){const _0x2b5f45=a4_0x5d5b17;var _0x1d4114,_0x199c70,_0x41ccab,_0x3ba85b,_0x579837;const _0x34ca75=''+JSON[_0x2b5f45(0x1c3)](_0x212aa6),_0x5575fc=Date[_0x2b5f45(0x1f2)]();await this['getListevent']();for(let _0x12a21c in this['listevent_throttle']){this[_0x2b5f45(0x1cf)][_0x12a21c]<_0x5575fc&&delete this[_0x2b5f45(0x1cf)][_0x12a21c];}for(let _0x394734 in(_0x1d4114=this[_0x2b5f45(0x1ea)])===null||_0x1d4114===void 0x0?void 0x0:_0x1d4114[_0x35e872]){if(((_0x199c70=this[_0x2b5f45(0x1ea)][_0x35e872])===null||_0x199c70===void 0x0?void 0x0:_0x199c70[_0x394734])&&typeof((_0x3ba85b=(_0x41ccab=this[_0x2b5f45(0x1ea)][_0x35e872])===null||_0x41ccab===void 0x0?void 0x0:_0x41ccab[_0x394734])===null||_0x3ba85b===void 0x0?void 0x0:_0x3ba85b[_0x2b5f45(0x1f5)])==_0x2b5f45(0x1e2)){const _0x7a836d=_0x35e872+'_'+_0x394734+'@'+_0x34ca75;(this[_0x2b5f45(0x1cf)][_0x7a836d]||0x0)<_0x5575fc&&(this[_0x2b5f45(0x1cf)][_0x7a836d]=_0x5575fc+(((_0x579837=this[_0x2b5f45(0x1ea)][_0x35e872][_0x394734])===null||_0x579837===void 0x0?void 0x0:_0x579837[_0x2b5f45(0x1de)])||0x1f4),await this[_0x2b5f45(0x1ea)][_0x35e872][_0x394734]['resolve'](..._0x212aa6));}}}async[a4_0x5d5b17(0x1e7)](_0x203ee7,..._0x55b72b){const _0x114909=a4_0x5d5b17;return await this['getListevent'](),await this[_0x114909(0x1f3)](_0x203ee7,..._0x55b72b),this[_0x114909(0x1e8)](_0x203ee7);}async[a4_0x5d5b17(0x1e8)](_0x30cf88){const _0x389c76=a4_0x5d5b17;return await this[_0x389c76(0x1e6)](),this[_0x389c76(0x1ea)][_0x30cf88]&&delete this[_0x389c76(0x1ea)][_0x30cf88],!!this['listevent'][_0x30cf88];}};exports[a4_0x5d5b17(0x1d2)]=EventService,__decorate([(0x0,core_1[a4_0x5d5b17(0x1f1)])(),__metadata(a4_0x5d5b17(0x1e9),Object)],EventService['prototype'],a4_0x5d5b17(0x1cb),void 0x0),exports[a4_0x5d5b17(0x1d2)]=EventService=__decorate([(0x0,core_1[a4_0x5d5b17(0x1f6)])(a4_0x5d5b17(0x1ec)),(0x0,core_1[a4_0x5d5b17(0x1e0)])(core_1[a4_0x5d5b17(0x1dc)][a4_0x5d5b17(0x1c7)])],EventService);
package/package.json CHANGED
@@ -1,6 +1,27 @@
1
- {
2
- "name": "@anveroapi/event",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@anveroapi/event",
3
+ "version": "4.0.0",
4
+ "main": "./dist/index.js",
5
+ "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "scripts": {
14
+ "build2": "tsc",
15
+ "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
16
+ },
17
+ "dependencies": {
18
+ "collect.js": "^4.36.1",
19
+ "@midwayjs/core": "^4.2.6"
20
+ },
21
+ "devDependencies": {
22
+ "typescript": "~5.9.3",
23
+ "@types/node": "20.10.0",
24
+ "javascript-obfuscator": "^4.0.2"
25
+ },
26
+ "gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880"
27
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.