@anncic-api/event 1.4.2 → 1.4.4
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_0x219344=a0_0x357a;(function(_0x564525,_0x50fb08){var _0x3354d9=a0_0x357a,_0x50f1b2=_0x564525();while(!![]){try{var _0x4fdd92=parseInt(_0x3354d9(0x1d3))/0x1+parseInt(_0x3354d9(0x1d7))/0x2*(-parseInt(_0x3354d9(0x1cc))/0x3)+parseInt(_0x3354d9(0x1de))/0x4+parseInt(_0x3354d9(0x1cf))/0x5+parseInt(_0x3354d9(0x1e2))/0x6+parseInt(_0x3354d9(0x1dd))/0x7*(-parseInt(_0x3354d9(0x1dc))/0x8)+-parseInt(_0x3354d9(0x1e3))/0x9;if(_0x4fdd92===_0x50fb08)break;else _0x50f1b2['push'](_0x50f1b2['shift']());}catch(_0x2e5a08){_0x50f1b2['push'](_0x50f1b2['shift']());}}}(a0_0x5822,0x352a5));function a0_0x357a(_0x5cf6ab,_0x2fb450){var _0x5822bb=a0_0x5822();return a0_0x357a=function(_0x357ae2,_0x2c1f47){_0x357ae2=_0x357ae2-0x1c9;var _0x2855b2=_0x5822bb[_0x357ae2];return _0x2855b2;},a0_0x357a(_0x5cf6ab,_0x2fb450);}function a0_0x5822(){var _0x136c8c=['63657rPRkGY','Configuration','config','anncic-api:event','96eDvwem','metadata','getOwnPropertyDescriptor','1151820pQfdJo','MidwayDecoratorService','Inject','@midwayjs/core','261366JclRYy','design:type','function','length','26332ShIbvv','__decorate','prototype','defineProperty','decorate','646528dvktcV','28rjNAGS','1650716NXyNYf','decorator','CustomConfiguration','MidwayConfigService','390030PYuNTf'];a0_0x5822=function(){return _0x136c8c;};return a0_0x5822();}var __decorate=this&&this[a0_0x219344(0x1d8)]||function(_0x455d1c,_0x1494f1,_0x8bfcd4,_0x1ac210){var _0x25ec27=a0_0x219344,_0x429334=arguments[_0x25ec27(0x1d6)],_0x21d6b7=_0x429334<0x3?_0x1494f1:_0x1ac210===null?_0x1ac210=Object[_0x25ec27(0x1ce)](_0x1494f1,_0x8bfcd4):_0x1ac210,_0x2b71b7;if(typeof Reflect==='object'&&typeof Reflect[_0x25ec27(0x1db)]===_0x25ec27(0x1d5))_0x21d6b7=Reflect[_0x25ec27(0x1db)](_0x455d1c,_0x1494f1,_0x8bfcd4,_0x1ac210);else{for(var _0x28650c=_0x455d1c[_0x25ec27(0x1d6)]-0x1;_0x28650c>=0x0;_0x28650c--)if(_0x2b71b7=_0x455d1c[_0x28650c])_0x21d6b7=(_0x429334<0x3?_0x2b71b7(_0x21d6b7):_0x429334>0x3?_0x2b71b7(_0x1494f1,_0x8bfcd4,_0x21d6b7):_0x2b71b7(_0x1494f1,_0x8bfcd4))||_0x21d6b7;}return _0x429334>0x3&&_0x21d6b7&&Object['defineProperty'](_0x1494f1,_0x8bfcd4,_0x21d6b7),_0x21d6b7;},__metadata=this&&this['__metadata']||function(_0x441992,_0x24c294){var _0x554ed7=a0_0x219344;if(typeof Reflect==='object'&&typeof Reflect[_0x554ed7(0x1cd)]===_0x554ed7(0x1d5))return Reflect[_0x554ed7(0x1cd)](_0x441992,_0x24c294);};Object[a0_0x219344(0x1da)](exports,'__esModule',{'value':!![]}),exports[a0_0x219344(0x1e0)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x219344(0x1d2));let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x219344(0x1d4),core_2[a0_0x219344(0x1e1)])],CustomConfiguration[a0_0x219344(0x1d9)],a0_0x219344(0x1ca),void 0x0),__decorate([(0x0,core_1[a0_0x219344(0x1d1)])(),__metadata(a0_0x219344(0x1d4),core_2[a0_0x219344(0x1d0)])],CustomConfiguration[a0_0x219344(0x1d9)],a0_0x219344(0x1df),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x219344(0x1c9)])({'conflictCheck':![],'namespace':a0_0x219344(0x1cb)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x1beba3=a1_0x4f5d;(function(_0x2fb8bb,_0x42d16d){const _0x397f41=a1_0x4f5d,_0x52098c=_0x2fb8bb();while(!![]){try{const _0x5e9322=parseInt(_0x397f41(0x1ac))/0x1*(parseInt(_0x397f41(0x19e))/0x2)+parseInt(_0x397f41(0x1a0))/0x3*(parseInt(_0x397f41(0x1b3))/0x4)+parseInt(_0x397f41(0x1b2))/0x5*(parseInt(_0x397f41(0x1ae))/0x6)+parseInt(_0x397f41(0x1a2))/0x7*(parseInt(_0x397f41(0x1b0))/0x8)+-parseInt(_0x397f41(0x1a1))/0x9*(-parseInt(_0x397f41(0x1a5))/0xa)+-parseInt(_0x397f41(0x1b1))/0xb*(-parseInt(_0x397f41(0x1a9))/0xc)+-parseInt(_0x397f41(0x19f))/0xd*(parseInt(_0x397f41(0x1aa))/0xe);if(_0x5e9322===_0x42d16d)break;else _0x52098c['push'](_0x52098c['shift']());}catch(_0x1bba83){_0x52098c['push'](_0x52098c['shift']());}}}(a1_0x18b6,0x891b1));function a1_0x18b6(){const _0x5e0fa5=['1341303CXgTnl','45rTTUAw','96908cWtjOX','Scope','attachClassMetadata','2046130YkqGvJ','Event','../interface','Provide','552408zTeprt','56gnmhiv','@midwayjs/core','198259qAOdUm','__esModule','29286pMeUpA','Request','272rZixDn','176ixoJWr','635iwfaLz','8VheaJo','2ezuhJa','10988471MZSNqs'];a1_0x18b6=function(){return _0x5e0fa5;};return a1_0x18b6();}Object['defineProperty'](exports,a1_0x1beba3(0x1ad),{'value':!![]}),exports[a1_0x1beba3(0x1a6)]=void 0x0;const core_1=require(a1_0x1beba3(0x1ab)),interface_1=require(a1_0x1beba3(0x1a7));function a1_0x4f5d(_0x1949cb,_0x2bdec8){const _0x18b663=a1_0x18b6();return a1_0x4f5d=function(_0x4f5db5,_0x3bbf71){_0x4f5db5=_0x4f5db5-0x19e;let _0x510b28=_0x18b663[_0x4f5db5];return _0x510b28;},a1_0x4f5d(_0x1949cb,_0x2bdec8);}function Event(){return _0x5b5a94=>{const _0xb3cc1e=a1_0x4f5d;(0x0,core_1[_0xb3cc1e(0x1a8)])()(_0x5b5a94),(0x0,core_1['saveModule'])(interface_1['EVENT_KEY'],_0x5b5a94),(0x0,core_1[_0xb3cc1e(0x1a3)])(core_1['ScopeEnum'][_0xb3cc1e(0x1af)],{'allowDowngrade':!![]})(_0x5b5a94);};}exports['Event']=Event,Event['On']=function(_0x36729e,_0x54538f=0x0){return(_0x87db28,_0x986762,_0x5e5436)=>{const _0xc43cc8=a1_0x4f5d;return(0x0,core_1[_0xc43cc8(0x1a4)])(interface_1['EVENT_ON_KEY'],{'name':_0x36729e,'priority':_0x54538f,'propertyKey':_0x986762,'descriptor':_0x5e5436},_0x87db28),_0x5e5436;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a2_0x1fe4(_0x1509be,_0x56511d){var _0x4555d6=a2_0x4555();return a2_0x1fe4=function(_0x1fe4f0,_0x7e4495){_0x1fe4f0=_0x1fe4f0-0x1ab;var _0x4289fb=_0x4555d6[_0x1fe4f0];return _0x4289fb;},a2_0x1fe4(_0x1509be,_0x56511d);}var a2_0x56248c=a2_0x1fe4;(function(_0x13acef,_0x11caf0){var _0x4df943=a2_0x1fe4,_0x39b326=_0x13acef();while(!![]){try{var _0x1e618b=-parseInt(_0x4df943(0x1b3))/0x1*(parseInt(_0x4df943(0x1ac))/0x2)+parseInt(_0x4df943(0x1ae))/0x3+parseInt(_0x4df943(0x1b8))/0x4*(parseInt(_0x4df943(0x1bd))/0x5)+-parseInt(_0x4df943(0x1b2))/0x6*(parseInt(_0x4df943(0x1ab))/0x7)+-parseInt(_0x4df943(0x1b1))/0x8*(-parseInt(_0x4df943(0x1ad))/0x9)+-parseInt(_0x4df943(0x1b4))/0xa+-parseInt(_0x4df943(0x1bc))/0xb*(-parseInt(_0x4df943(0x1b9))/0xc);if(_0x1e618b===_0x11caf0)break;else _0x39b326['push'](_0x39b326['shift']());}catch(_0x46b7ce){_0x39b326['push'](_0x39b326['shift']());}}}(a2_0x4555,0x83c3b));function a2_0x4555(){var _0x1b12e3=['Configuration','__esModule','EventService','93564gQZUaF','12cbQJZf','defineProperty','CustomConfiguration','955493iUvzHG','70CbRrRv','42pyEznE','10046RAeZzs','2151FZmWjG','2225892CZYRhJ','Event','./service/EventService','32384YiLFsu','520428DGQFlE','179dAfgxT','1645210AmhkaG'];a2_0x4555=function(){return _0x1b12e3;};return a2_0x4555();}Object[a2_0x56248c(0x1ba)](exports,a2_0x56248c(0x1b6),{'value':!![]}),exports[a2_0x56248c(0x1b5)]=exports[a2_0x56248c(0x1b7)]=exports[a2_0x56248c(0x1af)]=void 0x0;var Event_1=require('./decorator/Event');Object[a2_0x56248c(0x1ba)](exports,a2_0x56248c(0x1af),{'enumerable':!![],'get':function(){var _0x45fcb6=a2_0x56248c;return Event_1[_0x45fcb6(0x1af)];}});var EventService_1=require(a2_0x56248c(0x1b0));Object['defineProperty'](exports,a2_0x56248c(0x1b7),{'enumerable':!![],'get':function(){var _0x9d1524=a2_0x56248c;return EventService_1[_0x9d1524(0x1b7)];}});var configuration_1=require('./configuration');Object[a2_0x56248c(0x1ba)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0xecc2e0=a2_0x56248c;return configuration_1[_0xecc2e0(0x1bb)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x4db3(_0x401e5a,_0x3c1454){var _0x4f22e3=a3_0x4f22();return a3_0x4db3=function(_0x4db373,_0x3ba2cd){_0x4db373=_0x4db373-0xa5;var _0x223a3c=_0x4f22e3[_0x4db373];return _0x223a3c;},a3_0x4db3(_0x401e5a,_0x3c1454);}var a3_0x2253f2=a3_0x4db3;(function(_0x4a546d,_0x420a56){var _0x18c6d0=a3_0x4db3,_0x428769=_0x4a546d();while(!![]){try{var _0x1a4847=parseInt(_0x18c6d0(0xad))/0x1+parseInt(_0x18c6d0(0xae))/0x2+-parseInt(_0x18c6d0(0xa5))/0x3+parseInt(_0x18c6d0(0xaf))/0x4+-parseInt(_0x18c6d0(0xa7))/0x5+-parseInt(_0x18c6d0(0xaa))/0x6*(parseInt(_0x18c6d0(0xa8))/0x7)+-parseInt(_0x18c6d0(0xb0))/0x8*(-parseInt(_0x18c6d0(0xa9))/0x9);if(_0x1a4847===_0x420a56)break;else _0x428769['push'](_0x428769['shift']());}catch(_0x35daba){_0x428769['push'](_0x428769['shift']());}}}(a3_0x4f22,0x8c252));function a3_0x4f22(){var _0x11b6ad=['898254qyaXbl','139434FMvRDt','anncic-api:event','EVENT_ON_KEY','804418WgrXTO','462890OjoCSS','2153444iWGbne','104CGPvaa','defineProperty','EVENT_KEY','1432341HsVyWV','anncic-api:event:on','4801890YEIAyW','259kflSVO'];a3_0x4f22=function(){return _0x11b6ad;};return a3_0x4f22();}Object[a3_0x2253f2(0xb1)](exports,'__esModule',{'value':!![]}),exports[a3_0x2253f2(0xac)]=exports[a3_0x2253f2(0xb2)]=void 0x0,exports[a3_0x2253f2(0xb2)]=a3_0x2253f2(0xab),exports['EVENT_ON_KEY']=a3_0x2253f2(0xa6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x5e7c53=a4_0x47f7;(function(_0x1f30fc,_0x33de80){const _0x5f4ec6=a4_0x47f7,_0x3ed756=_0x1f30fc();while(!![]){try{const _0x23cc47=-parseInt(_0x5f4ec6(0xe2))/0x1*(-parseInt(_0x5f4ec6(0xed))/0x2)+-parseInt(_0x5f4ec6(0xd5))/0x3*(-parseInt(_0x5f4ec6(0xf1))/0x4)+parseInt(_0x5f4ec6(0xf6))/0x5*(-parseInt(_0x5f4ec6(0xd2))/0x6)+parseInt(_0x5f4ec6(0x103))/0x7*(-parseInt(_0x5f4ec6(0xdd))/0x8)+parseInt(_0x5f4ec6(0xf4))/0x9*(-parseInt(_0x5f4ec6(0xfe))/0xa)+-parseInt(_0x5f4ec6(0xfa))/0xb*(-parseInt(_0x5f4ec6(0xf0))/0xc)+-parseInt(_0x5f4ec6(0xe4))/0xd*(-parseInt(_0x5f4ec6(0xea))/0xe);if(_0x23cc47===_0x33de80)break;else _0x3ed756['push'](_0x3ed756['shift']());}catch(_0x1f37ba){_0x3ed756['push'](_0x3ed756['shift']());}}}(a4_0x42b3,0x84f8e));var __decorate=this&&this[a4_0x5e7c53(0x101)]||function(_0x416c13,_0x221662,_0x257808,_0x4fe5be){const _0x1f31fd=a4_0x5e7c53;var _0x42bf1a=arguments[_0x1f31fd(0xf7)],_0x553671=_0x42bf1a<0x3?_0x221662:_0x4fe5be===null?_0x4fe5be=Object[_0x1f31fd(0xd1)](_0x221662,_0x257808):_0x4fe5be,_0x4d1a7f;if(typeof Reflect===_0x1f31fd(0xd6)&&typeof Reflect[_0x1f31fd(0xd7)]===_0x1f31fd(0x104))_0x553671=Reflect[_0x1f31fd(0xd7)](_0x416c13,_0x221662,_0x257808,_0x4fe5be);else{for(var _0x2ccda5=_0x416c13[_0x1f31fd(0xf7)]-0x1;_0x2ccda5>=0x0;_0x2ccda5--)if(_0x4d1a7f=_0x416c13[_0x2ccda5])_0x553671=(_0x42bf1a<0x3?_0x4d1a7f(_0x553671):_0x42bf1a>0x3?_0x4d1a7f(_0x221662,_0x257808,_0x553671):_0x4d1a7f(_0x221662,_0x257808))||_0x553671;}return _0x42bf1a>0x3&&_0x553671&&Object[_0x1f31fd(0xd8)](_0x221662,_0x257808,_0x553671),_0x553671;},__metadata=this&&this[a4_0x5e7c53(0xe6)]||function(_0x6e6296,_0x263892){const _0x4fb2ed=a4_0x5e7c53;if(typeof Reflect==='object'&&typeof Reflect[_0x4fb2ed(0xe1)]===_0x4fb2ed(0x104))return Reflect[_0x4fb2ed(0xe1)](_0x6e6296,_0x263892);};Object['defineProperty'](exports,a4_0x5e7c53(0xe8),{'value':!![]}),exports[a4_0x5e7c53(0xda)]=void 0x0;function a4_0x47f7(_0x2444de,_0x36408d){const _0x42b3a0=a4_0x42b3();return a4_0x47f7=function(_0x47f789,_0x3f9b95){_0x47f789=_0x47f789-0xd1;let _0x4c0be7=_0x42b3a0[_0x47f789];return _0x4c0be7;},a4_0x47f7(_0x2444de,_0x36408d);}const collect_js_1=require(a4_0x5e7c53(0xe5)),core_1=require('@midwayjs/core'),interface_1=require(a4_0x5e7c53(0xf2));let EventService=class EventService{constructor(){const _0x269a1b=a4_0x5e7c53;this[_0x269a1b(0xef)]=![];}async[a4_0x5e7c53(0x105)](_0x59e3fe){const _0x17e7c2=a4_0x5e7c53;if(!this[_0x17e7c2(0xef)]){this['init']=!![],this['listevent']={};for(const _0x53e94f of(0x0,core_1['listModule'])(interface_1[_0x17e7c2(0xfc)])||[]){const _0x131649=await this[_0x17e7c2(0xeb)][_0x17e7c2(0xd9)]()[_0x17e7c2(0xec)](_0x53e94f);for(const _0x37e7a2 of(0x0,core_1[_0x17e7c2(0x100)])(interface_1[_0x17e7c2(0xd3)],_0x53e94f)||[]){typeof(_0x131649[_0x37e7a2[_0x17e7c2(0xfd)]]==_0x17e7c2(0x104))&&(!this['listevent'][_0x37e7a2[_0x17e7c2(0xf9)]]&&(this[_0x17e7c2(0x102)][_0x37e7a2[_0x17e7c2(0xf9)]]=[]),this['listevent'][_0x37e7a2[_0x17e7c2(0xf9)]][_0x17e7c2(0xe0)]({'priority':_0x37e7a2[_0x17e7c2(0xdc)],'resolve':_0x131649[_0x37e7a2[_0x17e7c2(0xfd)]][_0x17e7c2(0xd4)](_0x131649),'propertyKey':_0x53e94f[_0x17e7c2(0xf9)]+'@'+_0x37e7a2['propertyKey']}));}}for(const _0x20ca66 in this[_0x17e7c2(0x102)]){this[_0x17e7c2(0x102)][_0x20ca66]=(0x0,collect_js_1['default'])(this[_0x17e7c2(0x102)][_0x20ca66])[_0x17e7c2(0xde)](_0x17e7c2(0xdc))[_0x17e7c2(0xe7)]();}}return _0x59e3fe?this[_0x17e7c2(0x102)][_0x59e3fe]||[]:this[_0x17e7c2(0x102)];}async[a4_0x5e7c53(0xf3)](_0x2bec25,..._0x151165){const _0x427c7b=a4_0x5e7c53;var _0x33a4f5,_0x4ef298;await this[_0x427c7b(0x105)]();for(let _0x58c422 in(_0x33a4f5=this[_0x427c7b(0x102)])===null||_0x33a4f5===void 0x0?void 0x0:_0x33a4f5[_0x2bec25]){const _0x16e017=(_0x4ef298=this[_0x427c7b(0x102)][_0x2bec25])===null||_0x4ef298===void 0x0?void 0x0:_0x4ef298[_0x58c422];(_0x16e017===null||_0x16e017===void 0x0?void 0x0:_0x16e017['resolve'])&&typeof(_0x16e017===null||_0x16e017===void 0x0?void 0x0:_0x16e017[_0x427c7b(0xf8)])==_0x427c7b(0x104)&&await _0x16e017['resolve'](..._0x151165);}}async[a4_0x5e7c53(0xff)](_0x1f54b9,..._0x226e74){const _0x244ce8=a4_0x5e7c53;return await this[_0x244ce8(0x105)](),await this['emit'](_0x1f54b9,..._0x226e74),this[_0x244ce8(0xee)](_0x1f54b9);}async[a4_0x5e7c53(0xee)](_0x32c442){const _0x29ad85=a4_0x5e7c53;return await this[_0x29ad85(0x105)](),this[_0x29ad85(0x102)][_0x32c442]&&delete this[_0x29ad85(0x102)][_0x32c442],!!this[_0x29ad85(0x102)][_0x32c442];}};function a4_0x42b3(){const _0x16f8f9=['object','decorate','defineProperty','getApplicationContext','EventService','Provide','priority','312acOzOY','sortByDesc','prototype','push','metadata','339941rJVsbe','App','65Rsdoco','collect.js','__metadata','all','__esModule','design:type','6447266cxOGLv','app','getAsync','2HRmarz','off','init','3981720iUwVTd','4zToJuP','../interface','emit','9oZPDLG','Scope','1801895iPBaFg','length','resolve','name','11BLKwqx','ScopeEnum','EVENT_KEY','propertyKey','6394070NKIPbF','once','getClassMetadata','__decorate','listevent','153741LkYZvc','function','getListevent','getOwnPropertyDescriptor','18YVFGWp','EVENT_ON_KEY','bind','442227IbjkcY'];a4_0x42b3=function(){return _0x16f8f9;};return a4_0x42b3();}__decorate([(0x0,core_1[a4_0x5e7c53(0xe3)])(),__metadata(a4_0x5e7c53(0xe9),Object)],EventService[a4_0x5e7c53(0xdf)],a4_0x5e7c53(0xeb),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x5e7c53(0xdb)])('event'),(0x0,core_1[a4_0x5e7c53(0xf5)])(core_1[a4_0x5e7c53(0xfb)]['Singleton'])],EventService),exports[a4_0x5e7c53(0xda)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
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": "864964ba61f2a0edc08575c25cc548d2c9cad87d"
|
|
25
25
|
}
|