@anncic-api/event 1.2.6 → 1.3.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.
- 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_0x1d19aa=a0_0x521a;(function(_0x2077cc,_0x409735){var _0x4cb4f6=a0_0x521a,_0x51999d=_0x2077cc();while(!![]){try{var _0x598ed9=parseInt(_0x4cb4f6(0x1d8))/0x1*(-parseInt(_0x4cb4f6(0x1cb))/0x2)+parseInt(_0x4cb4f6(0x1bd))/0x3*(parseInt(_0x4cb4f6(0x1c2))/0x4)+-parseInt(_0x4cb4f6(0x1cd))/0x5+-parseInt(_0x4cb4f6(0x1c9))/0x6*(parseInt(_0x4cb4f6(0x1c8))/0x7)+parseInt(_0x4cb4f6(0x1be))/0x8+parseInt(_0x4cb4f6(0x1d9))/0x9*(parseInt(_0x4cb4f6(0x1ce))/0xa)+-parseInt(_0x4cb4f6(0x1c3))/0xb*(-parseInt(_0x4cb4f6(0x1cf))/0xc);if(_0x598ed9===_0x409735)break;else _0x51999d['push'](_0x51999d['shift']());}catch(_0x341c62){_0x51999d['push'](_0x51999d['shift']());}}}(a0_0x15c1,0xbaefd));function a0_0x521a(_0x1c6b72,_0x8c02c3){var _0x15c169=a0_0x15c1();return a0_0x521a=function(_0x521a75,_0x368ba2){_0x521a75=_0x521a75-0x1bd;var _0x287420=_0x15c169[_0x521a75];return _0x287420;},a0_0x521a(_0x1c6b72,_0x8c02c3);}function a0_0x15c1(){var _0x1ddcd1=['design:type','Inject','23204KFHeQU','1667039JQjigM','object','prototype','defineProperty','MidwayConfigService','5089VfkJjE','8448EVebZk','decorate','22TnsmQv','@midwayjs/core','101300QllaHE','260IxMcCA','96nPRawJ','__decorate','CustomConfiguration','config','function','MidwayDecoratorService','onReady','__metadata','length','90641NbUSUN','312894FXhMbu','metadata','anncic-api:event','36ZUddDY','4965600hIXlEL','decorator'];a0_0x15c1=function(){return _0x1ddcd1;};return a0_0x15c1();}var __decorate=this&&this[a0_0x1d19aa(0x1d0)]||function(_0x19958d,_0x594555,_0x31aea4,_0x5c04aa){var _0x403f3c=a0_0x1d19aa,_0x448b31=arguments[_0x403f3c(0x1d7)],_0x207892=_0x448b31<0x3?_0x594555:_0x5c04aa===null?_0x5c04aa=Object['getOwnPropertyDescriptor'](_0x594555,_0x31aea4):_0x5c04aa,_0x1cc8f6;if(typeof Reflect===_0x403f3c(0x1c4)&&typeof Reflect['decorate']===_0x403f3c(0x1d3))_0x207892=Reflect[_0x403f3c(0x1ca)](_0x19958d,_0x594555,_0x31aea4,_0x5c04aa);else{for(var _0x22c1d0=_0x19958d[_0x403f3c(0x1d7)]-0x1;_0x22c1d0>=0x0;_0x22c1d0--)if(_0x1cc8f6=_0x19958d[_0x22c1d0])_0x207892=(_0x448b31<0x3?_0x1cc8f6(_0x207892):_0x448b31>0x3?_0x1cc8f6(_0x594555,_0x31aea4,_0x207892):_0x1cc8f6(_0x594555,_0x31aea4))||_0x207892;}return _0x448b31>0x3&&_0x207892&&Object[_0x403f3c(0x1c6)](_0x594555,_0x31aea4,_0x207892),_0x207892;},__metadata=this&&this[a0_0x1d19aa(0x1d6)]||function(_0x5bb486,_0x2de8f5){var _0x2a45b7=a0_0x1d19aa;if(typeof Reflect==='object'&&typeof Reflect[_0x2a45b7(0x1da)]===_0x2a45b7(0x1d3))return Reflect['metadata'](_0x5bb486,_0x2de8f5);};Object[a0_0x1d19aa(0x1c6)](exports,'__esModule',{'value':!![]}),exports[a0_0x1d19aa(0x1d1)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x1d19aa(0x1cc));let CustomConfiguration=class CustomConfiguration{async[a0_0x1d19aa(0x1d5)](){}};__decorate([(0x0,core_1[a0_0x1d19aa(0x1c1)])(),__metadata(a0_0x1d19aa(0x1c0),core_2[a0_0x1d19aa(0x1c7)])],CustomConfiguration[a0_0x1d19aa(0x1c5)],a0_0x1d19aa(0x1d2),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x1d19aa(0x1c0),core_2[a0_0x1d19aa(0x1d4)])],CustomConfiguration[a0_0x1d19aa(0x1c5)],a0_0x1d19aa(0x1bf),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a0_0x1d19aa(0x1db)})],CustomConfiguration),exports[a0_0x1d19aa(0x1d1)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x583ca5=a1_0x7847;(function(_0x163bdc,_0x3be1d8){const _0x2803b1=a1_0x7847,_0x461694=_0x163bdc();while(!![]){try{const _0x5c8f4e=parseInt(_0x2803b1(0x1c4))/0x1*(parseInt(_0x2803b1(0x1d1))/0x2)+parseInt(_0x2803b1(0x1c1))/0x3*(parseInt(_0x2803b1(0x1c6))/0x4)+-parseInt(_0x2803b1(0x1cd))/0x5+-parseInt(_0x2803b1(0x1c8))/0x6*(-parseInt(_0x2803b1(0x1cb))/0x7)+-parseInt(_0x2803b1(0x1ce))/0x8*(-parseInt(_0x2803b1(0x1bf))/0x9)+-parseInt(_0x2803b1(0x1c0))/0xa*(parseInt(_0x2803b1(0x1c7))/0xb)+parseInt(_0x2803b1(0x1c3))/0xc;if(_0x5c8f4e===_0x3be1d8)break;else _0x461694['push'](_0x461694['shift']());}catch(_0x1d2bd3){_0x461694['push'](_0x461694['shift']());}}}(a1_0x8688,0xa9ce3));Object[a1_0x583ca5(0x1d3)](exports,a1_0x583ca5(0x1be),{'value':!![]}),exports['Event']=void 0x0;function a1_0x8688(){const _0x152104=['@midwayjs/core','1002616kbHPNL','11ebiKBD','6fyywBC','../interface','ScopeEnum','1931881edtHMH','Request','6874580NNkSeQ','16eKPxNP','Scope','attachClassMetadata','10JzUobs','Provide','defineProperty','__esModule','730521jZzBLQ','5429470pdAZpx','6SLxord','EVENT_KEY','15504264ZxaFnp','76347ZMOEmO'];a1_0x8688=function(){return _0x152104;};return a1_0x8688();}const core_1=require(a1_0x583ca5(0x1c5)),interface_1=require(a1_0x583ca5(0x1c9));function a1_0x7847(_0x5838ff,_0xb1448c){const _0x86886f=a1_0x8688();return a1_0x7847=function(_0x78472f,_0x516767){_0x78472f=_0x78472f-0x1be;let _0x136d86=_0x86886f[_0x78472f];return _0x136d86;},a1_0x7847(_0x5838ff,_0xb1448c);}function Event(){return _0x149972=>{const _0x2a128c=a1_0x7847;(0x0,core_1[_0x2a128c(0x1d2)])()(_0x149972),(0x0,core_1['saveModule'])(interface_1[_0x2a128c(0x1c2)],_0x149972),(0x0,core_1[_0x2a128c(0x1cf)])(core_1[_0x2a128c(0x1ca)][_0x2a128c(0x1cc)],{'allowDowngrade':!![]})(_0x149972);};}exports['Event']=Event,Event['On']=function(_0x9fe337,_0x24cff4=0x0){return(_0x410d49,_0xb54099,_0xe963a)=>{const _0x1c2e6f=a1_0x7847;return(0x0,core_1[_0x1c2e6f(0x1d0)])(interface_1['EVENT_ON_KEY'],{'name':_0x9fe337,'priority':_0x24cff4,'propertyKey':_0xb54099,'descriptor':_0xe963a},_0x410d49),_0xe963a;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x3ffb49=a2_0x5d55;(function(_0x1971ea,_0x10ecfd){var _0x37370a=a2_0x5d55,_0x5d8baf=_0x1971ea();while(!![]){try{var _0x2b1dae=-parseInt(_0x37370a(0x1d5))/0x1+-parseInt(_0x37370a(0x1cf))/0x2+parseInt(_0x37370a(0x1c9))/0x3+parseInt(_0x37370a(0x1d4))/0x4+-parseInt(_0x37370a(0x1ca))/0x5+parseInt(_0x37370a(0x1d0))/0x6+parseInt(_0x37370a(0x1d3))/0x7*(parseInt(_0x37370a(0x1cb))/0x8);if(_0x2b1dae===_0x10ecfd)break;else _0x5d8baf['push'](_0x5d8baf['shift']());}catch(_0x1489b7){_0x5d8baf['push'](_0x5d8baf['shift']());}}}(a2_0x18ad,0xb1e11));Object[a2_0x3ffb49(0x1d1)](exports,a2_0x3ffb49(0x1cd),{'value':!![]}),exports['Configuration']=exports['EventService']=exports[a2_0x3ffb49(0x1cc)]=void 0x0;var Event_1=require(a2_0x3ffb49(0x1d2));function a2_0x18ad(){var _0x92c80f=['905363iDpfkW','./configuration','1742361VytHsI','6234780mqzigz','912gvyIar','Event','__esModule','EventService','1548768ZKzrkd','5499726ErENGT','defineProperty','./decorator/Event','67312BbPyAk','4246656ISDqJk'];a2_0x18ad=function(){return _0x92c80f;};return a2_0x18ad();}Object['defineProperty'](exports,a2_0x3ffb49(0x1cc),{'enumerable':!![],'get':function(){var _0x1d2bac=a2_0x3ffb49;return Event_1[_0x1d2bac(0x1cc)];}});var EventService_1=require('./service/EventService');function a2_0x5d55(_0x3bdd86,_0x1ae159){var _0x18ade7=a2_0x18ad();return a2_0x5d55=function(_0x5d55f6,_0x3d0b2f){_0x5d55f6=_0x5d55f6-0x1c9;var _0x30833e=_0x18ade7[_0x5d55f6];return _0x30833e;},a2_0x5d55(_0x3bdd86,_0x1ae159);}Object[a2_0x3ffb49(0x1d1)](exports,a2_0x3ffb49(0x1ce),{'enumerable':!![],'get':function(){var _0x1d80a6=a2_0x3ffb49;return EventService_1[_0x1d80a6(0x1ce)];}});var configuration_1=require(a2_0x3ffb49(0x1d6));Object[a2_0x3ffb49(0x1d1)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0x13d43b=a3_0x33c4;(function(_0x382036,_0x1f0c1d){var _0x22f57e=a3_0x33c4,_0x2031b2=_0x382036();while(!![]){try{var _0x10916c=parseInt(_0x22f57e(0x154))/0x1+-parseInt(_0x22f57e(0x14c))/0x2+parseInt(_0x22f57e(0x14e))/0x3+-parseInt(_0x22f57e(0x14b))/0x4+-parseInt(_0x22f57e(0x152))/0x5+-parseInt(_0x22f57e(0x14f))/0x6*(parseInt(_0x22f57e(0x153))/0x7)+parseInt(_0x22f57e(0x155))/0x8;if(_0x10916c===_0x1f0c1d)break;else _0x2031b2['push'](_0x2031b2['shift']());}catch(_0xe92f01){_0x2031b2['push'](_0x2031b2['shift']());}}}(a3_0x47cf,0x5e501));function a3_0x47cf(){var _0x321fae=['5072277NGgySS','434768leUGqq','7540024hPSvJJ','EVENT_KEY','anncic-api:event','1343988oRbkyK','724316jodhes','EVENT_ON_KEY','1697328APPbYO','6JebKFw','anncic-api:event:on','defineProperty','669880rMcZpm'];a3_0x47cf=function(){return _0x321fae;};return a3_0x47cf();}function a3_0x33c4(_0x1c95aa,_0x26f515){var _0x47cf0e=a3_0x47cf();return a3_0x33c4=function(_0x33c42e,_0x541337){_0x33c42e=_0x33c42e-0x14a;var _0x29f30f=_0x47cf0e[_0x33c42e];return _0x29f30f;},a3_0x33c4(_0x1c95aa,_0x26f515);}Object[a3_0x13d43b(0x151)](exports,'__esModule',{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x13d43b(0x156)]=void 0x0,exports[a3_0x13d43b(0x156)]=a3_0x13d43b(0x14a),exports[a3_0x13d43b(0x14d)]=a3_0x13d43b(0x150);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x35ef56=a4_0x206b;(function(_0x5970d3,_0x831505){const _0x3a4a58=a4_0x206b,_0x251d7a=_0x5970d3();while(!![]){try{const _0x19f060=parseInt(_0x3a4a58(0xc3))/0x1*(-parseInt(_0x3a4a58(0xd5))/0x2)+-parseInt(_0x3a4a58(0xe4))/0x3*(parseInt(_0x3a4a58(0xdf))/0x4)+parseInt(_0x3a4a58(0xed))/0x5*(parseInt(_0x3a4a58(0xdc))/0x6)+parseInt(_0x3a4a58(0xc4))/0x7+parseInt(_0x3a4a58(0xdb))/0x8+-parseInt(_0x3a4a58(0xe5))/0x9*(-parseInt(_0x3a4a58(0xe2))/0xa)+-parseInt(_0x3a4a58(0xd6))/0xb;if(_0x19f060===_0x831505)break;else _0x251d7a['push'](_0x251d7a['shift']());}catch(_0xe3dbaf){_0x251d7a['push'](_0x251d7a['shift']());}}}(a4_0x2cf0,0x80d99));var __decorate=this&&this[a4_0x35ef56(0xe8)]||function(_0x59021c,_0x31a814,_0x4afbec,_0x4728c8){const _0x3eb22d=a4_0x35ef56;var _0x5483a3=arguments[_0x3eb22d(0xc9)],_0x3ac383=_0x5483a3<0x3?_0x31a814:_0x4728c8===null?_0x4728c8=Object[_0x3eb22d(0xc2)](_0x31a814,_0x4afbec):_0x4728c8,_0x113e3c;if(typeof Reflect===_0x3eb22d(0xc8)&&typeof Reflect[_0x3eb22d(0xc6)]===_0x3eb22d(0xe9))_0x3ac383=Reflect[_0x3eb22d(0xc6)](_0x59021c,_0x31a814,_0x4afbec,_0x4728c8);else{for(var _0x9c1acb=_0x59021c[_0x3eb22d(0xc9)]-0x1;_0x9c1acb>=0x0;_0x9c1acb--)if(_0x113e3c=_0x59021c[_0x9c1acb])_0x3ac383=(_0x5483a3<0x3?_0x113e3c(_0x3ac383):_0x5483a3>0x3?_0x113e3c(_0x31a814,_0x4afbec,_0x3ac383):_0x113e3c(_0x31a814,_0x4afbec))||_0x3ac383;}return _0x5483a3>0x3&&_0x3ac383&&Object[_0x3eb22d(0xe1)](_0x31a814,_0x4afbec,_0x3ac383),_0x3ac383;},__metadata=this&&this[a4_0x35ef56(0xec)]||function(_0x58c8af,_0x3de5d7){const _0x1e4a10=a4_0x35ef56;if(typeof Reflect===_0x1e4a10(0xc8)&&typeof Reflect[_0x1e4a10(0xcb)]===_0x1e4a10(0xe9))return Reflect[_0x1e4a10(0xcb)](_0x58c8af,_0x3de5d7);};Object[a4_0x35ef56(0xe1)](exports,a4_0x35ef56(0xd1),{'value':!![]}),exports[a4_0x35ef56(0xe0)]=void 0x0;const collect_js_1=require(a4_0x35ef56(0xe7)),core_1=require(a4_0x35ef56(0xcc)),interface_1=require(a4_0x35ef56(0xd7));let EventService=class EventService{constructor(){this['init']=![];}async['getListevent'](_0x5dfa38){const _0x327104=a4_0x35ef56;if(!this['init']){this['init']=!![],this[_0x327104(0xd4)]={};for(const _0x2f3148 of(0x0,core_1['listModule'])(interface_1['EVENT_KEY'])||[]){const _0x17464c=await this['app'][_0x327104(0xd3)]()['getAsync'](_0x2f3148);for(const _0x5476f2 of(0x0,core_1[_0x327104(0xee)])(interface_1[_0x327104(0xeb)],_0x2f3148)||[]){typeof(_0x17464c[_0x5476f2[_0x327104(0xcf)]]==_0x327104(0xe9))&&(!this[_0x327104(0xd4)][_0x5476f2[_0x327104(0xda)]]&&(this[_0x327104(0xd4)][_0x5476f2[_0x327104(0xda)]]=[]),this[_0x327104(0xd4)][_0x5476f2[_0x327104(0xda)]][_0x327104(0xc7)]({'priority':_0x5476f2[_0x327104(0xd2)],'resolve':_0x17464c[_0x5476f2[_0x327104(0xcf)]][_0x327104(0xea)](_0x17464c),'propertyKey':_0x2f3148['name']+'@'+_0x5476f2[_0x327104(0xcf)]}));}}for(const _0x18c785 in this[_0x327104(0xd4)]){this[_0x327104(0xd4)][_0x18c785]=(0x0,collect_js_1[_0x327104(0xcd)])(this[_0x327104(0xd4)][_0x18c785])[_0x327104(0xc5)]('priority')[_0x327104(0xde)]();}}return _0x5dfa38?this['listevent'][_0x5dfa38]||[]:this[_0x327104(0xd4)];}async[a4_0x35ef56(0xd9)](_0x1ab069,..._0x5efb76){const _0x5e9847=a4_0x35ef56;var _0x573451,_0x5ab0cc;await this[_0x5e9847(0xd0)]();for(let _0x1219e8 in(_0x573451=this[_0x5e9847(0xd4)])===null||_0x573451===void 0x0?void 0x0:_0x573451[_0x1ab069]){const _0x249a4a=(_0x5ab0cc=this[_0x5e9847(0xd4)][_0x1ab069])===null||_0x5ab0cc===void 0x0?void 0x0:_0x5ab0cc[_0x1219e8];(_0x249a4a===null||_0x249a4a===void 0x0?void 0x0:_0x249a4a[_0x5e9847(0xdd)])&&typeof(_0x249a4a===null||_0x249a4a===void 0x0?void 0x0:_0x249a4a[_0x5e9847(0xdd)])==_0x5e9847(0xe9)&&await _0x249a4a[_0x5e9847(0xdd)](..._0x5efb76);}}async[a4_0x35ef56(0xd8)](_0x5c469b,..._0x18ccf1){const _0x4255b2=a4_0x35ef56;return await this[_0x4255b2(0xd0)](),await this[_0x4255b2(0xd9)](_0x5c469b,..._0x18ccf1),this[_0x4255b2(0xe6)](_0x5c469b);}async[a4_0x35ef56(0xe6)](_0x4f5f1c){const _0x2b3288=a4_0x35ef56;return await this['getListevent'](),this['listevent'][_0x4f5f1c]&&delete this[_0x2b3288(0xd4)][_0x4f5f1c],!!this[_0x2b3288(0xd4)][_0x4f5f1c];}};function a4_0x206b(_0x543490,_0x187435){const _0x2cf00d=a4_0x2cf0();return a4_0x206b=function(_0x206b3b,_0x1091c5){_0x206b3b=_0x206b3b-0xc1;let _0x5206b7=_0x2cf00d[_0x206b3b];return _0x5206b7;},a4_0x206b(_0x543490,_0x187435);}function a4_0x2cf0(){const _0x32dec1=['EVENT_ON_KEY','__metadata','1205HSJIfp','getClassMetadata','ScopeEnum','Singleton','getOwnPropertyDescriptor','127ZuoDqy','5443550OsZrdM','sortByDesc','decorate','push','object','length','event','metadata','@midwayjs/core','default','prototype','propertyKey','getListevent','__esModule','priority','getApplicationContext','listevent','14488rDHmHF','1486793UvgoQr','../interface','once','emit','name','7993992mZmkpW','8112YqUVmS','resolve','all','100712xRMlNI','EventService','defineProperty','450oQhMgX','design:type','96TlkGGP','57177DLRWbr','off','collect.js','__decorate','function','bind'];a4_0x2cf0=function(){return _0x32dec1;};return a4_0x2cf0();}__decorate([(0x0,core_1['App'])(),__metadata(a4_0x35ef56(0xe3),Object)],EventService[a4_0x35ef56(0xce)],'app',void 0x0),EventService=__decorate([(0x0,core_1['Provide'])(a4_0x35ef56(0xca)),(0x0,core_1['Scope'])(core_1[a4_0x35ef56(0xef)][a4_0x35ef56(0xc1)])],EventService),exports[a4_0x35ef56(0xe0)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
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": "cb0b898b43e3770a81b983f8ff7fb02c5c2e6aa4"
|
|
25
25
|
}
|