@anncic-api/event 3.7.50 → 4.0.1

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_0x449a90=a0_0x3a32;function a0_0x3a32(_0x2e7330,_0x31ba70){_0x2e7330=_0x2e7330-0x1d6;var _0x5b66fe=a0_0x4748();var _0x189cdc=_0x5b66fe[_0x2e7330];return _0x189cdc;}(function(_0x30959b,_0x94f225){var _0xc773f8=a0_0x3a32,_0x2d1f15=_0x30959b();while(!![]){try{var _0x5de429=-parseInt(_0xc773f8(0x1ef))/0x1+parseInt(_0xc773f8(0x1db))/0x2+-parseInt(_0xc773f8(0x1eb))/0x3*(parseInt(_0xc773f8(0x1ed))/0x4)+-parseInt(_0xc773f8(0x1e3))/0x5*(-parseInt(_0xc773f8(0x1e2))/0x6)+-parseInt(_0xc773f8(0x1d8))/0x7*(parseInt(_0xc773f8(0x1e5))/0x8)+parseInt(_0xc773f8(0x1dd))/0x9+-parseInt(_0xc773f8(0x1d9))/0xa*(-parseInt(_0xc773f8(0x1f6))/0xb);if(_0x5de429===_0x94f225)break;else _0x2d1f15['push'](_0x2d1f15['shift']());}catch(_0x20ce08){_0x2d1f15['push'](_0x2d1f15['shift']());}}}(a0_0x4748,0x4303a));var a0_0x2e2403=(function(){var _0x517177=!![];return function(_0x172c56,_0x1d89db){var _0x489b83=_0x517177?function(){if(_0x1d89db){var _0x5a2eb2=_0x1d89db['apply'](_0x172c56,arguments);return _0x1d89db=null,_0x5a2eb2;}}:function(){};return _0x517177=![],_0x489b83;};}()),a0_0x189cdc=a0_0x2e2403(this,function(){var _0x33bebf=a0_0x3a32;return a0_0x189cdc['toString']()[_0x33bebf(0x1e6)](_0x33bebf(0x1f8))[_0x33bebf(0x1e4)]()[_0x33bebf(0x1e0)](a0_0x189cdc)[_0x33bebf(0x1e6)](_0x33bebf(0x1f8));});function a0_0x4748(){var _0x2d9c1c=['decorator','455242uIWiWX','__esModule','1803537HOgnzr','onReady','__decorate','constructor','MidwayDecoratorService','800322VcFIRn','15XEbjJw','toString','170608PxQrWj','search','anncic-api:event','object','prototype','defineProperty','681Keexwy','design:type','8224fNQyMM','length','285192oVEaIj','function','Configuration','@midwayjs/core','config','MidwayConfigService','decorate','7575887eOwbCY','Inject','(((.+)+)+)+$','getOwnPropertyDescriptor','metadata','CustomConfiguration','161SynZEE','10hwxEUx'];a0_0x4748=function(){return _0x2d9c1c;};return a0_0x4748();}a0_0x189cdc();'use strict';var __decorate=this&&this[a0_0x449a90(0x1df)]||function(_0x4aa0bc,_0x23fcf2,_0x22ebaa,_0x350ada){var _0x131263=a0_0x449a90,_0x3eb434=arguments[_0x131263(0x1ee)],_0x24edf2=_0x3eb434<0x3?_0x23fcf2:_0x350ada===null?_0x350ada=Object[_0x131263(0x1f9)](_0x23fcf2,_0x22ebaa):_0x350ada,_0xb91470;if(typeof Reflect===_0x131263(0x1e8)&&typeof Reflect['decorate']==='function')_0x24edf2=Reflect[_0x131263(0x1f5)](_0x4aa0bc,_0x23fcf2,_0x22ebaa,_0x350ada);else{for(var _0x57596d=_0x4aa0bc['length']-0x1;_0x57596d>=0x0;_0x57596d--)if(_0xb91470=_0x4aa0bc[_0x57596d])_0x24edf2=(_0x3eb434<0x3?_0xb91470(_0x24edf2):_0x3eb434>0x3?_0xb91470(_0x23fcf2,_0x22ebaa,_0x24edf2):_0xb91470(_0x23fcf2,_0x22ebaa))||_0x24edf2;}return _0x3eb434>0x3&&_0x24edf2&&Object[_0x131263(0x1ea)](_0x23fcf2,_0x22ebaa,_0x24edf2),_0x24edf2;},__metadata=this&&this['__metadata']||function(_0x1c0312,_0x583888){var _0x53009d=a0_0x449a90;if(typeof Reflect===_0x53009d(0x1e8)&&typeof Reflect[_0x53009d(0x1d6)]===_0x53009d(0x1f0))return Reflect[_0x53009d(0x1d6)](_0x1c0312,_0x583888);};Object[a0_0x449a90(0x1ea)](exports,a0_0x449a90(0x1dc),{'value':!![]}),exports[a0_0x449a90(0x1d7)]=void 0x0;const core_1=require(a0_0x449a90(0x1f2)),core_2=require('@midwayjs/core');let CustomConfiguration=class CustomConfiguration{async[a0_0x449a90(0x1de)](){}};__decorate([(0x0,core_1[a0_0x449a90(0x1f7)])(),__metadata(a0_0x449a90(0x1ec),core_2[a0_0x449a90(0x1f4)])],CustomConfiguration[a0_0x449a90(0x1e9)],a0_0x449a90(0x1f3),void 0x0),__decorate([(0x0,core_1[a0_0x449a90(0x1f7)])(),__metadata('design:type',core_2[a0_0x449a90(0x1e1)])],CustomConfiguration[a0_0x449a90(0x1e9)],a0_0x449a90(0x1da),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x449a90(0x1f1)])({'conflictCheck':![],'namespace':a0_0x449a90(0x1e7)})],CustomConfiguration),exports[a0_0x449a90(0x1d7)]=CustomConfiguration;
1
+ var a0_0x1081bd=a0_0x4df2;function a0_0x4df2(_0x9b04f,_0x145591){_0x9b04f=_0x9b04f-0x1b1;var _0x42d5f6=a0_0x34f5();var _0x105b94=_0x42d5f6[_0x9b04f];return _0x105b94;}(function(_0x3e46ad,_0xc57506){var _0x10ff9a=a0_0x4df2,_0x27a063=_0x3e46ad();while(!![]){try{var _0x4a6315=parseInt(_0x10ff9a(0x1c9))/0x1+-parseInt(_0x10ff9a(0x1d1))/0x2*(parseInt(_0x10ff9a(0x1ca))/0x3)+parseInt(_0x10ff9a(0x1c1))/0x4*(-parseInt(_0x10ff9a(0x1c3))/0x5)+parseInt(_0x10ff9a(0x1bf))/0x6*(-parseInt(_0x10ff9a(0x1ce))/0x7)+parseInt(_0x10ff9a(0x1c0))/0x8+parseInt(_0x10ff9a(0x1cd))/0x9*(parseInt(_0x10ff9a(0x1c5))/0xa)+-parseInt(_0x10ff9a(0x1d3))/0xb*(-parseInt(_0x10ff9a(0x1cb))/0xc);if(_0x4a6315===_0xc57506)break;else _0x27a063['push'](_0x27a063['shift']());}catch(_0x3cecf0){_0x27a063['push'](_0x27a063['shift']());}}}(a0_0x34f5,0xcf9c8));function a0_0x34f5(){var _0x57868f=['Configuration','prototype','defineProperty','CustomConfiguration','decorate','design:type','MidwayConfigService','decorator','MidwayDecoratorService','function','length','__esModule','getOwnPropertyDescriptor','(((.+)+)+)+$','toString','6JIYhHq','8727456ozYYWJ','668xotctb','@midwayjs/core','23750xxkiza','onReady','369030pbpsxf','metadata','object','__metadata','735430OYzLvH','1211043JHYwDI','15589812QAaXTS','constructor','9iKLcGh','2154229RQfRoS','search','Inject','6xOrxBS','__decorate','11kcDPmd'];a0_0x34f5=function(){return _0x57868f;};return a0_0x34f5();}var a0_0x13e3cc=(function(){var _0x4635bc=!![];return function(_0x488e8c,_0x5df42e){var _0x2a2dbf=_0x4635bc?function(){if(_0x5df42e){var _0x33df0c=_0x5df42e['apply'](_0x488e8c,arguments);return _0x5df42e=null,_0x33df0c;}}:function(){};return _0x4635bc=![],_0x2a2dbf;};}()),a0_0x105b94=a0_0x13e3cc(this,function(){var _0x2b1cd2=a0_0x4df2;return a0_0x105b94[_0x2b1cd2(0x1be)]()[_0x2b1cd2(0x1cf)](_0x2b1cd2(0x1bd))[_0x2b1cd2(0x1be)]()[_0x2b1cd2(0x1cc)](a0_0x105b94)[_0x2b1cd2(0x1cf)](_0x2b1cd2(0x1bd));});a0_0x105b94();'use strict';var __decorate=this&&this[a0_0x1081bd(0x1d2)]||function(_0x7d32f5,_0x50973f,_0x35c043,_0x2bd95f){var _0xbc22ff=a0_0x1081bd,_0x38ddfb=arguments['length'],_0x44bdd0=_0x38ddfb<0x3?_0x50973f:_0x2bd95f===null?_0x2bd95f=Object[_0xbc22ff(0x1bc)](_0x50973f,_0x35c043):_0x2bd95f,_0x4487e5;if(typeof Reflect==='object'&&typeof Reflect[_0xbc22ff(0x1b4)]===_0xbc22ff(0x1b9))_0x44bdd0=Reflect['decorate'](_0x7d32f5,_0x50973f,_0x35c043,_0x2bd95f);else{for(var _0x25ac6d=_0x7d32f5[_0xbc22ff(0x1ba)]-0x1;_0x25ac6d>=0x0;_0x25ac6d--)if(_0x4487e5=_0x7d32f5[_0x25ac6d])_0x44bdd0=(_0x38ddfb<0x3?_0x4487e5(_0x44bdd0):_0x38ddfb>0x3?_0x4487e5(_0x50973f,_0x35c043,_0x44bdd0):_0x4487e5(_0x50973f,_0x35c043))||_0x44bdd0;}return _0x38ddfb>0x3&&_0x44bdd0&&Object[_0xbc22ff(0x1b2)](_0x50973f,_0x35c043,_0x44bdd0),_0x44bdd0;},__metadata=this&&this[a0_0x1081bd(0x1c8)]||function(_0x5b0655,_0x5b67fb){var _0x4c2d74=a0_0x1081bd;if(typeof Reflect===_0x4c2d74(0x1c7)&&typeof Reflect[_0x4c2d74(0x1c6)]===_0x4c2d74(0x1b9))return Reflect['metadata'](_0x5b0655,_0x5b67fb);};Object[a0_0x1081bd(0x1b2)](exports,a0_0x1081bd(0x1bb),{'value':!![]}),exports[a0_0x1081bd(0x1b3)]=void 0x0;const core_1=require(a0_0x1081bd(0x1c2)),core_2=require(a0_0x1081bd(0x1c2));let CustomConfiguration=class CustomConfiguration{async[a0_0x1081bd(0x1c4)](){}};exports[a0_0x1081bd(0x1b3)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x1081bd(0x1d0)])(),__metadata(a0_0x1081bd(0x1b5),core_2[a0_0x1081bd(0x1b6)])],CustomConfiguration[a0_0x1081bd(0x1b1)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x1081bd(0x1d0)])(),__metadata(a0_0x1081bd(0x1b5),core_2[a0_0x1081bd(0x1b8)])],CustomConfiguration[a0_0x1081bd(0x1b1)],a0_0x1081bd(0x1b7),void 0x0),exports[a0_0x1081bd(0x1b3)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0x1081bd(0x1d4)])({'namespace':'anncic-api:event'})],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_0x25e526=a1_0x1feb;(function(_0x367a77,_0xf6ebb0){const _0x40e3df=a1_0x1feb,_0x495d8a=_0x367a77();while(!![]){try{const _0xab1095=-parseInt(_0x40e3df(0x16f))/0x1*(-parseInt(_0x40e3df(0x170))/0x2)+parseInt(_0x40e3df(0x173))/0x3+-parseInt(_0x40e3df(0x166))/0x4+parseInt(_0x40e3df(0x172))/0x5+parseInt(_0x40e3df(0x15f))/0x6*(-parseInt(_0x40e3df(0x165))/0x7)+parseInt(_0x40e3df(0x167))/0x8*(-parseInt(_0x40e3df(0x168))/0x9)+parseInt(_0x40e3df(0x15b))/0xa;if(_0xab1095===_0xf6ebb0)break;else _0x495d8a['push'](_0x495d8a['shift']());}catch(_0xb3ee01){_0x495d8a['push'](_0x495d8a['shift']());}}}(a1_0x5a10,0x272dc));const a1_0x3cfc5c=(function(){let _0x3cbbd0=!![];return function(_0x3b0ce7,_0x30547e){const _0x2464f1=_0x3cbbd0?function(){const _0x54fc09=a1_0x1feb;if(_0x30547e){const _0xd3c3f3=_0x30547e[_0x54fc09(0x163)](_0x3b0ce7,arguments);return _0x30547e=null,_0xd3c3f3;}}:function(){};return _0x3cbbd0=![],_0x2464f1;};}()),a1_0x1ab1b8=a1_0x3cfc5c(this,function(){const _0xc15418=a1_0x1feb;return a1_0x1ab1b8[_0xc15418(0x15c)]()[_0xc15418(0x15a)]('(((.+)+)+)+$')[_0xc15418(0x15c)]()[_0xc15418(0x15d)](a1_0x1ab1b8)[_0xc15418(0x15a)](_0xc15418(0x16c));});function a1_0x5a10(){const _0xbc618f=['@midwayjs/core','Provide','ScopeEnum','apply','Event','303142IbNPzy','246792qOjrmG','1208856pLLowu','18AzWMpF','attachClassMetadata','EVENT_KEY','../interface','(((.+)+)+)+$','Scope','saveModule','41269EusdqQ','2tqjPPU','__esModule','1508840FBEgjY','848325kJUtRB','Request','search','1584120KmfUfs','toString','constructor','EVENT_ON_KEY','36NRqPqO'];a1_0x5a10=function(){return _0xbc618f;};return a1_0x5a10();}a1_0x1ab1b8();'use strict';function a1_0x1feb(_0x32656c,_0x97bedc){_0x32656c=_0x32656c-0x15a;const _0x2fa75e=a1_0x5a10();let _0x1ab1b8=_0x2fa75e[_0x32656c];return _0x1ab1b8;}Object['defineProperty'](exports,a1_0x25e526(0x171),{'value':!![]}),exports[a1_0x25e526(0x164)]=void 0x0;const core_1=require(a1_0x25e526(0x160)),interface_1=require(a1_0x25e526(0x16b));function Event(){return _0x566816=>{const _0x2058c7=a1_0x1feb;(0x0,core_1[_0x2058c7(0x161)])()(_0x566816),(0x0,core_1[_0x2058c7(0x16e)])(interface_1[_0x2058c7(0x16a)],_0x566816),(0x0,core_1[_0x2058c7(0x16d)])(core_1[_0x2058c7(0x162)][_0x2058c7(0x174)],{'allowDowngrade':!![]})(_0x566816);};}exports[a1_0x25e526(0x164)]=Event,Event['On']=function(_0xa3b35,_0x2a3852=0x0,_0x17bfb0=0x1f4){return(_0x1ee3e6,_0x569aeb,_0x43204c)=>{const _0x1f438d=a1_0x1feb;return(0x0,core_1[_0x1f438d(0x169)])(interface_1[_0x1f438d(0x15e)],{'name':_0xa3b35,'priority':_0x2a3852,'propertyKey':_0x569aeb,'descriptor':_0x43204c,'throttle':_0x17bfb0},_0x1ee3e6),_0x43204c;};};
1
+ const a1_0x1478b5=a1_0x56e7;(function(_0xb12bb2,_0x5b43f0){const _0x3b0541=a1_0x56e7,_0x41c691=_0xb12bb2();while(!![]){try{const _0x3e6b81=parseInt(_0x3b0541(0x199))/0x1*(parseInt(_0x3b0541(0x196))/0x2)+parseInt(_0x3b0541(0x189))/0x3+parseInt(_0x3b0541(0x192))/0x4*(parseInt(_0x3b0541(0x18e))/0x5)+parseInt(_0x3b0541(0x187))/0x6*(-parseInt(_0x3b0541(0x18f))/0x7)+-parseInt(_0x3b0541(0x18d))/0x8+parseInt(_0x3b0541(0x188))/0x9+-parseInt(_0x3b0541(0x191))/0xa;if(_0x3e6b81===_0x5b43f0)break;else _0x41c691['push'](_0x41c691['shift']());}catch(_0x4634ac){_0x41c691['push'](_0x41c691['shift']());}}}(a1_0x5d39,0x7a33f));const a1_0xe5ced8=(function(){let _0x13f5c8=!![];return function(_0x1f0274,_0xc4fe9){const _0x2e839f=_0x13f5c8?function(){const _0x4f16db=a1_0x56e7;if(_0xc4fe9){const _0x4cdcd1=_0xc4fe9[_0x4f16db(0x19e)](_0x1f0274,arguments);return _0xc4fe9=null,_0x4cdcd1;}}:function(){};return _0x13f5c8=![],_0x2e839f;};}()),a1_0x37df47=a1_0xe5ced8(this,function(){const _0x533a63=a1_0x56e7;return a1_0x37df47['toString']()[_0x533a63(0x194)](_0x533a63(0x18a))[_0x533a63(0x193)]()[_0x533a63(0x18b)](a1_0x37df47)['search'](_0x533a63(0x18a));});a1_0x37df47();'use strict';Object['defineProperty'](exports,a1_0x1478b5(0x19a),{'value':!![]}),exports[a1_0x1478b5(0x19c)]=Event;function a1_0x56e7(_0x48442e,_0x36f786){_0x48442e=_0x48442e-0x186;const _0x56d4ee=a1_0x5d39();let _0x37df47=_0x56d4ee[_0x48442e];return _0x37df47;}const core_1=require(a1_0x1478b5(0x19b)),core_2=require('@midwayjs/core'),interface_1=require(a1_0x1478b5(0x186));function Event(){return _0x56a405=>{const _0x17a790=a1_0x56e7;(0x0,core_1[_0x17a790(0x198)])()(_0x56a405),core_2[_0x17a790(0x18c)]['saveModule'](interface_1[_0x17a790(0x19d)],_0x56a405),(0x0,core_1[_0x17a790(0x197)])(core_1['ScopeEnum']['Request'],{'allowDowngrade':!![]})(_0x56a405);};}Event['On']=function(_0x1ea2ae,_0x4718f3=0x0,_0x53b64e=0x1f4){return(_0x3c150c,_0x660dbb,_0xeb1179)=>{const _0x459eb2=a1_0x56e7;return core_2[_0x459eb2(0x190)]['attachMetadata'](interface_1[_0x459eb2(0x195)],{'name':_0x1ea2ae,'priority':_0x4718f3,'propertyKey':_0x660dbb,'descriptor':_0xeb1179,'throttle':_0x53b64e},_0x3c150c),_0xeb1179;};};function a1_0x5d39(){const _0x42bb04=['@midwayjs/core','Event','EVENT_KEY','apply','../interface','230244vLuvXW','3739320kdQZTk','2960181RMbTdh','(((.+)+)+)+$','constructor','DecoratorManager','5804368EkHAOx','424925tpMelF','161DSfJfZ','MetadataManager','5300280tqvPEc','24hXEpCg','toString','search','EVENT_ON_KEY','2PYeqzV','Scope','Provide','726602gXpzYy','__esModule'];a1_0x5d39=function(){return _0x42bb04;};return a1_0x5d39();}
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_0x4a8eb6=a2_0x1ff6;(function(_0x39b7b5,_0x4e1dc0){var _0x41e39c=a2_0x1ff6,_0x3f079d=_0x39b7b5();while(!![]){try{var _0x495cd1=parseInt(_0x41e39c(0x1b1))/0x1+-parseInt(_0x41e39c(0x1b8))/0x2*(parseInt(_0x41e39c(0x1a6))/0x3)+parseInt(_0x41e39c(0x1a9))/0x4*(parseInt(_0x41e39c(0x1b5))/0x5)+parseInt(_0x41e39c(0x1ac))/0x6*(parseInt(_0x41e39c(0x1a8))/0x7)+parseInt(_0x41e39c(0x1a7))/0x8+-parseInt(_0x41e39c(0x1aa))/0x9+-parseInt(_0x41e39c(0x1ad))/0xa;if(_0x495cd1===_0x4e1dc0)break;else _0x3f079d['push'](_0x3f079d['shift']());}catch(_0x2b98c7){_0x3f079d['push'](_0x3f079d['shift']());}}}(a2_0x5972,0x70ac5));var a2_0x546366=(function(){var _0x2b9563=!![];return function(_0x234a6a,_0x3f440d){var _0x877461=_0x2b9563?function(){var _0x268395=a2_0x1ff6;if(_0x3f440d){var _0x53adf1=_0x3f440d[_0x268395(0x1b7)](_0x234a6a,arguments);return _0x3f440d=null,_0x53adf1;}}:function(){};return _0x2b9563=![],_0x877461;};}()),a2_0x4ad633=a2_0x546366(this,function(){var _0x18a4ad=a2_0x1ff6;return a2_0x4ad633['toString']()[_0x18a4ad(0x1b2)](_0x18a4ad(0x1bd))[_0x18a4ad(0x1bc)]()[_0x18a4ad(0x1b0)](a2_0x4ad633)[_0x18a4ad(0x1b2)](_0x18a4ad(0x1bd));});a2_0x4ad633();function a2_0x5972(){var _0x516db5=['Event','./configuration','Configuration','toString','(((.+)+)+)+$','348UaaWKZ','1873088hOgBBw','7vePYFi','8xzREXa','7093485iGHgdU','./service/EventService','5462394LeRCqi','5541800NRJnnJ','__esModule','CustomConfiguration','constructor','33921NaqdEb','search','EventService','defineProperty','1939915AgAXca','./decorator/Event','apply','2596OAsTkt'];a2_0x5972=function(){return _0x516db5;};return a2_0x5972();}'use strict';Object[a2_0x4a8eb6(0x1b4)](exports,a2_0x4a8eb6(0x1ae),{'value':!![]}),exports[a2_0x4a8eb6(0x1bb)]=exports[a2_0x4a8eb6(0x1b3)]=exports[a2_0x4a8eb6(0x1b9)]=void 0x0;var Event_1=require(a2_0x4a8eb6(0x1b6));Object[a2_0x4a8eb6(0x1b4)](exports,a2_0x4a8eb6(0x1b9),{'enumerable':!![],'get':function(){var _0x3e2ffb=a2_0x4a8eb6;return Event_1[_0x3e2ffb(0x1b9)];}});var EventService_1=require(a2_0x4a8eb6(0x1ab));function a2_0x1ff6(_0x32d34f,_0x1e07b6){_0x32d34f=_0x32d34f-0x1a6;var _0x165a07=a2_0x5972();var _0x4ad633=_0x165a07[_0x32d34f];return _0x4ad633;}Object[a2_0x4a8eb6(0x1b4)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x3c4264=a2_0x4a8eb6;return EventService_1[_0x3c4264(0x1b3)];}});var configuration_1=require(a2_0x4a8eb6(0x1ba));Object[a2_0x4a8eb6(0x1b4)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x48586e=a2_0x4a8eb6;return configuration_1[_0x48586e(0x1af)];}});
1
+ function a2_0x8eec(){var _0x4dfdb6=['apply','3829935oPgfQq','(((.+)+)+)+$','37393600FeyIDh','9YQfYmo','7202540KElArR','4578796ImTNIe','EventService','./service/EventService','Event','7753074orORWm','CustomConfiguration','search','377GdHIFT','defineProperty','14968024ZDakjN','4624TUExNo','Configuration','toString','constructor','7pTcxuA','./decorator/Event'];a2_0x8eec=function(){return _0x4dfdb6;};return a2_0x8eec();}var a2_0x5805cf=a2_0x7fd2;(function(_0x3a2a30,_0x565897){var _0x5aa38d=a2_0x7fd2,_0x496913=_0x3a2a30();while(!![]){try{var _0x29ee14=-parseInt(_0x5aa38d(0x136))/0x1*(parseInt(_0x5aa38d(0x139))/0x2)+parseInt(_0x5aa38d(0x140))/0x3+-parseInt(_0x5aa38d(0x12f))/0x4+-parseInt(_0x5aa38d(0x12e))/0x5+-parseInt(_0x5aa38d(0x133))/0x6*(-parseInt(_0x5aa38d(0x13d))/0x7)+parseInt(_0x5aa38d(0x138))/0x8*(-parseInt(_0x5aa38d(0x12d))/0x9)+parseInt(_0x5aa38d(0x12c))/0xa;if(_0x29ee14===_0x565897)break;else _0x496913['push'](_0x496913['shift']());}catch(_0x3a18c9){_0x496913['push'](_0x496913['shift']());}}}(a2_0x8eec,0xef57e));var a2_0x293373=(function(){var _0x197b11=!![];return function(_0x22db44,_0x5664d9){var _0x344903=_0x197b11?function(){var _0x566619=a2_0x7fd2;if(_0x5664d9){var _0x365c00=_0x5664d9[_0x566619(0x13f)](_0x22db44,arguments);return _0x5664d9=null,_0x365c00;}}:function(){};return _0x197b11=![],_0x344903;};}()),a2_0x263d40=a2_0x293373(this,function(){var _0x3552eb=a2_0x7fd2;return a2_0x263d40[_0x3552eb(0x13b)]()[_0x3552eb(0x135)](_0x3552eb(0x141))[_0x3552eb(0x13b)]()[_0x3552eb(0x13c)](a2_0x263d40)[_0x3552eb(0x135)](_0x3552eb(0x141));});a2_0x263d40();'use strict';Object[a2_0x5805cf(0x137)](exports,'__esModule',{'value':!![]}),exports[a2_0x5805cf(0x13a)]=exports[a2_0x5805cf(0x130)]=exports[a2_0x5805cf(0x132)]=void 0x0;var Event_1=require(a2_0x5805cf(0x13e));Object[a2_0x5805cf(0x137)](exports,a2_0x5805cf(0x132),{'enumerable':!![],'get':function(){var _0x5c508a=a2_0x5805cf;return Event_1[_0x5c508a(0x132)];}});var EventService_1=require(a2_0x5805cf(0x131));Object[a2_0x5805cf(0x137)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x4f0460=a2_0x5805cf;return EventService_1[_0x4f0460(0x130)];}});var configuration_1=require('./configuration');function a2_0x7fd2(_0x197e44,_0x2a29d5){_0x197e44=_0x197e44-0x12c;var _0x3ba63b=a2_0x8eec();var _0x263d40=_0x3ba63b[_0x197e44];return _0x263d40;}Object[a2_0x5805cf(0x137)](exports,a2_0x5805cf(0x13a),{'enumerable':!![],'get':function(){var _0xb169a=a2_0x5805cf;return configuration_1[_0xb169a(0x134)];}});
@@ -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_0x27a3b2=a3_0x1a2f;(function(_0x2292f1,_0x8c79d9){var _0x3c1750=a3_0x1a2f,_0x694e44=_0x2292f1();while(!![]){try{var _0x511bdf=parseInt(_0x3c1750(0x76))/0x1+parseInt(_0x3c1750(0x77))/0x2+parseInt(_0x3c1750(0x7e))/0x3+-parseInt(_0x3c1750(0x82))/0x4*(-parseInt(_0x3c1750(0x7c))/0x5)+parseInt(_0x3c1750(0x7a))/0x6+-parseInt(_0x3c1750(0x7f))/0x7+-parseInt(_0x3c1750(0x83))/0x8*(parseInt(_0x3c1750(0x85))/0x9);if(_0x511bdf===_0x8c79d9)break;else _0x694e44['push'](_0x694e44['shift']());}catch(_0x2338fd){_0x694e44['push'](_0x694e44['shift']());}}}(a3_0x29ff,0xa4d58));var a3_0x33ecbf=(function(){var _0xf4ecb6=!![];return function(_0x3b5b0,_0x6dba74){var _0x223247=_0xf4ecb6?function(){var _0x266453=a3_0x1a2f;if(_0x6dba74){var _0x445db6=_0x6dba74[_0x266453(0x7b)](_0x3b5b0,arguments);return _0x6dba74=null,_0x445db6;}}:function(){};return _0xf4ecb6=![],_0x223247;};}()),a3_0x14c518=a3_0x33ecbf(this,function(){var _0x57ca9d=a3_0x1a2f;return a3_0x14c518[_0x57ca9d(0x84)]()[_0x57ca9d(0x7d)]('(((.+)+)+)+$')[_0x57ca9d(0x84)]()[_0x57ca9d(0x81)](a3_0x14c518)[_0x57ca9d(0x7d)](_0x57ca9d(0x79));});function a3_0x1a2f(_0x341b1c,_0x1b38d2){_0x341b1c=_0x341b1c-0x75;var _0x81f356=a3_0x29ff();var _0x14c518=_0x81f356[_0x341b1c];return _0x14c518;}function a3_0x29ff(){var _0x458093=['14512cQIGSu','toString','6714nATpJU','__esModule','EVENT_KEY','224719hLiuMi','229988XZrdDj','anncic-api:event:on','(((.+)+)+)+$','5249124uFehYm','apply','67675gTDdic','search','372456JYcXUl','3509765RMHqli','anncic-api:event','constructor','352BZlGre'];a3_0x29ff=function(){return _0x458093;};return a3_0x29ff();}a3_0x14c518();'use strict';Object['defineProperty'](exports,a3_0x27a3b2(0x86),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x27a3b2(0x75)]=void 0x0,exports[a3_0x27a3b2(0x75)]=a3_0x27a3b2(0x80),exports['EVENT_ON_KEY']=a3_0x27a3b2(0x78);
1
+ var a3_0x52932f=a3_0x33ae;(function(_0x2254e1,_0x26d8d3){var _0xae3185=a3_0x33ae,_0x467632=_0x2254e1();while(!![]){try{var _0x3abd6a=parseInt(_0xae3185(0xdc))/0x1+-parseInt(_0xae3185(0xce))/0x2+-parseInt(_0xae3185(0xd8))/0x3+-parseInt(_0xae3185(0xdb))/0x4*(parseInt(_0xae3185(0xe0))/0x5)+-parseInt(_0xae3185(0xd9))/0x6*(parseInt(_0xae3185(0xe1))/0x7)+parseInt(_0xae3185(0xd4))/0x8*(parseInt(_0xae3185(0xd3))/0x9)+parseInt(_0xae3185(0xdf))/0xa*(parseInt(_0xae3185(0xd6))/0xb);if(_0x3abd6a===_0x26d8d3)break;else _0x467632['push'](_0x467632['shift']());}catch(_0x143de1){_0x467632['push'](_0x467632['shift']());}}}(a3_0x1c24,0xbedf7));var a3_0x4f1e8a=(function(){var _0x47cdee=!![];return function(_0x26141e,_0xca200b){var _0x429a2d=_0x47cdee?function(){var _0xf75d86=a3_0x33ae;if(_0xca200b){var _0xdcbaec=_0xca200b[_0xf75d86(0xcf)](_0x26141e,arguments);return _0xca200b=null,_0xdcbaec;}}:function(){};return _0x47cdee=![],_0x429a2d;};}()),a3_0x5804f1=a3_0x4f1e8a(this,function(){var _0x542a51=a3_0x33ae;return a3_0x5804f1[_0x542a51(0xde)]()[_0x542a51(0xd5)](_0x542a51(0xd2))['toString']()[_0x542a51(0xd1)](a3_0x5804f1)[_0x542a51(0xd5)](_0x542a51(0xd2));});a3_0x5804f1();'use strict';function a3_0x33ae(_0x193ee3,_0x32eb84){_0x193ee3=_0x193ee3-0xce;var _0x46f085=a3_0x1c24();var _0x5804f1=_0x46f085[_0x193ee3];return _0x5804f1;}function a3_0x1c24(){var _0x31f3fc=['1826270gHuYeg','apply','anncic-api:event:on','constructor','(((.+)+)+)+$','657MShovz','52856gwCIOj','search','5333218bDWkYE','EVENT_ON_KEY','3223764WcVIfR','390ybgORd','EVENT_KEY','2632RaezeV','225542pEKVWk','__esModule','toString','90cbvIKU','10245WEJlex','102697bytoqq','defineProperty'];a3_0x1c24=function(){return _0x31f3fc;};return a3_0x1c24();}Object[a3_0x52932f(0xe2)](exports,a3_0x52932f(0xdd),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x52932f(0xda)]=void 0x0,exports['EVENT_KEY']='anncic-api:event',exports[a3_0x52932f(0xd7)]=a3_0x52932f(0xd0);
@@ -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_0x4af043=a4_0x38cf;(function(_0x373a65,_0x410c8b){const _0x1acc1d=a4_0x38cf,_0x4b4a95=_0x373a65();while(!![]){try{const _0x11fe43=parseInt(_0x1acc1d(0x1ab))/0x1+parseInt(_0x1acc1d(0x1c5))/0x2*(parseInt(_0x1acc1d(0x1b6))/0x3)+-parseInt(_0x1acc1d(0x1bc))/0x4+-parseInt(_0x1acc1d(0x1ac))/0x5*(-parseInt(_0x1acc1d(0x1bb))/0x6)+-parseInt(_0x1acc1d(0x1a3))/0x7+-parseInt(_0x1acc1d(0x19f))/0x8+parseInt(_0x1acc1d(0x1c6))/0x9;if(_0x11fe43===_0x410c8b)break;else _0x4b4a95['push'](_0x4b4a95['shift']());}catch(_0x134929){_0x4b4a95['push'](_0x4b4a95['shift']());}}}(a4_0x5047,0x53be5));const a4_0xe5dd7e=(function(){let _0x4ef151=!![];return function(_0x3cbc7f,_0x3fd2c8){const _0x494af9=_0x4ef151?function(){const _0x2a8f18=a4_0x38cf;if(_0x3fd2c8){const _0x47e265=_0x3fd2c8[_0x2a8f18(0x199)](_0x3cbc7f,arguments);return _0x3fd2c8=null,_0x47e265;}}:function(){};return _0x4ef151=![],_0x494af9;};}()),a4_0x4c15ca=a4_0xe5dd7e(this,function(){const _0x1580c6=a4_0x38cf;return a4_0x4c15ca[_0x1580c6(0x1b7)]()[_0x1580c6(0x1a9)](_0x1580c6(0x1b0))['toString']()[_0x1580c6(0x19b)](a4_0x4c15ca)['search'](_0x1580c6(0x1b0));});function a4_0x38cf(_0x8d1784,_0x51760f){_0x8d1784=_0x8d1784-0x199;const _0x1c1567=a4_0x5047();let _0x4c15ca=_0x1c1567[_0x8d1784];return _0x4c15ca;}a4_0x4c15ca();'use strict';function a4_0x5047(){const _0x11de6e=['decorate','EventService','name','length','search','all','189909UJGDFF','5gKHvSf','emit','getListevent','design:type','(((.+)+)+)+$','Singleton','../interface','listevent_throttle','ScopeEnum','off','3TniRby','toString','init','listevent','push','2061282riyAGD','529608QhGVVl','__metadata','getOwnPropertyDescriptor','getApplicationContext','priority','defineProperty','app','metadata','__esModule','838354FUECHZ','5960862FZDTjK','once','@midwayjs/core','apply','object','constructor','propertyKey','stringify','listModule','4494944bpAGSj','resolve','throttle','now','4043676QHZoGy','function'];a4_0x5047=function(){return _0x11de6e;};return a4_0x5047();}var __decorate=this&&this['__decorate']||function(_0xbc9525,_0x1ebe41,_0x542dc0,_0x323825){const _0x2bd151=a4_0x38cf;var _0x3ec697=arguments[_0x2bd151(0x1a8)],_0x1e438c=_0x3ec697<0x3?_0x1ebe41:_0x323825===null?_0x323825=Object[_0x2bd151(0x1be)](_0x1ebe41,_0x542dc0):_0x323825,_0x233bd5;if(typeof Reflect===_0x2bd151(0x19a)&&typeof Reflect[_0x2bd151(0x1a5)]===_0x2bd151(0x1a4))_0x1e438c=Reflect['decorate'](_0xbc9525,_0x1ebe41,_0x542dc0,_0x323825);else{for(var _0x4a5308=_0xbc9525[_0x2bd151(0x1a8)]-0x1;_0x4a5308>=0x0;_0x4a5308--)if(_0x233bd5=_0xbc9525[_0x4a5308])_0x1e438c=(_0x3ec697<0x3?_0x233bd5(_0x1e438c):_0x3ec697>0x3?_0x233bd5(_0x1ebe41,_0x542dc0,_0x1e438c):_0x233bd5(_0x1ebe41,_0x542dc0))||_0x1e438c;}return _0x3ec697>0x3&&_0x1e438c&&Object[_0x2bd151(0x1c1)](_0x1ebe41,_0x542dc0,_0x1e438c),_0x1e438c;},__metadata=this&&this[a4_0x4af043(0x1bd)]||function(_0x23e9aa,_0x8ce3f3){const _0x25b82b=a4_0x4af043;if(typeof Reflect===_0x25b82b(0x19a)&&typeof Reflect['metadata']===_0x25b82b(0x1a4))return Reflect[_0x25b82b(0x1c3)](_0x23e9aa,_0x8ce3f3);};Object['defineProperty'](exports,a4_0x4af043(0x1c4),{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require('collect.js'),core_1=require(a4_0x4af043(0x1c8)),interface_1=require(a4_0x4af043(0x1b2));let EventService=class EventService{constructor(){const _0x5f900f=a4_0x4af043;this[_0x5f900f(0x1b8)]=![];}async['getListevent'](_0x419b2e){const _0x3a196d=a4_0x4af043;if(!this[_0x3a196d(0x1b8)]){this[_0x3a196d(0x1b8)]=!![],this[_0x3a196d(0x1b9)]={},this['listevent_throttle']={};for(const _0x77020c of(0x0,core_1[_0x3a196d(0x19e)])(interface_1['EVENT_KEY'])||[]){const _0x64fa9f=await this[_0x3a196d(0x1c2)][_0x3a196d(0x1bf)]()['getAsync'](_0x77020c);for(const _0x2fb96f of(0x0,core_1['getClassMetadata'])(interface_1['EVENT_ON_KEY'],_0x77020c)||[]){typeof(_0x64fa9f[_0x2fb96f[_0x3a196d(0x19c)]]==_0x3a196d(0x1a4))&&(!this[_0x3a196d(0x1b9)][_0x2fb96f[_0x3a196d(0x1a7)]]&&(this[_0x3a196d(0x1b9)][_0x2fb96f[_0x3a196d(0x1a7)]]=[]),this['listevent'][_0x2fb96f[_0x3a196d(0x1a7)]][_0x3a196d(0x1ba)]({'priority':(_0x2fb96f===null||_0x2fb96f===void 0x0?void 0x0:_0x2fb96f[_0x3a196d(0x1c0)])||0x0,'throttle':(_0x2fb96f===null||_0x2fb96f===void 0x0?void 0x0:_0x2fb96f[_0x3a196d(0x1a1)])||0x1f4,'resolve':_0x64fa9f[_0x2fb96f[_0x3a196d(0x19c)]]['bind'](_0x64fa9f),'propertyKey':_0x77020c['name']+'@'+_0x2fb96f[_0x3a196d(0x19c)]}));}}for(const _0x40c990 in this[_0x3a196d(0x1b9)]){this[_0x3a196d(0x1b9)][_0x40c990]=(0x0,collect_js_1['default'])(this[_0x3a196d(0x1b9)][_0x40c990])['sortByDesc']('priority')[_0x3a196d(0x1aa)]();}}return _0x419b2e?this[_0x3a196d(0x1b9)][_0x419b2e]||[]:this[_0x3a196d(0x1b9)];}async[a4_0x4af043(0x1ad)](_0x3d467c,..._0x2ba070){const _0x18e514=a4_0x4af043;var _0x4c47a7,_0x37c825,_0x234b10,_0x169631,_0x4b484a;const _0x2e6b93=''+JSON[_0x18e514(0x19d)](_0x2ba070),_0x62617b=Date[_0x18e514(0x1a2)]();await this[_0x18e514(0x1ae)]();for(let _0x598da2 in this['listevent_throttle']){this['listevent_throttle'][_0x598da2]<_0x62617b&&delete this[_0x18e514(0x1b3)][_0x598da2];}for(let _0x3b6852 in(_0x4c47a7=this['listevent'])===null||_0x4c47a7===void 0x0?void 0x0:_0x4c47a7[_0x3d467c]){if(((_0x37c825=this[_0x18e514(0x1b9)][_0x3d467c])===null||_0x37c825===void 0x0?void 0x0:_0x37c825[_0x3b6852])&&typeof((_0x169631=(_0x234b10=this[_0x18e514(0x1b9)][_0x3d467c])===null||_0x234b10===void 0x0?void 0x0:_0x234b10[_0x3b6852])===null||_0x169631===void 0x0?void 0x0:_0x169631['resolve'])=='function'){const _0x1037ae=_0x3d467c+'_'+_0x3b6852+'@'+_0x2e6b93;(this[_0x18e514(0x1b3)][_0x1037ae]||0x0)<_0x62617b&&(this[_0x18e514(0x1b3)][_0x1037ae]=_0x62617b+(((_0x4b484a=this[_0x18e514(0x1b9)][_0x3d467c][_0x3b6852])===null||_0x4b484a===void 0x0?void 0x0:_0x4b484a[_0x18e514(0x1a1)])||0x1f4),await this[_0x18e514(0x1b9)][_0x3d467c][_0x3b6852][_0x18e514(0x1a0)](..._0x2ba070));}}}async[a4_0x4af043(0x1c7)](_0x210695,..._0x214d37){const _0x49f206=a4_0x4af043;return await this[_0x49f206(0x1ae)](),await this[_0x49f206(0x1ad)](_0x210695,..._0x214d37),this[_0x49f206(0x1b5)](_0x210695);}async['off'](_0x2d4ea4){const _0x5c3c0c=a4_0x4af043;return await this[_0x5c3c0c(0x1ae)](),this['listevent'][_0x2d4ea4]&&delete this['listevent'][_0x2d4ea4],!!this[_0x5c3c0c(0x1b9)][_0x2d4ea4];}};__decorate([(0x0,core_1['App'])(),__metadata(a4_0x4af043(0x1af),Object)],EventService['prototype'],a4_0x4af043(0x1c2),void 0x0),EventService=__decorate([(0x0,core_1['Provide'])('event'),(0x0,core_1['Scope'])(core_1[a4_0x4af043(0x1b4)][a4_0x4af043(0x1b1)])],EventService),exports[a4_0x4af043(0x1a6)]=EventService;
1
+ function a4_0x55de(){const _0x4e2e05=['listevent_throttle','MainApp','off','function','EVENT_ON_KEY','636055ekowDx','propertyKey','@midwayjs/core','67109oJNrOG','event','push','EventService','now','ScopeEnum','apply','82494GezZrP','once','MetadataManager','../interface','5340776xrXVYK','(((.+)+)+)+$','constructor','4260pEPXiS','decorate','object','getOwnPropertyDescriptor','1420alnPCn','throttle','emit','defineProperty','length','__metadata','all','init','stringify','listevent','metadata','EVENT_KEY','834SYvLdO','name','default','priority','4209664rIPhyH','app','DecoratorManager','3486204Xzqpjy','getOwnMetadata','getListevent','resolve','1957vAAvBG','bind','design:type','toString'];a4_0x55de=function(){return _0x4e2e05;};return a4_0x55de();}const a4_0x28317f=a4_0x4bde;(function(_0x2581d7,_0x744a5){const _0x196cb5=a4_0x4bde,_0x360839=_0x2581d7();while(!![]){try{const _0x1c46db=parseInt(_0x196cb5(0x1be))/0x1*(-parseInt(_0x196cb5(0x1dc))/0x2)+-parseInt(_0x196cb5(0x1ba))/0x3+parseInt(_0x196cb5(0x1d5))/0x4+-parseInt(_0x196cb5(0x1c7))/0x5+-parseInt(_0x196cb5(0x1e8))/0x6*(parseInt(_0x196cb5(0x1ca))/0x7)+-parseInt(_0x196cb5(0x1b7))/0x8+-parseInt(_0x196cb5(0x1d1))/0x9*(-parseInt(_0x196cb5(0x1d8))/0xa);if(_0x1c46db===_0x744a5)break;else _0x360839['push'](_0x360839['shift']());}catch(_0x40ef08){_0x360839['push'](_0x360839['shift']());}}}(a4_0x55de,0xab798));const a4_0x22388c=(function(){let _0x3552=!![];return function(_0x41e2a6,_0x5b199a){const _0x263276=_0x3552?function(){const _0x3ef343=a4_0x4bde;if(_0x5b199a){const _0x57e316=_0x5b199a[_0x3ef343(0x1d0)](_0x41e2a6,arguments);return _0x5b199a=null,_0x57e316;}}:function(){};return _0x3552=![],_0x263276;};}()),a4_0x135a43=a4_0x22388c(this,function(){const _0x8f818e=a4_0x4bde;return a4_0x135a43[_0x8f818e(0x1c1)]()['search'](_0x8f818e(0x1d6))['toString']()[_0x8f818e(0x1d7)](a4_0x135a43)['search']('(((.+)+)+)+$');});a4_0x135a43();'use strict';var __decorate=this&&this['__decorate']||function(_0x2c44ff,_0x225d49,_0x3ffc66,_0xb070eb){const _0xf22852=a4_0x4bde;var _0x15018c=arguments[_0xf22852(0x1e0)],_0x5df9db=_0x15018c<0x3?_0x225d49:_0xb070eb===null?_0xb070eb=Object[_0xf22852(0x1db)](_0x225d49,_0x3ffc66):_0xb070eb,_0x4c6793;if(typeof Reflect==='object'&&typeof Reflect[_0xf22852(0x1d9)]==='function')_0x5df9db=Reflect[_0xf22852(0x1d9)](_0x2c44ff,_0x225d49,_0x3ffc66,_0xb070eb);else{for(var _0x174e4f=_0x2c44ff[_0xf22852(0x1e0)]-0x1;_0x174e4f>=0x0;_0x174e4f--)if(_0x4c6793=_0x2c44ff[_0x174e4f])_0x5df9db=(_0x15018c<0x3?_0x4c6793(_0x5df9db):_0x15018c>0x3?_0x4c6793(_0x225d49,_0x3ffc66,_0x5df9db):_0x4c6793(_0x225d49,_0x3ffc66))||_0x5df9db;}return _0x15018c>0x3&&_0x5df9db&&Object['defineProperty'](_0x225d49,_0x3ffc66,_0x5df9db),_0x5df9db;},__metadata=this&&this[a4_0x28317f(0x1e1)]||function(_0x34db37,_0x4b3f93){const _0x1cee96=a4_0x28317f;if(typeof Reflect===_0x1cee96(0x1da)&&typeof Reflect[_0x1cee96(0x1e6)]===_0x1cee96(0x1c5))return Reflect['metadata'](_0x34db37,_0x4b3f93);};Object[a4_0x28317f(0x1df)](exports,'__esModule',{'value':!![]}),exports[a4_0x28317f(0x1cd)]=void 0x0;function a4_0x4bde(_0x3a854a,_0x374d39){_0x3a854a=_0x3a854a-0x1b7;const _0xc4ed4d=a4_0x55de();let _0x135a43=_0xc4ed4d[_0x3a854a];return _0x135a43;}const collect_js_1=require('collect.js'),core_1=require('@midwayjs/core'),core_2=require(a4_0x28317f(0x1c9)),interface_1=require(a4_0x28317f(0x1d4));let EventService=class EventService{constructor(){const _0x34708d=a4_0x28317f;this[_0x34708d(0x1e3)]=![];}async[a4_0x28317f(0x1bc)](_0xf57693){const _0x3963ba=a4_0x28317f;if(!this[_0x3963ba(0x1e3)]){this[_0x3963ba(0x1e3)]=!![],this[_0x3963ba(0x1e5)]={},this[_0x3963ba(0x1c2)]={};for(const _0x2551f6 of core_2[_0x3963ba(0x1b9)]['listModule'](interface_1[_0x3963ba(0x1e7)])||[]){const _0x209a14=await this[_0x3963ba(0x1b8)]['getApplicationContext']()['getAsync'](_0x2551f6);for(const _0x1e863e of core_2[_0x3963ba(0x1d3)][_0x3963ba(0x1bb)](interface_1[_0x3963ba(0x1c6)],_0x2551f6)||[]){typeof(_0x209a14[_0x1e863e[_0x3963ba(0x1c8)]]==_0x3963ba(0x1c5))&&(!this[_0x3963ba(0x1e5)][_0x1e863e[_0x3963ba(0x1e9)]]&&(this['listevent'][_0x1e863e[_0x3963ba(0x1e9)]]=[]),this[_0x3963ba(0x1e5)][_0x1e863e[_0x3963ba(0x1e9)]][_0x3963ba(0x1cc)]({'priority':(_0x1e863e===null||_0x1e863e===void 0x0?void 0x0:_0x1e863e[_0x3963ba(0x1eb)])||0x0,'throttle':(_0x1e863e===null||_0x1e863e===void 0x0?void 0x0:_0x1e863e[_0x3963ba(0x1dd)])||0x1f4,'resolve':_0x209a14[_0x1e863e[_0x3963ba(0x1c8)]][_0x3963ba(0x1bf)](_0x209a14),'propertyKey':_0x2551f6[_0x3963ba(0x1e9)]+'@'+_0x1e863e['propertyKey']}));}}for(const _0x66e55 in this[_0x3963ba(0x1e5)]){this[_0x3963ba(0x1e5)][_0x66e55]=(0x0,collect_js_1[_0x3963ba(0x1ea)])(this[_0x3963ba(0x1e5)][_0x66e55])['sortByDesc'](_0x3963ba(0x1eb))[_0x3963ba(0x1e2)]();}}return _0xf57693?this[_0x3963ba(0x1e5)][_0xf57693]||[]:this[_0x3963ba(0x1e5)];}async[a4_0x28317f(0x1de)](_0x237d16,..._0x324771){const _0x44f39d=a4_0x28317f;var _0x200046,_0x3e085e,_0x485d58,_0x5c48cd,_0xaf4ca4;const _0x3a7085=''+JSON[_0x44f39d(0x1e4)](_0x324771),_0xbca17f=Date[_0x44f39d(0x1ce)]();await this[_0x44f39d(0x1bc)]();for(let _0x29d73a in this['listevent_throttle']){this[_0x44f39d(0x1c2)][_0x29d73a]<_0xbca17f&&delete this[_0x44f39d(0x1c2)][_0x29d73a];}for(let _0x107b6f in(_0x200046=this['listevent'])===null||_0x200046===void 0x0?void 0x0:_0x200046[_0x237d16]){if(((_0x3e085e=this['listevent'][_0x237d16])===null||_0x3e085e===void 0x0?void 0x0:_0x3e085e[_0x107b6f])&&typeof((_0x5c48cd=(_0x485d58=this[_0x44f39d(0x1e5)][_0x237d16])===null||_0x485d58===void 0x0?void 0x0:_0x485d58[_0x107b6f])===null||_0x5c48cd===void 0x0?void 0x0:_0x5c48cd[_0x44f39d(0x1bd)])==_0x44f39d(0x1c5)){const _0x295bb0=_0x237d16+'_'+_0x107b6f+'@'+_0x3a7085;(this['listevent_throttle'][_0x295bb0]||0x0)<_0xbca17f&&(this[_0x44f39d(0x1c2)][_0x295bb0]=_0xbca17f+(((_0xaf4ca4=this[_0x44f39d(0x1e5)][_0x237d16][_0x107b6f])===null||_0xaf4ca4===void 0x0?void 0x0:_0xaf4ca4['throttle'])||0x1f4),await this[_0x44f39d(0x1e5)][_0x237d16][_0x107b6f][_0x44f39d(0x1bd)](..._0x324771));}}}async[a4_0x28317f(0x1d2)](_0x32a5b8,..._0x17d080){const _0x30db8c=a4_0x28317f;return await this[_0x30db8c(0x1bc)](),await this['emit'](_0x32a5b8,..._0x17d080),this[_0x30db8c(0x1c4)](_0x32a5b8);}async['off'](_0x151f58){const _0x384670=a4_0x28317f;return await this[_0x384670(0x1bc)](),this[_0x384670(0x1e5)][_0x151f58]&&delete this[_0x384670(0x1e5)][_0x151f58],!!this['listevent'][_0x151f58];}};exports[a4_0x28317f(0x1cd)]=EventService,__decorate([(0x0,core_1[a4_0x28317f(0x1c3)])(),__metadata(a4_0x28317f(0x1c0),Object)],EventService['prototype'],'app',void 0x0),exports['EventService']=EventService=__decorate([(0x0,core_1['Provide'])(a4_0x28317f(0x1cb)),(0x0,core_1['Scope'])(core_1[a4_0x28317f(0x1cf)]['Singleton'])],EventService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/event",
3
- "version": "3.7.50",
3
+ "version": "4.0.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -11,13 +11,13 @@
11
11
  "registry": "https://registry.npmjs.org/"
12
12
  },
13
13
  "dependencies": {
14
- "@midwayjs/core": "^3.17.1",
15
- "collect.js": "~4.36.1"
14
+ "collect.js": "^4.36.1",
15
+ "@midwayjs/core": "^4.2.6"
16
16
  },
17
17
  "devDependencies": {
18
+ "typescript": "~5.9.3",
18
19
  "@types/node": "20.10.0",
19
- "javascript-obfuscator": "^4.0.2",
20
- "typescript": "^4.9.5"
20
+ "javascript-obfuscator": "^4.0.2"
21
21
  },
22
22
  "gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880",
23
23
  "scripts": {