@anveroapi/event 3.0.0 → 4.0.1
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.js +1 -1
- package/dist/decorator/Event.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/EventService.js +1 -1
- package/package.json +27 -27
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x3400f3=a0_0x5ca0;(function(_0x35c4e6,_0x490c74){var _0x51a72a=a0_0x5ca0,_0x5c12f7=_0x35c4e6();while(!![]){try{var _0x3a4d4f=parseInt(_0x51a72a(0x1d5))/0x1*(-parseInt(_0x51a72a(0x1d2))/0x2)+parseInt(_0x51a72a(0x1e6))/0x3*(parseInt(_0x51a72a(0x1e2))/0x4)+-parseInt(_0x51a72a(0x1d0))/0x5+-parseInt(_0x51a72a(0x1ce))/0x6*(-parseInt(_0x51a72a(0x1db))/0x7)+-parseInt(_0x51a72a(0x1df))/0x8*(parseInt(_0x51a72a(0x1e7))/0x9)+parseInt(_0x51a72a(0x1d7))/0xa+parseInt(_0x51a72a(0x1d6))/0xb*(parseInt(_0x51a72a(0x1de))/0xc);if(_0x3a4d4f===_0x490c74)break;else _0x5c12f7['push'](_0x5c12f7['shift']());}catch(_0xccb51d){_0x5c12f7['push'](_0x5c12f7['shift']());}}}(a0_0x1fa2,0x62e3e));var a0_0x4ed6e0=(function(){var _0x50a70f=!![];return function(_0x5c30ab,_0x23c0b2){var _0x48f06a=_0x50a70f?function(){var _0x4273b3=a0_0x5ca0;if(_0x23c0b2){var _0x52c651=_0x23c0b2[_0x4273b3(0x1cd)](_0x5c30ab,arguments);return _0x23c0b2=null,_0x52c651;}}:function(){};return _0x50a70f=![],_0x48f06a;};}()),a0_0x14fb32=a0_0x4ed6e0(this,function(){var _0x25ccb8=a0_0x5ca0;return a0_0x14fb32[_0x25ccb8(0x1dd)]()[_0x25ccb8(0x1e0)](_0x25ccb8(0x1e4))[_0x25ccb8(0x1dd)]()[_0x25ccb8(0x1e1)](a0_0x14fb32)[_0x25ccb8(0x1e0)](_0x25ccb8(0x1e4));});function a0_0x5ca0(_0x104e8f,_0x370bae){_0x104e8f=_0x104e8f-0x1ca;var _0x3f0ed2=a0_0x1fa2();var _0x14fb32=_0x3f0ed2[_0x104e8f];return _0x14fb32;}a0_0x14fb32();'use strict';var __decorate=this&&this['__decorate']||function(_0x3ec85d,_0x4c455b,_0x295575,_0x490732){var _0xfddc88=a0_0x5ca0,_0x59334f=arguments['length'],_0x355176=_0x59334f<0x3?_0x4c455b:_0x490732===null?_0x490732=Object[_0xfddc88(0x1d9)](_0x4c455b,_0x295575):_0x490732,_0x362614;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x355176=Reflect['decorate'](_0x3ec85d,_0x4c455b,_0x295575,_0x490732);else{for(var _0x17ebb3=_0x3ec85d[_0xfddc88(0x1d8)]-0x1;_0x17ebb3>=0x0;_0x17ebb3--)if(_0x362614=_0x3ec85d[_0x17ebb3])_0x355176=(_0x59334f<0x3?_0x362614(_0x355176):_0x59334f>0x3?_0x362614(_0x4c455b,_0x295575,_0x355176):_0x362614(_0x4c455b,_0x295575))||_0x355176;}return _0x59334f>0x3&&_0x355176&&Object[_0xfddc88(0x1d4)](_0x4c455b,_0x295575,_0x355176),_0x355176;},__metadata=this&&this[a0_0x3400f3(0x1ca)]||function(_0x48f50c,_0x1a36f8){var _0x3a4030=a0_0x3400f3;if(typeof Reflect===_0x3a4030(0x1cc)&&typeof Reflect['metadata']==='function')return Reflect[_0x3a4030(0x1dc)](_0x48f50c,_0x1a36f8);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a0_0x3400f3(0x1d3)),core_2=require('@midwayjs/core');function a0_0x1fa2(){var _0x30a719=['design:type','488944cBGdnw','@midwayjs/core','defineProperty','2mRtaBG','11rmsCTJ','7512430WkHbUC','length','getOwnPropertyDescriptor','CustomConfiguration','3891391MYZrFO','metadata','toString','2193948ZOerfR','922720ZRsuen','search','constructor','399332HGPESp','Inject','(((.+)+)+)+$','config','3oONCyt','18LTdDoV','onReady','__metadata','MidwayDecoratorService','object','apply','6aBvPXN','Configuration','2325700sQrRWM'];a0_0x1fa2=function(){return _0x30a719;};return a0_0x1fa2();}let CustomConfiguration=class CustomConfiguration{async[a0_0x3400f3(0x1e8)](){}};exports[a0_0x3400f3(0x1da)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x3400f3(0x1e3)])(),__metadata(a0_0x3400f3(0x1d1),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a0_0x3400f3(0x1e5),void 0x0),__decorate([(0x0,core_1[a0_0x3400f3(0x1e3)])(),__metadata('design:type',core_2[a0_0x3400f3(0x1cb)])],CustomConfiguration['prototype'],'decorator',void 0x0),exports[a0_0x3400f3(0x1da)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0x3400f3(0x1cf)])({'namespace':'anvero-api:event'})],CustomConfiguration);
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x4d5f05=a1_0x3355;(function(_0x265fac,_0x5b3e1f){const _0x250f53=a1_0x3355,_0x2b2c9e=_0x265fac();while(!![]){try{const _0x39b0e5=parseInt(_0x250f53(0x16a))/0x1*(-parseInt(_0x250f53(0x173))/0x2)+-parseInt(_0x250f53(0x17d))/0x3*(-parseInt(_0x250f53(0x164))/0x4)+parseInt(_0x250f53(0x16f))/0x5+parseInt(_0x250f53(0x167))/0x6+parseInt(_0x250f53(0x16c))/0x7*(parseInt(_0x250f53(0x177))/0x8)+-parseInt(_0x250f53(0x170))/0x9*(parseInt(_0x250f53(0x178))/0xa)+parseInt(_0x250f53(0x171))/0xb*(-parseInt(_0x250f53(0x17c))/0xc);if(_0x39b0e5===_0x5b3e1f)break;else _0x2b2c9e['push'](_0x2b2c9e['shift']());}catch(_0x26c1b2){_0x2b2c9e['push'](_0x2b2c9e['shift']());}}}(a1_0x440d,0x9b050));const a1_0x3a99e2=(function(){let _0x324b54=!![];return function(_0x3b0299,_0xa1f82){const _0x2e67a0=_0x324b54?function(){const _0x2dbdec=a1_0x3355;if(_0xa1f82){const _0x3ee0f8=_0xa1f82[_0x2dbdec(0x172)](_0x3b0299,arguments);return _0xa1f82=null,_0x3ee0f8;}}:function(){};return _0x324b54=![],_0x2e67a0;};}()),a1_0x20b829=a1_0x3a99e2(this,function(){const _0xa587db=a1_0x3355;return a1_0x20b829[_0xa587db(0x175)]()[_0xa587db(0x17e)](_0xa587db(0x16d))[_0xa587db(0x175)]()['constructor'](a1_0x20b829)[_0xa587db(0x17e)](_0xa587db(0x16d));});a1_0x20b829();'use strict';function a1_0x3355(_0x37245a,_0x40d404){_0x37245a=_0x37245a-0x163;const _0x305622=a1_0x440d();let _0x20b829=_0x305622[_0x37245a];return _0x20b829;}Object[a1_0x4d5f05(0x17b)](exports,a1_0x4d5f05(0x165),{'value':!![]}),exports[a1_0x4d5f05(0x163)]=Event;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),interface_1=require(a1_0x4d5f05(0x16e));function Event(){return _0x4f638a=>{const _0x22890a=a1_0x3355;(0x0,core_1[_0x22890a(0x168)])()(_0x4f638a),core_2[_0x22890a(0x166)][_0x22890a(0x179)](interface_1['EVENT_KEY'],_0x4f638a),(0x0,core_1['Scope'])(core_1[_0x22890a(0x174)][_0x22890a(0x16b)],{'allowDowngrade':!![]})(_0x4f638a);};}Event['On']=function(_0x12ad8a,_0x4731b8=0x0,_0xff0192=0x1f4){return(_0x1e27f5,_0x5f1d82,_0xfb1d94)=>{const _0x5a7280=a1_0x3355;return core_2[_0x5a7280(0x17a)][_0x5a7280(0x169)](interface_1[_0x5a7280(0x176)],{'name':_0x12ad8a,'priority':_0x4731b8,'propertyKey':_0x5f1d82,'descriptor':_0xfb1d94,'throttle':_0xff0192},_0x1e27f5),_0xfb1d94;};};function a1_0x440d(){const _0x385bd8=['DecoratorManager','4183008qhWknd','Provide','attachMetadata','452bVYYnH','Request','59465OoFHim','(((.+)+)+)+$','../interface','3958590sHvyLC','427293NRsDxc','3803327ZYtUcY','apply','60ebnOcn','ScopeEnum','toString','EVENT_ON_KEY','144cyKuSe','180CCyHEn','saveModule','MetadataManager','defineProperty','48zLMooU','6wcLXZS','search','Event','2488676mYFtcE','__esModule'];a1_0x440d=function(){return _0x385bd8;};return a1_0x440d();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a2_0x49a3(){var _0x363907=['530FovjDJ','22cWUNFv','8792530fNBPwf','528vJtTCU','44byUIlf','toString','135153gQTQQJ','101521zBwMmw','Configuration','(((.+)+)+)+$','__esModule','325911HvZPTI','896wyoDZp','153134uOOIyK','./decorator/Event','constructor','CustomConfiguration','EventService','search','Event','./configuration','defineProperty','4996818ggCsCA','500467yLIcyt'];a2_0x49a3=function(){return _0x363907;};return a2_0x49a3();}var a2_0xb93fa1=a2_0x248d;(function(_0x517f7e,_0x423212){var _0x2c0b55=a2_0x248d,_0x4c7849=_0x517f7e();while(!![]){try{var _0x590ad0=-parseInt(_0x2c0b55(0xd2))/0x1*(parseInt(_0x2c0b55(0xde))/0x2)+parseInt(_0x2c0b55(0xd0))/0x3*(parseInt(_0x2c0b55(0xc9))/0x4)+parseInt(_0x2c0b55(0xdf))/0x5+parseInt(_0x2c0b55(0xdb))/0x6+parseInt(_0x2c0b55(0xcc))/0x7*(parseInt(_0x2c0b55(0xd1))/0x8)+parseInt(_0x2c0b55(0xcb))/0x9*(-parseInt(_0x2c0b55(0xdd))/0xa)+-parseInt(_0x2c0b55(0xdc))/0xb*(parseInt(_0x2c0b55(0xe0))/0xc);if(_0x590ad0===_0x423212)break;else _0x4c7849['push'](_0x4c7849['shift']());}catch(_0x485ba2){_0x4c7849['push'](_0x4c7849['shift']());}}}(a2_0x49a3,0xe2a99));var a2_0x6252e=(function(){var _0x2d7f22=!![];return function(_0x5f55b4,_0x3ae4c3){var _0xccecdf=_0x2d7f22?function(){if(_0x3ae4c3){var _0x48971d=_0x3ae4c3['apply'](_0x5f55b4,arguments);return _0x3ae4c3=null,_0x48971d;}}:function(){};return _0x2d7f22=![],_0xccecdf;};}()),a2_0x33ce50=a2_0x6252e(this,function(){var _0x568281=a2_0x248d;return a2_0x33ce50[_0x568281(0xca)]()[_0x568281(0xd7)]('(((.+)+)+)+$')[_0x568281(0xca)]()[_0x568281(0xd4)](a2_0x33ce50)['search'](_0x568281(0xce));});a2_0x33ce50();'use strict';Object['defineProperty'](exports,a2_0xb93fa1(0xcf),{'value':!![]}),exports[a2_0xb93fa1(0xcd)]=exports[a2_0xb93fa1(0xd6)]=exports[a2_0xb93fa1(0xd8)]=void 0x0;var Event_1=require(a2_0xb93fa1(0xd3));function a2_0x248d(_0x272362,_0x1a4f0d){_0x272362=_0x272362-0xc9;var _0x1f197f=a2_0x49a3();var _0x33ce50=_0x1f197f[_0x272362];return _0x33ce50;}Object[a2_0xb93fa1(0xda)](exports,a2_0xb93fa1(0xd8),{'enumerable':!![],'get':function(){var _0x348578=a2_0xb93fa1;return Event_1[_0x348578(0xd8)];}});var EventService_1=require('./service/EventService');Object[a2_0xb93fa1(0xda)](exports,a2_0xb93fa1(0xd6),{'enumerable':!![],'get':function(){return EventService_1['EventService'];}});var configuration_1=require(a2_0xb93fa1(0xd9));Object[a2_0xb93fa1(0xda)](exports,a2_0xb93fa1(0xcd),{'enumerable':!![],'get':function(){var _0xbf08a8=a2_0xb93fa1;return configuration_1[_0xbf08a8(0xd5)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a3_0x5588c3=a3_0x9cb4;(function(_0x2c1970,_0x2394ee){var _0x21d2a8=a3_0x9cb4,_0x2ebaff=_0x2c1970();while(!![]){try{var _0x53bd2e=parseInt(_0x21d2a8(0x1da))/0x1+-parseInt(_0x21d2a8(0x1db))/0x2+parseInt(_0x21d2a8(0x1cf))/0x3*(-parseInt(_0x21d2a8(0x1d6))/0x4)+parseInt(_0x21d2a8(0x1d8))/0x5+-parseInt(_0x21d2a8(0x1d1))/0x6*(-parseInt(_0x21d2a8(0x1d3))/0x7)+-parseInt(_0x21d2a8(0x1d7))/0x8+parseInt(_0x21d2a8(0x1d2))/0x9;if(_0x53bd2e===_0x2394ee)break;else _0x2ebaff['push'](_0x2ebaff['shift']());}catch(_0x1e329e){_0x2ebaff['push'](_0x2ebaff['shift']());}}}(a3_0x2b92,0x9f2f8));var a3_0x5f270f=(function(){var _0x5ef3e3=!![];return function(_0xae729e,_0x58672a){var _0x80ad11=_0x5ef3e3?function(){var _0x1814fa=a3_0x9cb4;if(_0x58672a){var _0x2cb5db=_0x58672a[_0x1814fa(0x1de)](_0xae729e,arguments);return _0x58672a=null,_0x2cb5db;}}:function(){};return _0x5ef3e3=![],_0x80ad11;};}()),a3_0x1b3042=a3_0x5f270f(this,function(){var _0x3893b9=a3_0x9cb4;return a3_0x1b3042[_0x3893b9(0x1dd)]()[_0x3893b9(0x1ce)](_0x3893b9(0x1d9))['toString']()[_0x3893b9(0x1dc)](a3_0x1b3042)[_0x3893b9(0x1ce)](_0x3893b9(0x1d9));});a3_0x1b3042();'use strict';function a3_0x9cb4(_0x5281ea,_0x371984){_0x5281ea=_0x5281ea-0x1ce;var _0x4d09f3=a3_0x2b92();var _0x1b3042=_0x4d09f3[_0x5281ea];return _0x1b3042;}Object['defineProperty'](exports,a3_0x5588c3(0x1d4),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x5588c3(0x1df)]=void 0x0,exports[a3_0x5588c3(0x1df)]=a3_0x5588c3(0x1d0),exports[a3_0x5588c3(0x1d5)]='anvero-api:event:on';function a3_0x2b92(){var _0xe39de=['6nrsvlp','4425309vozYkz','7299159EHaQwW','__esModule','EVENT_ON_KEY','52ioSxWV','9828320gquRgT','5846410WyVMvw','(((.+)+)+)+$','1182501mJYhvy','2279688MdzryR','constructor','toString','apply','EVENT_KEY','search','199803YNDXHN','anvero-api:event'];a3_0x2b92=function(){return _0xe39de;};return a3_0x2b92();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x478f7e=a4_0x3299;(function(_0x4b2e38,_0x4afec0){const _0xf299d1=a4_0x3299,_0x5c02b5=_0x4b2e38();while(!![]){try{const _0x522b50=-parseInt(_0xf299d1(0xe9))/0x1+parseInt(_0xf299d1(0xef))/0x2*(parseInt(_0xf299d1(0xf5))/0x3)+-parseInt(_0xf299d1(0x105))/0x4+-parseInt(_0xf299d1(0xf3))/0x5*(parseInt(_0xf299d1(0xf1))/0x6)+-parseInt(_0xf299d1(0x10a))/0x7*(parseInt(_0xf299d1(0x111))/0x8)+parseInt(_0xf299d1(0xe0))/0x9+parseInt(_0xf299d1(0xe7))/0xa;if(_0x522b50===_0x4afec0)break;else _0x5c02b5['push'](_0x5c02b5['shift']());}catch(_0x23981b){_0x5c02b5['push'](_0x5c02b5['shift']());}}}(a4_0x1e89,0x31c34));const a4_0x55fc21=(function(){let _0x169b9b=!![];return function(_0x36842c,_0x32fdd2){const _0x2e483c=_0x169b9b?function(){if(_0x32fdd2){const _0x2e46a6=_0x32fdd2['apply'](_0x36842c,arguments);return _0x32fdd2=null,_0x2e46a6;}}:function(){};return _0x169b9b=![],_0x2e483c;};}()),a4_0x237957=a4_0x55fc21(this,function(){const _0x2b9b19=a4_0x3299;return a4_0x237957[_0x2b9b19(0xfb)]()['search'](_0x2b9b19(0xfe))['toString']()[_0x2b9b19(0xe3)](a4_0x237957)[_0x2b9b19(0x109)](_0x2b9b19(0xfe));});a4_0x237957();'use strict';function a4_0x3299(_0x19da9f,_0x439a5f){_0x19da9f=_0x19da9f-0xdf;const _0x3a3f62=a4_0x1e89();let _0x237957=_0x3a3f62[_0x19da9f];return _0x237957;}var __decorate=this&&this[a4_0x478f7e(0xed)]||function(_0x20e7cb,_0x26dcda,_0x125a7a,_0x396aeb){const _0x3cca34=a4_0x478f7e;var _0x15f055=arguments[_0x3cca34(0xf9)],_0x241d50=_0x15f055<0x3?_0x26dcda:_0x396aeb===null?_0x396aeb=Object[_0x3cca34(0xdf)](_0x26dcda,_0x125a7a):_0x396aeb,_0x16e8d1;if(typeof Reflect===_0x3cca34(0xfc)&&typeof Reflect['decorate']===_0x3cca34(0x10f))_0x241d50=Reflect['decorate'](_0x20e7cb,_0x26dcda,_0x125a7a,_0x396aeb);else{for(var _0x4ca3be=_0x20e7cb['length']-0x1;_0x4ca3be>=0x0;_0x4ca3be--)if(_0x16e8d1=_0x20e7cb[_0x4ca3be])_0x241d50=(_0x15f055<0x3?_0x16e8d1(_0x241d50):_0x15f055>0x3?_0x16e8d1(_0x26dcda,_0x125a7a,_0x241d50):_0x16e8d1(_0x26dcda,_0x125a7a))||_0x241d50;}return _0x15f055>0x3&&_0x241d50&&Object[_0x3cca34(0xee)](_0x26dcda,_0x125a7a,_0x241d50),_0x241d50;},__metadata=this&&this[a4_0x478f7e(0xf8)]||function(_0x56ac56,_0x6eeee1){const _0x3f1747=a4_0x478f7e;if(typeof Reflect===_0x3f1747(0xfc)&&typeof Reflect[_0x3f1747(0x112)]==='function')return Reflect[_0x3f1747(0x112)](_0x56ac56,_0x6eeee1);};Object[a4_0x478f7e(0xee)](exports,a4_0x478f7e(0xfd),{'value':!![]}),exports[a4_0x478f7e(0x100)]=void 0x0;function a4_0x1e89(){const _0x7a3185=['3ffOicn','listevent_throttle','MetadataManager','__metadata','length','once','toString','object','__esModule','(((.+)+)+)+$','default','EventService','@midwayjs/core','off','sortByDesc','getAsync','530816YkzbzB','prototype','getListevent','collect.js','search','147063dhPSvx','resolve','event','now','DecoratorManager','function','../interface','16dKrKwe','metadata','all','listevent','stringify','getOwnPropertyDescriptor','606132YhaYrj','name','Scope','constructor','getApplicationContext','ScopeEnum','design:type','3449040BdnRqZ','throttle','67607NzaTdD','app','propertyKey','Provide','__decorate','defineProperty','605656fLZpUE','init','102AcvhvL','priority','79095QkTnKV','EVENT_KEY'];a4_0x1e89=function(){return _0x7a3185;};return a4_0x1e89();}const collect_js_1=require(a4_0x478f7e(0x108)),core_1=require(a4_0x478f7e(0x101)),core_2=require(a4_0x478f7e(0x101)),interface_1=require(a4_0x478f7e(0x110));let EventService=class EventService{constructor(){this['init']=![];}async[a4_0x478f7e(0x107)](_0x58e283){const _0x3d5bff=a4_0x478f7e;if(!this['init']){this[_0x3d5bff(0xf0)]=!![],this['listevent']={},this[_0x3d5bff(0xf6)]={};for(const _0x190935 of core_2[_0x3d5bff(0x10e)]['listModule'](interface_1[_0x3d5bff(0xf4)])||[]){const _0x5b0fa7=await this[_0x3d5bff(0xea)][_0x3d5bff(0xe4)]()[_0x3d5bff(0x104)](_0x190935);for(const _0x2a2ac5 of core_2[_0x3d5bff(0xf7)]['getOwnMetadata'](interface_1['EVENT_ON_KEY'],_0x190935)||[]){typeof(_0x5b0fa7[_0x2a2ac5[_0x3d5bff(0xeb)]]==_0x3d5bff(0x10f))&&(!this[_0x3d5bff(0x114)][_0x2a2ac5['name']]&&(this[_0x3d5bff(0x114)][_0x2a2ac5['name']]=[]),this[_0x3d5bff(0x114)][_0x2a2ac5[_0x3d5bff(0xe1)]]['push']({'priority':(_0x2a2ac5===null||_0x2a2ac5===void 0x0?void 0x0:_0x2a2ac5[_0x3d5bff(0xf2)])||0x0,'throttle':(_0x2a2ac5===null||_0x2a2ac5===void 0x0?void 0x0:_0x2a2ac5[_0x3d5bff(0xe8)])||0x1f4,'resolve':_0x5b0fa7[_0x2a2ac5['propertyKey']]['bind'](_0x5b0fa7),'propertyKey':_0x190935[_0x3d5bff(0xe1)]+'@'+_0x2a2ac5[_0x3d5bff(0xeb)]}));}}for(const _0x271ca0 in this[_0x3d5bff(0x114)]){this[_0x3d5bff(0x114)][_0x271ca0]=(0x0,collect_js_1[_0x3d5bff(0xff)])(this[_0x3d5bff(0x114)][_0x271ca0])[_0x3d5bff(0x103)](_0x3d5bff(0xf2))[_0x3d5bff(0x113)]();}}return _0x58e283?this['listevent'][_0x58e283]||[]:this[_0x3d5bff(0x114)];}async['emit'](_0x3bacc0,..._0x27e7f2){const _0x4698d3=a4_0x478f7e;var _0x50eb39,_0xd19839,_0x25f52d,_0x42d01d,_0x5f4bfe;const _0x536b22=''+JSON[_0x4698d3(0x115)](_0x27e7f2),_0x16bfa6=Date[_0x4698d3(0x10d)]();await this['getListevent']();for(let _0xece678 in this[_0x4698d3(0xf6)]){this[_0x4698d3(0xf6)][_0xece678]<_0x16bfa6&&delete this['listevent_throttle'][_0xece678];}for(let _0x87053d in(_0x50eb39=this['listevent'])===null||_0x50eb39===void 0x0?void 0x0:_0x50eb39[_0x3bacc0]){if(((_0xd19839=this[_0x4698d3(0x114)][_0x3bacc0])===null||_0xd19839===void 0x0?void 0x0:_0xd19839[_0x87053d])&&typeof((_0x42d01d=(_0x25f52d=this[_0x4698d3(0x114)][_0x3bacc0])===null||_0x25f52d===void 0x0?void 0x0:_0x25f52d[_0x87053d])===null||_0x42d01d===void 0x0?void 0x0:_0x42d01d[_0x4698d3(0x10b)])==_0x4698d3(0x10f)){const _0x21de2b=_0x3bacc0+'_'+_0x87053d+'@'+_0x536b22;(this[_0x4698d3(0xf6)][_0x21de2b]||0x0)<_0x16bfa6&&(this[_0x4698d3(0xf6)][_0x21de2b]=_0x16bfa6+(((_0x5f4bfe=this[_0x4698d3(0x114)][_0x3bacc0][_0x87053d])===null||_0x5f4bfe===void 0x0?void 0x0:_0x5f4bfe[_0x4698d3(0xe8)])||0x1f4),await this[_0x4698d3(0x114)][_0x3bacc0][_0x87053d][_0x4698d3(0x10b)](..._0x27e7f2));}}}async[a4_0x478f7e(0xfa)](_0x2bab2b,..._0x368328){const _0x6f2afa=a4_0x478f7e;return await this[_0x6f2afa(0x107)](),await this['emit'](_0x2bab2b,..._0x368328),this['off'](_0x2bab2b);}async[a4_0x478f7e(0x102)](_0x37d242){const _0x4a0ea5=a4_0x478f7e;return await this[_0x4a0ea5(0x107)](),this[_0x4a0ea5(0x114)][_0x37d242]&&delete this['listevent'][_0x37d242],!!this[_0x4a0ea5(0x114)][_0x37d242];}};exports[a4_0x478f7e(0x100)]=EventService,__decorate([(0x0,core_1['MainApp'])(),__metadata(a4_0x478f7e(0xe6),Object)],EventService[a4_0x478f7e(0x106)],a4_0x478f7e(0xea),void 0x0),exports[a4_0x478f7e(0x100)]=EventService=__decorate([(0x0,core_1[a4_0x478f7e(0xec)])(a4_0x478f7e(0x10c)),(0x0,core_1[a4_0x478f7e(0xe2)])(core_1[a4_0x478f7e(0xe5)]['Singleton'])],EventService);
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@anveroapi/event",
|
|
3
|
+
"version": "4.0.1",
|
|
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
|
+
"dependencies": {
|
|
14
|
+
"collect.js": "^4.36.1",
|
|
15
|
+
"@midwayjs/core": "^4.2.6"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"typescript": "~5.9.3",
|
|
19
|
+
"@types/node": "20.10.0",
|
|
20
|
+
"javascript-obfuscator": "^4.0.2"
|
|
21
|
+
},
|
|
22
|
+
"gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build2": "tsc",
|
|
25
|
+
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
26
|
+
}
|
|
27
|
+
}
|