@anncic-api/event 1.2.2 → 1.2.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_0x175093=a0_0x3095;function a0_0x1f8c(){var _0x189773=['MidwayDecoratorService','anncic-api:event','157881qLxoFf','599736pyknaz','defineProperty','length','__metadata','13GhSDZp','__decorate','18uCxxHb','decorate','getOwnPropertyDescriptor','733018zOGpso','function','metadata','152868TBvUCN','MidwayConfigService','@midwayjs/core','21wmUgRK','410vbbmMr','3260jymNzQ','object','544608GICREN','78053mIleUa','config','design:type','10AUJWeZ','prototype','CustomConfiguration','Configuration','50hHqCSY'];a0_0x1f8c=function(){return _0x189773;};return a0_0x1f8c();}(function(_0x24bfd1,_0x187e35){var _0xbcae5=a0_0x3095,_0x4dd81d=_0x24bfd1();while(!![]){try{var _0x43492c=parseInt(_0xbcae5(0x1cb))/0x1+parseInt(_0xbcae5(0x1af))/0x2*(parseInt(_0xbcae5(0x1b6))/0x3)+parseInt(_0xbcae5(0x1c8))/0x4*(-parseInt(_0xbcae5(0x1c7))/0x5)+parseInt(_0xbcae5(0x1ca))/0x6*(-parseInt(_0xbcae5(0x1c6))/0x7)+parseInt(_0xbcae5(0x1b7))/0x8*(-parseInt(_0xbcae5(0x1bd))/0x9)+parseInt(_0xbcae5(0x1b3))/0xa*(parseInt(_0xbcae5(0x1c0))/0xb)+parseInt(_0xbcae5(0x1c3))/0xc*(-parseInt(_0xbcae5(0x1bb))/0xd);if(_0x43492c===_0x187e35)break;else _0x4dd81d['push'](_0x4dd81d['shift']());}catch(_0x4e0c2e){_0x4dd81d['push'](_0x4dd81d['shift']());}}}(a0_0x1f8c,0x2a21b));var __decorate=this&&this[a0_0x175093(0x1bc)]||function(_0x25ea88,_0x10a2b8,_0x5b3182,_0x157a3d){var _0x74e49c=a0_0x175093,_0x2f7438=arguments['length'],_0x5c0114=_0x2f7438<0x3?_0x10a2b8:_0x157a3d===null?_0x157a3d=Object[_0x74e49c(0x1bf)](_0x10a2b8,_0x5b3182):_0x157a3d,_0x3e97a2;if(typeof Reflect===_0x74e49c(0x1c9)&&typeof Reflect[_0x74e49c(0x1be)]===_0x74e49c(0x1c1))_0x5c0114=Reflect[_0x74e49c(0x1be)](_0x25ea88,_0x10a2b8,_0x5b3182,_0x157a3d);else{for(var _0x3f34c1=_0x25ea88[_0x74e49c(0x1b9)]-0x1;_0x3f34c1>=0x0;_0x3f34c1--)if(_0x3e97a2=_0x25ea88[_0x3f34c1])_0x5c0114=(_0x2f7438<0x3?_0x3e97a2(_0x5c0114):_0x2f7438>0x3?_0x3e97a2(_0x10a2b8,_0x5b3182,_0x5c0114):_0x3e97a2(_0x10a2b8,_0x5b3182))||_0x5c0114;}return _0x2f7438>0x3&&_0x5c0114&&Object[_0x74e49c(0x1b8)](_0x10a2b8,_0x5b3182,_0x5c0114),_0x5c0114;},__metadata=this&&this[a0_0x175093(0x1ba)]||function(_0x41b884,_0x530557){var _0x5765da=a0_0x175093;if(typeof Reflect==='object'&&typeof Reflect[_0x5765da(0x1c2)]===_0x5765da(0x1c1))return Reflect[_0x5765da(0x1c2)](_0x41b884,_0x530557);};Object[a0_0x175093(0x1b8)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a0_0x3095(_0x395237,_0x1c03ba){var _0x1f8c70=a0_0x1f8c();return a0_0x3095=function(_0x309500,_0x59db4d){_0x309500=_0x309500-0x1af;var _0x30a85e=_0x1f8c70[_0x309500];return _0x30a85e;},a0_0x3095(_0x395237,_0x1c03ba);}const core_1=require(a0_0x175093(0x1c5)),core_2=require(a0_0x175093(0x1c5));let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x175093(0x1cd),core_2[a0_0x175093(0x1c4)])],CustomConfiguration[a0_0x175093(0x1b0)],a0_0x175093(0x1cc),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a0_0x175093(0x1b4)])],CustomConfiguration['prototype'],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x175093(0x1b2)])({'conflictCheck':![],'namespace':a0_0x175093(0x1b5)})],CustomConfiguration),exports[a0_0x175093(0x1b1)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x2007c0=a1_0x43cd;(function(_0x9d09ad,_0x361506){const _0x1aa595=a1_0x43cd,_0x507aa7=_0x9d09ad();while(!![]){try{const _0x2932b3=parseInt(_0x1aa595(0x1cb))/0x1*(parseInt(_0x1aa595(0x1c0))/0x2)+-parseInt(_0x1aa595(0x1c6))/0x3*(parseInt(_0x1aa595(0x1b5))/0x4)+parseInt(_0x1aa595(0x1b7))/0x5*(parseInt(_0x1aa595(0x1c4))/0x6)+-parseInt(_0x1aa595(0x1bc))/0x7*(parseInt(_0x1aa595(0x1ca))/0x8)+-parseInt(_0x1aa595(0x1c9))/0x9*(parseInt(_0x1aa595(0x1bd))/0xa)+parseInt(_0x1aa595(0x1b6))/0xb*(-parseInt(_0x1aa595(0x1b8))/0xc)+parseInt(_0x1aa595(0x1ba))/0xd*(parseInt(_0x1aa595(0x1c3))/0xe);if(_0x2932b3===_0x361506)break;else _0x507aa7['push'](_0x507aa7['shift']());}catch(_0x3f980e){_0x507aa7['push'](_0x507aa7['shift']());}}}(a1_0x5401,0xe5c8e));function a1_0x43cd(_0x43665f,_0x5c2fbb){const _0x540137=a1_0x5401();return a1_0x43cd=function(_0x43cd84,_0x3a68b7){_0x43cd84=_0x43cd84-0x1b5;let _0x4f27bd=_0x540137[_0x43cd84];return _0x4f27bd;},a1_0x43cd(_0x43665f,_0x5c2fbb);}Object[a1_0x2007c0(0x1bb)](exports,a1_0x2007c0(0x1c1),{'value':!![]}),exports[a1_0x2007c0(0x1c5)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a1_0x2007c0(0x1bf));function Event(){return _0x4d4701=>{const _0x229c6f=a1_0x43cd;(0x0,core_1[_0x229c6f(0x1c7)])()(_0x4d4701),(0x0,core_1[_0x229c6f(0x1c8)])(interface_1[_0x229c6f(0x1b9)],_0x4d4701),(0x0,core_1['Scope'])(core_1['ScopeEnum'][_0x229c6f(0x1c2)],{'allowDowngrade':!![]})(_0x4d4701);};}function a1_0x5401(){const _0x263250=['1239026osPEsd','__esModule','Request','15444590TdYlEo','60YCQgZh','Event','5220eegOJA','Provide','saveModule','9arDKWc','2748792wCOBXl','1oRiUnQ','424ltPPuK','737xqhGnZ','839455booSnG','314268TuYFgG','EVENT_KEY','39GUfAyb','defineProperty','21fnxbjc','16968800kRHSnt','EVENT_ON_KEY','../interface'];a1_0x5401=function(){return _0x263250;};return a1_0x5401();}exports[a1_0x2007c0(0x1c5)]=Event,Event['On']=function(_0x4d861f,_0xc7481b=0x0){return(_0xbeea11,_0x23bfc6,_0x4f070b)=>{const _0x55e829=a1_0x43cd;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x55e829(0x1be)],{'name':_0x4d861f,'priority':_0xc7481b,'propertyKey':_0x23bfc6,'descriptor':_0x4f070b},_0xbeea11),_0x4f070b;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x176363=a2_0x24a6;function a2_0x44d9(){var _0x31f79a=['9vNpiBv','./configuration','Configuration','867990wHFkkV','./decorator/Event','6145204aOaqdz','2430Yawqqg','Event','3677535PJBLkL','4472490urQzyh','4mxgFfC','2071578NgziwF','EventService','98zqUWrH','5290976tSLPTc','defineProperty'];a2_0x44d9=function(){return _0x31f79a;};return a2_0x44d9();}(function(_0x38afc3,_0x315421){var _0x12f282=a2_0x24a6,_0x1a4626=_0x38afc3();while(!![]){try{var _0x3bf29f=-parseInt(_0x12f282(0xea))/0x1+parseInt(_0x12f282(0xe1))/0x2*(parseInt(_0x12f282(0xe2))/0x3)+-parseInt(_0x12f282(0xec))/0x4+parseInt(_0x12f282(0xdf))/0x5+parseInt(_0x12f282(0xed))/0x6*(parseInt(_0x12f282(0xe4))/0x7)+parseInt(_0x12f282(0xe5))/0x8+parseInt(_0x12f282(0xe7))/0x9*(parseInt(_0x12f282(0xe0))/0xa);if(_0x3bf29f===_0x315421)break;else _0x1a4626['push'](_0x1a4626['shift']());}catch(_0x17d9d7){_0x1a4626['push'](_0x1a4626['shift']());}}}(a2_0x44d9,0xc9cbf));Object[a2_0x176363(0xe6)](exports,'__esModule',{'value':!![]}),exports[a2_0x176363(0xe9)]=exports[a2_0x176363(0xe3)]=exports[a2_0x176363(0xee)]=void 0x0;var Event_1=require(a2_0x176363(0xeb));Object['defineProperty'](exports,'Event',{'enumerable':!![],'get':function(){var _0x258ea1=a2_0x176363;return Event_1[_0x258ea1(0xee)];}});var EventService_1=require('./service/EventService');function a2_0x24a6(_0x5773e1,_0x2383b1){var _0x44d9f5=a2_0x44d9();return a2_0x24a6=function(_0x24a6fa,_0xd02f14){_0x24a6fa=_0x24a6fa-0xdf;var _0x1a8dae=_0x44d9f5[_0x24a6fa];return _0x1a8dae;},a2_0x24a6(_0x5773e1,_0x2383b1);}Object[a2_0x176363(0xe6)](exports,a2_0x176363(0xe3),{'enumerable':!![],'get':function(){return EventService_1['EventService'];}});var configuration_1=require(a2_0x176363(0xe8));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x5cf184=a3_0x7149;function a3_0x7149(_0x1b6fbc,_0x499bc9){var _0x5314ee=a3_0x5314();return a3_0x7149=function(_0x714972,_0x350710){_0x714972=_0x714972-0x98;var _0x62a15e=_0x5314ee[_0x714972];return _0x62a15e;},a3_0x7149(_0x1b6fbc,_0x499bc9);}function a3_0x5314(){var _0xda867e=['57164aJPLgg','EVENT_ON_KEY','246617kftpOf','anncic-api:event:on','anncic-api:event','6998464GJZfvM','565wRpVps','18iXbSEQ','241638NzMRcC','1221420VbWaNr','2927862OGJzHk','EVENT_KEY','__esModule','defineProperty','901320zEacDx'];a3_0x5314=function(){return _0xda867e;};return a3_0x5314();}(function(_0x51ee52,_0x72f8bb){var _0x39e913=a3_0x7149,_0x50db86=_0x51ee52();while(!![]){try{var _0x5b6593=-parseInt(_0x39e913(0xa6))/0x1+parseInt(_0x39e913(0x9e))/0x2+parseInt(_0x39e913(0x9d))/0x3+-parseInt(_0x39e913(0xa4))/0x4*(parseInt(_0x39e913(0x9b))/0x5)+parseInt(_0x39e913(0x9f))/0x6+-parseInt(_0x39e913(0xa3))/0x7+parseInt(_0x39e913(0x9a))/0x8*(parseInt(_0x39e913(0x9c))/0x9);if(_0x5b6593===_0x72f8bb)break;else _0x50db86['push'](_0x50db86['shift']());}catch(_0x4128c8){_0x50db86['push'](_0x50db86['shift']());}}}(a3_0x5314,0xe525d));Object[a3_0x5cf184(0xa2)](exports,a3_0x5cf184(0xa1),{'value':!![]}),exports[a3_0x5cf184(0xa5)]=exports['EVENT_KEY']=void 0x0,exports[a3_0x5cf184(0xa0)]=a3_0x5cf184(0x99),exports['EVENT_ON_KEY']=a3_0x5cf184(0x98);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x593d59=a4_0x46c9;function a4_0x46c9(_0x327c0a,_0x5edbc3){const _0x1e33ac=a4_0x1e33();return a4_0x46c9=function(_0x46c93f,_0x142be4){_0x46c93f=_0x46c93f-0xe1;let _0x4d5b2d=_0x1e33ac[_0x46c93f];return _0x4d5b2d;},a4_0x46c9(_0x327c0a,_0x5edbc3);}(function(_0x4d52b1,_0x2fa6cb){const _0x407a84=a4_0x46c9,_0x3ceac4=_0x4d52b1();while(!![]){try{const _0x11eacd=-parseInt(_0x407a84(0xfb))/0x1*(-parseInt(_0x407a84(0xed))/0x2)+-parseInt(_0x407a84(0xe6))/0x3+-parseInt(_0x407a84(0x107))/0x4*(-parseInt(_0x407a84(0xfe))/0x5)+parseInt(_0x407a84(0x101))/0x6+-parseInt(_0x407a84(0xe3))/0x7*(parseInt(_0x407a84(0xf8))/0x8)+-parseInt(_0x407a84(0xf2))/0x9*(parseInt(_0x407a84(0xff))/0xa)+parseInt(_0x407a84(0xeb))/0xb*(parseInt(_0x407a84(0xe7))/0xc);if(_0x11eacd===_0x2fa6cb)break;else _0x3ceac4['push'](_0x3ceac4['shift']());}catch(_0x233762){_0x3ceac4['push'](_0x3ceac4['shift']());}}}(a4_0x1e33,0x78bbb));var __decorate=this&&this[a4_0x593d59(0xf1)]||function(_0x1b7d3c,_0x5ce4d1,_0x13b3c0,_0x23fc15){const _0x5d2298=a4_0x593d59;var _0x2ee7df=arguments[_0x5d2298(0x105)],_0x4dfdc7=_0x2ee7df<0x3?_0x5ce4d1:_0x23fc15===null?_0x23fc15=Object[_0x5d2298(0x100)](_0x5ce4d1,_0x13b3c0):_0x23fc15,_0x239103;if(typeof Reflect===_0x5d2298(0x10e)&&typeof Reflect[_0x5d2298(0xf7)]===_0x5d2298(0xfc))_0x4dfdc7=Reflect[_0x5d2298(0xf7)](_0x1b7d3c,_0x5ce4d1,_0x13b3c0,_0x23fc15);else{for(var _0x1211b0=_0x1b7d3c[_0x5d2298(0x105)]-0x1;_0x1211b0>=0x0;_0x1211b0--)if(_0x239103=_0x1b7d3c[_0x1211b0])_0x4dfdc7=(_0x2ee7df<0x3?_0x239103(_0x4dfdc7):_0x2ee7df>0x3?_0x239103(_0x5ce4d1,_0x13b3c0,_0x4dfdc7):_0x239103(_0x5ce4d1,_0x13b3c0))||_0x4dfdc7;}return _0x2ee7df>0x3&&_0x4dfdc7&&Object[_0x5d2298(0xe9)](_0x5ce4d1,_0x13b3c0,_0x4dfdc7),_0x4dfdc7;},__metadata=this&&this[a4_0x593d59(0xe1)]||function(_0x4cb3a5,_0x39558b){const _0x40f0d5=a4_0x593d59;if(typeof Reflect===_0x40f0d5(0x10e)&&typeof Reflect[_0x40f0d5(0xf5)]===_0x40f0d5(0xfc))return Reflect['metadata'](_0x4cb3a5,_0x39558b);};Object[a4_0x593d59(0xe9)](exports,a4_0x593d59(0x10a),{'value':!![]}),exports[a4_0x593d59(0xfa)]=void 0x0;const collect_js_1=require(a4_0x593d59(0x10d)),core_1=require('@midwayjs/core'),interface_1=require('../interface');let EventService=class EventService{constructor(){this['init']=![];}async[a4_0x593d59(0x108)](_0xafa7ca){const _0x51f72a=a4_0x593d59;if(!this['init']){this[_0x51f72a(0xea)]=!![],this[_0x51f72a(0xe8)]={};for(const _0x5c11f0 of(0x0,core_1[_0x51f72a(0xe4)])(interface_1[_0x51f72a(0xfd)])||[]){const _0x212700=await this[_0x51f72a(0xee)][_0x51f72a(0xf4)]()[_0x51f72a(0xf3)](_0x5c11f0);for(const _0x2db77a of(0x0,core_1['getClassMetadata'])(interface_1[_0x51f72a(0x102)],_0x5c11f0)||[]){typeof(_0x212700[_0x2db77a['propertyKey']]=='function')&&(!this[_0x51f72a(0xe8)][_0x2db77a[_0x51f72a(0xef)]]&&(this[_0x51f72a(0xe8)][_0x2db77a['name']]=[]),this['listevent'][_0x2db77a['name']][_0x51f72a(0xec)]({'priority':_0x2db77a[_0x51f72a(0x103)],'resolve':_0x212700[_0x2db77a['propertyKey']]['bind'](_0x212700),'propertyKey':_0x5c11f0[_0x51f72a(0xef)]+'@'+_0x2db77a[_0x51f72a(0xe5)]}));}}for(const _0x599e49 in this['listevent']){this[_0x51f72a(0xe8)][_0x599e49]=(0x0,collect_js_1[_0x51f72a(0x10b)])(this[_0x51f72a(0xe8)][_0x599e49])[_0x51f72a(0x10c)](_0x51f72a(0x103))[_0x51f72a(0x106)]();}}return _0xafa7ca?this[_0x51f72a(0xe8)][_0xafa7ca]||[]:this[_0x51f72a(0xe8)];}async['emit'](_0x31355f,..._0x261fec){const _0x3cd4ef=a4_0x593d59;var _0x1f4271,_0x103998;await this[_0x3cd4ef(0x108)]();for(let _0x5e3ac5 in(_0x1f4271=this[_0x3cd4ef(0xe8)])===null||_0x1f4271===void 0x0?void 0x0:_0x1f4271[_0x31355f]){const _0x3d09bf=(_0x103998=this[_0x3cd4ef(0xe8)][_0x31355f])===null||_0x103998===void 0x0?void 0x0:_0x103998[_0x5e3ac5];(_0x3d09bf===null||_0x3d09bf===void 0x0?void 0x0:_0x3d09bf['resolve'])&&typeof(_0x3d09bf===null||_0x3d09bf===void 0x0?void 0x0:_0x3d09bf[_0x3cd4ef(0x104)])==_0x3cd4ef(0xfc)&&await _0x3d09bf[_0x3cd4ef(0x104)](..._0x261fec);}}async['once'](_0x318356,..._0x581f63){const _0x35118a=a4_0x593d59;return await this[_0x35118a(0x108)](),await this[_0x35118a(0x10f)](_0x318356,..._0x581f63),this['off'](_0x318356);}async['off'](_0x5ca42e){const _0x5565d4=a4_0x593d59;return await this[_0x5565d4(0x108)](),this[_0x5565d4(0xe8)][_0x5ca42e]&&delete this[_0x5565d4(0xe8)][_0x5ca42e],!!this['listevent'][_0x5ca42e];}};function a4_0x1e33(){const _0x524e04=['function','EVENT_KEY','249430PHBhKP','61990ZQuYXW','getOwnPropertyDescriptor','4261344KqqpKx','EVENT_ON_KEY','priority','resolve','length','all','20EcwTsp','getListevent','Scope','__esModule','default','sortByDesc','collect.js','object','emit','__metadata','Provide','4333616Eognng','listModule','propertyKey','2810751OHZXrT','559644Yzcyzn','listevent','defineProperty','init','396TcKcvK','push','80EYhqfH','app','name','prototype','__decorate','1278BJXkOb','getAsync','getApplicationContext','metadata','App','decorate','8kxbZvy','design:type','EventService','7305eDhyXD'];a4_0x1e33=function(){return _0x524e04;};return a4_0x1e33();}__decorate([(0x0,core_1[a4_0x593d59(0xf6)])(),__metadata(a4_0x593d59(0xf9),Object)],EventService[a4_0x593d59(0xf0)],a4_0x593d59(0xee),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x593d59(0xe2)])('event'),(0x0,core_1[a4_0x593d59(0x109)])(core_1['ScopeEnum']['Singleton'])],EventService),exports['EventService']=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.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": "af11934ea551318271915382e87a8d8b4b2c3d40"
|
|
25
25
|
}
|