@anncic-api/event 1.2.1 → 1.2.2
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';
|
|
1
|
+
'use strict';var a0_0x1041d6=a0_0xe21f;(function(_0x39d6f5,_0x2ccc57){var _0x40a02f=a0_0xe21f,_0x2972f6=_0x39d6f5();while(!![]){try{var _0x5f908f=parseInt(_0x40a02f(0x197))/0x1*(-parseInt(_0x40a02f(0x1a0))/0x2)+-parseInt(_0x40a02f(0x19d))/0x3*(parseInt(_0x40a02f(0x1a1))/0x4)+parseInt(_0x40a02f(0x18a))/0x5*(parseInt(_0x40a02f(0x18d))/0x6)+parseInt(_0x40a02f(0x1a5))/0x7*(-parseInt(_0x40a02f(0x18c))/0x8)+-parseInt(_0x40a02f(0x19f))/0x9+parseInt(_0x40a02f(0x195))/0xa+parseInt(_0x40a02f(0x19b))/0xb*(parseInt(_0x40a02f(0x189))/0xc);if(_0x5f908f===_0x2ccc57)break;else _0x2972f6['push'](_0x2972f6['shift']());}catch(_0x1c7250){_0x2972f6['push'](_0x2972f6['shift']());}}}(a0_0x4817,0x8c97c));function a0_0x4817(){var _0x378444=['115519kzcLsE','@midwayjs/core','object','metadata','11QKJddf','Configuration','13476NPMfWw','prototype','9352089KCSQUj','6kOlfWD','324uTyqnD','defineProperty','__metadata','Inject','47159WCpxix','design:type','anncic-api:event','18415248jantaq','99380hVSWvb','CustomConfiguration','328uObjvK','12qBChpT','config','onReady','length','decorate','__decorate','MidwayConfigService','function','10272590Krywzf','decorator'];a0_0x4817=function(){return _0x378444;};return a0_0x4817();}var __decorate=this&&this[a0_0x1041d6(0x192)]||function(_0x2114bd,_0x56161b,_0x376576,_0x3b8476){var _0x324580=a0_0x1041d6,_0x33fcb4=arguments['length'],_0x58b0ad=_0x33fcb4<0x3?_0x56161b:_0x3b8476===null?_0x3b8476=Object['getOwnPropertyDescriptor'](_0x56161b,_0x376576):_0x3b8476,_0x3f4cd3;if(typeof Reflect===_0x324580(0x199)&&typeof Reflect[_0x324580(0x191)]===_0x324580(0x194))_0x58b0ad=Reflect[_0x324580(0x191)](_0x2114bd,_0x56161b,_0x376576,_0x3b8476);else{for(var _0x4ec649=_0x2114bd[_0x324580(0x190)]-0x1;_0x4ec649>=0x0;_0x4ec649--)if(_0x3f4cd3=_0x2114bd[_0x4ec649])_0x58b0ad=(_0x33fcb4<0x3?_0x3f4cd3(_0x58b0ad):_0x33fcb4>0x3?_0x3f4cd3(_0x56161b,_0x376576,_0x58b0ad):_0x3f4cd3(_0x56161b,_0x376576))||_0x58b0ad;}return _0x33fcb4>0x3&&_0x58b0ad&&Object[_0x324580(0x1a2)](_0x56161b,_0x376576,_0x58b0ad),_0x58b0ad;},__metadata=this&&this[a0_0x1041d6(0x1a3)]||function(_0x1b57f4,_0x4500f9){var _0xcddc02=a0_0x1041d6;if(typeof Reflect===_0xcddc02(0x199)&&typeof Reflect[_0xcddc02(0x19a)]===_0xcddc02(0x194))return Reflect[_0xcddc02(0x19a)](_0x1b57f4,_0x4500f9);};Object[a0_0x1041d6(0x1a2)](exports,'__esModule',{'value':!![]}),exports[a0_0x1041d6(0x18b)]=void 0x0;const core_1=require(a0_0x1041d6(0x198)),core_2=require(a0_0x1041d6(0x198));function a0_0xe21f(_0x1c1090,_0x41b197){var _0x4817b0=a0_0x4817();return a0_0xe21f=function(_0xe21fff,_0x197d21){_0xe21fff=_0xe21fff-0x188;var _0x5de091=_0x4817b0[_0xe21fff];return _0x5de091;},a0_0xe21f(_0x1c1090,_0x41b197);}let CustomConfiguration=class CustomConfiguration{async[a0_0x1041d6(0x18f)](){}};__decorate([(0x0,core_1[a0_0x1041d6(0x1a4)])(),__metadata(a0_0x1041d6(0x1a6),core_2[a0_0x1041d6(0x193)])],CustomConfiguration[a0_0x1041d6(0x19e)],a0_0x1041d6(0x18e),void 0x0),__decorate([(0x0,core_1[a0_0x1041d6(0x1a4)])(),__metadata(a0_0x1041d6(0x1a6),core_2['MidwayDecoratorService'])],CustomConfiguration[a0_0x1041d6(0x19e)],a0_0x1041d6(0x196),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x1041d6(0x19c)])({'conflictCheck':![],'namespace':a0_0x1041d6(0x188)})],CustomConfiguration),exports[a0_0x1041d6(0x18b)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x322be7=a1_0x179d;(function(_0x5c4eb1,_0x3a7bc6){const _0x2898fd=a1_0x179d,_0x8132f0=_0x5c4eb1();while(!![]){try{const _0x275953=-parseInt(_0x2898fd(0x10b))/0x1*(parseInt(_0x2898fd(0x11e))/0x2)+parseInt(_0x2898fd(0x10e))/0x3*(-parseInt(_0x2898fd(0x114))/0x4)+parseInt(_0x2898fd(0x111))/0x5*(parseInt(_0x2898fd(0x117))/0x6)+-parseInt(_0x2898fd(0x108))/0x7+parseInt(_0x2898fd(0x109))/0x8*(-parseInt(_0x2898fd(0x107))/0x9)+parseInt(_0x2898fd(0x116))/0xa+parseInt(_0x2898fd(0x10a))/0xb;if(_0x275953===_0x3a7bc6)break;else _0x8132f0['push'](_0x8132f0['shift']());}catch(_0x2ad1eb){_0x8132f0['push'](_0x8132f0['shift']());}}}(a1_0x1fc6,0x20402));Object[a1_0x322be7(0x113)](exports,a1_0x322be7(0x110),{'value':!![]}),exports[a1_0x322be7(0x11c)]=void 0x0;const core_1=require(a1_0x322be7(0x10f)),interface_1=require(a1_0x322be7(0x11d));function Event(){return _0x40c113=>{const _0x66ae56=a1_0x179d;(0x0,core_1[_0x66ae56(0x119)])()(_0x40c113),(0x0,core_1[_0x66ae56(0x10d)])(interface_1[_0x66ae56(0x10c)],_0x40c113),(0x0,core_1[_0x66ae56(0x112)])(core_1[_0x66ae56(0x118)][_0x66ae56(0x11a)],{'allowDowngrade':!![]})(_0x40c113);};}exports[a1_0x322be7(0x11c)]=Event,Event['On']=function(_0x761059,_0x5b06e9=0x0){return(_0xdf16,_0xbe4ab3,_0x56cbb9)=>{const _0x41b325=a1_0x179d;return(0x0,core_1[_0x41b325(0x115)])(interface_1[_0x41b325(0x11b)],{'name':_0x761059,'priority':_0x5b06e9,'propertyKey':_0xbe4ab3,'descriptor':_0x56cbb9},_0xdf16),_0x56cbb9;};};function a1_0x179d(_0xb4cdbf,_0x88b8e1){const _0x1fc6c5=a1_0x1fc6();return a1_0x179d=function(_0x179d81,_0x51c23d){_0x179d81=_0x179d81-0x107;let _0xca5dd4=_0x1fc6c5[_0x179d81];return _0xca5dd4;},a1_0x179d(_0xb4cdbf,_0x88b8e1);}function a1_0x1fc6(){const _0x451e5c=['@midwayjs/core','__esModule','1216565YhDeft','Scope','defineProperty','8SfiJSp','attachClassMetadata','1914160WyUYnG','6jgNwwF','ScopeEnum','Provide','Request','EVENT_ON_KEY','Event','../interface','406IoJIEo','588843GSIIcM','698467IvPGhB','24CTZLJu','1829850RlbIKY','459RypjRn','EVENT_KEY','saveModule','119613CQJloW'];a1_0x1fc6=function(){return _0x451e5c;};return a1_0x1fc6();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x43281c=a2_0x5110;(function(_0x5b10d1,_0x4a37ea){var _0xcbf57a=a2_0x5110,_0x2386d6=_0x5b10d1();while(!![]){try{var _0x252d7b=parseInt(_0xcbf57a(0x17a))/0x1*(-parseInt(_0xcbf57a(0x17b))/0x2)+-parseInt(_0xcbf57a(0x173))/0x3*(-parseInt(_0xcbf57a(0x177))/0x4)+parseInt(_0xcbf57a(0x17e))/0x5*(parseInt(_0xcbf57a(0x17c))/0x6)+parseInt(_0xcbf57a(0x16e))/0x7*(parseInt(_0xcbf57a(0x179))/0x8)+-parseInt(_0xcbf57a(0x176))/0x9*(parseInt(_0xcbf57a(0x17f))/0xa)+-parseInt(_0xcbf57a(0x180))/0xb*(parseInt(_0xcbf57a(0x172))/0xc)+parseInt(_0xcbf57a(0x16d))/0xd*(parseInt(_0xcbf57a(0x171))/0xe);if(_0x252d7b===_0x4a37ea)break;else _0x2386d6['push'](_0x2386d6['shift']());}catch(_0x57ed9b){_0x2386d6['push'](_0x2386d6['shift']());}}}(a2_0x3c91,0xef123));function a2_0x5110(_0x65a1a5,_0x4dc825){var _0x3c916d=a2_0x3c91();return a2_0x5110=function(_0x5110dd,_0x137e07){_0x5110dd=_0x5110dd-0x16c;var _0x377f47=_0x3c916d[_0x5110dd];return _0x377f47;},a2_0x5110(_0x65a1a5,_0x4dc825);}Object['defineProperty'](exports,a2_0x43281c(0x16c),{'value':!![]}),exports[a2_0x43281c(0x16f)]=exports['EventService']=exports[a2_0x43281c(0x17d)]=void 0x0;var Event_1=require(a2_0x43281c(0x178));Object[a2_0x43281c(0x175)](exports,a2_0x43281c(0x17d),{'enumerable':!![],'get':function(){var _0x1ad27a=a2_0x43281c;return Event_1[_0x1ad27a(0x17d)];}});var EventService_1=require('./service/EventService');Object[a2_0x43281c(0x175)](exports,a2_0x43281c(0x174),{'enumerable':!![],'get':function(){var _0x30378d=a2_0x43281c;return EventService_1[_0x30378d(0x174)];}});function a2_0x3c91(){var _0x1e5122=['3004839gQhrNx','152612YDIhCD','./decorator/Event','8YWAVQS','24YbkbKw','21524SpxBbg','10026KNEqwn','Event','875qwsfKO','10TokVoP','11xdtBUy','__esModule','17260503oLEQxM','2462341YFkXFn','Configuration','CustomConfiguration','14PCZeiY','20372724BVVywK','102LhQLHN','EventService','defineProperty'];a2_0x3c91=function(){return _0x1e5122;};return a2_0x3c91();}var configuration_1=require('./configuration');Object['defineProperty'](exports,a2_0x43281c(0x16f),{'enumerable':!![],'get':function(){var _0x341d26=a2_0x43281c;return configuration_1[_0x341d26(0x170)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x5cc20d=a3_0x47a5;(function(_0x162152,_0x4c6dec){var _0x33c4c9=a3_0x47a5,_0x490887=_0x162152();while(!![]){try{var _0x48c4f6=parseInt(_0x33c4c9(0xb0))/0x1*(-parseInt(_0x33c4c9(0xb9))/0x2)+parseInt(_0x33c4c9(0xb2))/0x3+parseInt(_0x33c4c9(0xae))/0x4*(-parseInt(_0x33c4c9(0xad))/0x5)+-parseInt(_0x33c4c9(0xb4))/0x6+parseInt(_0x33c4c9(0xbb))/0x7*(parseInt(_0x33c4c9(0xb3))/0x8)+-parseInt(_0x33c4c9(0xbc))/0x9*(parseInt(_0x33c4c9(0xb7))/0xa)+parseInt(_0x33c4c9(0xb1))/0xb;if(_0x48c4f6===_0x4c6dec)break;else _0x490887['push'](_0x490887['shift']());}catch(_0x19bac9){_0x490887['push'](_0x490887['shift']());}}}(a3_0x2eae,0x7c879));function a3_0x47a5(_0x8c6831,_0x21c027){var _0x2eaec2=a3_0x2eae();return a3_0x47a5=function(_0x47a5c8,_0x144496){_0x47a5c8=_0x47a5c8-0xad;var _0x28f226=_0x2eaec2[_0x47a5c8];return _0x28f226;},a3_0x47a5(_0x8c6831,_0x21c027);}function a3_0x2eae(){var _0x520ad3=['32qIwmMs','6048846JLlqMJ','__esModule','anncic-api:event:on','25970xCBxiR','EVENT_KEY','8UPwjWN','defineProperty','174839dwHpNZ','1152SURnVe','1766110ZoadnS','4kWLWiD','EVENT_ON_KEY','18406iqIUxC','16290879accMbf','2089737yIFYEo'];a3_0x2eae=function(){return _0x520ad3;};return a3_0x2eae();}Object[a3_0x5cc20d(0xba)](exports,a3_0x5cc20d(0xb5),{'value':!![]}),exports['EVENT_ON_KEY']=exports['EVENT_KEY']=void 0x0,exports[a3_0x5cc20d(0xb8)]='anncic-api:event',exports[a3_0x5cc20d(0xaf)]=a3_0x5cc20d(0xb6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x24be0c=a4_0x1449;(function(_0x1d3cb6,_0x1bcedc){const _0x1a0420=a4_0x1449,_0x4028a9=_0x1d3cb6();while(!![]){try{const _0x5b0ca1=-parseInt(_0x1a0420(0x16d))/0x1*(parseInt(_0x1a0420(0x173))/0x2)+parseInt(_0x1a0420(0x17f))/0x3+parseInt(_0x1a0420(0x17b))/0x4*(-parseInt(_0x1a0420(0x18f))/0x5)+-parseInt(_0x1a0420(0x181))/0x6*(parseInt(_0x1a0420(0x193))/0x7)+-parseInt(_0x1a0420(0x199))/0x8*(-parseInt(_0x1a0420(0x18c))/0x9)+-parseInt(_0x1a0420(0x172))/0xa+-parseInt(_0x1a0420(0x190))/0xb*(-parseInt(_0x1a0420(0x184))/0xc);if(_0x5b0ca1===_0x1bcedc)break;else _0x4028a9['push'](_0x4028a9['shift']());}catch(_0x2668f4){_0x4028a9['push'](_0x4028a9['shift']());}}}(a4_0x13f7,0xadbc7));var __decorate=this&&this[a4_0x24be0c(0x182)]||function(_0x1374cc,_0x4424d8,_0x2821c1,_0x2c0f31){const _0x4d71f1=a4_0x24be0c;var _0xb60d6a=arguments[_0x4d71f1(0x196)],_0x34f1be=_0xb60d6a<0x3?_0x4424d8:_0x2c0f31===null?_0x2c0f31=Object[_0x4d71f1(0x192)](_0x4424d8,_0x2821c1):_0x2c0f31,_0x261a10;if(typeof Reflect===_0x4d71f1(0x174)&&typeof Reflect[_0x4d71f1(0x18b)]==='function')_0x34f1be=Reflect[_0x4d71f1(0x18b)](_0x1374cc,_0x4424d8,_0x2821c1,_0x2c0f31);else{for(var _0x2fd67a=_0x1374cc[_0x4d71f1(0x196)]-0x1;_0x2fd67a>=0x0;_0x2fd67a--)if(_0x261a10=_0x1374cc[_0x2fd67a])_0x34f1be=(_0xb60d6a<0x3?_0x261a10(_0x34f1be):_0xb60d6a>0x3?_0x261a10(_0x4424d8,_0x2821c1,_0x34f1be):_0x261a10(_0x4424d8,_0x2821c1))||_0x34f1be;}return _0xb60d6a>0x3&&_0x34f1be&&Object[_0x4d71f1(0x175)](_0x4424d8,_0x2821c1,_0x34f1be),_0x34f1be;},__metadata=this&&this[a4_0x24be0c(0x17c)]||function(_0x2686f1,_0x3d0073){const _0x482115=a4_0x24be0c;if(typeof Reflect==='object'&&typeof Reflect[_0x482115(0x170)]==='function')return Reflect[_0x482115(0x170)](_0x2686f1,_0x3d0073);};Object[a4_0x24be0c(0x175)](exports,a4_0x24be0c(0x179),{'value':!![]}),exports[a4_0x24be0c(0x177)]=void 0x0;const collect_js_1=require(a4_0x24be0c(0x168)),core_1=require(a4_0x24be0c(0x197)),interface_1=require(a4_0x24be0c(0x187));function a4_0x1449(_0x91526e,_0x5522e0){const _0x13f7f0=a4_0x13f7();return a4_0x1449=function(_0x1449b0,_0x3d8746){_0x1449b0=_0x1449b0-0x168;let _0x10baa6=_0x13f7f0[_0x1449b0];return _0x10baa6;},a4_0x1449(_0x91526e,_0x5522e0);}let EventService=class EventService{constructor(){const _0x2b9997=a4_0x24be0c;this[_0x2b9997(0x180)]=![];}async['getListevent'](_0x515710){const _0x5cc4c7=a4_0x24be0c;if(!this[_0x5cc4c7(0x180)]){this[_0x5cc4c7(0x180)]=!![],this[_0x5cc4c7(0x191)]={};for(const _0x400bfb of(0x0,core_1[_0x5cc4c7(0x17d)])(interface_1[_0x5cc4c7(0x17a)])||[]){const _0x14c49b=await this[_0x5cc4c7(0x17e)][_0x5cc4c7(0x169)]()[_0x5cc4c7(0x198)](_0x400bfb);for(const _0x4a6faa of(0x0,core_1[_0x5cc4c7(0x18e)])(interface_1['EVENT_ON_KEY'],_0x400bfb)||[]){typeof(_0x14c49b[_0x4a6faa['propertyKey']]==_0x5cc4c7(0x188))&&(!this[_0x5cc4c7(0x191)][_0x4a6faa[_0x5cc4c7(0x16a)]]&&(this[_0x5cc4c7(0x191)][_0x4a6faa[_0x5cc4c7(0x16a)]]=[]),this[_0x5cc4c7(0x191)][_0x4a6faa[_0x5cc4c7(0x16a)]][_0x5cc4c7(0x16b)]({'priority':_0x4a6faa[_0x5cc4c7(0x178)],'resolve':_0x14c49b[_0x4a6faa['propertyKey']][_0x5cc4c7(0x18a)](_0x14c49b),'propertyKey':_0x400bfb[_0x5cc4c7(0x16a)]+'@'+_0x4a6faa[_0x5cc4c7(0x18d)]}));}}for(const _0x4c5477 in this[_0x5cc4c7(0x191)]){this['listevent'][_0x4c5477]=(0x0,collect_js_1[_0x5cc4c7(0x185)])(this[_0x5cc4c7(0x191)][_0x4c5477])[_0x5cc4c7(0x16f)](_0x5cc4c7(0x178))['all']();}}return _0x515710?this[_0x5cc4c7(0x191)][_0x515710]||[]:this['listevent'];}async[a4_0x24be0c(0x195)](_0x1f708e,..._0x179659){const _0x1f2675=a4_0x24be0c;var _0x5d4f5e,_0x3e27a8;await this[_0x1f2675(0x171)]();for(let _0x4295ed in(_0x5d4f5e=this[_0x1f2675(0x191)])===null||_0x5d4f5e===void 0x0?void 0x0:_0x5d4f5e[_0x1f708e]){const _0x1f5c72=(_0x3e27a8=this[_0x1f2675(0x191)][_0x1f708e])===null||_0x3e27a8===void 0x0?void 0x0:_0x3e27a8[_0x4295ed];(_0x1f5c72===null||_0x1f5c72===void 0x0?void 0x0:_0x1f5c72[_0x1f2675(0x189)])&&typeof(_0x1f5c72===null||_0x1f5c72===void 0x0?void 0x0:_0x1f5c72[_0x1f2675(0x189)])=='function'&&await _0x1f5c72[_0x1f2675(0x189)](..._0x179659);}}async[a4_0x24be0c(0x176)](_0x3836bf,..._0x28bcc3){const _0x38435c=a4_0x24be0c;return await this[_0x38435c(0x171)](),await this['emit'](_0x3836bf,..._0x28bcc3),this[_0x38435c(0x186)](_0x3836bf);}async[a4_0x24be0c(0x186)](_0x539a6b){const _0x421b3b=a4_0x24be0c;return await this[_0x421b3b(0x171)](),this['listevent'][_0x539a6b]&&delete this[_0x421b3b(0x191)][_0x539a6b],!!this['listevent'][_0x539a6b];}};function a4_0x13f7(){const _0xf53bd3=['7dwcbKt','App','emit','length','@midwayjs/core','getAsync','7432RUdCeZ','collect.js','getApplicationContext','name','push','design:type','28cgOKuV','prototype','sortByDesc','metadata','getListevent','2598680PdeDGR','78224ZQAoWQ','object','defineProperty','once','EventService','priority','__esModule','EVENT_KEY','7268RZCTdr','__metadata','listModule','app','4237776MxrEjT','init','1426284qphFEo','__decorate','event','4332684PnkLEC','default','off','../interface','function','resolve','bind','decorate','6039cnFIKY','propertyKey','getClassMetadata','255EltLnw','11UVYAXT','listevent','getOwnPropertyDescriptor'];a4_0x13f7=function(){return _0xf53bd3;};return a4_0x13f7();}__decorate([(0x0,core_1[a4_0x24be0c(0x194)])(),__metadata(a4_0x24be0c(0x16c),Object)],EventService[a4_0x24be0c(0x16e)],a4_0x24be0c(0x17e),void 0x0),EventService=__decorate([(0x0,core_1['Provide'])(a4_0x24be0c(0x183)),(0x0,core_1['Scope'])(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.2",
|
|
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": "95eaacf979d91710cc71f68236cace152e3fd9ef"
|
|
25
25
|
}
|