@anncic-api/event 1.1.9 → 1.1.10
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';function a0_0x52fb(_0x85532d,_0x91f818){var _0x31969b=a0_0x3196();return a0_0x52fb=function(_0x52fbc4,_0x5b3552){_0x52fbc4=_0x52fbc4-0x1c5;var _0x553409=_0x31969b[_0x52fbc4];return _0x553409;},a0_0x52fb(_0x85532d,_0x91f818);}function a0_0x3196(){var _0x32702a=['decorate','3030692zxkder','5405616SSUVOu','Inject','@midwayjs/decorator','defineProperty','__decorate','metadata','90bNfntE','length','11330354GLzwtK','__metadata','function','438776QMtUeO','anncic-api:event','10wvHjZP','10979639yJJJiX','getOwnPropertyDescriptor','MidwayDecoratorService','Configuration','3wWQWHt','CustomConfiguration','prototype','292802rbAShO','config','5MclScW','412472qYbNRO','@midwayjs/core','MidwayConfigService','onReady','design:type','object','__esModule'];a0_0x3196=function(){return _0x32702a;};return a0_0x3196();}var a0_0x1df19f=a0_0x52fb;(function(_0x26318e,_0x8d5eb3){var _0x30c36d=a0_0x52fb,_0x35124b=_0x26318e();while(!![]){try{var _0x186ebc=-parseInt(_0x30c36d(0x1cf))/0x1+parseInt(_0x30c36d(0x1d2))/0x2*(-parseInt(_0x30c36d(0x1cc))/0x3)+-parseInt(_0x30c36d(0x1da))/0x4*(parseInt(_0x30c36d(0x1d1))/0x5)+parseInt(_0x30c36d(0x1db))/0x6+parseInt(_0x30c36d(0x1e3))/0x7+-parseInt(_0x30c36d(0x1c5))/0x8*(-parseInt(_0x30c36d(0x1e1))/0x9)+parseInt(_0x30c36d(0x1c7))/0xa*(-parseInt(_0x30c36d(0x1c8))/0xb);if(_0x186ebc===_0x8d5eb3)break;else _0x35124b['push'](_0x35124b['shift']());}catch(_0x4656d0){_0x35124b['push'](_0x35124b['shift']());}}}(a0_0x3196,0xc6870));var __decorate=this&&this[a0_0x1df19f(0x1df)]||function(_0x3805a2,_0x2e0a55,_0xade84d,_0x427849){var _0x54ac13=a0_0x1df19f,_0x884f2c=arguments['length'],_0xbaf7de=_0x884f2c<0x3?_0x2e0a55:_0x427849===null?_0x427849=Object[_0x54ac13(0x1c9)](_0x2e0a55,_0xade84d):_0x427849,_0x26b7ca;if(typeof Reflect===_0x54ac13(0x1d7)&&typeof Reflect[_0x54ac13(0x1d9)]===_0x54ac13(0x1e5))_0xbaf7de=Reflect[_0x54ac13(0x1d9)](_0x3805a2,_0x2e0a55,_0xade84d,_0x427849);else{for(var _0x443c75=_0x3805a2[_0x54ac13(0x1e2)]-0x1;_0x443c75>=0x0;_0x443c75--)if(_0x26b7ca=_0x3805a2[_0x443c75])_0xbaf7de=(_0x884f2c<0x3?_0x26b7ca(_0xbaf7de):_0x884f2c>0x3?_0x26b7ca(_0x2e0a55,_0xade84d,_0xbaf7de):_0x26b7ca(_0x2e0a55,_0xade84d))||_0xbaf7de;}return _0x884f2c>0x3&&_0xbaf7de&&Object[_0x54ac13(0x1de)](_0x2e0a55,_0xade84d,_0xbaf7de),_0xbaf7de;},__metadata=this&&this[a0_0x1df19f(0x1e4)]||function(_0x14f409,_0x45ce84){var _0x54cb6d=a0_0x1df19f;if(typeof Reflect==='object'&&typeof Reflect[_0x54cb6d(0x1e0)]==='function')return Reflect[_0x54cb6d(0x1e0)](_0x14f409,_0x45ce84);};Object['defineProperty'](exports,a0_0x1df19f(0x1d8),{'value':!![]}),exports[a0_0x1df19f(0x1cd)]=void 0x0;const decorator_1=require(a0_0x1df19f(0x1dd)),core_1=require(a0_0x1df19f(0x1d3));let CustomConfiguration=class CustomConfiguration{async[a0_0x1df19f(0x1d5)](){}};__decorate([(0x0,decorator_1[a0_0x1df19f(0x1dc)])(),__metadata(a0_0x1df19f(0x1d6),core_1[a0_0x1df19f(0x1d4)])],CustomConfiguration['prototype'],a0_0x1df19f(0x1d0),void 0x0),__decorate([(0x0,decorator_1[a0_0x1df19f(0x1dc)])(),__metadata('design:type',core_1[a0_0x1df19f(0x1ca)])],CustomConfiguration[a0_0x1df19f(0x1ce)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x1df19f(0x1cb)])({'conflictCheck':![],'namespace':a0_0x1df19f(0x1c6)})],CustomConfiguration),exports[a0_0x1df19f(0x1cd)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x33c0f9=a1_0xddb4;(function(_0x30a916,_0x299c51){const _0x56cbbd=a1_0xddb4,_0x5dc7e4=_0x30a916();while(!![]){try{const _0x176e22=-parseInt(_0x56cbbd(0x183))/0x1*(parseInt(_0x56cbbd(0x181))/0x2)+-parseInt(_0x56cbbd(0x18b))/0x3*(parseInt(_0x56cbbd(0x186))/0x4)+parseInt(_0x56cbbd(0x182))/0x5+-parseInt(_0x56cbbd(0x185))/0x6+-parseInt(_0x56cbbd(0x18c))/0x7*(parseInt(_0x56cbbd(0x187))/0x8)+-parseInt(_0x56cbbd(0x184))/0x9+parseInt(_0x56cbbd(0x17d))/0xa*(parseInt(_0x56cbbd(0x180))/0xb);if(_0x176e22===_0x299c51)break;else _0x5dc7e4['push'](_0x5dc7e4['shift']());}catch(_0x4f45a6){_0x5dc7e4['push'](_0x5dc7e4['shift']());}}}(a1_0x169f,0x949c8));function a1_0x169f(){const _0x13863=['EVENT_ON_KEY','237VqIhYv','7VbfQsn','EVENT_KEY','../interface','Event','Provide','ScopeEnum','saveModule','10DpFxsW','Request','defineProperty','45255826GJFuaX','1014068iOdfRF','3567990NajaAA','2SDnNVm','7797798PfrZsV','7263504SQcNra','51604bTFcKB','870392KxsFin','@midwayjs/decorator','Scope'];a1_0x169f=function(){return _0x13863;};return a1_0x169f();}function a1_0xddb4(_0x940c71,_0xd86387){const _0x169f35=a1_0x169f();return a1_0xddb4=function(_0xddb48,_0x4833f7){_0xddb48=_0xddb48-0x178;let _0x500297=_0x169f35[_0xddb48];return _0x500297;},a1_0xddb4(_0x940c71,_0xd86387);}Object[a1_0x33c0f9(0x17f)](exports,'__esModule',{'value':!![]}),exports['Event']=void 0x0;const decorator_1=require(a1_0x33c0f9(0x188)),interface_1=require(a1_0x33c0f9(0x178));function Event(){return _0x175aff=>{const _0xfc0f7f=a1_0xddb4;(0x0,decorator_1[_0xfc0f7f(0x17a)])()(_0x175aff),(0x0,decorator_1[_0xfc0f7f(0x17c)])(interface_1[_0xfc0f7f(0x18d)],_0x175aff),(0x0,decorator_1[_0xfc0f7f(0x189)])(decorator_1[_0xfc0f7f(0x17b)][_0xfc0f7f(0x17e)],{'allowDowngrade':!![]})(_0x175aff);};}exports[a1_0x33c0f9(0x179)]=Event,Event['On']=function(_0x14f3d5,_0x4caf26=0x0){return(_0x3cbbb4,_0x2591d2,_0x2417c1)=>{const _0x1debad=a1_0xddb4;return(0x0,decorator_1['attachClassMetadata'])(interface_1[_0x1debad(0x18a)],{'name':_0x14f3d5,'priority':_0x4caf26,'propertyKey':_0x2591d2,'descriptor':_0x2417c1},_0x3cbbb4),_0x2417c1;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x165105=a2_0x53f3;(function(_0x4f9fbb,_0x115952){var _0x1badc2=a2_0x53f3,_0x46f39e=_0x4f9fbb();while(!![]){try{var _0x4ec52b=-parseInt(_0x1badc2(0xa7))/0x1*(parseInt(_0x1badc2(0xa1))/0x2)+parseInt(_0x1badc2(0xa9))/0x3*(parseInt(_0x1badc2(0xaa))/0x4)+parseInt(_0x1badc2(0xac))/0x5*(parseInt(_0x1badc2(0xaf))/0x6)+-parseInt(_0x1badc2(0xa8))/0x7+-parseInt(_0x1badc2(0xb0))/0x8*(-parseInt(_0x1badc2(0xa3))/0x9)+parseInt(_0x1badc2(0xab))/0xa*(parseInt(_0x1badc2(0xad))/0xb)+-parseInt(_0x1badc2(0xae))/0xc;if(_0x4ec52b===_0x115952)break;else _0x46f39e['push'](_0x46f39e['shift']());}catch(_0x24b970){_0x46f39e['push'](_0x46f39e['shift']());}}}(a2_0x5925,0xbf4ea));Object[a2_0x165105(0xa5)](exports,'__esModule',{'value':!![]}),exports[a2_0x165105(0xb1)]=exports[a2_0x165105(0xa2)]=exports[a2_0x165105(0xa4)]=void 0x0;var Event_1=require('./decorator/Event');function a2_0x53f3(_0x58b634,_0x2ee15c){var _0x5925bf=a2_0x5925();return a2_0x53f3=function(_0x53f3b0,_0x274087){_0x53f3b0=_0x53f3b0-0x9f;var _0x35af46=_0x5925bf[_0x53f3b0];return _0x35af46;},a2_0x53f3(_0x58b634,_0x2ee15c);}Object[a2_0x165105(0xa5)](exports,a2_0x165105(0xa4),{'enumerable':!![],'get':function(){var _0x2795e3=a2_0x165105;return Event_1[_0x2795e3(0xa4)];}});function a2_0x5925(){var _0x5351ce=['Configuration','./configuration','./service/EventService','190522fMGSDK','EventService','10107cXfBty','Event','defineProperty','CustomConfiguration','9ZtCWRM','5760538cjjdlr','3ZChyFv','1248848wYdTCo','10410LkxEGv','5DuOxWC','16038lWeOXD','10115808qOVEiZ','1557234eXdHch','8672vlWoSz'];a2_0x5925=function(){return _0x5351ce;};return a2_0x5925();}var EventService_1=require(a2_0x165105(0xa0));Object[a2_0x165105(0xa5)](exports,a2_0x165105(0xa2),{'enumerable':!![],'get':function(){var _0x2feddf=a2_0x165105;return EventService_1[_0x2feddf(0xa2)];}});var configuration_1=require(a2_0x165105(0x9f));Object[a2_0x165105(0xa5)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x46af5d=a2_0x165105;return configuration_1[_0x46af5d(0xa6)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x396e21=a3_0x1d2f;(function(_0x4b109b,_0x437402){var _0x179a11=a3_0x1d2f,_0x40e4de=_0x4b109b();while(!![]){try{var _0x3001dc=-parseInt(_0x179a11(0x1f3))/0x1+-parseInt(_0x179a11(0x1ec))/0x2+parseInt(_0x179a11(0x1f5))/0x3*(-parseInt(_0x179a11(0x1e8))/0x4)+parseInt(_0x179a11(0x1f0))/0x5+parseInt(_0x179a11(0x1ea))/0x6+-parseInt(_0x179a11(0x1ef))/0x7*(parseInt(_0x179a11(0x1f6))/0x8)+parseInt(_0x179a11(0x1ed))/0x9;if(_0x3001dc===_0x437402)break;else _0x40e4de['push'](_0x40e4de['shift']());}catch(_0x561bd5){_0x40e4de['push'](_0x40e4de['shift']());}}}(a3_0x5264,0x228eb));function a3_0x5264(){var _0x50da9d=['49udpnGK','1041070enlGQr','__esModule','EVENT_ON_KEY','204616lvbgRM','anncic-api:event','6Nlxbyf','69464ALskPb','378568iNaSZt','defineProperty','841764dXCiZq','anncic-api:event:on','320648UuZiUC','3672396OCUNpb','EVENT_KEY'];a3_0x5264=function(){return _0x50da9d;};return a3_0x5264();}function a3_0x1d2f(_0x15150a,_0x16507c){var _0x5264c1=a3_0x5264();return a3_0x1d2f=function(_0x1d2f92,_0x265fc9){_0x1d2f92=_0x1d2f92-0x1e8;var _0xb820b8=_0x5264c1[_0x1d2f92];return _0xb820b8;},a3_0x1d2f(_0x15150a,_0x16507c);}Object[a3_0x396e21(0x1e9)](exports,a3_0x396e21(0x1f1),{'value':!![]}),exports[a3_0x396e21(0x1f2)]=exports[a3_0x396e21(0x1ee)]=void 0x0,exports[a3_0x396e21(0x1ee)]=a3_0x396e21(0x1f4),exports[a3_0x396e21(0x1f2)]=a3_0x396e21(0x1eb);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x3df876=a4_0xdedc;(function(_0x5b5389,_0x2648d1){const _0x33bdd3=a4_0xdedc,_0x1d0eda=_0x5b5389();while(!![]){try{const _0x36e271=parseInt(_0x33bdd3(0x15c))/0x1+parseInt(_0x33bdd3(0x169))/0x2+parseInt(_0x33bdd3(0x152))/0x3+-parseInt(_0x33bdd3(0x162))/0x4*(parseInt(_0x33bdd3(0x151))/0x5)+-parseInt(_0x33bdd3(0x156))/0x6+-parseInt(_0x33bdd3(0x161))/0x7*(parseInt(_0x33bdd3(0x15b))/0x8)+-parseInt(_0x33bdd3(0x175))/0x9;if(_0x36e271===_0x2648d1)break;else _0x1d0eda['push'](_0x1d0eda['shift']());}catch(_0x476540){_0x1d0eda['push'](_0x1d0eda['shift']());}}}(a4_0x1a92,0x32dd7));var __decorate=this&&this['__decorate']||function(_0x341a94,_0x2e7c87,_0x5bb0c9,_0x527aa9){const _0x25abd6=a4_0xdedc;var _0x2c9678=arguments['length'],_0x33dc64=_0x2c9678<0x3?_0x2e7c87:_0x527aa9===null?_0x527aa9=Object[_0x25abd6(0x167)](_0x2e7c87,_0x5bb0c9):_0x527aa9,_0x54fe52;if(typeof Reflect===_0x25abd6(0x158)&&typeof Reflect[_0x25abd6(0x164)]===_0x25abd6(0x165))_0x33dc64=Reflect[_0x25abd6(0x164)](_0x341a94,_0x2e7c87,_0x5bb0c9,_0x527aa9);else{for(var _0x30353d=_0x341a94['length']-0x1;_0x30353d>=0x0;_0x30353d--)if(_0x54fe52=_0x341a94[_0x30353d])_0x33dc64=(_0x2c9678<0x3?_0x54fe52(_0x33dc64):_0x2c9678>0x3?_0x54fe52(_0x2e7c87,_0x5bb0c9,_0x33dc64):_0x54fe52(_0x2e7c87,_0x5bb0c9))||_0x33dc64;}return _0x2c9678>0x3&&_0x33dc64&&Object[_0x25abd6(0x168)](_0x2e7c87,_0x5bb0c9,_0x33dc64),_0x33dc64;},__metadata=this&&this[a4_0x3df876(0x171)]||function(_0xf9b560,_0x247cb3){const _0x1d07a0=a4_0x3df876;if(typeof Reflect==='object'&&typeof Reflect[_0x1d07a0(0x173)]===_0x1d07a0(0x165))return Reflect[_0x1d07a0(0x173)](_0xf9b560,_0x247cb3);};Object['defineProperty'](exports,a4_0x3df876(0x16d),{'value':!![]}),exports[a4_0x3df876(0x14f)]=void 0x0;function a4_0xdedc(_0x59c872,_0x20d4ee){const _0x1a929d=a4_0x1a92();return a4_0xdedc=function(_0xdedc65,_0x1493a6){_0xdedc65=_0xdedc65-0x14d;let _0x461617=_0x1a929d[_0xdedc65];return _0x461617;},a4_0xdedc(_0x59c872,_0x20d4ee);}const collect_js_1=require('collect.js'),decorator_1=require(a4_0x3df876(0x160)),interface_1=require(a4_0x3df876(0x157));let EventService=class EventService{constructor(){const _0x1fdf63=a4_0x3df876;this[_0x1fdf63(0x150)]=![];}async[a4_0x3df876(0x170)](_0x4e5929){const _0x1fc00f=a4_0x3df876;if(!this['init']){this[_0x1fc00f(0x150)]=!![],this['listevent']={};for(const _0x144e97 of(0x0,decorator_1['listModule'])(interface_1[_0x1fc00f(0x153)])||[]){const _0x379b50=await this[_0x1fc00f(0x16e)][_0x1fc00f(0x14e)]()[_0x1fc00f(0x163)](_0x144e97);for(const _0x264cfe of(0x0,decorator_1['getClassMetadata'])(interface_1['EVENT_ON_KEY'],_0x144e97)||[]){typeof(_0x379b50[_0x264cfe[_0x1fc00f(0x16a)]]=='function')&&(!this['listevent'][_0x264cfe[_0x1fc00f(0x14d)]]&&(this['listevent'][_0x264cfe[_0x1fc00f(0x14d)]]=[]),this[_0x1fc00f(0x16f)][_0x264cfe[_0x1fc00f(0x14d)]]['push']({'priority':_0x264cfe['priority'],'resolve':_0x379b50[_0x264cfe[_0x1fc00f(0x16a)]][_0x1fc00f(0x172)](_0x379b50),'propertyKey':_0x144e97[_0x1fc00f(0x14d)]+'@'+_0x264cfe['propertyKey']}));}}for(const _0x425637 in this[_0x1fc00f(0x16f)]){this[_0x1fc00f(0x16f)][_0x425637]=(0x0,collect_js_1[_0x1fc00f(0x16c)])(this['listevent'][_0x425637])['sortByDesc'](_0x1fc00f(0x176))['all']();}}return _0x4e5929?this[_0x1fc00f(0x16f)][_0x4e5929]||[]:this[_0x1fc00f(0x16f)];}async[a4_0x3df876(0x15d)](_0x5b4087,..._0x3a34a5){const _0x1c4177=a4_0x3df876;var _0x44c048,_0x2f18a1;await this['getListevent']();for(let _0x269ca3 in(_0x44c048=this['listevent'])===null||_0x44c048===void 0x0?void 0x0:_0x44c048[_0x5b4087]){const _0x1ff9e6=(_0x2f18a1=this[_0x1c4177(0x16f)][_0x5b4087])===null||_0x2f18a1===void 0x0?void 0x0:_0x2f18a1[_0x269ca3];(_0x1ff9e6===null||_0x1ff9e6===void 0x0?void 0x0:_0x1ff9e6[_0x1c4177(0x159)])&&typeof(_0x1ff9e6===null||_0x1ff9e6===void 0x0?void 0x0:_0x1ff9e6[_0x1c4177(0x159)])==_0x1c4177(0x165)&&await _0x1ff9e6[_0x1c4177(0x159)](..._0x3a34a5);}}async['once'](_0x287e90,..._0x15407b){const _0x110813=a4_0x3df876;return await this[_0x110813(0x170)](),await this[_0x110813(0x15d)](_0x287e90,..._0x15407b),this['off'](_0x287e90);}async['off'](_0xbb5ba1){const _0x4625fa=a4_0x3df876;return await this['getListevent'](),this[_0x4625fa(0x16f)][_0xbb5ba1]&&delete this['listevent'][_0xbb5ba1],!!this[_0x4625fa(0x16f)][_0xbb5ba1];}};__decorate([(0x0,decorator_1[a4_0x3df876(0x15e)])(),__metadata(a4_0x3df876(0x15a),Object)],EventService[a4_0x3df876(0x15f)],a4_0x3df876(0x16e),void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x3df876(0x166)])(a4_0x3df876(0x154)),(0x0,decorator_1[a4_0x3df876(0x155)])(decorator_1[a4_0x3df876(0x174)][a4_0x3df876(0x16b)])],EventService),exports[a4_0x3df876(0x14f)]=EventService;function a4_0x1a92(){const _0x685e8a=['app','listevent','getListevent','__metadata','bind','metadata','ScopeEnum','1765638rflgYB','priority','name','getApplicationContext','EventService','init','70XxLqfF','827910aNMbHK','EVENT_KEY','event','Scope','1818948GdFizC','../interface','object','resolve','design:type','1256uPoQcM','411725tMRelc','emit','App','prototype','@midwayjs/decorator','1617ZCldrq','73340tHTbQP','getAsync','decorate','function','Provide','getOwnPropertyDescriptor','defineProperty','625890ThKHPS','propertyKey','Singleton','default','__esModule'];a4_0x1a92=function(){return _0x685e8a;};return a4_0x1a92();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
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": "dc48f123829af47e61c70a523fcd1c35e79e68e3"
|
|
25
25
|
}
|