@anncic-api/event 1.1.3 → 1.1.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_0x4e00cd=a0_0x50f3;(function(_0x106640,_0x4c561b){var _0x1a27d2=a0_0x50f3,_0x143452=_0x106640();while(!![]){try{var _0x247e02=-parseInt(_0x1a27d2(0x185))/0x1*(parseInt(_0x1a27d2(0x17a))/0x2)+parseInt(_0x1a27d2(0x184))/0x3+-parseInt(_0x1a27d2(0x18f))/0x4+parseInt(_0x1a27d2(0x181))/0x5*(parseInt(_0x1a27d2(0x18e))/0x6)+parseInt(_0x1a27d2(0x189))/0x7+-parseInt(_0x1a27d2(0x17b))/0x8*(parseInt(_0x1a27d2(0x193))/0x9)+-parseInt(_0x1a27d2(0x18a))/0xa;if(_0x247e02===_0x4c561b)break;else _0x143452['push'](_0x143452['shift']());}catch(_0x19932d){_0x143452['push'](_0x143452['shift']());}}}(a0_0x40f9,0xde428));var __decorate=this&&this[a0_0x4e00cd(0x17e)]||function(_0x389dae,_0x3304c0,_0x7a751d,_0x2c7d2e){var _0x47b3c5=a0_0x4e00cd,_0x396287=arguments[_0x47b3c5(0x183)],_0x3f3d54=_0x396287<0x3?_0x3304c0:_0x2c7d2e===null?_0x2c7d2e=Object['getOwnPropertyDescriptor'](_0x3304c0,_0x7a751d):_0x2c7d2e,_0x4771d3;if(typeof Reflect===_0x47b3c5(0x17c)&&typeof Reflect[_0x47b3c5(0x182)]===_0x47b3c5(0x18b))_0x3f3d54=Reflect[_0x47b3c5(0x182)](_0x389dae,_0x3304c0,_0x7a751d,_0x2c7d2e);else{for(var _0x1e8c57=_0x389dae['length']-0x1;_0x1e8c57>=0x0;_0x1e8c57--)if(_0x4771d3=_0x389dae[_0x1e8c57])_0x3f3d54=(_0x396287<0x3?_0x4771d3(_0x3f3d54):_0x396287>0x3?_0x4771d3(_0x3304c0,_0x7a751d,_0x3f3d54):_0x4771d3(_0x3304c0,_0x7a751d))||_0x3f3d54;}return _0x396287>0x3&&_0x3f3d54&&Object['defineProperty'](_0x3304c0,_0x7a751d,_0x3f3d54),_0x3f3d54;},__metadata=this&&this['__metadata']||function(_0x23e870,_0x3938ea){var _0x194730=a0_0x4e00cd;if(typeof Reflect==='object'&&typeof Reflect[_0x194730(0x18c)]==='function')return Reflect['metadata'](_0x23e870,_0x3938ea);};Object[a0_0x4e00cd(0x190)](exports,a0_0x4e00cd(0x192),{'value':!![]}),exports[a0_0x4e00cd(0x179)]=void 0x0;const decorator_1=require(a0_0x4e00cd(0x186)),core_1=require(a0_0x4e00cd(0x17f));function a0_0x40f9(){var _0x51257a=['prototype','__decorate','@midwayjs/core','config','7230HgZWiI','decorate','length','4352850etjtKN','1vuZYcN','@midwayjs/decorator','Inject','decorator','11258219jfMrKH','15642320zrGzej','function','metadata','MidwayDecoratorService','2256JBBhLw','1903092pitOZN','defineProperty','design:type','__esModule','45iWfHpW','MidwayConfigService','anncic-api:event','CustomConfiguration','104254FNBAAd','960728FanAXL','object'];a0_0x40f9=function(){return _0x51257a;};return a0_0x40f9();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};function a0_0x50f3(_0xe90103,_0x4e11c2){var _0x40f99f=a0_0x40f9();return a0_0x50f3=function(_0x50f3e1,_0x2ac607){_0x50f3e1=_0x50f3e1-0x178;var _0x3d1fb4=_0x40f99f[_0x50f3e1];return _0x3d1fb4;},a0_0x50f3(_0xe90103,_0x4e11c2);}__decorate([(0x0,decorator_1[a0_0x4e00cd(0x187)])(),__metadata(a0_0x4e00cd(0x191),core_1[a0_0x4e00cd(0x194)])],CustomConfiguration[a0_0x4e00cd(0x17d)],a0_0x4e00cd(0x180),void 0x0),__decorate([(0x0,decorator_1[a0_0x4e00cd(0x187)])(),__metadata(a0_0x4e00cd(0x191),core_1[a0_0x4e00cd(0x18d)])],CustomConfiguration[a0_0x4e00cd(0x17d)],a0_0x4e00cd(0x188),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a0_0x4e00cd(0x178)})],CustomConfiguration),exports[a0_0x4e00cd(0x179)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x4af0c6=a1_0x4677;(function(_0x31cf91,_0x2ca3e0){const _0x1503c0=a1_0x4677,_0x10831b=_0x31cf91();while(!![]){try{const _0x58d979=-parseInt(_0x1503c0(0xb2))/0x1*(parseInt(_0x1503c0(0xac))/0x2)+parseInt(_0x1503c0(0xba))/0x3+-parseInt(_0x1503c0(0xaa))/0x4*(-parseInt(_0x1503c0(0xa8))/0x5)+parseInt(_0x1503c0(0xb3))/0x6*(-parseInt(_0x1503c0(0xae))/0x7)+-parseInt(_0x1503c0(0xa9))/0x8*(parseInt(_0x1503c0(0xb9))/0x9)+parseInt(_0x1503c0(0xb6))/0xa+parseInt(_0x1503c0(0xb5))/0xb*(parseInt(_0x1503c0(0xb8))/0xc);if(_0x58d979===_0x2ca3e0)break;else _0x10831b['push'](_0x10831b['shift']());}catch(_0x33aea3){_0x10831b['push'](_0x10831b['shift']());}}}(a1_0x2acc,0x51c08));Object[a1_0x4af0c6(0xa7)](exports,'__esModule',{'value':!![]}),exports['Event']=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require(a1_0x4af0c6(0xb1));function Event(){return _0x214439=>{const _0x3d235e=a1_0x4677;(0x0,decorator_1[_0x3d235e(0xab)])()(_0x214439),(0x0,decorator_1[_0x3d235e(0xb0)])(interface_1[_0x3d235e(0xb7)],_0x214439),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum'][_0x3d235e(0xbb)],{'allowDowngrade':!![]})(_0x214439);};}function a1_0x2acc(){const _0x48bda1=['defineProperty','95HTWpSd','763408LaooKh','26944UByeet','Provide','2UTwlrv','attachClassMetadata','14nQAxBm','EVENT_ON_KEY','saveModule','../interface','234316SAjCao','1555674Hmxwbh','Event','74327ZnnWFQ','952290gLaOmj','EVENT_KEY','648PurRdU','9JaUvdj','1785195iVxGkJ','Request'];a1_0x2acc=function(){return _0x48bda1;};return a1_0x2acc();}function a1_0x4677(_0x4cc2f0,_0xebe099){const _0x2accd3=a1_0x2acc();return a1_0x4677=function(_0x467744,_0x5aecb1){_0x467744=_0x467744-0xa7;let _0x38e296=_0x2accd3[_0x467744];return _0x38e296;},a1_0x4677(_0x4cc2f0,_0xebe099);}exports[a1_0x4af0c6(0xb4)]=Event,Event['On']=function(_0x325e3f,_0x201e33=0x0){return(_0x146b7a,_0xc70e2a,_0x29967c)=>{const _0x1ca1bb=a1_0x4677;return(0x0,decorator_1[_0x1ca1bb(0xad)])(interface_1[_0x1ca1bb(0xaf)],{'name':_0x325e3f,'priority':_0x201e33,'propertyKey':_0xc70e2a,'descriptor':_0x29967c},_0x146b7a),_0x29967c;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a2_0x555c(_0x18d8dd,_0x2b3f8f){var _0xe878ae=a2_0xe878();return a2_0x555c=function(_0x555cb6,_0x471f6d){_0x555cb6=_0x555cb6-0x65;var _0x21ff11=_0xe878ae[_0x555cb6];return _0x21ff11;},a2_0x555c(_0x18d8dd,_0x2b3f8f);}var a2_0x39b535=a2_0x555c;(function(_0x2ecae6,_0x577bb3){var _0x1cc372=a2_0x555c,_0x190105=_0x2ecae6();while(!![]){try{var _0x4ba369=parseInt(_0x1cc372(0x66))/0x1*(parseInt(_0x1cc372(0x73))/0x2)+parseInt(_0x1cc372(0x6d))/0x3*(parseInt(_0x1cc372(0x6a))/0x4)+parseInt(_0x1cc372(0x71))/0x5+-parseInt(_0x1cc372(0x75))/0x6+parseInt(_0x1cc372(0x70))/0x7+parseInt(_0x1cc372(0x72))/0x8+-parseInt(_0x1cc372(0x6c))/0x9*(parseInt(_0x1cc372(0x74))/0xa);if(_0x4ba369===_0x577bb3)break;else _0x190105['push'](_0x190105['shift']());}catch(_0x4e9a37){_0x190105['push'](_0x190105['shift']());}}}(a2_0xe878,0xbe86e));Object['defineProperty'](exports,a2_0x39b535(0x76),{'value':!![]}),exports['Configuration']=exports[a2_0x39b535(0x67)]=exports[a2_0x39b535(0x6b)]=void 0x0;var Event_1=require(a2_0x39b535(0x6f));function a2_0xe878(){var _0x943eb9=['./decorator/Event','5772823ZIlHyg','440215zenFoN','2686360YPdKDI','953444tPziqf','10BuRJdB','7361568SIyXor','__esModule','./configuration','2JjXaxd','EventService','Configuration','defineProperty','3932cRsqVU','Event','12111642bftoqn','3513wZfSCR','./service/EventService'];a2_0xe878=function(){return _0x943eb9;};return a2_0xe878();}Object[a2_0x39b535(0x69)](exports,a2_0x39b535(0x6b),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x39b535(0x6e));Object[a2_0x39b535(0x69)](exports,a2_0x39b535(0x67),{'enumerable':!![],'get':function(){var _0x2ff382=a2_0x39b535;return EventService_1[_0x2ff382(0x67)];}});var configuration_1=require(a2_0x39b535(0x65));Object[a2_0x39b535(0x69)](exports,a2_0x39b535(0x68),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0x55bf(_0x4f8093,_0x3af88a){var _0x1a67ca=a3_0x1a67();return a3_0x55bf=function(_0x55bf93,_0x1b8948){_0x55bf93=_0x55bf93-0xd3;var _0x72bd23=_0x1a67ca[_0x55bf93];return _0x72bd23;},a3_0x55bf(_0x4f8093,_0x3af88a);}var a3_0x5782dc=a3_0x55bf;function a3_0x1a67(){var _0x35c53e=['539374kOsEpL','2PbPwcg','446928xRvmkA','EVENT_ON_KEY','anncic-api:event:on','469380iELRLk','defineProperty','59772gfdnjY','__esModule','369207Ytpfih','9fNFCzr','anncic-api:event','76168OdmKPl','119wJsdQu','5UqrwHg','649692qScVYw'];a3_0x1a67=function(){return _0x35c53e;};return a3_0x1a67();}(function(_0x1386e9,_0x17b3b0){var _0xe3ab6a=a3_0x55bf,_0x5d67f7=_0x1386e9();while(!![]){try{var _0x4ea4eb=parseInt(_0xe3ab6a(0xd9))/0x1*(parseInt(_0xe3ab6a(0xdf))/0x2)+-parseInt(_0xe3ab6a(0xe1))/0x3+parseInt(_0xe3ab6a(0xda))/0x4*(parseInt(_0xe3ab6a(0xd6))/0x5)+-parseInt(_0xe3ab6a(0xd7))/0x6+-parseInt(_0xe3ab6a(0xd5))/0x7*(-parseInt(_0xe3ab6a(0xd4))/0x8)+-parseInt(_0xe3ab6a(0xe2))/0x9*(parseInt(_0xe3ab6a(0xdd))/0xa)+parseInt(_0xe3ab6a(0xd8))/0xb;if(_0x4ea4eb===_0x17b3b0)break;else _0x5d67f7['push'](_0x5d67f7['shift']());}catch(_0x4d623c){_0x5d67f7['push'](_0x5d67f7['shift']());}}}(a3_0x1a67,0x196aa));Object[a3_0x5782dc(0xde)](exports,a3_0x5782dc(0xe0),{'value':!![]}),exports['EVENT_ON_KEY']=exports['EVENT_KEY']=void 0x0,exports['EVENT_KEY']=a3_0x5782dc(0xd3),exports[a3_0x5782dc(0xdb)]=a3_0x5782dc(0xdc);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x36c4bc=a4_0xd913;(function(_0x27ad58,_0x3c706a){const _0x3a2afa=a4_0xd913,_0x415f6a=_0x27ad58();while(!![]){try{const _0x2aaff6=-parseInt(_0x3a2afa(0xb7))/0x1*(parseInt(_0x3a2afa(0xa5))/0x2)+-parseInt(_0x3a2afa(0xb5))/0x3*(parseInt(_0x3a2afa(0xa0))/0x4)+-parseInt(_0x3a2afa(0xa9))/0x5*(parseInt(_0x3a2afa(0xc1))/0x6)+-parseInt(_0x3a2afa(0xa2))/0x7+parseInt(_0x3a2afa(0x93))/0x8+-parseInt(_0x3a2afa(0xba))/0x9*(-parseInt(_0x3a2afa(0xac))/0xa)+parseInt(_0x3a2afa(0xb8))/0xb;if(_0x2aaff6===_0x3c706a)break;else _0x415f6a['push'](_0x415f6a['shift']());}catch(_0x1ef8b4){_0x415f6a['push'](_0x415f6a['shift']());}}}(a4_0x4562,0x1f7d6));var __decorate=this&&this[a4_0x36c4bc(0xb3)]||function(_0x4bcd41,_0x432910,_0x1b74f7,_0x3cb2e1){const _0x1601f6=a4_0x36c4bc;var _0x375ad3=arguments[_0x1601f6(0x96)],_0x33daa6=_0x375ad3<0x3?_0x432910:_0x3cb2e1===null?_0x3cb2e1=Object[_0x1601f6(0x99)](_0x432910,_0x1b74f7):_0x3cb2e1,_0x11b09e;if(typeof Reflect===_0x1601f6(0xbf)&&typeof Reflect[_0x1601f6(0xa8)]==='function')_0x33daa6=Reflect[_0x1601f6(0xa8)](_0x4bcd41,_0x432910,_0x1b74f7,_0x3cb2e1);else{for(var _0x2a3bcc=_0x4bcd41['length']-0x1;_0x2a3bcc>=0x0;_0x2a3bcc--)if(_0x11b09e=_0x4bcd41[_0x2a3bcc])_0x33daa6=(_0x375ad3<0x3?_0x11b09e(_0x33daa6):_0x375ad3>0x3?_0x11b09e(_0x432910,_0x1b74f7,_0x33daa6):_0x11b09e(_0x432910,_0x1b74f7))||_0x33daa6;}return _0x375ad3>0x3&&_0x33daa6&&Object[_0x1601f6(0xb9)](_0x432910,_0x1b74f7,_0x33daa6),_0x33daa6;},__metadata=this&&this[a4_0x36c4bc(0xa4)]||function(_0x4c4b3c,_0x463782){const _0x68d613=a4_0x36c4bc;if(typeof Reflect===_0x68d613(0xbf)&&typeof Reflect['metadata']===_0x68d613(0xc2))return Reflect[_0x68d613(0x94)](_0x4c4b3c,_0x463782);};Object[a4_0x36c4bc(0xb9)](exports,a4_0x36c4bc(0xad),{'value':!![]}),exports[a4_0x36c4bc(0xaf)]=void 0x0;const collect_js_1=require(a4_0x36c4bc(0xbd)),decorator_1=require(a4_0x36c4bc(0x98)),interface_1=require(a4_0x36c4bc(0x9a));function a4_0xd913(_0x2e3210,_0x2eff44){const _0x45629f=a4_0x4562();return a4_0xd913=function(_0xd91396,_0x3d586e){_0xd91396=_0xd91396-0x93;let _0x2c51ae=_0x45629f[_0xd91396];return _0x2c51ae;},a4_0xd913(_0x2e3210,_0x2eff44);}let EventService=class EventService{constructor(){const _0x58aa3d=a4_0x36c4bc;this[_0x58aa3d(0xa7)]=![];}async[a4_0x36c4bc(0xb1)](_0x176b97){const _0x45ea17=a4_0x36c4bc;if(!this[_0x45ea17(0xa7)]){this[_0x45ea17(0xa7)]=!![],this['listevent']={};for(const _0x3af8dc of(0x0,decorator_1[_0x45ea17(0x9f)])(interface_1['EVENT_KEY'])||[]){const _0x6c76c8=await this[_0x45ea17(0x9b)][_0x45ea17(0xa3)]()[_0x45ea17(0xb0)](_0x3af8dc);for(const _0x42414a of(0x0,decorator_1[_0x45ea17(0x9c)])(interface_1['EVENT_ON_KEY'],_0x3af8dc)||[]){typeof(_0x6c76c8[_0x42414a['propertyKey']]==_0x45ea17(0xc2))&&(!this[_0x45ea17(0xc0)][_0x42414a[_0x45ea17(0xbc)]]&&(this['listevent'][_0x42414a[_0x45ea17(0xbc)]]=[]),this[_0x45ea17(0xc0)][_0x42414a[_0x45ea17(0xbc)]][_0x45ea17(0xbe)]({'priority':_0x42414a[_0x45ea17(0x9d)],'resolve':_0x6c76c8[_0x42414a[_0x45ea17(0x95)]]['bind'](_0x6c76c8),'propertyKey':_0x3af8dc['name']+'@'+_0x42414a['propertyKey']}));}}for(const _0xd8edef in this[_0x45ea17(0xc0)]){this[_0x45ea17(0xc0)][_0xd8edef]=(0x0,collect_js_1[_0x45ea17(0xa6)])(this[_0x45ea17(0xc0)][_0xd8edef])[_0x45ea17(0xb4)](_0x45ea17(0x9d))['all']();}}return _0x176b97?this[_0x45ea17(0xc0)][_0x176b97]||[]:this[_0x45ea17(0xc0)];}async['emit'](_0x51f5ab,..._0x2c5895){const _0x385671=a4_0x36c4bc;var _0x39d13f,_0x520324;await this[_0x385671(0xb1)]();for(let _0x4628cf in(_0x39d13f=this[_0x385671(0xc0)])===null||_0x39d13f===void 0x0?void 0x0:_0x39d13f[_0x51f5ab]){const _0x10597c=(_0x520324=this['listevent'][_0x51f5ab])===null||_0x520324===void 0x0?void 0x0:_0x520324[_0x4628cf];(_0x10597c===null||_0x10597c===void 0x0?void 0x0:_0x10597c[_0x385671(0x97)])&&typeof(_0x10597c===null||_0x10597c===void 0x0?void 0x0:_0x10597c['resolve'])=='function'&&await _0x10597c[_0x385671(0x97)](..._0x2c5895);}}async['once'](_0x2fed16,..._0x3ae584){const _0x4f1d16=a4_0x36c4bc;return await this['getListevent'](),await this[_0x4f1d16(0xbb)](_0x2fed16,..._0x3ae584),this[_0x4f1d16(0xab)](_0x2fed16);}async[a4_0x36c4bc(0xab)](_0x22d03a){const _0x4ef8c4=a4_0x36c4bc;return await this[_0x4ef8c4(0xb1)](),this[_0x4ef8c4(0xc0)][_0x22d03a]&&delete this[_0x4ef8c4(0xc0)][_0x22d03a],!!this[_0x4ef8c4(0xc0)][_0x22d03a];}};function a4_0x4562(){const _0xb97107=['App','1LgzMau','7270186AwEbNG','defineProperty','28611khkQio','emit','name','collect.js','push','object','listevent','846sGzvIr','function','712544vJYdbu','metadata','propertyKey','length','resolve','@midwayjs/decorator','getOwnPropertyDescriptor','../interface','app','getClassMetadata','priority','Singleton','listModule','410100aERoAV','Scope','1305346pfpiXf','getApplicationContext','__metadata','506998Mvlypw','default','init','decorate','4475QOuYNH','Provide','off','150NznHnQ','__esModule','ScopeEnum','EventService','getAsync','getListevent','prototype','__decorate','sortByDesc','3jRxwse'];a4_0x4562=function(){return _0xb97107;};return a4_0x4562();}__decorate([(0x0,decorator_1[a4_0x36c4bc(0xb6)])(),__metadata('design:type',Object)],EventService[a4_0x36c4bc(0xb2)],a4_0x36c4bc(0x9b),void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x36c4bc(0xaa)])('event'),(0x0,decorator_1[a4_0x36c4bc(0xa1)])(decorator_1[a4_0x36c4bc(0xae)][a4_0x36c4bc(0x9e)])],EventService),exports[a4_0x36c4bc(0xaf)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.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": "c2921554d0bdda25ff1004d2fefcad8a48c683bf"
|
|
25
25
|
}
|