@anncic-api/event 1.2.4 → 1.2.5
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 +2 -2
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x435190=a0_0x27e2;(function(_0x2af2d0,_0x47b92){var _0x4007c5=a0_0x27e2,_0x316164=_0x2af2d0();while(!![]){try{var _0x471e6b=parseInt(_0x4007c5(0x73))/0x1+-parseInt(_0x4007c5(0x78))/0x2+parseInt(_0x4007c5(0x75))/0x3*(parseInt(_0x4007c5(0x8a))/0x4)+parseInt(_0x4007c5(0x77))/0x5+-parseInt(_0x4007c5(0x79))/0x6*(parseInt(_0x4007c5(0x80))/0x7)+-parseInt(_0x4007c5(0x82))/0x8*(-parseInt(_0x4007c5(0x7b))/0x9)+-parseInt(_0x4007c5(0x71))/0xa*(parseInt(_0x4007c5(0x88))/0xb);if(_0x471e6b===_0x47b92)break;else _0x316164['push'](_0x316164['shift']());}catch(_0xc0c09e){_0x316164['push'](_0x316164['shift']());}}}(a0_0x1f81,0xdb7af));var __decorate=this&&this[a0_0x435190(0x89)]||function(_0x1ad13e,_0x2e27ee,_0x95db4b,_0x2531db){var _0x2c78f3=a0_0x435190,_0x4b9ab0=arguments[_0x2c78f3(0x7a)],_0xc69b9a=_0x4b9ab0<0x3?_0x2e27ee:_0x2531db===null?_0x2531db=Object[_0x2c78f3(0x74)](_0x2e27ee,_0x95db4b):_0x2531db,_0x4a049d;if(typeof Reflect===_0x2c78f3(0x86)&&typeof Reflect[_0x2c78f3(0x7c)]===_0x2c78f3(0x84))_0xc69b9a=Reflect[_0x2c78f3(0x7c)](_0x1ad13e,_0x2e27ee,_0x95db4b,_0x2531db);else{for(var _0x56c72b=_0x1ad13e[_0x2c78f3(0x7a)]-0x1;_0x56c72b>=0x0;_0x56c72b--)if(_0x4a049d=_0x1ad13e[_0x56c72b])_0xc69b9a=(_0x4b9ab0<0x3?_0x4a049d(_0xc69b9a):_0x4b9ab0>0x3?_0x4a049d(_0x2e27ee,_0x95db4b,_0xc69b9a):_0x4a049d(_0x2e27ee,_0x95db4b))||_0xc69b9a;}return _0x4b9ab0>0x3&&_0xc69b9a&&Object[_0x2c78f3(0x87)](_0x2e27ee,_0x95db4b,_0xc69b9a),_0xc69b9a;},__metadata=this&&this[a0_0x435190(0x7f)]||function(_0x50e625,_0x1e7da3){var _0x5af8fc=a0_0x435190;if(typeof Reflect===_0x5af8fc(0x86)&&typeof Reflect[_0x5af8fc(0x83)]===_0x5af8fc(0x84))return Reflect[_0x5af8fc(0x83)](_0x50e625,_0x1e7da3);};function a0_0x1f81(){var _0x1aa4b8=['design:type','prototype','2163190vGbZGf','Inject','1216956EjWWMc','getOwnPropertyDescriptor','40191SRgNpP','Configuration','2538985GTNuOG','1299872IJRAIl','12VVQKxG','length','5709339dljDLc','decorate','decorator','CustomConfiguration','__metadata','5189772RlApwA','anncic-api:event','16aCYRQd','metadata','function','__esModule','object','defineProperty','11FfukQF','__decorate','76pKDYSS','MidwayDecoratorService','@midwayjs/core'];a0_0x1f81=function(){return _0x1aa4b8;};return a0_0x1f81();}function a0_0x27e2(_0x3806d3,_0x4a7782){var _0x1f8172=a0_0x1f81();return a0_0x27e2=function(_0x27e205,_0x26d620){_0x27e205=_0x27e205-0x71;var _0x2064c2=_0x1f8172[_0x27e205];return _0x2064c2;},a0_0x27e2(_0x3806d3,_0x4a7782);}Object['defineProperty'](exports,a0_0x435190(0x85),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x435190(0x8c));let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x435190(0x8d),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x435190(0x8e)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x435190(0x72)])(),__metadata(a0_0x435190(0x8d),core_2[a0_0x435190(0x8b)])],CustomConfiguration[a0_0x435190(0x8e)],a0_0x435190(0x7d),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x435190(0x76)])({'conflictCheck':![],'namespace':a0_0x435190(0x81)})],CustomConfiguration),exports[a0_0x435190(0x7e)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x37270e=a1_0x411e;function a1_0x12aa(){const _0xc36d91=['8198596ckBIhp','ScopeEnum','616atFPZu','3585740Enipex','defineProperty','@midwayjs/core','1062944GsDuCS','EVENT_ON_KEY','678126HrZTLs','14559GQfqco','saveModule','Event','32940ySTFqZ','198IDCcWD','990630NJfMUe','../interface','20vqnPTQ','Scope','22xXNuAm','Request','Provide'];a1_0x12aa=function(){return _0xc36d91;};return a1_0x12aa();}(function(_0x439bad,_0x54774f){const _0x3fd790=a1_0x411e,_0x1423e7=_0x439bad();while(!![]){try{const _0x2a0f1b=parseInt(_0x3fd790(0x16b))/0x1+parseInt(_0x3fd790(0x177))/0x2*(parseInt(_0x3fd790(0x16e))/0x3)+-parseInt(_0x3fd790(0x168))/0x4+parseInt(_0x3fd790(0x175))/0x5*(-parseInt(_0x3fd790(0x16d))/0x6)+-parseInt(_0x3fd790(0x165))/0x7+-parseInt(_0x3fd790(0x167))/0x8*(-parseInt(_0x3fd790(0x171))/0x9)+parseInt(_0x3fd790(0x173))/0xa*(parseInt(_0x3fd790(0x172))/0xb);if(_0x2a0f1b===_0x54774f)break;else _0x1423e7['push'](_0x1423e7['shift']());}catch(_0x2cdd34){_0x1423e7['push'](_0x1423e7['shift']());}}}(a1_0x12aa,0xa181e));function a1_0x411e(_0x4b68f3,_0x420613){const _0x12aa52=a1_0x12aa();return a1_0x411e=function(_0x411ef4,_0x5eb310){_0x411ef4=_0x411ef4-0x165;let _0x139380=_0x12aa52[_0x411ef4];return _0x139380;},a1_0x411e(_0x4b68f3,_0x420613);}Object[a1_0x37270e(0x169)](exports,'__esModule',{'value':!![]}),exports[a1_0x37270e(0x170)]=void 0x0;const core_1=require(a1_0x37270e(0x16a)),interface_1=require(a1_0x37270e(0x174));function Event(){return _0x1a4395=>{const _0x2d806a=a1_0x411e;(0x0,core_1[_0x2d806a(0x179)])()(_0x1a4395),(0x0,core_1[_0x2d806a(0x16f)])(interface_1['EVENT_KEY'],_0x1a4395),(0x0,core_1[_0x2d806a(0x176)])(core_1[_0x2d806a(0x166)][_0x2d806a(0x178)],{'allowDowngrade':!![]})(_0x1a4395);};}exports[a1_0x37270e(0x170)]=Event,Event['On']=function(_0xf0c933,_0x2ae5e2=0x0){return(_0x229b07,_0x57a1ed,_0x4d941e)=>{const _0x597352=a1_0x411e;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x597352(0x16c)],{'name':_0xf0c933,'priority':_0x2ae5e2,'propertyKey':_0x57a1ed,'descriptor':_0x4d941e},_0x229b07),_0x4d941e;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x46afb3=a2_0x329d;(function(_0x206d4e,_0x41f538){var _0x21e314=a2_0x329d,_0x2b4662=_0x206d4e();while(!![]){try{var _0x2b92d1=-parseInt(_0x21e314(0x1a1))/0x1*(parseInt(_0x21e314(0x1b0))/0x2)+-parseInt(_0x21e314(0x1ac))/0x3*(parseInt(_0x21e314(0x1a7))/0x4)+parseInt(_0x21e314(0x1a5))/0x5+-parseInt(_0x21e314(0x19e))/0x6+-parseInt(_0x21e314(0x1a4))/0x7*(parseInt(_0x21e314(0x19f))/0x8)+parseInt(_0x21e314(0x19d))/0x9*(-parseInt(_0x21e314(0x1aa))/0xa)+-parseInt(_0x21e314(0x1a0))/0xb*(-parseInt(_0x21e314(0x1af))/0xc);if(_0x2b92d1===_0x41f538)break;else _0x2b4662['push'](_0x2b4662['shift']());}catch(_0x390145){_0x2b4662['push'](_0x2b4662['shift']());}}}(a2_0xb16a,0xa84a9));Object['defineProperty'](exports,a2_0x46afb3(0x1ae),{'value':!![]}),exports[a2_0x46afb3(0x1a2)]=exports['EventService']=exports['Event']=void 0x0;var Event_1=require(a2_0x46afb3(0x1a3));Object[a2_0x46afb3(0x1a9)](exports,'Event',{'enumerable':!![],'get':function(){var _0xf5ee05=a2_0x46afb3;return Event_1[_0xf5ee05(0x1b1)];}});var EventService_1=require(a2_0x46afb3(0x1a8));Object[a2_0x46afb3(0x1a9)](exports,a2_0x46afb3(0x1ad),{'enumerable':!![],'get':function(){var _0x12eb1b=a2_0x46afb3;return EventService_1[_0x12eb1b(0x1ad)];}});function a2_0x329d(_0x53dc87,_0x577cd){var _0xb16a34=a2_0xb16a();return a2_0x329d=function(_0x329d2f,_0xe4aaae){_0x329d2f=_0x329d2f-0x19d;var _0x1abe1c=_0xb16a34[_0x329d2f];return _0x1abe1c;},a2_0x329d(_0x53dc87,_0x577cd);}var configuration_1=require(a2_0x46afb3(0x1a6));function a2_0xb16a(){var _0x2b9ebb=['226721eFTsdu','Configuration','./decorator/Event','110173ddzQzl','4670310HeSBut','./configuration','452DIGWDv','./service/EventService','defineProperty','2688830hfVWSj','CustomConfiguration','27609glZkLn','EventService','__esModule','192KnVwIh','10rgLoub','Event','9ztovLd','3725406UAyzkv','376uEdlRk','2446345KYPKzW'];a2_0xb16a=function(){return _0x2b9ebb;};return a2_0xb16a();}Object['defineProperty'](exports,a2_0x46afb3(0x1a2),{'enumerable':!![],'get':function(){var _0x442e99=a2_0x46afb3;return configuration_1[_0x442e99(0x1ab)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x50fe(_0x304333,_0x27399b){var _0x4a7cf9=a3_0x4a7c();return a3_0x50fe=function(_0x50fed5,_0x81a401){_0x50fed5=_0x50fed5-0xb9;var _0x419bcc=_0x4a7cf9[_0x50fed5];return _0x419bcc;},a3_0x50fe(_0x304333,_0x27399b);}var a3_0x56b8cb=a3_0x50fe;(function(_0x5ad0e0,_0x135843){var _0x3005ce=a3_0x50fe,_0x11670e=_0x5ad0e0();while(!![]){try{var _0x315fff=-parseInt(_0x3005ce(0xbc))/0x1+parseInt(_0x3005ce(0xc5))/0x2+-parseInt(_0x3005ce(0xb9))/0x3+parseInt(_0x3005ce(0xba))/0x4+parseInt(_0x3005ce(0xc2))/0x5+-parseInt(_0x3005ce(0xc0))/0x6+-parseInt(_0x3005ce(0xc4))/0x7*(-parseInt(_0x3005ce(0xbf))/0x8);if(_0x315fff===_0x135843)break;else _0x11670e['push'](_0x11670e['shift']());}catch(_0x441b7c){_0x11670e['push'](_0x11670e['shift']());}}}(a3_0x4a7c,0xee58b));function a3_0x4a7c(){var _0x363ea0=['3951768MNCWjT','defineProperty','1932324dZwZdg','anncic-api:event:on','EVENT_ON_KEY','8894512qTrwfh','2706036IsIMZJ','anncic-api:event','2214565ezBbpw','EVENT_KEY','14XdqZuT','1914588nkfzpr','3756540pSPdwm'];a3_0x4a7c=function(){return _0x363ea0;};return a3_0x4a7c();}Object[a3_0x56b8cb(0xbb)](exports,'__esModule',{'value':!![]}),exports[a3_0x56b8cb(0xbe)]=exports[a3_0x56b8cb(0xc3)]=void 0x0,exports['EVENT_KEY']=a3_0x56b8cb(0xc1),exports[a3_0x56b8cb(0xbe)]=a3_0x56b8cb(0xbd);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x350c74=a4_0x162b;function a4_0x201f(){const _0x5e3b75=['1350461cqulvs','32QLtDWA','decorate','init','Singleton','getClassMetadata','collect.js','Scope','100NMGDBK','priority','listevent','getOwnPropertyDescriptor','EventService','10640JyyXQJ','sortByDesc','8799336rAdoWL','propertyKey','1705dDYTNE','__decorate','once','resolve','listModule','EVENT_ON_KEY','name','11120gIrzpQ','length','emit','object','function','metadata','5520603MuJpDk','ScopeEnum','prototype','event','__metadata','EVENT_KEY','off','getListevent','app','../interface','20934NWDeyb','defineProperty','48dmqten','14697630EwDShd','App'];a4_0x201f=function(){return _0x5e3b75;};return a4_0x201f();}(function(_0x36a84c,_0x7da0cf){const _0x853146=a4_0x162b,_0x18b4e9=_0x36a84c();while(!![]){try{const _0x5367d0=-parseInt(_0x853146(0x17d))/0x1*(-parseInt(_0x853146(0x183))/0x2)+parseInt(_0x853146(0x173))/0x3+parseInt(_0x853146(0x18a))/0x4*(-parseInt(_0x853146(0x18f))/0x5)+-parseInt(_0x853146(0x17f))/0x6*(parseInt(_0x853146(0x182))/0x7)+-parseInt(_0x853146(0x191))/0x8+parseInt(_0x853146(0x180))/0x9+parseInt(_0x853146(0x19a))/0xa*(-parseInt(_0x853146(0x193))/0xb);if(_0x5367d0===_0x7da0cf)break;else _0x18b4e9['push'](_0x18b4e9['shift']());}catch(_0x22c7b4){_0x18b4e9['push'](_0x18b4e9['shift']());}}}(a4_0x201f,0xe555a));var __decorate=this&&this[a4_0x350c74(0x194)]||function(_0x1fc760,_0xef7d04,_0x1e8e2e,_0x5669de){const _0x5bbccc=a4_0x350c74;var _0x3da96b=arguments[_0x5bbccc(0x19b)],_0x2eb76b=_0x3da96b<0x3?_0xef7d04:_0x5669de===null?_0x5669de=Object[_0x5bbccc(0x18d)](_0xef7d04,_0x1e8e2e):_0x5669de,_0x544002;if(typeof Reflect===_0x5bbccc(0x170)&&typeof Reflect[_0x5bbccc(0x184)]===_0x5bbccc(0x171))_0x2eb76b=Reflect[_0x5bbccc(0x184)](_0x1fc760,_0xef7d04,_0x1e8e2e,_0x5669de);else{for(var _0x5bab6f=_0x1fc760[_0x5bbccc(0x19b)]-0x1;_0x5bab6f>=0x0;_0x5bab6f--)if(_0x544002=_0x1fc760[_0x5bab6f])_0x2eb76b=(_0x3da96b<0x3?_0x544002(_0x2eb76b):_0x3da96b>0x3?_0x544002(_0xef7d04,_0x1e8e2e,_0x2eb76b):_0x544002(_0xef7d04,_0x1e8e2e))||_0x2eb76b;}return _0x3da96b>0x3&&_0x2eb76b&&Object[_0x5bbccc(0x17e)](_0xef7d04,_0x1e8e2e,_0x2eb76b),_0x2eb76b;},__metadata=this&&this[a4_0x350c74(0x177)]||function(_0x160a8b,_0x2a0013){const _0x5dd748=a4_0x350c74;if(typeof Reflect===_0x5dd748(0x170)&&typeof Reflect[_0x5dd748(0x172)]===_0x5dd748(0x171))return Reflect['metadata'](_0x160a8b,_0x2a0013);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require(a4_0x350c74(0x188)),core_1=require('@midwayjs/core'),interface_1=require(a4_0x350c74(0x17c));let EventService=class EventService{constructor(){const _0x327be9=a4_0x350c74;this[_0x327be9(0x185)]=![];}async['getListevent'](_0x23429f){const _0x2fa9e4=a4_0x350c74;if(!this[_0x2fa9e4(0x185)]){this[_0x2fa9e4(0x185)]=!![],this['listevent']={};for(const _0x199d6d of(0x0,core_1[_0x2fa9e4(0x197)])(interface_1[_0x2fa9e4(0x178)])||[]){const _0x5c367d=await this[_0x2fa9e4(0x17b)]['getApplicationContext']()['getAsync'](_0x199d6d);for(const _0x4d7e98 of(0x0,core_1[_0x2fa9e4(0x187)])(interface_1[_0x2fa9e4(0x198)],_0x199d6d)||[]){typeof(_0x5c367d[_0x4d7e98['propertyKey']]==_0x2fa9e4(0x171))&&(!this[_0x2fa9e4(0x18c)][_0x4d7e98[_0x2fa9e4(0x199)]]&&(this['listevent'][_0x4d7e98['name']]=[]),this[_0x2fa9e4(0x18c)][_0x4d7e98[_0x2fa9e4(0x199)]]['push']({'priority':_0x4d7e98[_0x2fa9e4(0x18b)],'resolve':_0x5c367d[_0x4d7e98['propertyKey']]['bind'](_0x5c367d),'propertyKey':_0x199d6d[_0x2fa9e4(0x199)]+'@'+_0x4d7e98[_0x2fa9e4(0x192)]}));}}for(const _0x548745 in this[_0x2fa9e4(0x18c)]){this[_0x2fa9e4(0x18c)][_0x548745]=(0x0,collect_js_1['default'])(this[_0x2fa9e4(0x18c)][_0x548745])[_0x2fa9e4(0x190)]('priority')['all']();}}return _0x23429f?this[_0x2fa9e4(0x18c)][_0x23429f]||[]:this[_0x2fa9e4(0x18c)];}async['emit'](_0x39ab4b,..._0x4de1bc){const _0x3d0f74=a4_0x350c74;var _0x54ed1c,_0x3da6c2;await this[_0x3d0f74(0x17a)]();for(let _0x5127f5 in(_0x54ed1c=this['listevent'])===null||_0x54ed1c===void 0x0?void 0x0:_0x54ed1c[_0x39ab4b]){const _0x38bf32=(_0x3da6c2=this['listevent'][_0x39ab4b])===null||_0x3da6c2===void 0x0?void 0x0:_0x3da6c2[_0x5127f5];(_0x38bf32===null||_0x38bf32===void 0x0?void 0x0:_0x38bf32[_0x3d0f74(0x196)])&&typeof(_0x38bf32===null||_0x38bf32===void 0x0?void 0x0:_0x38bf32[_0x3d0f74(0x196)])=='function'&&await _0x38bf32[_0x3d0f74(0x196)](..._0x4de1bc);}}async[a4_0x350c74(0x195)](_0x4a1d4e,..._0x17fb9a){const _0x45f0ce=a4_0x350c74;return await this['getListevent'](),await this[_0x45f0ce(0x19c)](_0x4a1d4e,..._0x17fb9a),this[_0x45f0ce(0x179)](_0x4a1d4e);}async[a4_0x350c74(0x179)](_0x499bd3){const _0x43f51a=a4_0x350c74;return await this[_0x43f51a(0x17a)](),this[_0x43f51a(0x18c)][_0x499bd3]&&delete this['listevent'][_0x499bd3],!!this[_0x43f51a(0x18c)][_0x499bd3];}};function a4_0x162b(_0x532223,_0x3f2c1e){const _0x201f35=a4_0x201f();return a4_0x162b=function(_0x162b8b,_0x2856c6){_0x162b8b=_0x162b8b-0x170;let _0x184bfb=_0x201f35[_0x162b8b];return _0x184bfb;},a4_0x162b(_0x532223,_0x3f2c1e);}__decorate([(0x0,core_1[a4_0x350c74(0x181)])(),__metadata('design:type',Object)],EventService[a4_0x350c74(0x175)],a4_0x350c74(0x17b),void 0x0),EventService=__decorate([(0x0,core_1['Provide'])(a4_0x350c74(0x176)),(0x0,core_1[a4_0x350c74(0x189)])(core_1[a4_0x350c74(0x174)][a4_0x350c74(0x186)])],EventService),exports[a4_0x350c74(0x18e)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"javascript-obfuscator": "2.19.0",
|
|
22
22
|
"typescript": "^4.7.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "cce7121ac24f7f22830371c64361e137a3b438c6"
|
|
25
25
|
}
|