@anncic-api/event 1.4.18 → 1.4.19
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_0x4024ca=a0_0x5635;function a0_0x1ead(){var _0x20059c=['444hXRCQs','16583890ERgsHo','onReady','13095280ePdByW','MidwayDecoratorService','__esModule','function','Inject','decorate','1331816JHeUwe','__metadata','4331056zkkFda','4736646ISGEjp','prototype','metadata','__decorate','MidwayConfigService','design:type','anncic-api:event','17972TPqkLV','14484zrVsgu','object','14bOiueh','765OwetTm','@midwayjs/core','9enCopB','Configuration','length'];a0_0x1ead=function(){return _0x20059c;};return a0_0x1ead();}(function(_0x579608,_0xb0f37d){var _0x3fbb81=a0_0x5635,_0x504f1c=_0x579608();while(!![]){try{var _0x2ebf50=-parseInt(_0x3fbb81(0xb3))/0x1+parseInt(_0x3fbb81(0xc6))/0x2*(-parseInt(_0x3fbb81(0xbe))/0x3)+-parseInt(_0x3fbb81(0xbd))/0x4*(-parseInt(_0x3fbb81(0xc1))/0x5)+parseInt(_0x3fbb81(0xb6))/0x6+-parseInt(_0x3fbb81(0xc0))/0x7*(parseInt(_0x3fbb81(0xb5))/0x8)+parseInt(_0x3fbb81(0xc3))/0x9*(parseInt(_0x3fbb81(0xc7))/0xa)+parseInt(_0x3fbb81(0xc9))/0xb;if(_0x2ebf50===_0xb0f37d)break;else _0x504f1c['push'](_0x504f1c['shift']());}catch(_0x270374){_0x504f1c['push'](_0x504f1c['shift']());}}}(a0_0x1ead,0xcceaf));var __decorate=this&&this[a0_0x4024ca(0xb9)]||function(_0x4f4f9c,_0xef23b9,_0x483ecc,_0x2c6b3a){var _0x3bfde0=a0_0x4024ca,_0x23ebe8=arguments[_0x3bfde0(0xc5)],_0x1b067b=_0x23ebe8<0x3?_0xef23b9:_0x2c6b3a===null?_0x2c6b3a=Object['getOwnPropertyDescriptor'](_0xef23b9,_0x483ecc):_0x2c6b3a,_0x44696b;if(typeof Reflect===_0x3bfde0(0xbf)&&typeof Reflect[_0x3bfde0(0xb2)]===_0x3bfde0(0xcc))_0x1b067b=Reflect['decorate'](_0x4f4f9c,_0xef23b9,_0x483ecc,_0x2c6b3a);else{for(var _0x43ce5e=_0x4f4f9c[_0x3bfde0(0xc5)]-0x1;_0x43ce5e>=0x0;_0x43ce5e--)if(_0x44696b=_0x4f4f9c[_0x43ce5e])_0x1b067b=(_0x23ebe8<0x3?_0x44696b(_0x1b067b):_0x23ebe8>0x3?_0x44696b(_0xef23b9,_0x483ecc,_0x1b067b):_0x44696b(_0xef23b9,_0x483ecc))||_0x1b067b;}return _0x23ebe8>0x3&&_0x1b067b&&Object['defineProperty'](_0xef23b9,_0x483ecc,_0x1b067b),_0x1b067b;},__metadata=this&&this[a0_0x4024ca(0xb4)]||function(_0x2b3f08,_0x2c1a92){var _0x1dd116=a0_0x4024ca;if(typeof Reflect===_0x1dd116(0xbf)&&typeof Reflect[_0x1dd116(0xb8)]===_0x1dd116(0xcc))return Reflect['metadata'](_0x2b3f08,_0x2c1a92);};Object['defineProperty'](exports,a0_0x4024ca(0xcb),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a0_0x4024ca(0xc2)),core_2=require(a0_0x4024ca(0xc2));let CustomConfiguration=class CustomConfiguration{async[a0_0x4024ca(0xc8)](){}};function a0_0x5635(_0x548ba1,_0x3e1b19){var _0x1eadec=a0_0x1ead();return a0_0x5635=function(_0x563559,_0x1f5222){_0x563559=_0x563559-0xb1;var _0x5ee0c7=_0x1eadec[_0x563559];return _0x5ee0c7;},a0_0x5635(_0x548ba1,_0x3e1b19);}__decorate([(0x0,core_1[a0_0x4024ca(0xb1)])(),__metadata(a0_0x4024ca(0xbb),core_2[a0_0x4024ca(0xba)])],CustomConfiguration[a0_0x4024ca(0xb7)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x4024ca(0xb1)])(),__metadata(a0_0x4024ca(0xbb),core_2[a0_0x4024ca(0xca)])],CustomConfiguration[a0_0x4024ca(0xb7)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x4024ca(0xc4)])({'conflictCheck':![],'namespace':a0_0x4024ca(0xbc)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x119333=a1_0x147f;(function(_0x3cabbd,_0x1a1136){const _0x499717=a1_0x147f,_0x56e841=_0x3cabbd();while(!![]){try{const _0x1339ce=parseInt(_0x499717(0x188))/0x1+-parseInt(_0x499717(0x191))/0x2*(-parseInt(_0x499717(0x185))/0x3)+parseInt(_0x499717(0x196))/0x4*(parseInt(_0x499717(0x195))/0x5)+-parseInt(_0x499717(0x192))/0x6*(-parseInt(_0x499717(0x184))/0x7)+parseInt(_0x499717(0x18d))/0x8*(parseInt(_0x499717(0x18a))/0x9)+parseInt(_0x499717(0x186))/0xa+parseInt(_0x499717(0x18e))/0xb*(-parseInt(_0x499717(0x18c))/0xc);if(_0x1339ce===_0x1a1136)break;else _0x56e841['push'](_0x56e841['shift']());}catch(_0xf699eb){_0x56e841['push'](_0x56e841['shift']());}}}(a1_0x3686,0xd85ac));function a1_0x147f(_0x5b2a35,_0x55cb9a){const _0x368690=a1_0x3686();return a1_0x147f=function(_0x147f17,_0x13d980){_0x147f17=_0x147f17-0x184;let _0x2e3653=_0x368690[_0x147f17];return _0x2e3653;},a1_0x147f(_0x5b2a35,_0x55cb9a);}Object[a1_0x119333(0x199)](exports,a1_0x119333(0x193),{'value':!![]}),exports[a1_0x119333(0x197)]=void 0x0;const core_1=require(a1_0x119333(0x18f)),interface_1=require(a1_0x119333(0x194));function a1_0x3686(){const _0x51cfc7=['saveModule','9Lcwngt','Request','564uKDwmy','3286432XQGIHB','1150523zNqIaL','@midwayjs/core','EVENT_ON_KEY','14962tJIhQq','10626282dbNORl','__esModule','../interface','12290DBOSDB','400sIbaMP','Event','Scope','defineProperty','7hkqYEQ','531TulGQO','13993720oxtSuZ','attachClassMetadata','650899hMoCeW'];a1_0x3686=function(){return _0x51cfc7;};return a1_0x3686();}function Event(){return _0x7fe102=>{const _0x902509=a1_0x147f;(0x0,core_1['Provide'])()(_0x7fe102),(0x0,core_1[_0x902509(0x189)])(interface_1['EVENT_KEY'],_0x7fe102),(0x0,core_1[_0x902509(0x198)])(core_1['ScopeEnum'][_0x902509(0x18b)],{'allowDowngrade':!![]})(_0x7fe102);};}exports[a1_0x119333(0x197)]=Event,Event['On']=function(_0x2b0331,_0x484b2a=0x0){return(_0x38fa81,_0x112e1f,_0x4cf40f)=>{const _0x39e528=a1_0x147f;return(0x0,core_1[_0x39e528(0x187)])(interface_1[_0x39e528(0x190)],{'name':_0x2b0331,'priority':_0x484b2a,'propertyKey':_0x112e1f,'descriptor':_0x4cf40f},_0x38fa81),_0x4cf40f;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x270b8e=a2_0x2ca3;(function(_0x5b5497,_0x573726){var _0x6ebaeb=a2_0x2ca3,_0x558c48=_0x5b5497();while(!![]){try{var _0x3f1c6c=-parseInt(_0x6ebaeb(0xb9))/0x1*(-parseInt(_0x6ebaeb(0xc3))/0x2)+parseInt(_0x6ebaeb(0xc1))/0x3+-parseInt(_0x6ebaeb(0xb7))/0x4+-parseInt(_0x6ebaeb(0xc0))/0x5*(parseInt(_0x6ebaeb(0xbe))/0x6)+-parseInt(_0x6ebaeb(0xc5))/0x7*(parseInt(_0x6ebaeb(0xbf))/0x8)+parseInt(_0x6ebaeb(0xbd))/0x9+parseInt(_0x6ebaeb(0xbb))/0xa*(-parseInt(_0x6ebaeb(0xc2))/0xb);if(_0x3f1c6c===_0x573726)break;else _0x558c48['push'](_0x558c48['shift']());}catch(_0x148abb){_0x558c48['push'](_0x558c48['shift']());}}}(a2_0x2982,0x87871));Object[a2_0x270b8e(0xb4)](exports,a2_0x270b8e(0xb6),{'value':!![]}),exports['Configuration']=exports[a2_0x270b8e(0xc6)]=exports['Event']=void 0x0;var Event_1=require(a2_0x270b8e(0xc7));Object[a2_0x270b8e(0xb4)](exports,a2_0x270b8e(0xba),{'enumerable':!![],'get':function(){var _0x24e70a=a2_0x270b8e;return Event_1[_0x24e70a(0xba)];}});function a2_0x2ca3(_0x32992f,_0x3486fe){var _0x29821f=a2_0x2982();return a2_0x2ca3=function(_0x2ca300,_0x1e9b62){_0x2ca300=_0x2ca300-0xb4;var _0x1a0072=_0x29821f[_0x2ca300];return _0x1a0072;},a2_0x2ca3(_0x32992f,_0x3486fe);}var EventService_1=require(a2_0x270b8e(0xb8));function a2_0x2982(){var _0x35c4e4=['./service/EventService','805835CfNIfe','Event','565250QKpBXl','CustomConfiguration','8900928uDEkKS','30iEOHJx','24eTJsWK','374485xHzNvG','1370037ZPVoZG','11KCsBhD','2ZSqWpY','Configuration','2105915iSusvV','EventService','./decorator/Event','defineProperty','./configuration','__esModule','1451360ZLJYbk'];a2_0x2982=function(){return _0x35c4e4;};return a2_0x2982();}Object[a2_0x270b8e(0xb4)](exports,a2_0x270b8e(0xc6),{'enumerable':!![],'get':function(){var _0x4dc713=a2_0x270b8e;return EventService_1[_0x4dc713(0xc6)];}});var configuration_1=require(a2_0x270b8e(0xb5));Object[a2_0x270b8e(0xb4)](exports,a2_0x270b8e(0xc4),{'enumerable':!![],'get':function(){var _0x21695e=a2_0x270b8e;return configuration_1[_0x21695e(0xbc)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x6e8cd9=a3_0x3c30;function a3_0x1345(){var _0x5f23ab=['8WFKsht','569215Yvswjw','2014730EjVaZz','EVENT_KEY','127122pwRkLL','422372ReqxrP','9mbfiLu','228pOZLje','1712raFjfZ','3aMknUI','EVENT_ON_KEY','defineProperty','90893KWiZlu','16198vVCEzb','64368qTOkmy'];a3_0x1345=function(){return _0x5f23ab;};return a3_0x1345();}(function(_0x3b8796,_0xaa5690){var _0xfb13c0=a3_0x3c30,_0x3a20c0=_0x3b8796();while(!![]){try{var _0x5a8ea8=parseInt(_0xfb13c0(0x1aa))/0x1+parseInt(_0xfb13c0(0x1ab))/0x2*(-parseInt(_0xfb13c0(0x1af))/0x3)+-parseInt(_0xfb13c0(0x1a6))/0x4*(-parseInt(_0xfb13c0(0x1a7))/0x5)+parseInt(_0xfb13c0(0x1b4))/0x6+-parseInt(_0xfb13c0(0x1b3))/0x7*(-parseInt(_0xfb13c0(0x1ae))/0x8)+-parseInt(_0xfb13c0(0x1ac))/0x9*(parseInt(_0xfb13c0(0x1a8))/0xa)+-parseInt(_0xfb13c0(0x1b2))/0xb*(parseInt(_0xfb13c0(0x1ad))/0xc);if(_0x5a8ea8===_0xaa5690)break;else _0x3a20c0['push'](_0x3a20c0['shift']());}catch(_0x529bfb){_0x3a20c0['push'](_0x3a20c0['shift']());}}}(a3_0x1345,0x47104));function a3_0x3c30(_0xbfba83,_0x8128aa){var _0x1345d2=a3_0x1345();return a3_0x3c30=function(_0x3c30f0,_0x444874){_0x3c30f0=_0x3c30f0-0x1a6;var _0x5a3383=_0x1345d2[_0x3c30f0];return _0x5a3383;},a3_0x3c30(_0xbfba83,_0x8128aa);}Object[a3_0x6e8cd9(0x1b1)](exports,'__esModule',{'value':!![]}),exports['EVENT_ON_KEY']=exports['EVENT_KEY']=void 0x0,exports[a3_0x6e8cd9(0x1a9)]='anncic-api:event',exports[a3_0x6e8cd9(0x1b0)]='anncic-api:event:on';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a4_0x54ddcc=a4_0xda4b;function a4_0xda4b(_0x5353bf,_0x17252c){const _0x341eda=a4_0x341e();return a4_0xda4b=function(_0xda4b4c,_0x119558){_0xda4b4c=_0xda4b4c-0x141;let _0xd65a3f=_0x341eda[_0xda4b4c];return _0xd65a3f;},a4_0xda4b(_0x5353bf,_0x17252c);}(function(_0x17bf51,_0x41146d){const _0x4dec9f=a4_0xda4b,_0xcccd19=_0x17bf51();while(!![]){try{const _0x2ea1c7=parseInt(_0x4dec9f(0x165))/0x1+-parseInt(_0x4dec9f(0x147))/0x2*(parseInt(_0x4dec9f(0x143))/0x3)+-parseInt(_0x4dec9f(0x163))/0x4*(parseInt(_0x4dec9f(0x168))/0x5)+parseInt(_0x4dec9f(0x155))/0x6+parseInt(_0x4dec9f(0x14a))/0x7*(-parseInt(_0x4dec9f(0x16e))/0x8)+-parseInt(_0x4dec9f(0x167))/0x9+-parseInt(_0x4dec9f(0x160))/0xa*(-parseInt(_0x4dec9f(0x15d))/0xb);if(_0x2ea1c7===_0x41146d)break;else _0xcccd19['push'](_0xcccd19['shift']());}catch(_0x51ae71){_0xcccd19['push'](_0xcccd19['shift']());}}}(a4_0x341e,0xa1cb4));var __decorate=this&&this['__decorate']||function(_0x579173,_0x446e73,_0x409a95,_0x1f832f){const _0x62d8bb=a4_0xda4b;var _0x2b43fa=arguments['length'],_0x1bd9e8=_0x2b43fa<0x3?_0x446e73:_0x1f832f===null?_0x1f832f=Object[_0x62d8bb(0x14c)](_0x446e73,_0x409a95):_0x1f832f,_0xe84090;if(typeof Reflect===_0x62d8bb(0x169)&&typeof Reflect['decorate']===_0x62d8bb(0x162))_0x1bd9e8=Reflect[_0x62d8bb(0x145)](_0x579173,_0x446e73,_0x409a95,_0x1f832f);else{for(var _0x25a2ab=_0x579173[_0x62d8bb(0x166)]-0x1;_0x25a2ab>=0x0;_0x25a2ab--)if(_0xe84090=_0x579173[_0x25a2ab])_0x1bd9e8=(_0x2b43fa<0x3?_0xe84090(_0x1bd9e8):_0x2b43fa>0x3?_0xe84090(_0x446e73,_0x409a95,_0x1bd9e8):_0xe84090(_0x446e73,_0x409a95))||_0x1bd9e8;}return _0x2b43fa>0x3&&_0x1bd9e8&&Object['defineProperty'](_0x446e73,_0x409a95,_0x1bd9e8),_0x1bd9e8;},__metadata=this&&this[a4_0x54ddcc(0x15f)]||function(_0x1a369e,_0x2efa30){const _0x8b509d=a4_0x54ddcc;if(typeof Reflect===_0x8b509d(0x169)&&typeof Reflect[_0x8b509d(0x15a)]===_0x8b509d(0x162))return Reflect['metadata'](_0x1a369e,_0x2efa30);};function a4_0x341e(){const _0x2283e0=['728iHBZeT','default','getClassMetadata','3577269LoqFSO','App','decorate','once','2BdPVRu','Provide','getListevent','10493ScRjem','ScopeEnum','getOwnPropertyDescriptor','Singleton','EventService','app','Scope','defineProperty','EVENT_KEY','priority','resolve','2658912hFzDRO','name','push','init','collect.js','metadata','emit','@midwayjs/core','28971822bvROxl','propertyKey','__metadata','10DXLmPd','off','function','3995916yREtHZ','listModule','757832RhZlTi','length','7598403ZePqRT','5FmwPnB','object','design:type','getAsync','listevent','../interface'];a4_0x341e=function(){return _0x2283e0;};return a4_0x341e();}Object[a4_0x54ddcc(0x151)](exports,'__esModule',{'value':!![]}),exports[a4_0x54ddcc(0x14e)]=void 0x0;const collect_js_1=require(a4_0x54ddcc(0x159)),core_1=require(a4_0x54ddcc(0x15c)),interface_1=require(a4_0x54ddcc(0x16d));let EventService=class EventService{constructor(){const _0x44dee7=a4_0x54ddcc;this[_0x44dee7(0x158)]=![];}async[a4_0x54ddcc(0x149)](_0x21568f){const _0x446695=a4_0x54ddcc;if(!this[_0x446695(0x158)]){this['init']=!![],this[_0x446695(0x16c)]={};for(const _0x526a81 of(0x0,core_1[_0x446695(0x164)])(interface_1[_0x446695(0x152)])||[]){const _0x2b9a2a=await this[_0x446695(0x14f)]['getApplicationContext']()[_0x446695(0x16b)](_0x526a81);for(const _0x25689b of(0x0,core_1[_0x446695(0x142)])(interface_1['EVENT_ON_KEY'],_0x526a81)||[]){typeof(_0x2b9a2a[_0x25689b[_0x446695(0x15e)]]==_0x446695(0x162))&&(!this['listevent'][_0x25689b[_0x446695(0x156)]]&&(this[_0x446695(0x16c)][_0x25689b[_0x446695(0x156)]]=[]),this['listevent'][_0x25689b[_0x446695(0x156)]][_0x446695(0x157)]({'priority':_0x25689b[_0x446695(0x153)],'resolve':_0x2b9a2a[_0x25689b[_0x446695(0x15e)]]['bind'](_0x2b9a2a),'propertyKey':_0x526a81['name']+'@'+_0x25689b[_0x446695(0x15e)]}));}}for(const _0x26d797 in this[_0x446695(0x16c)]){this[_0x446695(0x16c)][_0x26d797]=(0x0,collect_js_1[_0x446695(0x141)])(this[_0x446695(0x16c)][_0x26d797])['sortByDesc'](_0x446695(0x153))['all']();}}return _0x21568f?this[_0x446695(0x16c)][_0x21568f]||[]:this['listevent'];}async[a4_0x54ddcc(0x15b)](_0x15a913,..._0x458729){const _0x531c48=a4_0x54ddcc;var _0x1e42c6,_0x1e5804;await this[_0x531c48(0x149)]();for(let _0xdff7e5 in(_0x1e42c6=this[_0x531c48(0x16c)])===null||_0x1e42c6===void 0x0?void 0x0:_0x1e42c6[_0x15a913]){const _0x1f09d6=(_0x1e5804=this[_0x531c48(0x16c)][_0x15a913])===null||_0x1e5804===void 0x0?void 0x0:_0x1e5804[_0xdff7e5];(_0x1f09d6===null||_0x1f09d6===void 0x0?void 0x0:_0x1f09d6[_0x531c48(0x154)])&&typeof(_0x1f09d6===null||_0x1f09d6===void 0x0?void 0x0:_0x1f09d6[_0x531c48(0x154)])==_0x531c48(0x162)&&await _0x1f09d6[_0x531c48(0x154)](..._0x458729);}}async[a4_0x54ddcc(0x146)](_0x28a578,..._0x313277){const _0x147117=a4_0x54ddcc;return await this[_0x147117(0x149)](),await this[_0x147117(0x15b)](_0x28a578,..._0x313277),this['off'](_0x28a578);}async[a4_0x54ddcc(0x161)](_0x45b6ba){const _0x3bbd96=a4_0x54ddcc;return await this[_0x3bbd96(0x149)](),this[_0x3bbd96(0x16c)][_0x45b6ba]&&delete this['listevent'][_0x45b6ba],!!this['listevent'][_0x45b6ba];}};__decorate([(0x0,core_1[a4_0x54ddcc(0x144)])(),__metadata(a4_0x54ddcc(0x16a),Object)],EventService['prototype'],'app',void 0x0),EventService=__decorate([(0x0,core_1[a4_0x54ddcc(0x148)])('event'),(0x0,core_1[a4_0x54ddcc(0x150)])(core_1[a4_0x54ddcc(0x14b)][a4_0x54ddcc(0x14d)])],EventService),exports[a4_0x54ddcc(0x14e)]=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.19",
|
|
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": "c0b0be9c50a3dd338d1bf16e12776821a0887505"
|
|
25
25
|
}
|