@anncic-api/event 3.7.18 → 3.7.20

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_0x197e07=a0_0x59b3;(function(_0x1e5374,_0x5165b6){var _0x15d8c2=a0_0x59b3,_0x4ee270=_0x1e5374();while(!![]){try{var _0x387ad7=parseInt(_0x15d8c2(0x13a))/0x1*(parseInt(_0x15d8c2(0x129))/0x2)+parseInt(_0x15d8c2(0x12f))/0x3+-parseInt(_0x15d8c2(0x138))/0x4*(-parseInt(_0x15d8c2(0x123))/0x5)+-parseInt(_0x15d8c2(0x133))/0x6*(parseInt(_0x15d8c2(0x11c))/0x7)+parseInt(_0x15d8c2(0x11f))/0x8*(-parseInt(_0x15d8c2(0x121))/0x9)+-parseInt(_0x15d8c2(0x124))/0xa*(parseInt(_0x15d8c2(0x11d))/0xb)+parseInt(_0x15d8c2(0x120))/0xc;if(_0x387ad7===_0x5165b6)break;else _0x4ee270['push'](_0x4ee270['shift']());}catch(_0x31068b){_0x4ee270['push'](_0x4ee270['shift']());}}}(a0_0x7f45,0x54e65));var a0_0x51e4cd=(function(){var _0x575dd2=!![];return function(_0xc7ed7a,_0x15b3bc){var _0x395c1b=_0x575dd2?function(){if(_0x15b3bc){var _0x35d451=_0x15b3bc['apply'](_0xc7ed7a,arguments);return _0x15b3bc=null,_0x35d451;}}:function(){};return _0x575dd2=![],_0x395c1b;};}()),a0_0x4bbc64=a0_0x51e4cd(this,function(){var _0x53a5c9=a0_0x59b3;return a0_0x4bbc64[_0x53a5c9(0x128)]()[_0x53a5c9(0x132)]('(((.+)+)+)+$')['toString']()[_0x53a5c9(0x135)](a0_0x4bbc64)[_0x53a5c9(0x132)](_0x53a5c9(0x126));});function a0_0x59b3(_0x20601d,_0x2d201e){var _0x166836=a0_0x7f45();return a0_0x59b3=function(_0x4bbc64,_0x51e4cd){_0x4bbc64=_0x4bbc64-0x118;var _0x7f45c4=_0x166836[_0x4bbc64];return _0x7f45c4;},a0_0x59b3(_0x20601d,_0x2d201e);}a0_0x4bbc64();'use strict';function a0_0x7f45(){var _0x6ee0d8=['prototype','constructor','CustomConfiguration','__decorate','108UrQWly','length','112aKQYGX','decorate','__esModule','MidwayConfigService','defineProperty','28hMutsf','14267STtcNM','__metadata','18904HiSWio','4090872kzPkXk','1971jeGjpD','getOwnPropertyDescriptor','37575JpyUyN','3230BYCHGS','MidwayDecoratorService','(((.+)+)+)+$','metadata','toString','3570QRVAun','decorator','function','object','design:type','@midwayjs/core','1776270cvvWxy','Inject','onReady','search','77466MMgrwn'];a0_0x7f45=function(){return _0x6ee0d8;};return a0_0x7f45();}var __decorate=this&&this[a0_0x197e07(0x137)]||function(_0x5bd685,_0x3f6a15,_0x17ade0,_0x1b3f0f){var _0x556e97=a0_0x197e07,_0x2072b6=arguments[_0x556e97(0x139)],_0x20c2c0=_0x2072b6<0x3?_0x3f6a15:_0x1b3f0f===null?_0x1b3f0f=Object[_0x556e97(0x122)](_0x3f6a15,_0x17ade0):_0x1b3f0f,_0xf8099;if(typeof Reflect===_0x556e97(0x12c)&&typeof Reflect[_0x556e97(0x118)]===_0x556e97(0x12b))_0x20c2c0=Reflect['decorate'](_0x5bd685,_0x3f6a15,_0x17ade0,_0x1b3f0f);else{for(var _0x425620=_0x5bd685[_0x556e97(0x139)]-0x1;_0x425620>=0x0;_0x425620--)if(_0xf8099=_0x5bd685[_0x425620])_0x20c2c0=(_0x2072b6<0x3?_0xf8099(_0x20c2c0):_0x2072b6>0x3?_0xf8099(_0x3f6a15,_0x17ade0,_0x20c2c0):_0xf8099(_0x3f6a15,_0x17ade0))||_0x20c2c0;}return _0x2072b6>0x3&&_0x20c2c0&&Object[_0x556e97(0x11b)](_0x3f6a15,_0x17ade0,_0x20c2c0),_0x20c2c0;},__metadata=this&&this[a0_0x197e07(0x11e)]||function(_0x51dfbc,_0x36ebae){var _0x239a90=a0_0x197e07;if(typeof Reflect===_0x239a90(0x12c)&&typeof Reflect['metadata']===_0x239a90(0x12b))return Reflect[_0x239a90(0x127)](_0x51dfbc,_0x36ebae);};Object[a0_0x197e07(0x11b)](exports,a0_0x197e07(0x119),{'value':!![]}),exports[a0_0x197e07(0x136)]=void 0x0;const core_1=require(a0_0x197e07(0x12e)),core_2=require(a0_0x197e07(0x12e));let CustomConfiguration=class CustomConfiguration{async[a0_0x197e07(0x131)](){}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a0_0x197e07(0x130)])(),__metadata(a0_0x197e07(0x12d),core_2[a0_0x197e07(0x11a)])],CustomConfiguration[a0_0x197e07(0x134)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x197e07(0x130)])(),__metadata(a0_0x197e07(0x12d),core_2[a0_0x197e07(0x125)])],CustomConfiguration[a0_0x197e07(0x134)],a0_0x197e07(0x12a),void 0x0),exports[a0_0x197e07(0x136)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration);
1
+ var a0_0x1c8d76=a0_0x5c4b;function a0_0x4c24(){var _0x59093f=['CustomConfiguration','966784OokqcL','@midwayjs/core','26785EmxGCA','1401785cpZfyU','__esModule','decorate','metadata','Configuration','getOwnPropertyDescriptor','31938huwofr','44vYXngc','MidwayConfigService','116otoRSr','search','apply','design:type','anncic-api:event','defineProperty','prototype','Inject','object','toString','function','(((.+)+)+)+$','__decorate','constructor','config','10RVUdKu','16253gnaPmh','696vgiqmU','45XqjXHH','610626RyyTRI','2209986uSGTkz','length'];a0_0x4c24=function(){return _0x59093f;};return a0_0x4c24();}(function(_0x45b046,_0x155ac1){var _0x2b0172=a0_0x5c4b,_0x2978d5=_0x45b046();while(!![]){try{var _0x2e9247=parseInt(_0x2b0172(0x1ee))/0x1*(parseInt(_0x2b0172(0x1dc))/0x2)+parseInt(_0x2b0172(0x1db))/0x3*(-parseInt(_0x2b0172(0x1de))/0x4)+-parseInt(_0x2b0172(0x1f0))/0x5*(-parseInt(_0x2b0172(0x1f1))/0x6)+-parseInt(_0x2b0172(0x1d5))/0x7+parseInt(_0x2b0172(0x1d2))/0x8+-parseInt(_0x2b0172(0x1cf))/0x9*(parseInt(_0x2b0172(0x1ed))/0xa)+parseInt(_0x2b0172(0x1d4))/0xb*(-parseInt(_0x2b0172(0x1ef))/0xc);if(_0x2e9247===_0x155ac1)break;else _0x2978d5['push'](_0x2978d5['shift']());}catch(_0x1e73ab){_0x2978d5['push'](_0x2978d5['shift']());}}}(a0_0x4c24,0x79b94));var a0_0x1e4052=(function(){var _0x4c502a=!![];return function(_0x2e3449,_0x5056be){var _0x2edcf1=_0x4c502a?function(){var _0x38cf9c=a0_0x5c4b;if(_0x5056be){var _0x1fbe2e=_0x5056be[_0x38cf9c(0x1e0)](_0x2e3449,arguments);return _0x5056be=null,_0x1fbe2e;}}:function(){};return _0x4c502a=![],_0x2edcf1;};}()),a0_0x8a3afb=a0_0x1e4052(this,function(){var _0x4e62ae=a0_0x5c4b;return a0_0x8a3afb[_0x4e62ae(0x1e7)]()[_0x4e62ae(0x1df)]('(((.+)+)+)+$')[_0x4e62ae(0x1e7)]()[_0x4e62ae(0x1eb)](a0_0x8a3afb)[_0x4e62ae(0x1df)](_0x4e62ae(0x1e9));});a0_0x8a3afb();'use strict';var __decorate=this&&this[a0_0x1c8d76(0x1ea)]||function(_0x80be62,_0x199cdc,_0x24a191,_0x13b547){var _0x232a3d=a0_0x1c8d76,_0x49cf67=arguments[_0x232a3d(0x1d0)],_0x210e5b=_0x49cf67<0x3?_0x199cdc:_0x13b547===null?_0x13b547=Object[_0x232a3d(0x1da)](_0x199cdc,_0x24a191):_0x13b547,_0x416160;if(typeof Reflect===_0x232a3d(0x1e6)&&typeof Reflect[_0x232a3d(0x1d7)]==='function')_0x210e5b=Reflect['decorate'](_0x80be62,_0x199cdc,_0x24a191,_0x13b547);else{for(var _0x3e6f05=_0x80be62['length']-0x1;_0x3e6f05>=0x0;_0x3e6f05--)if(_0x416160=_0x80be62[_0x3e6f05])_0x210e5b=(_0x49cf67<0x3?_0x416160(_0x210e5b):_0x49cf67>0x3?_0x416160(_0x199cdc,_0x24a191,_0x210e5b):_0x416160(_0x199cdc,_0x24a191))||_0x210e5b;}return _0x49cf67>0x3&&_0x210e5b&&Object['defineProperty'](_0x199cdc,_0x24a191,_0x210e5b),_0x210e5b;},__metadata=this&&this['__metadata']||function(_0x2d42d0,_0x3a5a03){var _0x9daa8c=a0_0x1c8d76;if(typeof Reflect==='object'&&typeof Reflect[_0x9daa8c(0x1d8)]===_0x9daa8c(0x1e8))return Reflect[_0x9daa8c(0x1d8)](_0x2d42d0,_0x3a5a03);};Object[a0_0x1c8d76(0x1e3)](exports,a0_0x1c8d76(0x1d6),{'value':!![]}),exports[a0_0x1c8d76(0x1d1)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x1c8d76(0x1d3));function a0_0x5c4b(_0x3d7ca2,_0x573dcb){var _0x12a9d6=a0_0x4c24();return a0_0x5c4b=function(_0x8a3afb,_0x1e4052){_0x8a3afb=_0x8a3afb-0x1cf;var _0x4c245a=_0x12a9d6[_0x8a3afb];return _0x4c245a;},a0_0x5c4b(_0x3d7ca2,_0x573dcb);}let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1[a0_0x1c8d76(0x1e5)])(),__metadata(a0_0x1c8d76(0x1e1),core_2[a0_0x1c8d76(0x1dd)])],CustomConfiguration[a0_0x1c8d76(0x1e4)],a0_0x1c8d76(0x1ec),void 0x0),__decorate([(0x0,core_1[a0_0x1c8d76(0x1e5)])(),__metadata(a0_0x1c8d76(0x1e1),core_2['MidwayDecoratorService'])],CustomConfiguration[a0_0x1c8d76(0x1e4)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x1c8d76(0x1d9)])({'conflictCheck':![],'namespace':a0_0x1c8d76(0x1e2)})],CustomConfiguration),exports[a0_0x1c8d76(0x1d1)]=CustomConfiguration;
@@ -1,4 +1,4 @@
1
- export declare function Event(): ClassDecorator;
2
- export declare namespace Event {
3
- var On: (name: string, priority?: number, throttle?: number) => MethodDecorator;
4
- }
1
+ export declare function Event(): ClassDecorator;
2
+ export declare namespace Event {
3
+ var On: (name: string, priority?: number, throttle?: number) => MethodDecorator;
4
+ }
@@ -1 +1 @@
1
- const a1_0x24a64c=a1_0x5683;(function(_0x276617,_0x3cb09f){const _0x5edad5=a1_0x5683,_0x4d435d=_0x276617();while(!![]){try{const _0x272225=-parseInt(_0x5edad5(0x8d))/0x1*(-parseInt(_0x5edad5(0x9f))/0x2)+parseInt(_0x5edad5(0x91))/0x3*(-parseInt(_0x5edad5(0xa5))/0x4)+parseInt(_0x5edad5(0xa2))/0x5+-parseInt(_0x5edad5(0x9d))/0x6+-parseInt(_0x5edad5(0xa4))/0x7*(-parseInt(_0x5edad5(0x94))/0x8)+parseInt(_0x5edad5(0x97))/0x9+-parseInt(_0x5edad5(0xa0))/0xa*(parseInt(_0x5edad5(0x8e))/0xb);if(_0x272225===_0x3cb09f)break;else _0x4d435d['push'](_0x4d435d['shift']());}catch(_0x53bf7f){_0x4d435d['push'](_0x4d435d['shift']());}}}(a1_0x3162,0xf39d6));function a1_0x3162(){const _0x153b79=['4768415DMCsnM','toString','73605jBvaxS','364zXzfqR','constructor','Scope','12sLFXQW','737462IJchJd','Request','attachClassMetadata','57639GHiLcr','@midwayjs/core','../interface','1304sVEpQk','search','apply','17726094GlzHGo','EVENT_KEY','Event','ScopeEnum','EVENT_ON_KEY','saveModule','230682wFgjTJ','(((.+)+)+)+$','59978SmCRCa','330kYpDfv','Provide'];a1_0x3162=function(){return _0x153b79;};return a1_0x3162();}const a1_0x3c17ee=(function(){let _0x58e60b=!![];return function(_0x1c317d,_0x44aadf){const _0x545854=_0x58e60b?function(){const _0x1b4cb4=a1_0x5683;if(_0x44aadf){const _0x4b2f61=_0x44aadf[_0x1b4cb4(0x96)](_0x1c317d,arguments);return _0x44aadf=null,_0x4b2f61;}}:function(){};return _0x58e60b=![],_0x545854;};}()),a1_0x5e15d3=a1_0x3c17ee(this,function(){const _0x30d7bc=a1_0x5683;return a1_0x5e15d3[_0x30d7bc(0xa3)]()['search'](_0x30d7bc(0x9e))[_0x30d7bc(0xa3)]()[_0x30d7bc(0xa6)](a1_0x5e15d3)[_0x30d7bc(0x95)](_0x30d7bc(0x9e));});a1_0x5e15d3();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x24a64c(0x99)]=Event;const core_1=require(a1_0x24a64c(0x92)),interface_1=require(a1_0x24a64c(0x93));function a1_0x5683(_0x5d3cca,_0x1cd2b9){const _0xb6e933=a1_0x3162();return a1_0x5683=function(_0x5e15d3,_0x3c17ee){_0x5e15d3=_0x5e15d3-0x8c;let _0x3162be=_0xb6e933[_0x5e15d3];return _0x3162be;},a1_0x5683(_0x5d3cca,_0x1cd2b9);}function Event(){return _0x19f354=>{const _0x3640a0=a1_0x5683;(0x0,core_1[_0x3640a0(0xa1)])()(_0x19f354),(0x0,core_1[_0x3640a0(0x9c)])(interface_1[_0x3640a0(0x98)],_0x19f354),(0x0,core_1[_0x3640a0(0x8c)])(core_1[_0x3640a0(0x9a)][_0x3640a0(0x8f)],{'allowDowngrade':!![]})(_0x19f354);};}Event['On']=function(_0x23ae30,_0x31fe84=0x0,_0x33822c=0x1f4){return(_0x2354b9,_0x151eed,_0x35afcc)=>{const _0x19700e=a1_0x5683;return(0x0,core_1[_0x19700e(0x90)])(interface_1[_0x19700e(0x9b)],{'name':_0x23ae30,'priority':_0x31fe84,'propertyKey':_0x151eed,'descriptor':_0x35afcc,'throttle':_0x33822c},_0x2354b9),_0x35afcc;};};
1
+ const a1_0x1bfdd1=a1_0x49d1;(function(_0x4b4de9,_0x534ea9){const _0x4002d5=a1_0x49d1,_0x185e17=_0x4b4de9();while(!![]){try{const _0x23c364=-parseInt(_0x4002d5(0xba))/0x1+-parseInt(_0x4002d5(0xa7))/0x2*(parseInt(_0x4002d5(0xb5))/0x3)+parseInt(_0x4002d5(0xb1))/0x4+-parseInt(_0x4002d5(0xb6))/0x5+parseInt(_0x4002d5(0xad))/0x6+parseInt(_0x4002d5(0xbc))/0x7+parseInt(_0x4002d5(0xb9))/0x8;if(_0x23c364===_0x534ea9)break;else _0x185e17['push'](_0x185e17['shift']());}catch(_0x261d60){_0x185e17['push'](_0x185e17['shift']());}}}(a1_0x3bd1,0x313ce));const a1_0x3f737c=(function(){let _0x37a51a=!![];return function(_0x4cce33,_0x293361){const _0x43e5cf=_0x37a51a?function(){const _0x456096=a1_0x49d1;if(_0x293361){const _0x558556=_0x293361[_0x456096(0xa8)](_0x4cce33,arguments);return _0x293361=null,_0x558556;}}:function(){};return _0x37a51a=![],_0x43e5cf;};}()),a1_0x11969d=a1_0x3f737c(this,function(){const _0x31ba76=a1_0x49d1;return a1_0x11969d[_0x31ba76(0xae)]()[_0x31ba76(0xbd)](_0x31ba76(0xac))[_0x31ba76(0xae)]()[_0x31ba76(0xb2)](a1_0x11969d)['search'](_0x31ba76(0xac));});function a1_0x3bd1(){const _0x451383=['defineProperty','1048304kiObUs','constructor','saveModule','Request','15MwQkas','521435KabEDj','EVENT_KEY','Event','2983904MVlBXo','386511McrmhQ','EVENT_ON_KEY','349027cziRnb','search','Provide','111190kjwYfT','apply','../interface','Scope','ScopeEnum','(((.+)+)+)+$','1713156bVVuXH','toString','__esModule'];a1_0x3bd1=function(){return _0x451383;};return a1_0x3bd1();}a1_0x11969d();'use strict';Object[a1_0x1bfdd1(0xb0)](exports,a1_0x1bfdd1(0xaf),{'value':!![]}),exports[a1_0x1bfdd1(0xb8)]=void 0x0;function a1_0x49d1(_0x359b14,_0x33f046){const _0x18416b=a1_0x3bd1();return a1_0x49d1=function(_0x11969d,_0x3f737c){_0x11969d=_0x11969d-0xa7;let _0x3bd1ec=_0x18416b[_0x11969d];return _0x3bd1ec;},a1_0x49d1(_0x359b14,_0x33f046);}const core_1=require('@midwayjs/core'),interface_1=require(a1_0x1bfdd1(0xa9));function Event(){return _0x277d33=>{const _0x567407=a1_0x49d1;(0x0,core_1[_0x567407(0xbe)])()(_0x277d33),(0x0,core_1[_0x567407(0xb3)])(interface_1[_0x567407(0xb7)],_0x277d33),(0x0,core_1[_0x567407(0xaa)])(core_1[_0x567407(0xab)][_0x567407(0xb4)],{'allowDowngrade':!![]})(_0x277d33);};}exports[a1_0x1bfdd1(0xb8)]=Event,Event['On']=function(_0x3a2c0d,_0x180409=0x0,_0x2b36ae=0x1f4){return(_0x12a73e,_0x3663a7,_0x252a79)=>{const _0x3a0a97=a1_0x49d1;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x3a0a97(0xbb)],{'name':_0x3a2c0d,'priority':_0x180409,'propertyKey':_0x3663a7,'descriptor':_0x252a79,'throttle':_0x2b36ae},_0x12a73e),_0x252a79;};};
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
- var a2_0x5b27cc=a2_0x8b8a;(function(_0x80c39f,_0x5c8198){var _0xd8fbb6=a2_0x8b8a,_0x1e4c08=_0x80c39f();while(!![]){try{var _0x292a0d=parseInt(_0xd8fbb6(0xe8))/0x1*(-parseInt(_0xd8fbb6(0xe2))/0x2)+parseInt(_0xd8fbb6(0xdf))/0x3*(-parseInt(_0xd8fbb6(0xe1))/0x4)+-parseInt(_0xd8fbb6(0xe0))/0x5*(parseInt(_0xd8fbb6(0xe3))/0x6)+-parseInt(_0xd8fbb6(0xe6))/0x7*(parseInt(_0xd8fbb6(0xe7))/0x8)+-parseInt(_0xd8fbb6(0xef))/0x9*(parseInt(_0xd8fbb6(0xdd))/0xa)+parseInt(_0xd8fbb6(0xdc))/0xb*(parseInt(_0xd8fbb6(0xdb))/0xc)+parseInt(_0xd8fbb6(0xe4))/0xd;if(_0x292a0d===_0x5c8198)break;else _0x1e4c08['push'](_0x1e4c08['shift']());}catch(_0x7f83a0){_0x1e4c08['push'](_0x1e4c08['shift']());}}}(a2_0x47a5,0x93bda));var a2_0x12a190=(function(){var _0x30bde5=!![];return function(_0x3747eb,_0x6b5d9a){var _0x345397=_0x30bde5?function(){if(_0x6b5d9a){var _0x129d61=_0x6b5d9a['apply'](_0x3747eb,arguments);return _0x6b5d9a=null,_0x129d61;}}:function(){};return _0x30bde5=![],_0x345397;};}()),a2_0x254d3e=a2_0x12a190(this,function(){var _0x401e43=a2_0x8b8a;return a2_0x254d3e[_0x401e43(0xf0)]()[_0x401e43(0xde)](_0x401e43(0xf1))[_0x401e43(0xf0)]()['constructor'](a2_0x254d3e)[_0x401e43(0xde)](_0x401e43(0xf1));});function a2_0x8b8a(_0x52f408,_0x3ff3b6){var _0x55063e=a2_0x47a5();return a2_0x8b8a=function(_0x254d3e,_0x12a190){_0x254d3e=_0x254d3e-0xdb;var _0x47a556=_0x55063e[_0x254d3e];return _0x47a556;},a2_0x8b8a(_0x52f408,_0x3ff3b6);}a2_0x254d3e();'use strict';Object[a2_0x5b27cc(0xe5)](exports,'__esModule',{'value':!![]}),exports[a2_0x5b27cc(0xed)]=exports[a2_0x5b27cc(0xee)]=exports[a2_0x5b27cc(0xeb)]=void 0x0;var Event_1=require(a2_0x5b27cc(0xea));Object[a2_0x5b27cc(0xe5)](exports,a2_0x5b27cc(0xeb),{'enumerable':!![],'get':function(){var _0x2c429f=a2_0x5b27cc;return Event_1[_0x2c429f(0xeb)];}});var EventService_1=require('./service/EventService');Object[a2_0x5b27cc(0xe5)](exports,a2_0x5b27cc(0xee),{'enumerable':!![],'get':function(){var _0x24755d=a2_0x5b27cc;return EventService_1[_0x24755d(0xee)];}});var configuration_1=require(a2_0x5b27cc(0xec));Object[a2_0x5b27cc(0xe5)](exports,a2_0x5b27cc(0xed),{'enumerable':!![],'get':function(){var _0x4f87d1=a2_0x5b27cc;return configuration_1[_0x4f87d1(0xe9)];}});function a2_0x47a5(){var _0x46e76d=['413739dfSDlP','toString','(((.+)+)+)+$','7202652QlYnBm','11hBJuio','30GnjUwI','search','171Dgkvvc','53770yqREYN','81628clWxot','6AJjHaN','252PruOQF','53461174PIvIFw','defineProperty','287WpWeCu','234056TOiGFd','385052YTWklN','CustomConfiguration','./decorator/Event','Event','./configuration','Configuration','EventService'];a2_0x47a5=function(){return _0x46e76d;};return a2_0x47a5();}
1
+ var a2_0xf26798=a2_0x2ab7;(function(_0x1b2029,_0x175ce3){var _0x50cbe5=a2_0x2ab7,_0x1b8493=_0x1b2029();while(!![]){try{var _0x1ebae8=parseInt(_0x50cbe5(0x16b))/0x1+-parseInt(_0x50cbe5(0x174))/0x2*(parseInt(_0x50cbe5(0x167))/0x3)+parseInt(_0x50cbe5(0x175))/0x4+-parseInt(_0x50cbe5(0x16a))/0x5+-parseInt(_0x50cbe5(0x176))/0x6*(parseInt(_0x50cbe5(0x173))/0x7)+-parseInt(_0x50cbe5(0x168))/0x8+-parseInt(_0x50cbe5(0x165))/0x9*(-parseInt(_0x50cbe5(0x17a))/0xa);if(_0x1ebae8===_0x175ce3)break;else _0x1b8493['push'](_0x1b8493['shift']());}catch(_0x22f8a7){_0x1b8493['push'](_0x1b8493['shift']());}}}(a2_0x7f93,0x23705));var a2_0x3c3d20=(function(){var _0xcbdf14=!![];return function(_0x4fcc80,_0x13dbb3){var _0x49f496=_0xcbdf14?function(){var _0x13c574=a2_0x2ab7;if(_0x13dbb3){var _0x94d3b=_0x13dbb3[_0x13c574(0x16e)](_0x4fcc80,arguments);return _0x13dbb3=null,_0x94d3b;}}:function(){};return _0xcbdf14=![],_0x49f496;};}()),a2_0x3c8a3b=a2_0x3c3d20(this,function(){var _0x185900=a2_0x2ab7;return a2_0x3c8a3b[_0x185900(0x16c)]()['search'](_0x185900(0x16d))[_0x185900(0x16c)]()[_0x185900(0x170)](a2_0x3c8a3b)['search'](_0x185900(0x16d));});function a2_0x7f93(){var _0x2392cd=['16074dGTTLz','Event','24gAzQgr','1195496uSVwZq','./service/EventService','1042130XdtvIC','182648dcFRQK','toString','(((.+)+)+)+$','apply','./decorator/Event','constructor','defineProperty','EventService','112bDbciW','37282IhcXZF','399872nnjyLU','95838NfkyaZ','__esModule','Configuration','CustomConfiguration','3500ZObAsc'];a2_0x7f93=function(){return _0x2392cd;};return a2_0x7f93();}a2_0x3c8a3b();'use strict';Object[a2_0xf26798(0x171)](exports,a2_0xf26798(0x177),{'value':!![]}),exports[a2_0xf26798(0x178)]=exports['EventService']=exports[a2_0xf26798(0x166)]=void 0x0;var Event_1=require(a2_0xf26798(0x16f));function a2_0x2ab7(_0x2cf9ab,_0x330ac4){var _0x20c583=a2_0x7f93();return a2_0x2ab7=function(_0x3c8a3b,_0x3c3d20){_0x3c8a3b=_0x3c8a3b-0x165;var _0x7f93b=_0x20c583[_0x3c8a3b];return _0x7f93b;},a2_0x2ab7(_0x2cf9ab,_0x330ac4);}Object['defineProperty'](exports,a2_0xf26798(0x166),{'enumerable':!![],'get':function(){var _0x596569=a2_0xf26798;return Event_1[_0x596569(0x166)];}});var EventService_1=require(a2_0xf26798(0x169));Object[a2_0xf26798(0x171)](exports,a2_0xf26798(0x172),{'enumerable':!![],'get':function(){var _0xebde2c=a2_0xf26798;return EventService_1[_0xebde2c(0x172)];}});var configuration_1=require('./configuration');Object[a2_0xf26798(0x171)](exports,a2_0xf26798(0x178),{'enumerable':!![],'get':function(){var _0x53f839=a2_0xf26798;return configuration_1[_0x53f839(0x179)];}});
@@ -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
- var a3_0x3035b1=a3_0x39f5;(function(_0x3e4654,_0x2a3634){var _0x33038b=a3_0x39f5,_0x63d929=_0x3e4654();while(!![]){try{var _0x45d1e5=parseInt(_0x33038b(0xea))/0x1*(-parseInt(_0x33038b(0xd9))/0x2)+-parseInt(_0x33038b(0xe0))/0x3*(-parseInt(_0x33038b(0xe8))/0x4)+parseInt(_0x33038b(0xe7))/0x5*(parseInt(_0x33038b(0xd6))/0x6)+-parseInt(_0x33038b(0xe3))/0x7*(parseInt(_0x33038b(0xdb))/0x8)+parseInt(_0x33038b(0xdf))/0x9+-parseInt(_0x33038b(0xe4))/0xa+parseInt(_0x33038b(0xdd))/0xb*(parseInt(_0x33038b(0xd8))/0xc);if(_0x45d1e5===_0x2a3634)break;else _0x63d929['push'](_0x63d929['shift']());}catch(_0x1899e5){_0x63d929['push'](_0x63d929['shift']());}}}(a3_0xefc6,0xda536));function a3_0x39f5(_0x203d74,_0x394d1b){var _0x3bfd95=a3_0xefc6();return a3_0x39f5=function(_0x2cebf4,_0x28be0a){_0x2cebf4=_0x2cebf4-0xd5;var _0xefc642=_0x3bfd95[_0x2cebf4];return _0xefc642;},a3_0x39f5(_0x203d74,_0x394d1b);}var a3_0x28be0a=(function(){var _0x57234a=!![];return function(_0x2c51f4,_0x7505ab){var _0x550986=_0x57234a?function(){var _0x4f4773=a3_0x39f5;if(_0x7505ab){var _0x53d820=_0x7505ab[_0x4f4773(0xe5)](_0x2c51f4,arguments);return _0x7505ab=null,_0x53d820;}}:function(){};return _0x57234a=![],_0x550986;};}()),a3_0x2cebf4=a3_0x28be0a(this,function(){var _0x5f430c=a3_0x39f5;return a3_0x2cebf4['toString']()[_0x5f430c(0xe1)](_0x5f430c(0xe9))[_0x5f430c(0xd5)]()[_0x5f430c(0xd7)](a3_0x2cebf4)['search'](_0x5f430c(0xe9));});a3_0x2cebf4();'use strict';Object[a3_0x3035b1(0xe6)](exports,a3_0x3035b1(0xde),{'value':!![]}),exports[a3_0x3035b1(0xeb)]=exports[a3_0x3035b1(0xda)]=void 0x0,exports['EVENT_KEY']=a3_0x3035b1(0xe2),exports['EVENT_ON_KEY']=a3_0x3035b1(0xdc);function a3_0xefc6(){var _0x59e4c3=['anncic-api:event','7yoLLSk','14159920aUVBCQ','apply','defineProperty','20660qPlkLJ','1516976mHkMbG','(((.+)+)+)+$','21rogXsD','EVENT_ON_KEY','toString','702xZXvLo','constructor','140412XPpMrV','127122onCRKw','EVENT_KEY','1718128jtjAKv','anncic-api:event:on','1760pzFzAz','__esModule','10124577yUSqzZ','3FRBXPD','search'];a3_0xefc6=function(){return _0x59e4c3;};return a3_0xefc6();}
1
+ var a3_0x4c3f75=a3_0x4d7c;(function(_0x32cc96,_0x505f9c){var _0xbedc1e=a3_0x4d7c,_0x16e1a4=_0x32cc96();while(!![]){try{var _0x575863=parseInt(_0xbedc1e(0x1a2))/0x1+parseInt(_0xbedc1e(0x1ac))/0x2+-parseInt(_0xbedc1e(0x1a1))/0x3+-parseInt(_0xbedc1e(0x1a9))/0x4+parseInt(_0xbedc1e(0x19f))/0x5+parseInt(_0xbedc1e(0x1a0))/0x6*(parseInt(_0xbedc1e(0x1ab))/0x7)+parseInt(_0xbedc1e(0x1a7))/0x8;if(_0x575863===_0x505f9c)break;else _0x16e1a4['push'](_0x16e1a4['shift']());}catch(_0x11c85a){_0x16e1a4['push'](_0x16e1a4['shift']());}}}(a3_0x90a1,0xede79));var a3_0x237dbf=(function(){var _0x32f41b=!![];return function(_0x1ae636,_0x3bbc27){var _0x57c601=_0x32f41b?function(){var _0x322cd5=a3_0x4d7c;if(_0x3bbc27){var _0x33ada6=_0x3bbc27[_0x322cd5(0x1a4)](_0x1ae636,arguments);return _0x3bbc27=null,_0x33ada6;}}:function(){};return _0x32f41b=![],_0x57c601;};}()),a3_0xcf101d=a3_0x237dbf(this,function(){var _0x37fed6=a3_0x4d7c;return a3_0xcf101d[_0x37fed6(0x1a5)]()[_0x37fed6(0x1a3)]('(((.+)+)+)+$')[_0x37fed6(0x1a5)]()[_0x37fed6(0x1ad)](a3_0xcf101d)[_0x37fed6(0x1a3)](_0x37fed6(0x1a6));});a3_0xcf101d();function a3_0x90a1(){var _0x2ee35c=['anncic-api:event','6086380jrMybv','__esModule','14KiZdTR','552988QNfJfC','constructor','EVENT_KEY','877895BYzkRy','5201928ZapLeG','4039749ULjCyz','687137cMAjGQ','search','apply','toString','(((.+)+)+)+$','7755592Vvrefz'];a3_0x90a1=function(){return _0x2ee35c;};return a3_0x90a1();}'use strict';function a3_0x4d7c(_0xde25c6,_0x133cf9){var _0x567337=a3_0x90a1();return a3_0x4d7c=function(_0xcf101d,_0x237dbf){_0xcf101d=_0xcf101d-0x19f;var _0x90a134=_0x567337[_0xcf101d];return _0x90a134;},a3_0x4d7c(_0xde25c6,_0x133cf9);}Object['defineProperty'](exports,a3_0x4c3f75(0x1aa),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x4c3f75(0x1ae)]=void 0x0,exports['EVENT_KEY']=a3_0x4c3f75(0x1a8),exports['EVENT_ON_KEY']='anncic-api:event:on';
@@ -1,32 +1,32 @@
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
- throttle: number;
9
- resolve: Function;
10
- propertyKey: string;
11
- }[];
12
- };
13
- protected listevent_throttle: {
14
- [key: string]: number;
15
- };
16
- getListevent(name?: string): Promise<{
17
- [key: string]: {
18
- priority: number;
19
- throttle: number;
20
- resolve: Function;
21
- propertyKey: string;
22
- }[];
23
- } | {
24
- priority: number;
25
- throttle: number;
26
- resolve: Function;
27
- propertyKey: string;
28
- }[]>;
29
- emit(name: string, ...args: any[]): Promise<void>;
30
- once(name: string, ...args: any[]): Promise<boolean>;
31
- off(name: string): Promise<boolean>;
32
- }
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
+ throttle: number;
9
+ resolve: Function;
10
+ propertyKey: string;
11
+ }[];
12
+ };
13
+ protected listevent_throttle: {
14
+ [key: string]: number;
15
+ };
16
+ getListevent(name?: string): Promise<{
17
+ [key: string]: {
18
+ priority: number;
19
+ throttle: number;
20
+ resolve: Function;
21
+ propertyKey: string;
22
+ }[];
23
+ } | {
24
+ priority: number;
25
+ throttle: number;
26
+ resolve: Function;
27
+ propertyKey: string;
28
+ }[]>;
29
+ emit(name: string, ...args: any[]): Promise<void>;
30
+ once(name: string, ...args: any[]): Promise<boolean>;
31
+ off(name: string): Promise<boolean>;
32
+ }
@@ -1 +1 @@
1
- const a4_0x387515=a4_0x5c5c;(function(_0x456787,_0x37550a){const _0x124089=a4_0x5c5c,_0x4f1fc3=_0x456787();while(!![]){try{const _0x547856=-parseInt(_0x124089(0x145))/0x1+-parseInt(_0x124089(0x16f))/0x2*(-parseInt(_0x124089(0x162))/0x3)+-parseInt(_0x124089(0x170))/0x4*(-parseInt(_0x124089(0x14a))/0x5)+parseInt(_0x124089(0x159))/0x6+parseInt(_0x124089(0x155))/0x7+-parseInt(_0x124089(0x14c))/0x8*(parseInt(_0x124089(0x172))/0x9)+-parseInt(_0x124089(0x148))/0xa*(parseInt(_0x124089(0x167))/0xb);if(_0x547856===_0x37550a)break;else _0x4f1fc3['push'](_0x4f1fc3['shift']());}catch(_0x4212f2){_0x4f1fc3['push'](_0x4f1fc3['shift']());}}}(a4_0x2eb0,0x6a02b));const a4_0x1c9434=(function(){let _0x49a15e=!![];return function(_0x383323,_0x166c3d){const _0x33cf28=_0x49a15e?function(){const _0x2eedc4=a4_0x5c5c;if(_0x166c3d){const _0x5dc49d=_0x166c3d[_0x2eedc4(0x158)](_0x383323,arguments);return _0x166c3d=null,_0x5dc49d;}}:function(){};return _0x49a15e=![],_0x33cf28;};}()),a4_0x3ea79b=a4_0x1c9434(this,function(){const _0x98505d=a4_0x5c5c;return a4_0x3ea79b[_0x98505d(0x179)]()[_0x98505d(0x173)](_0x98505d(0x16d))[_0x98505d(0x179)]()[_0x98505d(0x178)](a4_0x3ea79b)[_0x98505d(0x173)]('(((.+)+)+)+$');});a4_0x3ea79b();'use strict';var __decorate=this&&this[a4_0x387515(0x14e)]||function(_0x37ce2e,_0x4493e5,_0x517579,_0x46ec07){const _0x29e523=a4_0x387515;var _0x56df1d=arguments['length'],_0x4971a7=_0x56df1d<0x3?_0x4493e5:_0x46ec07===null?_0x46ec07=Object[_0x29e523(0x151)](_0x4493e5,_0x517579):_0x46ec07,_0x2fef3d;if(typeof Reflect===_0x29e523(0x16a)&&typeof Reflect[_0x29e523(0x176)]==='function')_0x4971a7=Reflect[_0x29e523(0x176)](_0x37ce2e,_0x4493e5,_0x517579,_0x46ec07);else{for(var _0x5a20da=_0x37ce2e[_0x29e523(0x174)]-0x1;_0x5a20da>=0x0;_0x5a20da--)if(_0x2fef3d=_0x37ce2e[_0x5a20da])_0x4971a7=(_0x56df1d<0x3?_0x2fef3d(_0x4971a7):_0x56df1d>0x3?_0x2fef3d(_0x4493e5,_0x517579,_0x4971a7):_0x2fef3d(_0x4493e5,_0x517579))||_0x4971a7;}return _0x56df1d>0x3&&_0x4971a7&&Object[_0x29e523(0x165)](_0x4493e5,_0x517579,_0x4971a7),_0x4971a7;},__metadata=this&&this['__metadata']||function(_0x405c81,_0x594a68){const _0x4d3113=a4_0x387515;if(typeof Reflect==='object'&&typeof Reflect[_0x4d3113(0x144)]==='function')return Reflect[_0x4d3113(0x144)](_0x405c81,_0x594a68);};Object[a4_0x387515(0x165)](exports,a4_0x387515(0x16c),{'value':!![]}),exports[a4_0x387515(0x17b)]=void 0x0;function a4_0x5c5c(_0x532c49,_0x269c4e){const _0x18dc5b=a4_0x2eb0();return a4_0x5c5c=function(_0x3ea79b,_0x1c9434){_0x3ea79b=_0x3ea79b-0x141;let _0x2eb0e=_0x18dc5b[_0x3ea79b];return _0x2eb0e;},a4_0x5c5c(_0x532c49,_0x269c4e);}const collect_js_1=require(a4_0x387515(0x168)),core_1=require(a4_0x387515(0x164)),interface_1=require(a4_0x387515(0x160));let EventService=class EventService{constructor(){const _0x5149a6=a4_0x387515;this[_0x5149a6(0x17a)]=![];}async[a4_0x387515(0x147)](_0x5ef113){const _0x429b84=a4_0x387515;if(!this[_0x429b84(0x17a)]){this[_0x429b84(0x17a)]=!![],this['listevent']={};for(const _0x638e88 of(0x0,core_1[_0x429b84(0x14b)])(interface_1[_0x429b84(0x146)])||[]){const _0xcdffdd=await this[_0x429b84(0x175)]['getApplicationContext']()[_0x429b84(0x154)](_0x638e88);for(const _0xd79648 of(0x0,core_1[_0x429b84(0x149)])(interface_1[_0x429b84(0x177)],_0x638e88)||[]){typeof(_0xcdffdd[_0xd79648[_0x429b84(0x15b)]]==_0x429b84(0x157))&&(!this[_0x429b84(0x15d)][_0xd79648['name']]&&(this['listevent'][_0xd79648[_0x429b84(0x142)]]=[]),this[_0x429b84(0x15d)][_0xd79648[_0x429b84(0x142)]][_0x429b84(0x15e)]({'priority':(_0xd79648===null||_0xd79648===void 0x0?void 0x0:_0xd79648[_0x429b84(0x141)])||0x0,'throttle':(_0xd79648===null||_0xd79648===void 0x0?void 0x0:_0xd79648['throttle'])||0x1f4,'resolve':_0xcdffdd[_0xd79648['propertyKey']]['bind'](_0xcdffdd),'propertyKey':_0x638e88[_0x429b84(0x142)]+'@'+_0xd79648[_0x429b84(0x15b)]}));}}for(const _0x5721ec in this[_0x429b84(0x15d)]){this[_0x429b84(0x15d)][_0x5721ec]=(0x0,collect_js_1['default'])(this[_0x429b84(0x15d)][_0x5721ec])[_0x429b84(0x171)](_0x429b84(0x141))[_0x429b84(0x152)]();}}return _0x5ef113?this['listevent'][_0x5ef113]||[]:this['listevent'];}async[a4_0x387515(0x153)](_0x593134,..._0x44feb7){const _0x86e29e=a4_0x387515;var _0x4135a7,_0x4fc37c,_0x28eeca,_0xefba8f,_0x430ff1;const _0x5ac08a=''+JSON[_0x86e29e(0x15a)](_0x44feb7),_0x1ecd85=Date[_0x86e29e(0x161)]();await this[_0x86e29e(0x147)]();for(let _0x303e5c in this[_0x86e29e(0x15f)]){this['listevent_throttle'][_0x303e5c]<_0x1ecd85&&delete this[_0x86e29e(0x15f)][_0x303e5c];}for(let _0x5f3d75 in(_0x4135a7=this['listevent'])===null||_0x4135a7===void 0x0?void 0x0:_0x4135a7[_0x593134]){if(((_0x4fc37c=this[_0x86e29e(0x15d)][_0x593134])===null||_0x4fc37c===void 0x0?void 0x0:_0x4fc37c[_0x5f3d75])&&typeof((_0xefba8f=(_0x28eeca=this[_0x86e29e(0x15d)][_0x593134])===null||_0x28eeca===void 0x0?void 0x0:_0x28eeca[_0x5f3d75])===null||_0xefba8f===void 0x0?void 0x0:_0xefba8f[_0x86e29e(0x166)])==_0x86e29e(0x157)){const _0x2d3723=_0x593134+'_'+_0x5f3d75+'@'+_0x5ac08a;(!this['listevent_throttle']||this['listevent_throttle'][_0x2d3723]<_0x1ecd85)&&(this[_0x86e29e(0x15f)][_0x2d3723]=_0x1ecd85+(((_0x430ff1=this[_0x86e29e(0x15d)][_0x593134][_0x5f3d75])===null||_0x430ff1===void 0x0?void 0x0:_0x430ff1[_0x86e29e(0x156)])||0x1f4),await this['listevent'][_0x593134][_0x5f3d75][_0x86e29e(0x166)](..._0x44feb7));}}}async[a4_0x387515(0x143)](_0x104266,..._0x114ecd){const _0x28038f=a4_0x387515;return await this['getListevent'](),await this[_0x28038f(0x153)](_0x104266,..._0x114ecd),this[_0x28038f(0x14f)](_0x104266);}async[a4_0x387515(0x14f)](_0x2c0c0b){const _0x2efad1=a4_0x387515;return await this[_0x2efad1(0x147)](),this['listevent'][_0x2c0c0b]&&delete this[_0x2efad1(0x15d)][_0x2c0c0b],!!this[_0x2efad1(0x15d)][_0x2c0c0b];}};function a4_0x2eb0(){const _0x302093=['15fLdHvo','listModule','39944hxqfTk','design:type','__decorate','off','ScopeEnum','getOwnPropertyDescriptor','all','emit','getAsync','5394018fUXqFM','throttle','function','apply','4138368NSTgHE','stringify','propertyKey','Scope','listevent','push','listevent_throttle','../interface','now','39504xxdhrF','App','@midwayjs/core','defineProperty','resolve','167343ODGkyd','collect.js','Singleton','object','event','__esModule','(((.+)+)+)+$','Provide','20xhnVSf','1045284rrQRCr','sortByDesc','927eWEoyl','search','length','app','decorate','EVENT_ON_KEY','constructor','toString','init','EventService','priority','name','once','metadata','773288mPYNvr','EVENT_KEY','getListevent','430MceMFO','getClassMetadata'];a4_0x2eb0=function(){return _0x302093;};return a4_0x2eb0();}exports[a4_0x387515(0x17b)]=EventService,__decorate([(0x0,core_1[a4_0x387515(0x163)])(),__metadata(a4_0x387515(0x14d),Object)],EventService['prototype'],a4_0x387515(0x175),void 0x0),exports[a4_0x387515(0x17b)]=EventService=__decorate([(0x0,core_1[a4_0x387515(0x16e)])(a4_0x387515(0x16b)),(0x0,core_1[a4_0x387515(0x15c)])(core_1[a4_0x387515(0x150)][a4_0x387515(0x169)])],EventService);
1
+ const a4_0x4875ca=a4_0x3abe;(function(_0x13a22f,_0x2f3587){const _0x1c8097=a4_0x3abe,_0x3f69bf=_0x13a22f();while(!![]){try{const _0x41a0aa=parseInt(_0x1c8097(0x1d1))/0x1*(-parseInt(_0x1c8097(0x1db))/0x2)+parseInt(_0x1c8097(0x1d5))/0x3+-parseInt(_0x1c8097(0x1f0))/0x4*(parseInt(_0x1c8097(0x1e4))/0x5)+parseInt(_0x1c8097(0x1e2))/0x6+parseInt(_0x1c8097(0x1e9))/0x7*(-parseInt(_0x1c8097(0x1ec))/0x8)+-parseInt(_0x1c8097(0x1d3))/0x9+parseInt(_0x1c8097(0x1cd))/0xa*(parseInt(_0x1c8097(0x1f8))/0xb);if(_0x41a0aa===_0x2f3587)break;else _0x3f69bf['push'](_0x3f69bf['shift']());}catch(_0x105e48){_0x3f69bf['push'](_0x3f69bf['shift']());}}}(a4_0x36ca,0x6a6a7));const a4_0x1fe8bf=(function(){let _0x126479=!![];return function(_0x27636d,_0x1de124){const _0x6f71a2=_0x126479?function(){const _0xc43fc3=a4_0x3abe;if(_0x1de124){const _0x210528=_0x1de124[_0xc43fc3(0x1cb)](_0x27636d,arguments);return _0x1de124=null,_0x210528;}}:function(){};return _0x126479=![],_0x6f71a2;};}()),a4_0x284ceb=a4_0x1fe8bf(this,function(){const _0xa086b4=a4_0x3abe;return a4_0x284ceb[_0xa086b4(0x1fd)]()[_0xa086b4(0x1fa)](_0xa086b4(0x1e1))[_0xa086b4(0x1fd)]()[_0xa086b4(0x1ca)](a4_0x284ceb)[_0xa086b4(0x1fa)]('(((.+)+)+)+$');});a4_0x284ceb();'use strict';var __decorate=this&&this['__decorate']||function(_0xbd4157,_0x13ab95,_0xf74d3f,_0x2c30d8){const _0x56c7be=a4_0x3abe;var _0x422e35=arguments[_0x56c7be(0x1f5)],_0x9532dc=_0x422e35<0x3?_0x13ab95:_0x2c30d8===null?_0x2c30d8=Object[_0x56c7be(0x1fc)](_0x13ab95,_0xf74d3f):_0x2c30d8,_0x191371;if(typeof Reflect===_0x56c7be(0x1d8)&&typeof Reflect[_0x56c7be(0x1ef)]==='function')_0x9532dc=Reflect[_0x56c7be(0x1ef)](_0xbd4157,_0x13ab95,_0xf74d3f,_0x2c30d8);else{for(var _0x430b8f=_0xbd4157['length']-0x1;_0x430b8f>=0x0;_0x430b8f--)if(_0x191371=_0xbd4157[_0x430b8f])_0x9532dc=(_0x422e35<0x3?_0x191371(_0x9532dc):_0x422e35>0x3?_0x191371(_0x13ab95,_0xf74d3f,_0x9532dc):_0x191371(_0x13ab95,_0xf74d3f))||_0x9532dc;}return _0x422e35>0x3&&_0x9532dc&&Object[_0x56c7be(0x1ea)](_0x13ab95,_0xf74d3f,_0x9532dc),_0x9532dc;},__metadata=this&&this['__metadata']||function(_0xda262d,_0x344266){const _0x2beaae=a4_0x3abe;if(typeof Reflect===_0x2beaae(0x1d8)&&typeof Reflect[_0x2beaae(0x1dc)]===_0x2beaae(0x1e0))return Reflect[_0x2beaae(0x1dc)](_0xda262d,_0x344266);};function a4_0x36ca(){const _0x559d2a=['getClassMetadata','propertyKey','decorate','702484WDoirU','prototype','off','listModule','listevent_throttle','length','getListevent','App','3355qtXeVu','resolve','search','design:type','getOwnPropertyDescriptor','toString','bind','constructor','apply','push','42740hJvdWc','app','priority','event','8aUzPrk','Singleton','7053840mBBiST','getAsync','2394726AsrrvO','emit','__esModule','object','throttle','collect.js','67822IlrEvC','metadata','default','Provide','../interface','function','(((.+)+)+)+$','2457204DpjTpG','name','20ZaRGYd','EVENT_ON_KEY','listevent','stringify','init','2225545SIxDrr','defineProperty','now','8CxbnpI'];a4_0x36ca=function(){return _0x559d2a;};return a4_0x36ca();}Object[a4_0x4875ca(0x1ea)](exports,a4_0x4875ca(0x1d7),{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require(a4_0x4875ca(0x1da)),core_1=require('@midwayjs/core'),interface_1=require(a4_0x4875ca(0x1df));let EventService=class EventService{constructor(){const _0x414a2f=a4_0x4875ca;this[_0x414a2f(0x1e8)]=![];}async[a4_0x4875ca(0x1f6)](_0x4c10d3){const _0xcf0422=a4_0x4875ca;if(!this['init']){this['init']=!![],this[_0xcf0422(0x1e6)]={};for(const _0x24735e of(0x0,core_1[_0xcf0422(0x1f3)])(interface_1['EVENT_KEY'])||[]){const _0x50a433=await this[_0xcf0422(0x1ce)]['getApplicationContext']()[_0xcf0422(0x1d4)](_0x24735e);for(const _0xdca4ee of(0x0,core_1[_0xcf0422(0x1ed)])(interface_1[_0xcf0422(0x1e5)],_0x24735e)||[]){typeof(_0x50a433[_0xdca4ee[_0xcf0422(0x1ee)]]==_0xcf0422(0x1e0))&&(!this[_0xcf0422(0x1e6)][_0xdca4ee[_0xcf0422(0x1e3)]]&&(this['listevent'][_0xdca4ee['name']]=[]),this[_0xcf0422(0x1e6)][_0xdca4ee[_0xcf0422(0x1e3)]][_0xcf0422(0x1cc)]({'priority':(_0xdca4ee===null||_0xdca4ee===void 0x0?void 0x0:_0xdca4ee[_0xcf0422(0x1cf)])||0x0,'throttle':(_0xdca4ee===null||_0xdca4ee===void 0x0?void 0x0:_0xdca4ee[_0xcf0422(0x1d9)])||0x1f4,'resolve':_0x50a433[_0xdca4ee['propertyKey']][_0xcf0422(0x1c9)](_0x50a433),'propertyKey':_0x24735e['name']+'@'+_0xdca4ee[_0xcf0422(0x1ee)]}));}}for(const _0x13b50d in this[_0xcf0422(0x1e6)]){this['listevent'][_0x13b50d]=(0x0,collect_js_1[_0xcf0422(0x1dd)])(this['listevent'][_0x13b50d])['sortByDesc']('priority')['all']();}}return _0x4c10d3?this[_0xcf0422(0x1e6)][_0x4c10d3]||[]:this['listevent'];}async['emit'](_0x260b15,..._0x499db7){const _0x43d4c9=a4_0x4875ca;var _0x1f1ae3,_0x1cb67b,_0x29d6bc,_0x33285b,_0xcc1d43;const _0x59d0cf=''+JSON[_0x43d4c9(0x1e7)](_0x499db7),_0x5b8307=Date[_0x43d4c9(0x1eb)]();await this[_0x43d4c9(0x1f6)]();for(let _0x3e2722 in this['listevent_throttle']){this[_0x43d4c9(0x1f4)][_0x3e2722]<_0x5b8307&&delete this[_0x43d4c9(0x1f4)][_0x3e2722];}for(let _0x377be2 in(_0x1f1ae3=this[_0x43d4c9(0x1e6)])===null||_0x1f1ae3===void 0x0?void 0x0:_0x1f1ae3[_0x260b15]){if(((_0x1cb67b=this[_0x43d4c9(0x1e6)][_0x260b15])===null||_0x1cb67b===void 0x0?void 0x0:_0x1cb67b[_0x377be2])&&typeof((_0x33285b=(_0x29d6bc=this['listevent'][_0x260b15])===null||_0x29d6bc===void 0x0?void 0x0:_0x29d6bc[_0x377be2])===null||_0x33285b===void 0x0?void 0x0:_0x33285b[_0x43d4c9(0x1f9)])==_0x43d4c9(0x1e0)){const _0x502e74=_0x260b15+'_'+_0x377be2+'@'+_0x59d0cf;(!this['listevent_throttle']||this['listevent_throttle'][_0x502e74]<_0x5b8307)&&(this[_0x43d4c9(0x1f4)][_0x502e74]=_0x5b8307+(((_0xcc1d43=this[_0x43d4c9(0x1e6)][_0x260b15][_0x377be2])===null||_0xcc1d43===void 0x0?void 0x0:_0xcc1d43['throttle'])||0x1f4),await this[_0x43d4c9(0x1e6)][_0x260b15][_0x377be2]['resolve'](..._0x499db7));}}}async['once'](_0x5a21c6,..._0x2b59ac){const _0x383cb2=a4_0x4875ca;return await this[_0x383cb2(0x1f6)](),await this[_0x383cb2(0x1d6)](_0x5a21c6,..._0x2b59ac),this['off'](_0x5a21c6);}async[a4_0x4875ca(0x1f2)](_0x1e2c19){const _0x1fa51e=a4_0x4875ca;return await this['getListevent'](),this[_0x1fa51e(0x1e6)][_0x1e2c19]&&delete this[_0x1fa51e(0x1e6)][_0x1e2c19],!!this[_0x1fa51e(0x1e6)][_0x1e2c19];}};function a4_0x3abe(_0x486a11,_0x45d60a){const _0x1136e5=a4_0x36ca();return a4_0x3abe=function(_0x284ceb,_0x1fe8bf){_0x284ceb=_0x284ceb-0x1c9;let _0x36cac1=_0x1136e5[_0x284ceb];return _0x36cac1;},a4_0x3abe(_0x486a11,_0x45d60a);}__decorate([(0x0,core_1[a4_0x4875ca(0x1f7)])(),__metadata(a4_0x4875ca(0x1fb),Object)],EventService[a4_0x4875ca(0x1f1)],a4_0x4875ca(0x1ce),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x4875ca(0x1de)])(a4_0x4875ca(0x1d0)),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a4_0x4875ca(0x1d2)])],EventService),exports['EventService']=EventService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/event",
3
- "version": "3.7.18",
3
+ "version": "3.7.20",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "devDependencies": {
21
21
  "@types/node": "20.10.0",
22
22
  "javascript-obfuscator": "^4.0.2",
23
- "typescript": "^5.5.4"
23
+ "typescript": "^4.9.5"
24
24
  },
25
- "gitHead": "85978bc3350abf1957f1726ca4364115d0009792"
25
+ "gitHead": "0a7d56c0ee061d05c8b11f12c3d03cbb4d7711f2"
26
26
  }