@anncic-api/event 1.4.0 → 1.4.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';var
|
|
1
|
+
'use strict';var a0_0x3460a4=a0_0x5934;(function(_0x4ae4d4,_0x19b044){var _0xc72cc7=a0_0x5934,_0x386a16=_0x4ae4d4();while(!![]){try{var _0x21bb43=-parseInt(_0xc72cc7(0x1ec))/0x1*(parseInt(_0xc72cc7(0x1ef))/0x2)+parseInt(_0xc72cc7(0x1da))/0x3*(-parseInt(_0xc72cc7(0x1db))/0x4)+parseInt(_0xc72cc7(0x1f1))/0x5*(parseInt(_0xc72cc7(0x1e4))/0x6)+parseInt(_0xc72cc7(0x1df))/0x7+-parseInt(_0xc72cc7(0x1e0))/0x8+-parseInt(_0xc72cc7(0x1dc))/0x9*(-parseInt(_0xc72cc7(0x1e9))/0xa)+parseInt(_0xc72cc7(0x1d9))/0xb;if(_0x21bb43===_0x19b044)break;else _0x386a16['push'](_0x386a16['shift']());}catch(_0x5e5322){_0x386a16['push'](_0x386a16['shift']());}}}(a0_0x29b8,0xee669));var __decorate=this&&this['__decorate']||function(_0x44714e,_0x26abfd,_0x3d8ab0,_0x5316a0){var _0x3f97bb=a0_0x5934,_0x14a9e5=arguments['length'],_0x213c09=_0x14a9e5<0x3?_0x26abfd:_0x5316a0===null?_0x5316a0=Object['getOwnPropertyDescriptor'](_0x26abfd,_0x3d8ab0):_0x5316a0,_0x30f798;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3f97bb(0x1e7))_0x213c09=Reflect[_0x3f97bb(0x1f2)](_0x44714e,_0x26abfd,_0x3d8ab0,_0x5316a0);else{for(var _0x6078c4=_0x44714e['length']-0x1;_0x6078c4>=0x0;_0x6078c4--)if(_0x30f798=_0x44714e[_0x6078c4])_0x213c09=(_0x14a9e5<0x3?_0x30f798(_0x213c09):_0x14a9e5>0x3?_0x30f798(_0x26abfd,_0x3d8ab0,_0x213c09):_0x30f798(_0x26abfd,_0x3d8ab0))||_0x213c09;}return _0x14a9e5>0x3&&_0x213c09&&Object[_0x3f97bb(0x1f0)](_0x26abfd,_0x3d8ab0,_0x213c09),_0x213c09;},__metadata=this&&this[a0_0x3460a4(0x1e6)]||function(_0x45110c,_0x166422){var _0x9e34c8=a0_0x3460a4;if(typeof Reflect===_0x9e34c8(0x1d8)&&typeof Reflect[_0x9e34c8(0x1eb)]===_0x9e34c8(0x1e7))return Reflect[_0x9e34c8(0x1eb)](_0x45110c,_0x166422);};Object[a0_0x3460a4(0x1f0)](exports,a0_0x3460a4(0x1ea),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a0_0x3460a4(0x1e8)),core_2=require(a0_0x3460a4(0x1e8));function a0_0x5934(_0x174919,_0x14883e){var _0x29b89d=a0_0x29b8();return a0_0x5934=function(_0x593437,_0x1484b3){_0x593437=_0x593437-0x1d8;var _0x58590a=_0x29b89d[_0x593437];return _0x58590a;},a0_0x5934(_0x174919,_0x14883e);}function a0_0x29b8(){var _0x3e4682=['1924CCuecX','672939JmsuDs','Inject','onReady','2602138subUnO','13575864nxrQpm','Configuration','design:type','config','18SFPSOu','CustomConfiguration','__metadata','function','@midwayjs/core','60GxlkJx','__esModule','metadata','2gqIbms','MidwayDecoratorService','prototype','1449878zKhbai','defineProperty','915795viqNeL','decorate','object','36690753aBVuYk','3630efuHPm'];a0_0x29b8=function(){return _0x3e4682;};return a0_0x29b8();}let CustomConfiguration=class CustomConfiguration{async[a0_0x3460a4(0x1de)](){}};__decorate([(0x0,core_1[a0_0x3460a4(0x1dd)])(),__metadata(a0_0x3460a4(0x1e2),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x3460a4(0x1ee)],a0_0x3460a4(0x1e3),void 0x0),__decorate([(0x0,core_1[a0_0x3460a4(0x1dd)])(),__metadata(a0_0x3460a4(0x1e2),core_2[a0_0x3460a4(0x1ed)])],CustomConfiguration[a0_0x3460a4(0x1ee)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x3460a4(0x1e1)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x3460a4(0x1e5)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x201e16=a1_0x2c35;(function(_0x59b674,_0x2c5eb1){const _0x4ae900=a1_0x2c35,_0x5e90a5=_0x59b674();while(!![]){try{const _0x8a0ed4=-parseInt(_0x4ae900(0x182))/0x1+-parseInt(_0x4ae900(0x18b))/0x2*(-parseInt(_0x4ae900(0x190))/0x3)+parseInt(_0x4ae900(0x185))/0x4+parseInt(_0x4ae900(0x189))/0x5+-parseInt(_0x4ae900(0x18f))/0x6+-parseInt(_0x4ae900(0x183))/0x7+-parseInt(_0x4ae900(0x187))/0x8;if(_0x8a0ed4===_0x2c5eb1)break;else _0x5e90a5['push'](_0x5e90a5['shift']());}catch(_0x433195){_0x5e90a5['push'](_0x5e90a5['shift']());}}}(a1_0x49d6,0x1bc8b));function a1_0x49d6(){const _0x556b8f=['attachClassMetadata','Scope','EVENT_ON_KEY','149124VhRwnB','24027WFISYh','saveModule','ScopeEnum','__esModule','Request','8226WqOWty','1424052ORlCJo','EVENT_KEY','365604psZJPf','defineProperty','1095768MLQVVP','@midwayjs/core','1058410xOMvDS','Provide','46ZVSgfH'];a1_0x49d6=function(){return _0x556b8f;};return a1_0x49d6();}function a1_0x2c35(_0x1d9968,_0x28bd58){const _0x49d69b=a1_0x49d6();return a1_0x2c35=function(_0x2c352e,_0x4e69eb){_0x2c352e=_0x2c352e-0x182;let _0x5a9b28=_0x49d69b[_0x2c352e];return _0x5a9b28;},a1_0x2c35(_0x1d9968,_0x28bd58);}Object[a1_0x201e16(0x186)](exports,a1_0x201e16(0x193),{'value':!![]}),exports['Event']=void 0x0;const core_1=require(a1_0x201e16(0x188)),interface_1=require('../interface');function Event(){return _0x420478=>{const _0x316a62=a1_0x2c35;(0x0,core_1[_0x316a62(0x18a)])()(_0x420478),(0x0,core_1[_0x316a62(0x191)])(interface_1[_0x316a62(0x184)],_0x420478),(0x0,core_1[_0x316a62(0x18d)])(core_1[_0x316a62(0x192)][_0x316a62(0x194)],{'allowDowngrade':!![]})(_0x420478);};}exports['Event']=Event,Event['On']=function(_0xb8bbae,_0x32c129=0x0){return(_0x2e3b0f,_0x399952,_0x5c9740)=>{const _0xb2c013=a1_0x2c35;return(0x0,core_1[_0xb2c013(0x18c)])(interface_1[_0xb2c013(0x18e)],{'name':_0xb8bbae,'priority':_0x32c129,'propertyKey':_0x399952,'descriptor':_0x5c9740},_0x2e3b0f),_0x5c9740;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a2_0x1128(_0xc3153f,_0x51a310){var _0x6dccf5=a2_0x6dcc();return a2_0x1128=function(_0x112852,_0x12a1e5){_0x112852=_0x112852-0x7c;var _0x2cee92=_0x6dccf5[_0x112852];return _0x2cee92;},a2_0x1128(_0xc3153f,_0x51a310);}var a2_0x525bc5=a2_0x1128;(function(_0x3941a7,_0x31db46){var _0x3da12f=a2_0x1128,_0x1aa240=_0x3941a7();while(!![]){try{var _0x378fee=-parseInt(_0x3da12f(0x87))/0x1*(-parseInt(_0x3da12f(0x7d))/0x2)+-parseInt(_0x3da12f(0x84))/0x3+parseInt(_0x3da12f(0x8f))/0x4*(parseInt(_0x3da12f(0x80))/0x5)+parseInt(_0x3da12f(0x7f))/0x6*(parseInt(_0x3da12f(0x85))/0x7)+parseInt(_0x3da12f(0x86))/0x8+-parseInt(_0x3da12f(0x90))/0x9*(-parseInt(_0x3da12f(0x8d))/0xa)+-parseInt(_0x3da12f(0x7e))/0xb*(parseInt(_0x3da12f(0x8a))/0xc);if(_0x378fee===_0x31db46)break;else _0x1aa240['push'](_0x1aa240['shift']());}catch(_0x4ae817){_0x1aa240['push'](_0x1aa240['shift']());}}}(a2_0x6dcc,0x7b9be));function a2_0x6dcc(){var _0x5d55f6=['./decorator/Event','7161610qKCJbC','defineProperty','44648HfdxYS','9yiiaKY','CustomConfiguration','413722CAxsFt','14179UceHAo','85422GIeBqZ','185Gnzroq','Configuration','Event','./configuration','1312590hVzGxE','35yPNWOs','1547576puMWmK','4ZPaaPk','./service/EventService','EventService','11892DPhBFy','__esModule'];a2_0x6dcc=function(){return _0x5d55f6;};return a2_0x6dcc();}Object['defineProperty'](exports,a2_0x525bc5(0x8b),{'value':!![]}),exports[a2_0x525bc5(0x81)]=exports['EventService']=exports[a2_0x525bc5(0x82)]=void 0x0;var Event_1=require(a2_0x525bc5(0x8c));Object['defineProperty'](exports,'Event',{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x525bc5(0x88));Object[a2_0x525bc5(0x8e)](exports,a2_0x525bc5(0x89),{'enumerable':!![],'get':function(){var _0x1b01a2=a2_0x525bc5;return EventService_1[_0x1b01a2(0x89)];}});var configuration_1=require(a2_0x525bc5(0x83));Object[a2_0x525bc5(0x8e)](exports,a2_0x525bc5(0x81),{'enumerable':!![],'get':function(){var _0x45dde=a2_0x525bc5;return configuration_1[_0x45dde(0x7c)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x6594d=a3_0x2c54;function a3_0x2c54(_0x4b2090,_0x1dfc64){var _0x217bc9=a3_0x217b();return a3_0x2c54=function(_0x2c5415,_0x375740){_0x2c5415=_0x2c5415-0x74;var _0x213535=_0x217bc9[_0x2c5415];return _0x213535;},a3_0x2c54(_0x4b2090,_0x1dfc64);}(function(_0xd498ff,_0x5469c1){var _0x26423b=a3_0x2c54,_0xd2ccdb=_0xd498ff();while(!![]){try{var _0x3ca58a=parseInt(_0x26423b(0x7a))/0x1*(-parseInt(_0x26423b(0x74))/0x2)+parseInt(_0x26423b(0x82))/0x3*(parseInt(_0x26423b(0x81))/0x4)+parseInt(_0x26423b(0x7d))/0x5+-parseInt(_0x26423b(0x79))/0x6+parseInt(_0x26423b(0x7f))/0x7*(parseInt(_0x26423b(0x78))/0x8)+parseInt(_0x26423b(0x7c))/0x9+parseInt(_0x26423b(0x7b))/0xa*(-parseInt(_0x26423b(0x80))/0xb);if(_0x3ca58a===_0x5469c1)break;else _0xd2ccdb['push'](_0xd2ccdb['shift']());}catch(_0x184e73){_0xd2ccdb['push'](_0xd2ccdb['shift']());}}}(a3_0x217b,0xea652));function a3_0x217b(){var _0x5954f3=['517KjIrWb','10pFbXyh','1391697rcdbzK','8584310MoFSnz','anncic-api:event:on','105cHPnLI','1231769cKZJwf','3368WtAMNQ','558UmATUR','6786TfWgcN','defineProperty','EVENT_KEY','anncic-api:event','841064udfAFk','4673160xviZJr'];a3_0x217b=function(){return _0x5954f3;};return a3_0x217b();}Object[a3_0x6594d(0x75)](exports,'__esModule',{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x6594d(0x76)]=void 0x0,exports[a3_0x6594d(0x76)]=a3_0x6594d(0x77),exports['EVENT_ON_KEY']=a3_0x6594d(0x7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x25ae9b=a4_0x570d;function a4_0x169c(){const _0x4f6d47=['emit','decorate','resolve','2732964kgPEgv','prototype','init','Provide','Singleton','length','3177864wCPpQl','object','390CKTdxd','../interface','10407600fWlsbT','getClassMetadata','propertyKey','app','getAsync','function','getListevent','54148tjRVsF','__metadata','metadata','sortByDesc','App','EventService','design:type','default','7jFaTxZ','push','11qARiOJ','2GKmeyv','__decorate','1401285XJEDYY','name','off','31176800HdeBrA','bind','listevent','__esModule','@midwayjs/core','event','collect.js','getApplicationContext','all','EVENT_ON_KEY','defineProperty','ScopeEnum','2506065kueuwp'];a4_0x169c=function(){return _0x4f6d47;};return a4_0x169c();}(function(_0x2043c6,_0x446f7b){const _0xc0edd4=a4_0x570d,_0x2ba835=_0x2043c6();while(!![]){try{const _0x2ecbbd=-parseInt(_0xc0edd4(0x1c9))/0x1+-parseInt(_0xc0edd4(0x1c7))/0x2*(parseInt(_0xc0edd4(0x1d8))/0x3)+parseInt(_0xc0edd4(0x1bc))/0x4*(parseInt(_0xc0edd4(0x1b3))/0x5)+parseInt(_0xc0edd4(0x1dc))/0x6*(-parseInt(_0xc0edd4(0x1c4))/0x7)+parseInt(_0xc0edd4(0x1b1))/0x8+-parseInt(_0xc0edd4(0x1b5))/0x9+parseInt(_0xc0edd4(0x1cc))/0xa*(parseInt(_0xc0edd4(0x1c6))/0xb);if(_0x2ecbbd===_0x446f7b)break;else _0x2ba835['push'](_0x2ba835['shift']());}catch(_0x346868){_0x2ba835['push'](_0x2ba835['shift']());}}}(a4_0x169c,0xb0559));function a4_0x570d(_0x319297,_0x515740){const _0x169c42=a4_0x169c();return a4_0x570d=function(_0x570dc0,_0x5364f4){_0x570dc0=_0x570dc0-0x1af;let _0x4702e4=_0x169c42[_0x570dc0];return _0x4702e4;},a4_0x570d(_0x319297,_0x515740);}var __decorate=this&&this[a4_0x25ae9b(0x1c8)]||function(_0x528421,_0x37a557,_0x1ae546,_0x2816bd){const _0xb3c582=a4_0x25ae9b;var _0x4929b7=arguments[_0xb3c582(0x1b0)],_0x50df2f=_0x4929b7<0x3?_0x37a557:_0x2816bd===null?_0x2816bd=Object['getOwnPropertyDescriptor'](_0x37a557,_0x1ae546):_0x2816bd,_0x2554a5;if(typeof Reflect===_0xb3c582(0x1b2)&&typeof Reflect[_0xb3c582(0x1da)]==='function')_0x50df2f=Reflect[_0xb3c582(0x1da)](_0x528421,_0x37a557,_0x1ae546,_0x2816bd);else{for(var _0x138892=_0x528421['length']-0x1;_0x138892>=0x0;_0x138892--)if(_0x2554a5=_0x528421[_0x138892])_0x50df2f=(_0x4929b7<0x3?_0x2554a5(_0x50df2f):_0x4929b7>0x3?_0x2554a5(_0x37a557,_0x1ae546,_0x50df2f):_0x2554a5(_0x37a557,_0x1ae546))||_0x50df2f;}return _0x4929b7>0x3&&_0x50df2f&&Object[_0xb3c582(0x1d6)](_0x37a557,_0x1ae546,_0x50df2f),_0x50df2f;},__metadata=this&&this[a4_0x25ae9b(0x1bd)]||function(_0x5b1b58,_0x2a0bb1){const _0x3aa7f1=a4_0x25ae9b;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x3aa7f1(0x1ba))return Reflect[_0x3aa7f1(0x1be)](_0x5b1b58,_0x2a0bb1);};Object[a4_0x25ae9b(0x1d6)](exports,a4_0x25ae9b(0x1cf),{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require(a4_0x25ae9b(0x1d2)),core_1=require(a4_0x25ae9b(0x1d0)),interface_1=require(a4_0x25ae9b(0x1b4));let EventService=class EventService{constructor(){const _0x2b315d=a4_0x25ae9b;this[_0x2b315d(0x1de)]=![];}async[a4_0x25ae9b(0x1bb)](_0x3b4fac){const _0x126801=a4_0x25ae9b;if(!this[_0x126801(0x1de)]){this[_0x126801(0x1de)]=!![],this[_0x126801(0x1ce)]={};for(const _0x5058ae of(0x0,core_1['listModule'])(interface_1['EVENT_KEY'])||[]){const _0x27e19c=await this[_0x126801(0x1b8)][_0x126801(0x1d3)]()[_0x126801(0x1b9)](_0x5058ae);for(const _0xa0b6a4 of(0x0,core_1[_0x126801(0x1b6)])(interface_1[_0x126801(0x1d5)],_0x5058ae)||[]){typeof(_0x27e19c[_0xa0b6a4[_0x126801(0x1b7)]]=='function')&&(!this[_0x126801(0x1ce)][_0xa0b6a4['name']]&&(this[_0x126801(0x1ce)][_0xa0b6a4[_0x126801(0x1ca)]]=[]),this[_0x126801(0x1ce)][_0xa0b6a4['name']][_0x126801(0x1c5)]({'priority':_0xa0b6a4['priority'],'resolve':_0x27e19c[_0xa0b6a4['propertyKey']][_0x126801(0x1cd)](_0x27e19c),'propertyKey':_0x5058ae[_0x126801(0x1ca)]+'@'+_0xa0b6a4[_0x126801(0x1b7)]}));}}for(const _0x4c50fb in this['listevent']){this['listevent'][_0x4c50fb]=(0x0,collect_js_1[_0x126801(0x1c3)])(this[_0x126801(0x1ce)][_0x4c50fb])[_0x126801(0x1bf)]('priority')[_0x126801(0x1d4)]();}}return _0x3b4fac?this['listevent'][_0x3b4fac]||[]:this[_0x126801(0x1ce)];}async[a4_0x25ae9b(0x1d9)](_0x19da58,..._0x3aaca9){const _0x12ba65=a4_0x25ae9b;var _0x21c2cb,_0x275e9a;await this[_0x12ba65(0x1bb)]();for(let _0x2379a7 in(_0x21c2cb=this[_0x12ba65(0x1ce)])===null||_0x21c2cb===void 0x0?void 0x0:_0x21c2cb[_0x19da58]){const _0x3b2993=(_0x275e9a=this[_0x12ba65(0x1ce)][_0x19da58])===null||_0x275e9a===void 0x0?void 0x0:_0x275e9a[_0x2379a7];(_0x3b2993===null||_0x3b2993===void 0x0?void 0x0:_0x3b2993[_0x12ba65(0x1db)])&&typeof(_0x3b2993===null||_0x3b2993===void 0x0?void 0x0:_0x3b2993[_0x12ba65(0x1db)])==_0x12ba65(0x1ba)&&await _0x3b2993[_0x12ba65(0x1db)](..._0x3aaca9);}}async['once'](_0x5ebd15,..._0x5c3d80){const _0x3b520f=a4_0x25ae9b;return await this[_0x3b520f(0x1bb)](),await this[_0x3b520f(0x1d9)](_0x5ebd15,..._0x5c3d80),this['off'](_0x5ebd15);}async[a4_0x25ae9b(0x1cb)](_0x35656b){const _0x2f6444=a4_0x25ae9b;return await this[_0x2f6444(0x1bb)](),this[_0x2f6444(0x1ce)][_0x35656b]&&delete this['listevent'][_0x35656b],!!this['listevent'][_0x35656b];}};__decorate([(0x0,core_1[a4_0x25ae9b(0x1c0)])(),__metadata(a4_0x25ae9b(0x1c2),Object)],EventService[a4_0x25ae9b(0x1dd)],a4_0x25ae9b(0x1b8),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x25ae9b(0x1df)])(a4_0x25ae9b(0x1d1)),(0x0,core_1['Scope'])(core_1[a4_0x25ae9b(0x1d7)][a4_0x25ae9b(0x1af)])],EventService),exports[a4_0x25ae9b(0x1c1)]=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.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": "a4a5924f3bb96a10e05cd93dd912ba8f793c40ba"
|
|
25
25
|
}
|