@anncic-api/event 3.4.24 → 3.4.33

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.
@@ -1,6 +1,6 @@
1
- import { MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
2
- export declare class CustomConfiguration {
3
- config: MidwayConfigService;
4
- decorator: MidwayDecoratorService;
5
- onReady(): Promise<void>;
6
- }
1
+ import { MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
2
+ export declare class CustomConfiguration {
3
+ config: MidwayConfigService;
4
+ decorator: MidwayDecoratorService;
5
+ onReady(): Promise<void>;
6
+ }
@@ -1 +1 @@
1
- var a0_0x47bb99=a0_0x15fb;(function(_0x5f020c,_0x58a826){var _0x525a73=a0_0x15fb,_0x4b6f00=_0x5f020c();while(!![]){try{var _0x172ad4=-parseInt(_0x525a73(0x1c9))/0x1*(-parseInt(_0x525a73(0x1be))/0x2)+parseInt(_0x525a73(0x1bd))/0x3*(-parseInt(_0x525a73(0x1cc))/0x4)+-parseInt(_0x525a73(0x1c3))/0x5+-parseInt(_0x525a73(0x1c2))/0x6+-parseInt(_0x525a73(0x1d2))/0x7*(-parseInt(_0x525a73(0x1cb))/0x8)+-parseInt(_0x525a73(0x1c8))/0x9+parseInt(_0x525a73(0x1cf))/0xa;if(_0x172ad4===_0x58a826)break;else _0x4b6f00['push'](_0x4b6f00['shift']());}catch(_0x1b146c){_0x4b6f00['push'](_0x4b6f00['shift']());}}}(a0_0x4ff9,0x24d9e));var a0_0x6dee9f=(function(){var _0x4ac420=!![];return function(_0x50468b,_0x5886ce){var _0x42506b=_0x4ac420?function(){if(_0x5886ce){var _0x19f63a=_0x5886ce['apply'](_0x50468b,arguments);return _0x5886ce=null,_0x19f63a;}}:function(){};return _0x4ac420=![],_0x42506b;};}()),a0_0x488bff=a0_0x6dee9f(this,function(){var _0x4e80a8=a0_0x15fb;return a0_0x488bff[_0x4e80a8(0x1bf)]()[_0x4e80a8(0x1c5)]('(((.+)+)+)+$')['toString']()[_0x4e80a8(0x1d1)](a0_0x488bff)['search']('(((.+)+)+)+$');});function a0_0x15fb(_0x581903,_0x1c8a5d){var _0x2d3097=a0_0x4ff9();return a0_0x15fb=function(_0x488bff,_0x6dee9f){_0x488bff=_0x488bff-0x1b9;var _0x4ff966=_0x2d3097[_0x488bff];return _0x4ff966;},a0_0x15fb(_0x581903,_0x1c8a5d);}function a0_0x4ff9(){var _0x179525=['1405176BIwHhK','57960hGoMxY','CustomConfiguration','search','defineProperty','length','2590677TyHcOc','55lwUgfi','config','400EsgssV','4PhffPv','decorator','function','2545270Jmbhbk','metadata','constructor','33257KZSdci','object','onReady','@midwayjs/core','design:type','decorate','242367CQwptX','9938LTQSaJ','toString','prototype','Inject'];a0_0x4ff9=function(){return _0x179525;};return a0_0x4ff9();}a0_0x488bff();'use strict';var __decorate=this&&this['__decorate']||function(_0x1bca82,_0x4e7eb6,_0x5aa05a,_0x3be69b){var _0x7eb9bb=a0_0x15fb,_0x467c80=arguments[_0x7eb9bb(0x1c7)],_0x1fb82e=_0x467c80<0x3?_0x4e7eb6:_0x3be69b===null?_0x3be69b=Object['getOwnPropertyDescriptor'](_0x4e7eb6,_0x5aa05a):_0x3be69b,_0x11fcb0;if(typeof Reflect===_0x7eb9bb(0x1d3)&&typeof Reflect[_0x7eb9bb(0x1bc)]===_0x7eb9bb(0x1ce))_0x1fb82e=Reflect[_0x7eb9bb(0x1bc)](_0x1bca82,_0x4e7eb6,_0x5aa05a,_0x3be69b);else{for(var _0x11f93b=_0x1bca82[_0x7eb9bb(0x1c7)]-0x1;_0x11f93b>=0x0;_0x11f93b--)if(_0x11fcb0=_0x1bca82[_0x11f93b])_0x1fb82e=(_0x467c80<0x3?_0x11fcb0(_0x1fb82e):_0x467c80>0x3?_0x11fcb0(_0x4e7eb6,_0x5aa05a,_0x1fb82e):_0x11fcb0(_0x4e7eb6,_0x5aa05a))||_0x1fb82e;}return _0x467c80>0x3&&_0x1fb82e&&Object['defineProperty'](_0x4e7eb6,_0x5aa05a,_0x1fb82e),_0x1fb82e;},__metadata=this&&this['__metadata']||function(_0x29ac7,_0x51bc29){var _0x185ddb=a0_0x15fb;if(typeof Reflect===_0x185ddb(0x1d3)&&typeof Reflect['metadata']===_0x185ddb(0x1ce))return Reflect[_0x185ddb(0x1d0)](_0x29ac7,_0x51bc29);};Object[a0_0x47bb99(0x1c6)](exports,'__esModule',{'value':!![]}),exports[a0_0x47bb99(0x1c4)]=void 0x0;const core_1=require(a0_0x47bb99(0x1ba)),core_2=require(a0_0x47bb99(0x1ba));let CustomConfiguration=class CustomConfiguration{async[a0_0x47bb99(0x1b9)](){}};exports[a0_0x47bb99(0x1c4)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x47bb99(0x1c1)])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a0_0x47bb99(0x1c0)],a0_0x47bb99(0x1ca),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x47bb99(0x1bb),core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a0_0x47bb99(0x1cd),void 0x0),exports[a0_0x47bb99(0x1c4)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration);
1
+ var a0_0x3caf5f=a0_0x48ae;(function(_0x40c4cb,_0x31d6bd){var _0x175ef0=a0_0x48ae,_0x94c1bd=_0x40c4cb();while(!![]){try{var _0x133e4e=-parseInt(_0x175ef0(0x17d))/0x1+-parseInt(_0x175ef0(0x171))/0x2+parseInt(_0x175ef0(0x189))/0x3*(parseInt(_0x175ef0(0x179))/0x4)+-parseInt(_0x175ef0(0x172))/0x5*(-parseInt(_0x175ef0(0x18c))/0x6)+-parseInt(_0x175ef0(0x178))/0x7+-parseInt(_0x175ef0(0x183))/0x8+-parseInt(_0x175ef0(0x18a))/0x9*(-parseInt(_0x175ef0(0x16e))/0xa);if(_0x133e4e===_0x31d6bd)break;else _0x94c1bd['push'](_0x94c1bd['shift']());}catch(_0x3e298e){_0x94c1bd['push'](_0x94c1bd['shift']());}}}(a0_0x8779,0x5438f));var a0_0x3ff4e1=(function(){var _0x537e73=!![];return function(_0x56783a,_0x43820f){var _0x22850f=_0x537e73?function(){var _0x45a353=a0_0x48ae;if(_0x43820f){var _0x1e6f72=_0x43820f[_0x45a353(0x186)](_0x56783a,arguments);return _0x43820f=null,_0x1e6f72;}}:function(){};return _0x537e73=![],_0x22850f;};}()),a0_0x144d77=a0_0x3ff4e1(this,function(){var _0x399bf8=a0_0x48ae;return a0_0x144d77[_0x399bf8(0x18d)]()[_0x399bf8(0x184)]('(((.+)+)+)+$')[_0x399bf8(0x18d)]()[_0x399bf8(0x182)](a0_0x144d77)[_0x399bf8(0x184)](_0x399bf8(0x16f));});a0_0x144d77();'use strict';var __decorate=this&&this[a0_0x3caf5f(0x177)]||function(_0x48db9c,_0x387016,_0x5399f9,_0x47fc95){var _0x49d631=a0_0x3caf5f,_0x1ac3d9=arguments[_0x49d631(0x175)],_0x2e7e56=_0x1ac3d9<0x3?_0x387016:_0x47fc95===null?_0x47fc95=Object[_0x49d631(0x170)](_0x387016,_0x5399f9):_0x47fc95,_0x29d7e1;if(typeof Reflect==='object'&&typeof Reflect[_0x49d631(0x185)]===_0x49d631(0x16d))_0x2e7e56=Reflect[_0x49d631(0x185)](_0x48db9c,_0x387016,_0x5399f9,_0x47fc95);else{for(var _0x160862=_0x48db9c[_0x49d631(0x175)]-0x1;_0x160862>=0x0;_0x160862--)if(_0x29d7e1=_0x48db9c[_0x160862])_0x2e7e56=(_0x1ac3d9<0x3?_0x29d7e1(_0x2e7e56):_0x1ac3d9>0x3?_0x29d7e1(_0x387016,_0x5399f9,_0x2e7e56):_0x29d7e1(_0x387016,_0x5399f9))||_0x2e7e56;}return _0x1ac3d9>0x3&&_0x2e7e56&&Object[_0x49d631(0x17c)](_0x387016,_0x5399f9,_0x2e7e56),_0x2e7e56;},__metadata=this&&this[a0_0x3caf5f(0x176)]||function(_0x2e74af,_0x390973){var _0x38224e=a0_0x3caf5f;if(typeof Reflect===_0x38224e(0x187)&&typeof Reflect[_0x38224e(0x17a)]===_0x38224e(0x16d))return Reflect[_0x38224e(0x17a)](_0x2e74af,_0x390973);};Object['defineProperty'](exports,a0_0x3caf5f(0x17b),{'value':!![]}),exports[a0_0x3caf5f(0x180)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x3caf5f(0x173));function a0_0x8779(){var _0x25a1a5=['Inject','constructor','1314072PteRDc','search','decorate','apply','object','prototype','12iTyRWQ','5239746LWpeVd','MidwayConfigService','564cKPyWT','toString','MidwayDecoratorService','function','10KiBrTF','(((.+)+)+)+$','getOwnPropertyDescriptor','446676sVHVkR','21715JYhtGm','@midwayjs/core','design:type','length','__metadata','__decorate','2562553qdyTgf','336328xhWoDJ','metadata','__esModule','defineProperty','228113tkZDas','Configuration','config','CustomConfiguration'];a0_0x8779=function(){return _0x25a1a5;};return a0_0x8779();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};function a0_0x48ae(_0x33b89f,_0x1b66fc){var _0x4618da=a0_0x8779();return a0_0x48ae=function(_0x144d77,_0x3ff4e1){_0x144d77=_0x144d77-0x16c;var _0x87793a=_0x4618da[_0x144d77];return _0x87793a;},a0_0x48ae(_0x33b89f,_0x1b66fc);}__decorate([(0x0,core_1[a0_0x3caf5f(0x181)])(),__metadata(a0_0x3caf5f(0x174),core_2[a0_0x3caf5f(0x18b)])],CustomConfiguration[a0_0x3caf5f(0x188)],a0_0x3caf5f(0x17f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x3caf5f(0x174),core_2[a0_0x3caf5f(0x16c)])],CustomConfiguration[a0_0x3caf5f(0x188)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x3caf5f(0x17e)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x3caf5f(0x180)]=CustomConfiguration;
@@ -1,4 +1,4 @@
1
- export declare function Event(): ClassDecorator;
2
- export declare namespace Event {
3
- var On: (name: string, priority?: number) => MethodDecorator;
4
- }
1
+ export declare function Event(): ClassDecorator;
2
+ export declare namespace Event {
3
+ var On: (name: string, priority?: number) => MethodDecorator;
4
+ }
@@ -1 +1 @@
1
- const a1_0x15073=a1_0x538b;(function(_0x19d69e,_0x207746){const _0x24ba0b=a1_0x538b,_0x2db615=_0x19d69e();while(!![]){try{const _0x5a139a=parseInt(_0x24ba0b(0x82))/0x1+parseInt(_0x24ba0b(0x83))/0x2*(parseInt(_0x24ba0b(0x7b))/0x3)+-parseInt(_0x24ba0b(0x86))/0x4*(-parseInt(_0x24ba0b(0x7d))/0x5)+-parseInt(_0x24ba0b(0x85))/0x6+parseInt(_0x24ba0b(0x81))/0x7*(-parseInt(_0x24ba0b(0x77))/0x8)+parseInt(_0x24ba0b(0x84))/0x9+parseInt(_0x24ba0b(0x75))/0xa;if(_0x5a139a===_0x207746)break;else _0x2db615['push'](_0x2db615['shift']());}catch(_0xfb72a9){_0x2db615['push'](_0x2db615['shift']());}}}(a1_0x3f2c,0x3a120));const a1_0x17dbd8=(function(){let _0x42045b=!![];return function(_0x267432,_0x203ece){const _0xcfad8d=_0x42045b?function(){const _0x142035=a1_0x538b;if(_0x203ece){const _0x2be1b5=_0x203ece[_0x142035(0x6f)](_0x267432,arguments);return _0x203ece=null,_0x2be1b5;}}:function(){};return _0x42045b=![],_0xcfad8d;};}()),a1_0x1b5d5b=a1_0x17dbd8(this,function(){const _0x29ceab=a1_0x538b;return a1_0x1b5d5b[_0x29ceab(0x70)]()[_0x29ceab(0x78)](_0x29ceab(0x7a))[_0x29ceab(0x70)]()[_0x29ceab(0x7c)](a1_0x1b5d5b)[_0x29ceab(0x78)]('(((.+)+)+)+$');});a1_0x1b5d5b();function a1_0x3f2c(){const _0x3bcd00=['search','EVENT_ON_KEY','(((.+)+)+)+$','3cKQPUM','constructor','1795deEhbe','Scope','defineProperty','Event','7wwAVRB','106334OWWxzZ','570826RKQbka','2838555AHmQUp','891330QoWbai','124AVucNh','apply','toString','@midwayjs/core','__esModule','Provide','EVENT_KEY','163220YPWEPv','saveModule','2785456AgLbiu'];a1_0x3f2c=function(){return _0x3bcd00;};return a1_0x3f2c();}function a1_0x538b(_0x3de042,_0x96bef0){const _0x29bb25=a1_0x3f2c();return a1_0x538b=function(_0x1b5d5b,_0x17dbd8){_0x1b5d5b=_0x1b5d5b-0x6f;let _0x3f2cec=_0x29bb25[_0x1b5d5b];return _0x3f2cec;},a1_0x538b(_0x3de042,_0x96bef0);}'use strict';Object[a1_0x15073(0x7f)](exports,a1_0x15073(0x72),{'value':!![]}),exports[a1_0x15073(0x80)]=void 0x0;const core_1=require(a1_0x15073(0x71)),interface_1=require('../interface');function Event(){return _0xdc09eb=>{const _0xcdac7c=a1_0x538b;(0x0,core_1[_0xcdac7c(0x73)])()(_0xdc09eb),(0x0,core_1[_0xcdac7c(0x76)])(interface_1[_0xcdac7c(0x74)],_0xdc09eb),(0x0,core_1[_0xcdac7c(0x7e)])(core_1['ScopeEnum']['Request'],{'allowDowngrade':!![]})(_0xdc09eb);};}exports[a1_0x15073(0x80)]=Event,Event['On']=function(_0x4d2c31,_0x3da3a1=0x0){return(_0x52bec5,_0x150417,_0x307d75)=>{const _0x1f03fa=a1_0x538b;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x1f03fa(0x79)],{'name':_0x4d2c31,'priority':_0x3da3a1,'propertyKey':_0x150417,'descriptor':_0x307d75},_0x52bec5),_0x307d75;};};
1
+ function a1_0x4d10(_0x356f96,_0x1080eb){const _0x1ef927=a1_0x3bd7();return a1_0x4d10=function(_0x1511c3,_0x46e172){_0x1511c3=_0x1511c3-0x197;let _0x3bd704=_0x1ef927[_0x1511c3];return _0x3bd704;},a1_0x4d10(_0x356f96,_0x1080eb);}const a1_0x4bbd9a=a1_0x4d10;(function(_0x4bd872,_0x436635){const _0x1a2607=a1_0x4d10,_0x3718f3=_0x4bd872();while(!![]){try{const _0x3c0e8f=parseInt(_0x1a2607(0x1a1))/0x1+-parseInt(_0x1a2607(0x197))/0x2*(-parseInt(_0x1a2607(0x1a9))/0x3)+parseInt(_0x1a2607(0x19c))/0x4*(parseInt(_0x1a2607(0x1a0))/0x5)+-parseInt(_0x1a2607(0x1a8))/0x6*(parseInt(_0x1a2607(0x1aa))/0x7)+-parseInt(_0x1a2607(0x1a6))/0x8+-parseInt(_0x1a2607(0x1ad))/0x9*(-parseInt(_0x1a2607(0x1ab))/0xa)+parseInt(_0x1a2607(0x1a5))/0xb;if(_0x3c0e8f===_0x436635)break;else _0x3718f3['push'](_0x3718f3['shift']());}catch(_0x11a6d9){_0x3718f3['push'](_0x3718f3['shift']());}}}(a1_0x3bd7,0x63dfb));const a1_0x46e172=(function(){let _0x534956=!![];return function(_0x1d3854,_0x359518){const _0x257737=_0x534956?function(){if(_0x359518){const _0x41a0b0=_0x359518['apply'](_0x1d3854,arguments);return _0x359518=null,_0x41a0b0;}}:function(){};return _0x534956=![],_0x257737;};}()),a1_0x1511c3=a1_0x46e172(this,function(){const _0x5ac541=a1_0x4d10;return a1_0x1511c3[_0x5ac541(0x1a7)]()[_0x5ac541(0x1ae)](_0x5ac541(0x1af))['toString']()[_0x5ac541(0x19a)](a1_0x1511c3)[_0x5ac541(0x1ae)]('(((.+)+)+)+$');});a1_0x1511c3();'use strict';Object[a1_0x4bbd9a(0x19e)](exports,'__esModule',{'value':!![]}),exports[a1_0x4bbd9a(0x198)]=void 0x0;const core_1=require(a1_0x4bbd9a(0x1a4)),interface_1=require(a1_0x4bbd9a(0x19f));function a1_0x3bd7(){const _0xa37c69=['@midwayjs/core','8393495nsOqLv','5699616BhtrJq','toString','72hkJYIV','6JzpyFO','119749nIXptG','925030AwbqEr','Scope','9XvlBke','search','(((.+)+)+)+$','88400WVKWFv','Event','Provide','constructor','EVENT_KEY','456436FSMXjL','Request','defineProperty','../interface','10XAxPZg','154653elRAuC','EVENT_ON_KEY','attachClassMetadata'];a1_0x3bd7=function(){return _0xa37c69;};return a1_0x3bd7();}function Event(){return _0x4352e7=>{const _0x4020bc=a1_0x4d10;(0x0,core_1[_0x4020bc(0x199)])()(_0x4352e7),(0x0,core_1['saveModule'])(interface_1[_0x4020bc(0x19b)],_0x4352e7),(0x0,core_1[_0x4020bc(0x1ac)])(core_1['ScopeEnum'][_0x4020bc(0x19d)],{'allowDowngrade':!![]})(_0x4352e7);};}exports['Event']=Event,Event['On']=function(_0x15a559,_0x5cebea=0x0){return(_0x1a404a,_0x4be2cb,_0x51f5ee)=>{const _0x2b673c=a1_0x4d10;return(0x0,core_1[_0x2b673c(0x1a3)])(interface_1[_0x2b673c(0x1a2)],{'name':_0x15a559,'priority':_0x5cebea,'propertyKey':_0x4be2cb,'descriptor':_0x51f5ee},_0x1a404a),_0x51f5ee;};};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { Event } from './decorator/Event';
2
- export { EventService } from "./service/EventService";
3
- export { CustomConfiguration as Configuration } from './configuration';
1
+ export { Event } from './decorator/Event';
2
+ export { EventService } from "./service/EventService";
3
+ export { CustomConfiguration as Configuration } from './configuration';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a2_0x45fe(){var _0x45245c=['./configuration','EventService','Event','CustomConfiguration','constructor','5082371itmgLI','./decorator/Event','2676130hzSbLu','(((.+)+)+)+$','5993449BeYAkp','Configuration','__esModule','678uiEysK','3374sdDrFW','toString','search','9FTYUru','defineProperty','apply','28510aTdQYy','3HLkqdv','3146224YqwjoQ','./service/EventService','2NWWZTB','266212hklkiI'];a2_0x45fe=function(){return _0x45245c;};return a2_0x45fe();}var a2_0x12d546=a2_0x3c4a;(function(_0x4a9fce,_0x27650b){var _0x386a63=a2_0x3c4a,_0x13fc8f=_0x4a9fce();while(!![]){try{var _0x30a8a5=-parseInt(_0x386a63(0x19f))/0x1*(parseInt(_0x386a63(0x1a9))/0x2)+-parseInt(_0x386a63(0x1a6))/0x3*(parseInt(_0x386a63(0x1aa))/0x4)+parseInt(_0x386a63(0x1a5))/0x5*(-parseInt(_0x386a63(0x19e))/0x6)+parseInt(_0x386a63(0x197))/0x7+-parseInt(_0x386a63(0x1a7))/0x8+parseInt(_0x386a63(0x1a2))/0x9*(parseInt(_0x386a63(0x199))/0xa)+parseInt(_0x386a63(0x19b))/0xb;if(_0x30a8a5===_0x27650b)break;else _0x13fc8f['push'](_0x13fc8f['shift']());}catch(_0x45e339){_0x13fc8f['push'](_0x13fc8f['shift']());}}}(a2_0x45fe,0x69392));var a2_0x36f04e=(function(){var _0x581733=!![];return function(_0x495687,_0x449ef1){var _0x9a51a4=_0x581733?function(){var _0x4c1bd0=a2_0x3c4a;if(_0x449ef1){var _0x129045=_0x449ef1[_0x4c1bd0(0x1a4)](_0x495687,arguments);return _0x449ef1=null,_0x129045;}}:function(){};return _0x581733=![],_0x9a51a4;};}()),a2_0x308159=a2_0x36f04e(this,function(){var _0x2c231e=a2_0x3c4a;return a2_0x308159[_0x2c231e(0x1a0)]()['search']('(((.+)+)+)+$')[_0x2c231e(0x1a0)]()[_0x2c231e(0x196)](a2_0x308159)[_0x2c231e(0x1a1)](_0x2c231e(0x19a));});a2_0x308159();'use strict';Object[a2_0x12d546(0x1a3)](exports,a2_0x12d546(0x19d),{'value':!![]}),exports[a2_0x12d546(0x19c)]=exports[a2_0x12d546(0x193)]=exports['Event']=void 0x0;function a2_0x3c4a(_0x2ecb7c,_0x31b404){var _0x863387=a2_0x45fe();return a2_0x3c4a=function(_0x308159,_0x36f04e){_0x308159=_0x308159-0x193;var _0x45fe05=_0x863387[_0x308159];return _0x45fe05;},a2_0x3c4a(_0x2ecb7c,_0x31b404);}var Event_1=require(a2_0x12d546(0x198));Object['defineProperty'](exports,a2_0x12d546(0x194),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x12d546(0x1a8));Object['defineProperty'](exports,a2_0x12d546(0x193),{'enumerable':!![],'get':function(){var _0x28b178=a2_0x12d546;return EventService_1[_0x28b178(0x193)];}});var configuration_1=require(a2_0x12d546(0x1ab));Object[a2_0x12d546(0x1a3)](exports,a2_0x12d546(0x19c),{'enumerable':!![],'get':function(){var _0x578079=a2_0x12d546;return configuration_1[_0x578079(0x195)];}});
1
+ var a2_0x5559fa=a2_0x584a;(function(_0x34de7a,_0x157923){var _0xf866ed=a2_0x584a,_0x597bc5=_0x34de7a();while(!![]){try{var _0x4f0d02=-parseInt(_0xf866ed(0xc0))/0x1+parseInt(_0xf866ed(0xc7))/0x2+-parseInt(_0xf866ed(0xc2))/0x3*(parseInt(_0xf866ed(0xcd))/0x4)+parseInt(_0xf866ed(0xcb))/0x5*(-parseInt(_0xf866ed(0xb7))/0x6)+parseInt(_0xf866ed(0xc6))/0x7*(-parseInt(_0xf866ed(0xba))/0x8)+-parseInt(_0xf866ed(0xb9))/0x9*(parseInt(_0xf866ed(0xc5))/0xa)+-parseInt(_0xf866ed(0xca))/0xb*(-parseInt(_0xf866ed(0xbe))/0xc);if(_0x4f0d02===_0x157923)break;else _0x597bc5['push'](_0x597bc5['shift']());}catch(_0x189fde){_0x597bc5['push'](_0x597bc5['shift']());}}}(a2_0x30b6,0xddcdd));function a2_0x30b6(){var _0x208d96=['5690OzWSKi','1064sAcMgs','2919924ACQlFI','CustomConfiguration','constructor','39599109nBKIBz','3124235MhuDsM','__esModule','16VlPmfQ','Event','toString','6qgagal','search','15543oHiQgZ','18968LTrajY','EventService','./decorator/Event','(((.+)+)+)+$','12fZQTTg','defineProperty','410034MGsIsR','Configuration','1330077DWJrfS','apply','./configuration'];a2_0x30b6=function(){return _0x208d96;};return a2_0x30b6();}var a2_0x7b3734=(function(){var _0x5446ab=!![];return function(_0x482904,_0x440374){var _0x1ed226=_0x5446ab?function(){var _0x298f5f=a2_0x584a;if(_0x440374){var _0x6615a2=_0x440374[_0x298f5f(0xc3)](_0x482904,arguments);return _0x440374=null,_0x6615a2;}}:function(){};return _0x5446ab=![],_0x1ed226;};}()),a2_0x3c25ba=a2_0x7b3734(this,function(){var _0x32caad=a2_0x584a;return a2_0x3c25ba[_0x32caad(0xb6)]()[_0x32caad(0xb8)](_0x32caad(0xbd))[_0x32caad(0xb6)]()[_0x32caad(0xc9)](a2_0x3c25ba)['search']('(((.+)+)+)+$');});a2_0x3c25ba();function a2_0x584a(_0x197ecb,_0x198d0f){var _0xaa8b6d=a2_0x30b6();return a2_0x584a=function(_0x3c25ba,_0x7b3734){_0x3c25ba=_0x3c25ba-0xb5;var _0x30b664=_0xaa8b6d[_0x3c25ba];return _0x30b664;},a2_0x584a(_0x197ecb,_0x198d0f);}'use strict';Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xcc),{'value':!![]}),exports['Configuration']=exports[a2_0x5559fa(0xbb)]=exports[a2_0x5559fa(0xb5)]=void 0x0;var Event_1=require(a2_0x5559fa(0xbc));Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xb5),{'enumerable':!![],'get':function(){var _0x545ff7=a2_0x5559fa;return Event_1[_0x545ff7(0xb5)];}});var EventService_1=require('./service/EventService');Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xbb),{'enumerable':!![],'get':function(){var _0x5596d3=a2_0x5559fa;return EventService_1[_0x5596d3(0xbb)];}});var configuration_1=require(a2_0x5559fa(0xc4));Object[a2_0x5559fa(0xbf)](exports,a2_0x5559fa(0xc1),{'enumerable':!![],'get':function(){var _0x3457be=a2_0x5559fa;return configuration_1[_0x3457be(0xc8)];}});
@@ -1,2 +1,2 @@
1
- export declare const EVENT_KEY = "anncic-api:event";
2
- export declare const EVENT_ON_KEY = "anncic-api:event:on";
1
+ export declare const EVENT_KEY = "anncic-api:event";
2
+ export declare const EVENT_ON_KEY = "anncic-api:event:on";
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- function a3_0x5af6(_0x3d6f13,_0xb2018d){var _0x434672=a3_0x53ee();return a3_0x5af6=function(_0x171545,_0x4f2433){_0x171545=_0x171545-0x17f;var _0x53eedb=_0x434672[_0x171545];return _0x53eedb;},a3_0x5af6(_0x3d6f13,_0xb2018d);}var a3_0x28aada=a3_0x5af6;(function(_0x5289c9,_0x1323d9){var _0x465112=a3_0x5af6,_0x48f22c=_0x5289c9();while(!![]){try{var _0x2daa6e=-parseInt(_0x465112(0x189))/0x1+-parseInt(_0x465112(0x187))/0x2+-parseInt(_0x465112(0x18a))/0x3*(parseInt(_0x465112(0x188))/0x4)+parseInt(_0x465112(0x190))/0x5*(parseInt(_0x465112(0x18c))/0x6)+parseInt(_0x465112(0x183))/0x7+parseInt(_0x465112(0x180))/0x8*(parseInt(_0x465112(0x17f))/0x9)+-parseInt(_0x465112(0x18e))/0xa;if(_0x2daa6e===_0x1323d9)break;else _0x48f22c['push'](_0x48f22c['shift']());}catch(_0x3fa69f){_0x48f22c['push'](_0x48f22c['shift']());}}}(a3_0x53ee,0x61046));var a3_0x4f2433=(function(){var _0x5b47c7=!![];return function(_0x588a4b,_0x5c24c8){var _0x173ef9=_0x5b47c7?function(){if(_0x5c24c8){var _0x1da130=_0x5c24c8['apply'](_0x588a4b,arguments);return _0x5c24c8=null,_0x1da130;}}:function(){};return _0x5b47c7=![],_0x173ef9;};}()),a3_0x171545=a3_0x4f2433(this,function(){var _0x4ad52c=a3_0x5af6;return a3_0x171545[_0x4ad52c(0x191)]()[_0x4ad52c(0x181)](_0x4ad52c(0x18d))['toString']()[_0x4ad52c(0x182)](a3_0x171545)['search'](_0x4ad52c(0x18d));});a3_0x171545();'use strict';function a3_0x53ee(){var _0x25e470=['(((.+)+)+)+$','3089310Cscbqu','EVENT_ON_KEY','139650vhkGNV','toString','__esModule','6174OajXRg','8456wUmvaL','search','constructor','4568886MuzJNE','anncic-api:event','defineProperty','anncic-api:event:on','1172256RpdHBV','955364BCAdjS','209608CgkpGK','3xNkCRZ','EVENT_KEY','78rWifRu'];a3_0x53ee=function(){return _0x25e470;};return a3_0x53ee();}Object[a3_0x28aada(0x185)](exports,a3_0x28aada(0x192),{'value':!![]}),exports[a3_0x28aada(0x18f)]=exports[a3_0x28aada(0x18b)]=void 0x0,exports[a3_0x28aada(0x18b)]=a3_0x28aada(0x184),exports[a3_0x28aada(0x18f)]=a3_0x28aada(0x186);
1
+ var a3_0x5cff8c=a3_0x2ee2;(function(_0x20091c,_0x5449e8){var _0x32a8a9=a3_0x2ee2,_0x2b71ea=_0x20091c();while(!![]){try{var _0x3b8bfa=-parseInt(_0x32a8a9(0x149))/0x1+-parseInt(_0x32a8a9(0x159))/0x2*(parseInt(_0x32a8a9(0x14e))/0x3)+parseInt(_0x32a8a9(0x14c))/0x4+parseInt(_0x32a8a9(0x158))/0x5*(-parseInt(_0x32a8a9(0x153))/0x6)+-parseInt(_0x32a8a9(0x152))/0x7+parseInt(_0x32a8a9(0x14b))/0x8+-parseInt(_0x32a8a9(0x151))/0x9*(-parseInt(_0x32a8a9(0x156))/0xa);if(_0x3b8bfa===_0x5449e8)break;else _0x2b71ea['push'](_0x2b71ea['shift']());}catch(_0x583d2f){_0x2b71ea['push'](_0x2b71ea['shift']());}}}(a3_0x1db2,0x4bdf9));function a3_0x2ee2(_0x20d812,_0x1bc1a4){var _0x49edd2=a3_0x1db2();return a3_0x2ee2=function(_0x5325ce,_0x41c2f2){_0x5325ce=_0x5325ce-0x148;var _0x1db25f=_0x49edd2[_0x5325ce];return _0x1db25f;},a3_0x2ee2(_0x20d812,_0x1bc1a4);}var a3_0x41c2f2=(function(){var _0x2f2f49=!![];return function(_0x121e37,_0x182f8f){var _0x245d70=_0x2f2f49?function(){var _0x51a95d=a3_0x2ee2;if(_0x182f8f){var _0x552133=_0x182f8f[_0x51a95d(0x150)](_0x121e37,arguments);return _0x182f8f=null,_0x552133;}}:function(){};return _0x2f2f49=![],_0x245d70;};}()),a3_0x5325ce=a3_0x41c2f2(this,function(){var _0x2ad02e=a3_0x2ee2;return a3_0x5325ce[_0x2ad02e(0x14d)]()['search']('(((.+)+)+)+$')[_0x2ad02e(0x14d)]()[_0x2ad02e(0x148)](a3_0x5325ce)[_0x2ad02e(0x14f)](_0x2ad02e(0x157));});function a3_0x1db2(){var _0x4ad888=['288FZkQhz','2772497huuZjO','12CSHouJ','EVENT_ON_KEY','EVENT_KEY','306560dJoLin','(((.+)+)+)+$','1017155qKgrII','311126RLchwX','anncic-api:event:on','constructor','571783ELSeyP','anncic-api:event','4765712FUcwFE','2301904wGvrDW','toString','9orlfOw','search','apply'];a3_0x1db2=function(){return _0x4ad888;};return a3_0x1db2();}a3_0x5325ce();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x5cff8c(0x154)]=exports[a3_0x5cff8c(0x155)]=void 0x0,exports[a3_0x5cff8c(0x155)]=a3_0x5cff8c(0x14a),exports[a3_0x5cff8c(0x154)]=a3_0x5cff8c(0x15a);
@@ -1,26 +1,26 @@
1
- import { IMidwayApplication } from '@midwayjs/core';
2
- export declare class EventService {
3
- app: IMidwayApplication;
4
- protected init: boolean;
5
- protected listevent: {
6
- [key: string]: {
7
- priority: number;
8
- resolve: Function;
9
- propertyKey: string;
10
- }[];
11
- };
12
- getListevent(name?: string): Promise<{
13
- [key: string]: {
14
- priority: number;
15
- resolve: Function;
16
- propertyKey: string;
17
- }[];
18
- } | {
19
- priority: number;
20
- resolve: Function;
21
- propertyKey: string;
22
- }[]>;
23
- emit(name: string, ...args: any[]): Promise<void>;
24
- once(name: string, ...args: any[]): Promise<boolean>;
25
- off(name: string): Promise<boolean>;
26
- }
1
+ import { IMidwayApplication } from '@midwayjs/core';
2
+ export declare class EventService {
3
+ app: IMidwayApplication;
4
+ protected init: boolean;
5
+ protected listevent: {
6
+ [key: string]: {
7
+ priority: number;
8
+ resolve: Function;
9
+ propertyKey: string;
10
+ }[];
11
+ };
12
+ getListevent(name?: string): Promise<{
13
+ [key: string]: {
14
+ priority: number;
15
+ resolve: Function;
16
+ propertyKey: string;
17
+ }[];
18
+ } | {
19
+ priority: number;
20
+ resolve: Function;
21
+ propertyKey: string;
22
+ }[]>;
23
+ emit(name: string, ...args: any[]): Promise<void>;
24
+ once(name: string, ...args: any[]): Promise<boolean>;
25
+ off(name: string): Promise<boolean>;
26
+ }
@@ -1 +1 @@
1
- function a4_0x383e(_0x5cc193,_0x404be2){const _0x329e89=a4_0x1eca();return a4_0x383e=function(_0x46a3c3,_0x3435fc){_0x46a3c3=_0x46a3c3-0x1dd;let _0x1ecac3=_0x329e89[_0x46a3c3];return _0x1ecac3;},a4_0x383e(_0x5cc193,_0x404be2);}const a4_0xf88f48=a4_0x383e;(function(_0x4dc78e,_0x4d9d45){const _0xab572=a4_0x383e,_0x2c9242=_0x4dc78e();while(!![]){try{const _0xbffc5c=-parseInt(_0xab572(0x1f0))/0x1*(-parseInt(_0xab572(0x20e))/0x2)+-parseInt(_0xab572(0x1f8))/0x3*(-parseInt(_0xab572(0x209))/0x4)+-parseInt(_0xab572(0x1fa))/0x5+parseInt(_0xab572(0x1e7))/0x6*(-parseInt(_0xab572(0x20c))/0x7)+parseInt(_0xab572(0x20b))/0x8*(-parseInt(_0xab572(0x1f7))/0x9)+parseInt(_0xab572(0x1ff))/0xa+parseInt(_0xab572(0x1df))/0xb*(-parseInt(_0xab572(0x1eb))/0xc);if(_0xbffc5c===_0x4d9d45)break;else _0x2c9242['push'](_0x2c9242['shift']());}catch(_0x29e3c5){_0x2c9242['push'](_0x2c9242['shift']());}}}(a4_0x1eca,0xe7b5a));function a4_0x1eca(){const _0x424882=['defineProperty','EVENT_ON_KEY','18ouNWjQ','resolve','name','toString','1608mVMCkZ','__decorate','default','emit','(((.+)+)+)+$','1827159enPKNW','getClassMetadata','getListevent','function','all','listModule','ScopeEnum','336006dTMEwc','108606oxcJSB','__metadata','4788635dZNbAG','EVENT_KEY','App','Singleton','listevent','17035250IoNzFO','design:type','propertyKey','getAsync','@midwayjs/core','bind','decorate','../interface','event','apply','192EEqsFD','init','232tvXDUh','547981lmxtjp','prototype','2lOFGEt','collect.js','EventService','getApplicationContext','metadata','167794BdGJVT','getOwnPropertyDescriptor','search','object','app','priority'];a4_0x1eca=function(){return _0x424882;};return a4_0x1eca();}const a4_0x3435fc=(function(){let _0x334e89=!![];return function(_0x412818,_0x372286){const _0x548255=_0x334e89?function(){const _0xfa5d6d=a4_0x383e;if(_0x372286){const _0x374460=_0x372286[_0xfa5d6d(0x208)](_0x412818,arguments);return _0x372286=null,_0x374460;}}:function(){};return _0x334e89=![],_0x548255;};}()),a4_0x46a3c3=a4_0x3435fc(this,function(){const _0x499681=a4_0x383e;return a4_0x46a3c3['toString']()[_0x499681(0x1e1)](_0x499681(0x1ef))[_0x499681(0x1ea)]()['constructor'](a4_0x46a3c3)['search']('(((.+)+)+)+$');});a4_0x46a3c3();'use strict';var __decorate=this&&this[a4_0xf88f48(0x1ec)]||function(_0x5d464f,_0x213cb7,_0x5b38a5,_0x25c84a){const _0x7bf26e=a4_0xf88f48;var _0x4f0989=arguments['length'],_0x900e16=_0x4f0989<0x3?_0x213cb7:_0x25c84a===null?_0x25c84a=Object[_0x7bf26e(0x1e0)](_0x213cb7,_0x5b38a5):_0x25c84a,_0x537fb4;if(typeof Reflect===_0x7bf26e(0x1e2)&&typeof Reflect[_0x7bf26e(0x205)]==='function')_0x900e16=Reflect[_0x7bf26e(0x205)](_0x5d464f,_0x213cb7,_0x5b38a5,_0x25c84a);else{for(var _0x33f2a3=_0x5d464f['length']-0x1;_0x33f2a3>=0x0;_0x33f2a3--)if(_0x537fb4=_0x5d464f[_0x33f2a3])_0x900e16=(_0x4f0989<0x3?_0x537fb4(_0x900e16):_0x4f0989>0x3?_0x537fb4(_0x213cb7,_0x5b38a5,_0x900e16):_0x537fb4(_0x213cb7,_0x5b38a5))||_0x900e16;}return _0x4f0989>0x3&&_0x900e16&&Object[_0x7bf26e(0x1e5)](_0x213cb7,_0x5b38a5,_0x900e16),_0x900e16;},__metadata=this&&this[a4_0xf88f48(0x1f9)]||function(_0x259851,_0x419e61){const _0xcb3960=a4_0xf88f48;if(typeof Reflect===_0xcb3960(0x1e2)&&typeof Reflect[_0xcb3960(0x1de)]===_0xcb3960(0x1f3))return Reflect[_0xcb3960(0x1de)](_0x259851,_0x419e61);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0xf88f48(0x210)]=void 0x0;const collect_js_1=require(a4_0xf88f48(0x20f)),core_1=require(a4_0xf88f48(0x203)),interface_1=require(a4_0xf88f48(0x206));let EventService=class EventService{constructor(){const _0x7789cc=a4_0xf88f48;this[_0x7789cc(0x20a)]=![];}async['getListevent'](_0x29c541){const _0x2f015e=a4_0xf88f48;if(!this[_0x2f015e(0x20a)]){this[_0x2f015e(0x20a)]=!![],this[_0x2f015e(0x1fe)]={};for(const _0x2f49aa of(0x0,core_1[_0x2f015e(0x1f5)])(interface_1[_0x2f015e(0x1fb)])||[]){const _0x86b617=await this[_0x2f015e(0x1e3)][_0x2f015e(0x1dd)]()[_0x2f015e(0x202)](_0x2f49aa);for(const _0x580d71 of(0x0,core_1[_0x2f015e(0x1f1)])(interface_1[_0x2f015e(0x1e6)],_0x2f49aa)||[]){typeof(_0x86b617[_0x580d71[_0x2f015e(0x201)]]=='function')&&(!this[_0x2f015e(0x1fe)][_0x580d71[_0x2f015e(0x1e9)]]&&(this['listevent'][_0x580d71[_0x2f015e(0x1e9)]]=[]),this[_0x2f015e(0x1fe)][_0x580d71[_0x2f015e(0x1e9)]]['push']({'priority':_0x580d71[_0x2f015e(0x1e4)],'resolve':_0x86b617[_0x580d71[_0x2f015e(0x201)]][_0x2f015e(0x204)](_0x86b617),'propertyKey':_0x2f49aa[_0x2f015e(0x1e9)]+'@'+_0x580d71['propertyKey']}));}}for(const _0x381b5e in this[_0x2f015e(0x1fe)]){this['listevent'][_0x381b5e]=(0x0,collect_js_1[_0x2f015e(0x1ed)])(this[_0x2f015e(0x1fe)][_0x381b5e])['sortByDesc']('priority')[_0x2f015e(0x1f4)]();}}return _0x29c541?this[_0x2f015e(0x1fe)][_0x29c541]||[]:this['listevent'];}async[a4_0xf88f48(0x1ee)](_0x3afa32,..._0x1dc815){const _0x1431ff=a4_0xf88f48;var _0x15e69c,_0x216744;await this[_0x1431ff(0x1f2)]();for(let _0x4e7484 in(_0x15e69c=this[_0x1431ff(0x1fe)])===null||_0x15e69c===void 0x0?void 0x0:_0x15e69c[_0x3afa32]){const _0x3aab8e=(_0x216744=this['listevent'][_0x3afa32])===null||_0x216744===void 0x0?void 0x0:_0x216744[_0x4e7484];(_0x3aab8e===null||_0x3aab8e===void 0x0?void 0x0:_0x3aab8e[_0x1431ff(0x1e8)])&&typeof(_0x3aab8e===null||_0x3aab8e===void 0x0?void 0x0:_0x3aab8e[_0x1431ff(0x1e8)])==_0x1431ff(0x1f3)&&await _0x3aab8e['resolve'](..._0x1dc815);}}async['once'](_0x43a28b,..._0x2015f2){const _0x466683=a4_0xf88f48;return await this['getListevent'](),await this[_0x466683(0x1ee)](_0x43a28b,..._0x2015f2),this['off'](_0x43a28b);}async['off'](_0x72b30){const _0x7749b3=a4_0xf88f48;return await this[_0x7749b3(0x1f2)](),this[_0x7749b3(0x1fe)][_0x72b30]&&delete this['listevent'][_0x72b30],!!this[_0x7749b3(0x1fe)][_0x72b30];}};exports['EventService']=EventService,__decorate([(0x0,core_1[a4_0xf88f48(0x1fc)])(),__metadata(a4_0xf88f48(0x200),Object)],EventService[a4_0xf88f48(0x20d)],a4_0xf88f48(0x1e3),void 0x0),exports[a4_0xf88f48(0x210)]=EventService=__decorate([(0x0,core_1['Provide'])(a4_0xf88f48(0x207)),(0x0,core_1['Scope'])(core_1[a4_0xf88f48(0x1f6)][a4_0xf88f48(0x1fd)])],EventService);
1
+ const a4_0x329739=a4_0x5c3a;(function(_0x454c9c,_0x2b845e){const _0x3496d2=a4_0x5c3a,_0x596a94=_0x454c9c();while(!![]){try{const _0x21c42d=-parseInt(_0x3496d2(0x190))/0x1*(parseInt(_0x3496d2(0x17d))/0x2)+parseInt(_0x3496d2(0x18e))/0x3+parseInt(_0x3496d2(0x194))/0x4*(parseInt(_0x3496d2(0x181))/0x5)+parseInt(_0x3496d2(0x198))/0x6+-parseInt(_0x3496d2(0x196))/0x7+parseInt(_0x3496d2(0x195))/0x8*(parseInt(_0x3496d2(0x18f))/0x9)+-parseInt(_0x3496d2(0x16d))/0xa;if(_0x21c42d===_0x2b845e)break;else _0x596a94['push'](_0x596a94['shift']());}catch(_0x2859dd){_0x596a94['push'](_0x596a94['shift']());}}}(a4_0x36cd,0xaeb46));const a4_0x1d8391=(function(){let _0x11ed13=!![];return function(_0x5d235d,_0x5a4406){const _0x49e98e=_0x11ed13?function(){const _0x1a3ee5=a4_0x5c3a;if(_0x5a4406){const _0x5d2fd4=_0x5a4406[_0x1a3ee5(0x19d)](_0x5d235d,arguments);return _0x5a4406=null,_0x5d2fd4;}}:function(){};return _0x11ed13=![],_0x49e98e;};}()),a4_0x653b74=a4_0x1d8391(this,function(){const _0x5b0002=a4_0x5c3a;return a4_0x653b74[_0x5b0002(0x175)]()[_0x5b0002(0x179)](_0x5b0002(0x170))[_0x5b0002(0x175)]()['constructor'](a4_0x653b74)[_0x5b0002(0x179)]('(((.+)+)+)+$');});a4_0x653b74();function a4_0x5c3a(_0x5854ff,_0x3cc805){const _0xf45cb4=a4_0x36cd();return a4_0x5c3a=function(_0x653b74,_0x1d8391){_0x653b74=_0x653b74-0x16c;let _0x36cdd5=_0xf45cb4[_0x653b74];return _0x36cdd5;},a4_0x5c3a(_0x5854ff,_0x3cc805);}'use strict';var __decorate=this&&this[a4_0x329739(0x191)]||function(_0x10be4b,_0x43af3b,_0x1aef52,_0xe860ca){const _0xb4fbab=a4_0x329739;var _0x16773a=arguments[_0xb4fbab(0x18d)],_0x2c33ba=_0x16773a<0x3?_0x43af3b:_0xe860ca===null?_0xe860ca=Object[_0xb4fbab(0x174)](_0x43af3b,_0x1aef52):_0xe860ca,_0x59b96d;if(typeof Reflect===_0xb4fbab(0x16f)&&typeof Reflect[_0xb4fbab(0x17f)]===_0xb4fbab(0x197))_0x2c33ba=Reflect[_0xb4fbab(0x17f)](_0x10be4b,_0x43af3b,_0x1aef52,_0xe860ca);else{for(var _0x411d0a=_0x10be4b[_0xb4fbab(0x18d)]-0x1;_0x411d0a>=0x0;_0x411d0a--)if(_0x59b96d=_0x10be4b[_0x411d0a])_0x2c33ba=(_0x16773a<0x3?_0x59b96d(_0x2c33ba):_0x16773a>0x3?_0x59b96d(_0x43af3b,_0x1aef52,_0x2c33ba):_0x59b96d(_0x43af3b,_0x1aef52))||_0x2c33ba;}return _0x16773a>0x3&&_0x2c33ba&&Object[_0xb4fbab(0x17b)](_0x43af3b,_0x1aef52,_0x2c33ba),_0x2c33ba;},__metadata=this&&this[a4_0x329739(0x19f)]||function(_0x140bcd,_0x4b843f){const _0x316086=a4_0x329739;if(typeof Reflect==='object'&&typeof Reflect[_0x316086(0x176)]===_0x316086(0x197))return Reflect[_0x316086(0x176)](_0x140bcd,_0x4b843f);};Object[a4_0x329739(0x17b)](exports,a4_0x329739(0x17a),{'value':!![]}),exports[a4_0x329739(0x19c)]=void 0x0;const collect_js_1=require('collect.js'),core_1=require('@midwayjs/core'),interface_1=require(a4_0x329739(0x19b));let EventService=class EventService{constructor(){const _0x189e39=a4_0x329739;this[_0x189e39(0x18a)]=![];}async['getListevent'](_0x4e399e){const _0x1ef3fb=a4_0x329739;if(!this[_0x1ef3fb(0x18a)]){this[_0x1ef3fb(0x18a)]=!![],this['listevent']={};for(const _0x50e9ff of(0x0,core_1[_0x1ef3fb(0x173)])(interface_1[_0x1ef3fb(0x187)])||[]){const _0x1a4d44=await this[_0x1ef3fb(0x19e)]['getApplicationContext']()[_0x1ef3fb(0x183)](_0x50e9ff);for(const _0x575736 of(0x0,core_1[_0x1ef3fb(0x188)])(interface_1[_0x1ef3fb(0x182)],_0x50e9ff)||[]){typeof(_0x1a4d44[_0x575736['propertyKey']]==_0x1ef3fb(0x197))&&(!this[_0x1ef3fb(0x18b)][_0x575736['name']]&&(this[_0x1ef3fb(0x18b)][_0x575736[_0x1ef3fb(0x180)]]=[]),this['listevent'][_0x575736[_0x1ef3fb(0x180)]][_0x1ef3fb(0x18c)]({'priority':_0x575736[_0x1ef3fb(0x185)],'resolve':_0x1a4d44[_0x575736[_0x1ef3fb(0x171)]][_0x1ef3fb(0x16c)](_0x1a4d44),'propertyKey':_0x50e9ff[_0x1ef3fb(0x180)]+'@'+_0x575736[_0x1ef3fb(0x171)]}));}}for(const _0x1f2333 in this[_0x1ef3fb(0x18b)]){this[_0x1ef3fb(0x18b)][_0x1f2333]=(0x0,collect_js_1[_0x1ef3fb(0x193)])(this[_0x1ef3fb(0x18b)][_0x1f2333])['sortByDesc'](_0x1ef3fb(0x185))[_0x1ef3fb(0x16e)]();}}return _0x4e399e?this[_0x1ef3fb(0x18b)][_0x4e399e]||[]:this[_0x1ef3fb(0x18b)];}async[a4_0x329739(0x17e)](_0x1f5140,..._0x15af6d){const _0x349a52=a4_0x329739;var _0x30934b,_0xb05e25;await this['getListevent']();for(let _0x357882 in(_0x30934b=this['listevent'])===null||_0x30934b===void 0x0?void 0x0:_0x30934b[_0x1f5140]){const _0x4c9837=(_0xb05e25=this[_0x349a52(0x18b)][_0x1f5140])===null||_0xb05e25===void 0x0?void 0x0:_0xb05e25[_0x357882];(_0x4c9837===null||_0x4c9837===void 0x0?void 0x0:_0x4c9837[_0x349a52(0x17c)])&&typeof(_0x4c9837===null||_0x4c9837===void 0x0?void 0x0:_0x4c9837[_0x349a52(0x17c)])==_0x349a52(0x197)&&await _0x4c9837['resolve'](..._0x15af6d);}}async[a4_0x329739(0x178)](_0x2da841,..._0x5b374c){const _0x3bf963=a4_0x329739;return await this[_0x3bf963(0x189)](),await this[_0x3bf963(0x17e)](_0x2da841,..._0x5b374c),this[_0x3bf963(0x184)](_0x2da841);}async[a4_0x329739(0x184)](_0x4633f2){const _0x5f1972=a4_0x329739;return await this['getListevent'](),this[_0x5f1972(0x18b)][_0x4633f2]&&delete this[_0x5f1972(0x18b)][_0x4633f2],!!this[_0x5f1972(0x18b)][_0x4633f2];}};function a4_0x36cd(){const _0x4b12be=['once','search','__esModule','defineProperty','resolve','84GuWbvm','emit','decorate','name','10EPpVqH','EVENT_ON_KEY','getAsync','off','priority','Scope','EVENT_KEY','getClassMetadata','getListevent','init','listevent','push','length','2082363DpTuEH','2781PPjpfj','32314gjeLEc','__decorate','design:type','default','1620348EypUma','34280jfeTXV','6033342uSzSlE','function','2992320qJiTWN','App','Singleton','../interface','EventService','apply','app','__metadata','bind','3923960QNtAqz','all','object','(((.+)+)+)+$','propertyKey','prototype','listModule','getOwnPropertyDescriptor','toString','metadata','Provide'];a4_0x36cd=function(){return _0x4b12be;};return a4_0x36cd();}__decorate([(0x0,core_1[a4_0x329739(0x199)])(),__metadata(a4_0x329739(0x192),Object)],EventService[a4_0x329739(0x172)],'app',void 0x0),EventService=__decorate([(0x0,core_1[a4_0x329739(0x177)])('event'),(0x0,core_1[a4_0x329739(0x186)])(core_1['ScopeEnum'][a4_0x329739(0x19a)])],EventService),exports['EventService']=EventService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/event",
3
- "version": "3.4.24",
3
+ "version": "3.4.33",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -21,5 +21,5 @@
21
21
  "javascript-obfuscator": "^4.0.2",
22
22
  "typescript": "^5.1.3"
23
23
  },
24
- "gitHead": "2f09f741a95f2afa4f3fbfb4fede5f2a95509d81"
24
+ "gitHead": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
25
25
  }