@anncic-api/event 3.7.49 → 4.0.0

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_0x460855=a0_0x3fce;(function(_0x1e8af4,_0x1dc69b){var _0x177607=a0_0x3fce,_0x4133c6=_0x1e8af4();while(!![]){try{var _0x39a07e=parseInt(_0x177607(0x1e7))/0x1+-parseInt(_0x177607(0x1eb))/0x2+parseInt(_0x177607(0x1e0))/0x3+parseInt(_0x177607(0x1e9))/0x4*(-parseInt(_0x177607(0x1d9))/0x5)+-parseInt(_0x177607(0x1db))/0x6*(-parseInt(_0x177607(0x1ef))/0x7)+parseInt(_0x177607(0x1ec))/0x8*(-parseInt(_0x177607(0x1ed))/0x9)+-parseInt(_0x177607(0x1dc))/0xa;if(_0x39a07e===_0x1dc69b)break;else _0x4133c6['push'](_0x4133c6['shift']());}catch(_0x45919c){_0x4133c6['push'](_0x4133c6['shift']());}}}(a0_0x115c,0x229cb));var a0_0x1c8598=(function(){var _0x408e8b=!![];return function(_0x11ec1c,_0x1bc2eb){var _0x53f5f0=_0x408e8b?function(){var _0x19f716=a0_0x3fce;if(_0x1bc2eb){var _0x2f5a25=_0x1bc2eb[_0x19f716(0x1f2)](_0x11ec1c,arguments);return _0x1bc2eb=null,_0x2f5a25;}}:function(){};return _0x408e8b=![],_0x53f5f0;};}()),a0_0x5ab0aa=a0_0x1c8598(this,function(){var _0x498f18=a0_0x3fce;return a0_0x5ab0aa[_0x498f18(0x1ea)]()[_0x498f18(0x1dd)](_0x498f18(0x1da))[_0x498f18(0x1ea)]()['constructor'](a0_0x5ab0aa)[_0x498f18(0x1dd)](_0x498f18(0x1da));});a0_0x5ab0aa();'use strict';var __decorate=this&&this[a0_0x460855(0x1e1)]||function(_0x17921a,_0x2e4138,_0x254380,_0x1ce186){var _0x6a5c5e=a0_0x460855,_0x397594=arguments[_0x6a5c5e(0x1f0)],_0x416705=_0x397594<0x3?_0x2e4138:_0x1ce186===null?_0x1ce186=Object[_0x6a5c5e(0x1ee)](_0x2e4138,_0x254380):_0x1ce186,_0x38d9d0;if(typeof Reflect===_0x6a5c5e(0x1e4)&&typeof Reflect[_0x6a5c5e(0x1f4)]===_0x6a5c5e(0x1f3))_0x416705=Reflect['decorate'](_0x17921a,_0x2e4138,_0x254380,_0x1ce186);else{for(var _0x56f5b1=_0x17921a['length']-0x1;_0x56f5b1>=0x0;_0x56f5b1--)if(_0x38d9d0=_0x17921a[_0x56f5b1])_0x416705=(_0x397594<0x3?_0x38d9d0(_0x416705):_0x397594>0x3?_0x38d9d0(_0x2e4138,_0x254380,_0x416705):_0x38d9d0(_0x2e4138,_0x254380))||_0x416705;}return _0x397594>0x3&&_0x416705&&Object['defineProperty'](_0x2e4138,_0x254380,_0x416705),_0x416705;},__metadata=this&&this[a0_0x460855(0x1f6)]||function(_0xbfce1c,_0x50aba2){var _0x4aa050=a0_0x460855;if(typeof Reflect==='object'&&typeof Reflect[_0x4aa050(0x1e5)]===_0x4aa050(0x1f3))return Reflect[_0x4aa050(0x1e5)](_0xbfce1c,_0x50aba2);};function a0_0x3fce(_0x113a98,_0x5d2218){var _0x37609f=a0_0x115c();return a0_0x3fce=function(_0x5ab0aa,_0x1c8598){_0x5ab0aa=_0x5ab0aa-0x1d7;var _0x115cff=_0x37609f[_0x5ab0aa];return _0x115cff;},a0_0x3fce(_0x113a98,_0x5d2218);}function a0_0x115c(){var _0x332d92=['toString','526772cUrkBx','211824QnQevr','9rBOnOh','getOwnPropertyDescriptor','63fgLjIt','length','CustomConfiguration','apply','function','decorate','__esModule','__metadata','MidwayDecoratorService','prototype','185jPEpTU','(((.+)+)+)+$','145482mDVpqr','671750Ynkddq','search','decorator','MidwayConfigService','441201Iirybw','__decorate','@midwayjs/core','config','object','metadata','Inject','200638vRrFWc','onReady','7256nFgafM'];a0_0x115c=function(){return _0x332d92;};return a0_0x115c();}Object['defineProperty'](exports,a0_0x460855(0x1f5),{'value':!![]}),exports[a0_0x460855(0x1f1)]=void 0x0;const core_1=require(a0_0x460855(0x1e2)),core_2=require('@midwayjs/core');let CustomConfiguration=class CustomConfiguration{async[a0_0x460855(0x1e8)](){}};__decorate([(0x0,core_1[a0_0x460855(0x1e6)])(),__metadata('design:type',core_2[a0_0x460855(0x1df)])],CustomConfiguration[a0_0x460855(0x1d8)],a0_0x460855(0x1e3),void 0x0),__decorate([(0x0,core_1[a0_0x460855(0x1e6)])(),__metadata('design:type',core_2[a0_0x460855(0x1d7)])],CustomConfiguration[a0_0x460855(0x1d8)],a0_0x460855(0x1de),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x460855(0x1f1)]=CustomConfiguration;
1
+ function a0_0x1101(_0x14b8e4,_0x459734){_0x14b8e4=_0x14b8e4-0x92;var _0x1519ef=a0_0x350b();var _0x5dd8a2=_0x1519ef[_0x14b8e4];return _0x5dd8a2;}var a0_0x53e9f6=a0_0x1101;(function(_0x8eaa57,_0x45c37f){var _0x59286a=a0_0x1101,_0x596556=_0x8eaa57();while(!![]){try{var _0x439871=-parseInt(_0x59286a(0xa2))/0x1+-parseInt(_0x59286a(0x9b))/0x2+-parseInt(_0x59286a(0x97))/0x3*(parseInt(_0x59286a(0xb1))/0x4)+parseInt(_0x59286a(0xad))/0x5+parseInt(_0x59286a(0x9e))/0x6+parseInt(_0x59286a(0xa3))/0x7+parseInt(_0x59286a(0xaa))/0x8;if(_0x439871===_0x45c37f)break;else _0x596556['push'](_0x596556['shift']());}catch(_0x18a96c){_0x596556['push'](_0x596556['shift']());}}}(a0_0x350b,0x949dd));var a0_0x229e29=(function(){var _0x132054=!![];return function(_0x583ba2,_0x5880e7){var _0x2d26ef=_0x132054?function(){var _0x3767bf=a0_0x1101;if(_0x5880e7){var _0x2c1194=_0x5880e7[_0x3767bf(0x9f)](_0x583ba2,arguments);return _0x5880e7=null,_0x2c1194;}}:function(){};return _0x132054=![],_0x2d26ef;};}()),a0_0x5dd8a2=a0_0x229e29(this,function(){var _0x473f13=a0_0x1101;return a0_0x5dd8a2['toString']()[_0x473f13(0xac)](_0x473f13(0xa9))[_0x473f13(0x9c)]()[_0x473f13(0x9d)](a0_0x5dd8a2)['search'](_0x473f13(0xa9));});a0_0x5dd8a2();'use strict';var __decorate=this&&this[a0_0x53e9f6(0xa5)]||function(_0x198510,_0x35c016,_0x4514f4,_0x207d07){var _0x234710=a0_0x53e9f6,_0x5c66=arguments[_0x234710(0xaf)],_0x5f0496=_0x5c66<0x3?_0x35c016:_0x207d07===null?_0x207d07=Object[_0x234710(0x9a)](_0x35c016,_0x4514f4):_0x207d07,_0x262d09;if(typeof Reflect===_0x234710(0x98)&&typeof Reflect[_0x234710(0xa0)]==='function')_0x5f0496=Reflect['decorate'](_0x198510,_0x35c016,_0x4514f4,_0x207d07);else{for(var _0x3c81a7=_0x198510[_0x234710(0xaf)]-0x1;_0x3c81a7>=0x0;_0x3c81a7--)if(_0x262d09=_0x198510[_0x3c81a7])_0x5f0496=(_0x5c66<0x3?_0x262d09(_0x5f0496):_0x5c66>0x3?_0x262d09(_0x35c016,_0x4514f4,_0x5f0496):_0x262d09(_0x35c016,_0x4514f4))||_0x5f0496;}return _0x5c66>0x3&&_0x5f0496&&Object[_0x234710(0xae)](_0x35c016,_0x4514f4,_0x5f0496),_0x5f0496;},__metadata=this&&this['__metadata']||function(_0xf5452f,_0x1862e4){var _0x147385=a0_0x53e9f6;if(typeof Reflect===_0x147385(0x98)&&typeof Reflect[_0x147385(0x96)]===_0x147385(0xb0))return Reflect[_0x147385(0x96)](_0xf5452f,_0x1862e4);};function a0_0x350b(){var _0x2266cf=['getOwnPropertyDescriptor','1905024TZUzbu','toString','constructor','5188770nzOYFG','apply','decorate','anncic-api:event','969963iaoBbm','8366491bynXfI','config','__decorate','design:type','Inject','__esModule','(((.+)+)+)+$','9152328LZdGBX','decorator','search','651405xJzJPZ','defineProperty','length','function','43412PVjkwY','CustomConfiguration','@midwayjs/core','onReady','MidwayConfigService','metadata','222PkvjJK','object','prototype'];a0_0x350b=function(){return _0x2266cf;};return a0_0x350b();}Object[a0_0x53e9f6(0xae)](exports,a0_0x53e9f6(0xa8),{'value':!![]}),exports[a0_0x53e9f6(0x92)]=void 0x0;const core_1=require(a0_0x53e9f6(0x93)),core_2=require(a0_0x53e9f6(0x93));let CustomConfiguration=class CustomConfiguration{async[a0_0x53e9f6(0x94)](){}};exports[a0_0x53e9f6(0x92)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x53e9f6(0xa7)])(),__metadata(a0_0x53e9f6(0xa6),core_2[a0_0x53e9f6(0x95)])],CustomConfiguration[a0_0x53e9f6(0x99)],a0_0x53e9f6(0xa4),void 0x0),__decorate([(0x0,core_1[a0_0x53e9f6(0xa7)])(),__metadata(a0_0x53e9f6(0xa6),core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a0_0x53e9f6(0xab),void 0x0),exports[a0_0x53e9f6(0x92)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'namespace':a0_0x53e9f6(0xa1)})],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_0x4356c7=a1_0x2529;(function(_0x8508bf,_0x10ed15){const _0x208fe9=a1_0x2529,_0x439343=_0x8508bf();while(!![]){try{const _0xe789b1=parseInt(_0x208fe9(0x78))/0x1*(-parseInt(_0x208fe9(0x87))/0x2)+-parseInt(_0x208fe9(0x7c))/0x3+-parseInt(_0x208fe9(0x83))/0x4*(-parseInt(_0x208fe9(0x75))/0x5)+-parseInt(_0x208fe9(0x7d))/0x6*(-parseInt(_0x208fe9(0x81))/0x7)+-parseInt(_0x208fe9(0x74))/0x8*(-parseInt(_0x208fe9(0x88))/0x9)+parseInt(_0x208fe9(0x7f))/0xa*(-parseInt(_0x208fe9(0x8b))/0xb)+parseInt(_0x208fe9(0x79))/0xc;if(_0xe789b1===_0x10ed15)break;else _0x439343['push'](_0x439343['shift']());}catch(_0x407242){_0x439343['push'](_0x439343['shift']());}}}(a1_0x184f,0x531f8));function a1_0x2529(_0x245b92,_0x4f87cd){const _0x37204a=a1_0x184f();return a1_0x2529=function(_0x5180ae,_0x518767){_0x5180ae=_0x5180ae-0x72;let _0x184fa7=_0x37204a[_0x5180ae];return _0x184fa7;},a1_0x2529(_0x245b92,_0x4f87cd);}const a1_0x518767=(function(){let _0x10e092=!![];return function(_0xbf200b,_0xb5179e){const _0x5e1952=_0x10e092?function(){const _0x3b03cb=a1_0x2529;if(_0xb5179e){const _0x539e1d=_0xb5179e[_0x3b03cb(0x7b)](_0xbf200b,arguments);return _0xb5179e=null,_0x539e1d;}}:function(){};return _0x10e092=![],_0x5e1952;};}()),a1_0x5180ae=a1_0x518767(this,function(){const _0x4ae80e=a1_0x2529;return a1_0x5180ae[_0x4ae80e(0x84)]()[_0x4ae80e(0x77)](_0x4ae80e(0x8a))['toString']()[_0x4ae80e(0x86)](a1_0x5180ae)[_0x4ae80e(0x77)]('(((.+)+)+)+$');});a1_0x5180ae();'use strict';Object['defineProperty'](exports,a1_0x4356c7(0x89),{'value':!![]}),exports[a1_0x4356c7(0x82)]=void 0x0;function a1_0x184f(){const _0x51bfd0=['Provide','constructor','4NEaYZI','9qABPBg','__esModule','(((.+)+)+)+$','5801587PhAert','attachClassMetadata','Request','4122680UzOcEb','10pTzNwv','ScopeEnum','search','282797STaRqN','6187740IRjlVV','Scope','apply','458637hlWqRQ','36egQjzp','EVENT_ON_KEY','10wuFTSc','../interface','123683ZeMQUA','Event','898736hZWaPP','toString'];a1_0x184f=function(){return _0x51bfd0;};return a1_0x184f();}const core_1=require('@midwayjs/core'),interface_1=require(a1_0x4356c7(0x80));function Event(){return _0x5096cb=>{const _0x26b1c8=a1_0x2529;(0x0,core_1[_0x26b1c8(0x85)])()(_0x5096cb),(0x0,core_1['saveModule'])(interface_1['EVENT_KEY'],_0x5096cb),(0x0,core_1[_0x26b1c8(0x7a)])(core_1[_0x26b1c8(0x76)][_0x26b1c8(0x73)],{'allowDowngrade':!![]})(_0x5096cb);};}exports[a1_0x4356c7(0x82)]=Event,Event['On']=function(_0x3414c0,_0x45dd8a=0x0,_0x374fbc=0x1f4){return(_0x1836cd,_0x21f6fa,_0x3d7320)=>{const _0x4c8b63=a1_0x2529;return(0x0,core_1[_0x4c8b63(0x72)])(interface_1[_0x4c8b63(0x7e)],{'name':_0x3414c0,'priority':_0x45dd8a,'propertyKey':_0x21f6fa,'descriptor':_0x3d7320,'throttle':_0x374fbc},_0x1836cd),_0x3d7320;};};
1
+ const a1_0x2dacda=a1_0x32d6;(function(_0x23ae38,_0x708400){const _0x228ec2=a1_0x32d6,_0x52c144=_0x23ae38();while(!![]){try{const _0x47f327=-parseInt(_0x228ec2(0x1b5))/0x1+parseInt(_0x228ec2(0x1a7))/0x2*(parseInt(_0x228ec2(0x1ba))/0x3)+-parseInt(_0x228ec2(0x1a3))/0x4*(parseInt(_0x228ec2(0x1bc))/0x5)+parseInt(_0x228ec2(0x1a6))/0x6*(-parseInt(_0x228ec2(0x1a5))/0x7)+parseInt(_0x228ec2(0x1bb))/0x8*(-parseInt(_0x228ec2(0x1a9))/0x9)+-parseInt(_0x228ec2(0x1b1))/0xa*(parseInt(_0x228ec2(0x1b8))/0xb)+parseInt(_0x228ec2(0x1b7))/0xc*(parseInt(_0x228ec2(0x1aa))/0xd);if(_0x47f327===_0x708400)break;else _0x52c144['push'](_0x52c144['shift']());}catch(_0x21e6b1){_0x52c144['push'](_0x52c144['shift']());}}}(a1_0x2369,0x8ed3e));const a1_0x2cc6ab=(function(){let _0x2ec9aa=!![];return function(_0x48d4b5,_0x5b388e){const _0x48d08b=_0x2ec9aa?function(){if(_0x5b388e){const _0x38f53b=_0x5b388e['apply'](_0x48d4b5,arguments);return _0x5b388e=null,_0x38f53b;}}:function(){};return _0x2ec9aa=![],_0x48d08b;};}()),a1_0x45c4f2=a1_0x2cc6ab(this,function(){const _0x13922b=a1_0x32d6;return a1_0x45c4f2['toString']()[_0x13922b(0x1ad)](_0x13922b(0x1b0))[_0x13922b(0x1b2)]()['constructor'](a1_0x45c4f2)['search'](_0x13922b(0x1b0));});a1_0x45c4f2();'use strict';function a1_0x2369(){const _0x4c309=['__esModule','(((.+)+)+)+$','260NqrfHr','toString','MetadataManager','Scope','1150622jcUNzn','attachMetadata','2076UXEtra','335654AEvWGH','@midwayjs/core','3XjrFAW','217760LwCKuy','220NDsXgh','../interface','25240knODlg','Provide','6120877erZnxM','6VbTeqj','884550gbxYdi','DecoratorManager','45yPiSwn','253604ScXsYZ','EVENT_ON_KEY','saveModule','search','Request'];a1_0x2369=function(){return _0x4c309;};return a1_0x2369();}Object['defineProperty'](exports,a1_0x2dacda(0x1af),{'value':!![]}),exports['Event']=Event;const core_1=require(a1_0x2dacda(0x1b9)),core_2=require('@midwayjs/core'),interface_1=require(a1_0x2dacda(0x1bd));function a1_0x32d6(_0x41d4b0,_0x35a4dc){_0x41d4b0=_0x41d4b0-0x1a3;const _0x1fb74c=a1_0x2369();let _0x45c4f2=_0x1fb74c[_0x41d4b0];return _0x45c4f2;}function Event(){return _0x4b7324=>{const _0x3e6b3b=a1_0x32d6;(0x0,core_1[_0x3e6b3b(0x1a4)])()(_0x4b7324),core_2[_0x3e6b3b(0x1a8)][_0x3e6b3b(0x1ac)](interface_1['EVENT_KEY'],_0x4b7324),(0x0,core_1[_0x3e6b3b(0x1b4)])(core_1['ScopeEnum'][_0x3e6b3b(0x1ae)],{'allowDowngrade':!![]})(_0x4b7324);};}Event['On']=function(_0x577fb2,_0x22b3e7=0x0,_0x2c7561=0x1f4){return(_0x10a6e5,_0x46006a,_0x92c884)=>{const _0x317f30=a1_0x32d6;return core_2[_0x317f30(0x1b3)][_0x317f30(0x1b6)](interface_1[_0x317f30(0x1ab)],{'name':_0x577fb2,'priority':_0x22b3e7,'propertyKey':_0x46006a,'descriptor':_0x92c884,'throttle':_0x2c7561},_0x10a6e5),_0x92c884;};};
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_0x4784(_0x42cdd2,_0x47ccb8){var _0x43146a=a2_0x44d9();return a2_0x4784=function(_0x4a76c1,_0x4aaad9){_0x4a76c1=_0x4a76c1-0x15e;var _0x44d9f4=_0x43146a[_0x4a76c1];return _0x44d9f4;},a2_0x4784(_0x42cdd2,_0x47ccb8);}var a2_0x54ee75=a2_0x4784;(function(_0x20c7f2,_0x1eb0e5){var _0x31cc6e=a2_0x4784,_0x5140a1=_0x20c7f2();while(!![]){try{var _0x4422f8=-parseInt(_0x31cc6e(0x164))/0x1+parseInt(_0x31cc6e(0x172))/0x2+parseInt(_0x31cc6e(0x16c))/0x3*(-parseInt(_0x31cc6e(0x167))/0x4)+parseInt(_0x31cc6e(0x16e))/0x5*(parseInt(_0x31cc6e(0x169))/0x6)+parseInt(_0x31cc6e(0x174))/0x7+parseInt(_0x31cc6e(0x166))/0x8+parseInt(_0x31cc6e(0x16f))/0x9*(parseInt(_0x31cc6e(0x16d))/0xa);if(_0x4422f8===_0x1eb0e5)break;else _0x5140a1['push'](_0x5140a1['shift']());}catch(_0x18437f){_0x5140a1['push'](_0x5140a1['shift']());}}}(a2_0x44d9,0x34a58));var a2_0x4aaad9=(function(){var _0x34b846=!![];return function(_0x39f968,_0x5d9396){var _0x19fd1a=_0x34b846?function(){var _0x5e1858=a2_0x4784;if(_0x5d9396){var _0x1720ec=_0x5d9396[_0x5e1858(0x170)](_0x39f968,arguments);return _0x5d9396=null,_0x1720ec;}}:function(){};return _0x34b846=![],_0x19fd1a;};}()),a2_0x4a76c1=a2_0x4aaad9(this,function(){var _0x14d5c8=a2_0x4784;return a2_0x4a76c1[_0x14d5c8(0x171)]()[_0x14d5c8(0x173)](_0x14d5c8(0x162))[_0x14d5c8(0x171)]()[_0x14d5c8(0x175)](a2_0x4a76c1)[_0x14d5c8(0x173)]('(((.+)+)+)+$');});a2_0x4a76c1();'use strict';Object['defineProperty'](exports,a2_0x54ee75(0x161),{'value':!![]}),exports[a2_0x54ee75(0x168)]=exports[a2_0x54ee75(0x15f)]=exports['Event']=void 0x0;var Event_1=require(a2_0x54ee75(0x165));function a2_0x44d9(){var _0x4ae630=['./decorator/Event','24368LCEtyh','4WGeQCC','Configuration','42soNGWf','./service/EventService','Event','1254435qnhmUK','10OXTvNf','184115bajEFL','1625931oUCXdM','apply','toString','459132dRXzPs','search','2650333abZnJh','constructor','CustomConfiguration','EventService','./configuration','__esModule','(((.+)+)+)+$','defineProperty','415866tHhWXy'];a2_0x44d9=function(){return _0x4ae630;};return a2_0x44d9();}Object['defineProperty'](exports,a2_0x54ee75(0x16b),{'enumerable':!![],'get':function(){var _0x64c47b=a2_0x54ee75;return Event_1[_0x64c47b(0x16b)];}});var EventService_1=require(a2_0x54ee75(0x16a));Object[a2_0x54ee75(0x163)](exports,a2_0x54ee75(0x15f),{'enumerable':!![],'get':function(){var _0x3ac9f1=a2_0x54ee75;return EventService_1[_0x3ac9f1(0x15f)];}});var configuration_1=require(a2_0x54ee75(0x160));Object[a2_0x54ee75(0x163)](exports,a2_0x54ee75(0x168),{'enumerable':!![],'get':function(){var _0x4f9c15=a2_0x54ee75;return configuration_1[_0x4f9c15(0x15e)];}});
1
+ var a2_0x419a45=a2_0x18a0;(function(_0x4b6a98,_0x353f95){var _0x3c187e=a2_0x18a0,_0x1c3f75=_0x4b6a98();while(!![]){try{var _0x34e29b=parseInt(_0x3c187e(0x14f))/0x1+parseInt(_0x3c187e(0x155))/0x2*(parseInt(_0x3c187e(0x158))/0x3)+-parseInt(_0x3c187e(0x15a))/0x4*(-parseInt(_0x3c187e(0x150))/0x5)+parseInt(_0x3c187e(0x15c))/0x6+parseInt(_0x3c187e(0x162))/0x7+-parseInt(_0x3c187e(0x152))/0x8*(parseInt(_0x3c187e(0x14e))/0x9)+-parseInt(_0x3c187e(0x164))/0xa;if(_0x34e29b===_0x353f95)break;else _0x1c3f75['push'](_0x1c3f75['shift']());}catch(_0x1d86f8){_0x1c3f75['push'](_0x1c3f75['shift']());}}}(a2_0x5818,0x458c1));var a2_0x1572ed=(function(){var _0x2ad818=!![];return function(_0x406592,_0x29d0e3){var _0x1b1c53=_0x2ad818?function(){var _0x5c6366=a2_0x18a0;if(_0x29d0e3){var _0x5cbe09=_0x29d0e3[_0x5c6366(0x161)](_0x406592,arguments);return _0x29d0e3=null,_0x5cbe09;}}:function(){};return _0x2ad818=![],_0x1b1c53;};}()),a2_0x59072f=a2_0x1572ed(this,function(){var _0x3af6fe=a2_0x18a0;return a2_0x59072f[_0x3af6fe(0x159)]()[_0x3af6fe(0x15e)](_0x3af6fe(0x160))[_0x3af6fe(0x159)]()['constructor'](a2_0x59072f)[_0x3af6fe(0x15e)](_0x3af6fe(0x160));});a2_0x59072f();'use strict';Object['defineProperty'](exports,a2_0x419a45(0x15d),{'value':!![]}),exports[a2_0x419a45(0x153)]=exports['EventService']=exports[a2_0x419a45(0x151)]=void 0x0;var Event_1=require(a2_0x419a45(0x156));function a2_0x18a0(_0x4c6789,_0x2cdbb4){_0x4c6789=_0x4c6789-0x14e;var _0x1c1b98=a2_0x5818();var _0x59072f=_0x1c1b98[_0x4c6789];return _0x59072f;}Object['defineProperty'](exports,a2_0x419a45(0x151),{'enumerable':!![],'get':function(){return Event_1['Event'];}});function a2_0x5818(){var _0x4119f7=['298340nTWiWu','Event','4467296QcoxDA','Configuration','./configuration','2374SBzdVE','./decorator/Event','./service/EventService','861krDgPJ','toString','20JqMXWa','defineProperty','2511036NkNieS','__esModule','search','CustomConfiguration','(((.+)+)+)+$','apply','82040MfgMqr','EventService','6423860awYZmI','9tjYEPJ','416428AfrfPT'];a2_0x5818=function(){return _0x4119f7;};return a2_0x5818();}var EventService_1=require(a2_0x419a45(0x157));Object['defineProperty'](exports,a2_0x419a45(0x163),{'enumerable':!![],'get':function(){var _0xa187f8=a2_0x419a45;return EventService_1[_0xa187f8(0x163)];}});var configuration_1=require(a2_0x419a45(0x154));Object[a2_0x419a45(0x15b)](exports,a2_0x419a45(0x153),{'enumerable':!![],'get':function(){var _0x4af588=a2_0x419a45;return configuration_1[_0x4af588(0x15f)];}});
@@ -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_0x2d7b(){var _0x2da56c=['856qZxNXK','5818195tYwpFd','96YfovOj','apply','333890ErBVYW','70peJCqm','95176sVKIwF','constructor','defineProperty','30bZhGNN','search','(((.+)+)+)+$','2823755adclsn','75929YOAabN','EVENT_ON_KEY','11rbthRQ','toString','__esModule','57843EcWnud','24019968oizMaz','EVENT_KEY'];a3_0x2d7b=function(){return _0x2da56c;};return a3_0x2d7b();}var a3_0x3d6aff=a3_0x5059;(function(_0x3b6a3e,_0x4b15c0){var _0x31fa5d=a3_0x5059,_0x522fea=_0x3b6a3e();while(!![]){try{var _0x437db4=parseInt(_0x31fa5d(0x10d))/0x1*(-parseInt(_0x31fa5d(0x117))/0x2)+-parseInt(_0x31fa5d(0x115))/0x3*(-parseInt(_0x31fa5d(0x119))/0x4)+-parseInt(_0x31fa5d(0x114))/0x5+-parseInt(_0x31fa5d(0x11c))/0x6*(-parseInt(_0x31fa5d(0x10b))/0x7)+-parseInt(_0x31fa5d(0x113))/0x8*(parseInt(_0x31fa5d(0x110))/0x9)+parseInt(_0x31fa5d(0x118))/0xa*(parseInt(_0x31fa5d(0x10a))/0xb)+parseInt(_0x31fa5d(0x111))/0xc;if(_0x437db4===_0x4b15c0)break;else _0x522fea['push'](_0x522fea['shift']());}catch(_0x4fa1e5){_0x522fea['push'](_0x522fea['shift']());}}}(a3_0x2d7b,0xe2337));var a3_0x541198=(function(){var _0xd453d1=!![];return function(_0x551d65,_0x2b2436){var _0x1ddf57=_0xd453d1?function(){var _0x8c59d4=a3_0x5059;if(_0x2b2436){var _0x34b36e=_0x2b2436[_0x8c59d4(0x116)](_0x551d65,arguments);return _0x2b2436=null,_0x34b36e;}}:function(){};return _0xd453d1=![],_0x1ddf57;};}()),a3_0xaf1d3e=a3_0x541198(this,function(){var _0x3b05c0=a3_0x5059;return a3_0xaf1d3e[_0x3b05c0(0x10e)]()[_0x3b05c0(0x11d)](_0x3b05c0(0x109))[_0x3b05c0(0x10e)]()[_0x3b05c0(0x11a)](a3_0xaf1d3e)['search']('(((.+)+)+)+$');});function a3_0x5059(_0x345a7c,_0x39c492){var _0x37503e=a3_0x2d7b();return a3_0x5059=function(_0xaf1d3e,_0x541198){_0xaf1d3e=_0xaf1d3e-0x109;var _0x2d7b44=_0x37503e[_0xaf1d3e];return _0x2d7b44;},a3_0x5059(_0x345a7c,_0x39c492);}a3_0xaf1d3e();'use strict';Object[a3_0x3d6aff(0x11b)](exports,a3_0x3d6aff(0x10f),{'value':!![]}),exports[a3_0x3d6aff(0x10c)]=exports[a3_0x3d6aff(0x112)]=void 0x0,exports[a3_0x3d6aff(0x112)]='anncic-api:event',exports[a3_0x3d6aff(0x10c)]='anncic-api:event:on';
1
+ var a3_0xf35ef0=a3_0xd3b9;(function(_0x55f77d,_0x14585d){var _0xc62fb5=a3_0xd3b9,_0x1d2a70=_0x55f77d();while(!![]){try{var _0x4f174c=-parseInt(_0xc62fb5(0xb5))/0x1+parseInt(_0xc62fb5(0xc6))/0x2*(parseInt(_0xc62fb5(0xb9))/0x3)+parseInt(_0xc62fb5(0xb8))/0x4*(-parseInt(_0xc62fb5(0xc0))/0x5)+parseInt(_0xc62fb5(0xb3))/0x6*(parseInt(_0xc62fb5(0xc1))/0x7)+-parseInt(_0xc62fb5(0xbf))/0x8*(-parseInt(_0xc62fb5(0xb1))/0x9)+-parseInt(_0xc62fb5(0xbc))/0xa*(-parseInt(_0xc62fb5(0xbb))/0xb)+-parseInt(_0xc62fb5(0xc5))/0xc;if(_0x4f174c===_0x14585d)break;else _0x1d2a70['push'](_0x1d2a70['shift']());}catch(_0x4bd71b){_0x1d2a70['push'](_0x1d2a70['shift']());}}}(a3_0x1607,0x3d380));function a3_0xd3b9(_0x206f70,_0x398ad1){_0x206f70=_0x206f70-0xb1;var _0x4a9b1c=a3_0x1607();var _0x251971=_0x4a9b1c[_0x206f70];return _0x251971;}var a3_0x53d32f=(function(){var _0x517004=!![];return function(_0x22e449,_0x3d041b){var _0x37662c=_0x517004?function(){if(_0x3d041b){var _0x8930a=_0x3d041b['apply'](_0x22e449,arguments);return _0x3d041b=null,_0x8930a;}}:function(){};return _0x517004=![],_0x37662c;};}()),a3_0x251971=a3_0x53d32f(this,function(){var _0x390b41=a3_0xd3b9;return a3_0x251971[_0x390b41(0xba)]()[_0x390b41(0xb2)](_0x390b41(0xc4))['toString']()[_0x390b41(0xbe)](a3_0x251971)[_0x390b41(0xb2)]('(((.+)+)+)+$');});a3_0x251971();'use strict';function a3_0x1607(){var _0x55b72f=['search','1115754EizosM','__esModule','166569VmuTYH','anncic-api:event:on','EVENT_KEY','92zFUoXl','66828sAjFJd','toString','88429meKdYk','260uQFdAJ','EVENT_ON_KEY','constructor','8CfCHGy','21695HRmfoH','7zJGkam','anncic-api:event','defineProperty','(((.+)+)+)+$','6839760jyBMdG','22wfuMnz','4023801eEPxos'];a3_0x1607=function(){return _0x55b72f;};return a3_0x1607();}Object[a3_0xf35ef0(0xc3)](exports,a3_0xf35ef0(0xb4),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0xf35ef0(0xb7)]=void 0x0,exports['EVENT_KEY']=a3_0xf35ef0(0xc2),exports[a3_0xf35ef0(0xbd)]=a3_0xf35ef0(0xb6);
@@ -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_0x60c8aa=a4_0x1f0a;function a4_0x1f0a(_0x4722b0,_0x4f82e6){const _0x5b86a9=a4_0x305d();return a4_0x1f0a=function(_0x29eadf,_0x267d1c){_0x29eadf=_0x29eadf-0x80;let _0x305d9d=_0x5b86a9[_0x29eadf];return _0x305d9d;},a4_0x1f0a(_0x4722b0,_0x4f82e6);}(function(_0x2aa189,_0x537700){const _0x4c3b39=a4_0x1f0a,_0x4f08ef=_0x2aa189();while(!![]){try{const _0x7d770f=parseInt(_0x4c3b39(0xaa))/0x1*(parseInt(_0x4c3b39(0x96))/0x2)+parseInt(_0x4c3b39(0x81))/0x3*(-parseInt(_0x4c3b39(0x99))/0x4)+parseInt(_0x4c3b39(0xb0))/0x5+parseInt(_0x4c3b39(0x95))/0x6+-parseInt(_0x4c3b39(0xa2))/0x7*(parseInt(_0x4c3b39(0x9d))/0x8)+-parseInt(_0x4c3b39(0xb1))/0x9*(-parseInt(_0x4c3b39(0x9c))/0xa)+-parseInt(_0x4c3b39(0x9a))/0xb;if(_0x7d770f===_0x537700)break;else _0x4f08ef['push'](_0x4f08ef['shift']());}catch(_0x207621){_0x4f08ef['push'](_0x4f08ef['shift']());}}}(a4_0x305d,0xc9de2));const a4_0x267d1c=(function(){let _0x3ba142=!![];return function(_0x62e4ec,_0xa96a31){const _0x3887db=_0x3ba142?function(){const _0x2ca029=a4_0x1f0a;if(_0xa96a31){const _0x52d3fb=_0xa96a31[_0x2ca029(0xa6)](_0x62e4ec,arguments);return _0xa96a31=null,_0x52d3fb;}}:function(){};return _0x3ba142=![],_0x3887db;};}()),a4_0x29eadf=a4_0x267d1c(this,function(){const _0x40a55a=a4_0x1f0a;return a4_0x29eadf[_0x40a55a(0x8f)]()['search']('(((.+)+)+)+$')[_0x40a55a(0x8f)]()['constructor'](a4_0x29eadf)['search'](_0x40a55a(0xa4));});function a4_0x305d(){const _0xbbe51e=['EVENT_ON_KEY','90zlofvu','136AQemnF','metadata','resolve','decorate','bind','637973quXDOZ','priority','(((.+)+)+)+$','__decorate','apply','getClassMetadata','collect.js','push','2802CUKZaz','getListevent','listevent','init','propertyKey','Provide','2619985EbuWON','1119474MzLRiu','once','App','default','defineProperty','throttle','15hVXYqX','object','event','ScopeEnum','emit','listevent_throttle','getAsync','length','stringify','@midwayjs/core','EVENT_KEY','Singleton','sortByDesc','../interface','toString','getOwnPropertyDescriptor','EventService','__metadata','function','getApplicationContext','6483576GhSoKz','656phGUDB','name','app','974804raKxKJ','532455CuTvDc'];a4_0x305d=function(){return _0xbbe51e;};return a4_0x305d();}a4_0x29eadf();'use strict';var __decorate=this&&this[a4_0x60c8aa(0xa5)]||function(_0x1e389d,_0x380cbd,_0x3ca44e,_0x307e86){const _0x1d1c45=a4_0x60c8aa;var _0x25288e=arguments[_0x1d1c45(0x88)],_0x1c803b=_0x25288e<0x3?_0x380cbd:_0x307e86===null?_0x307e86=Object[_0x1d1c45(0x90)](_0x380cbd,_0x3ca44e):_0x307e86,_0x20f9a1;if(typeof Reflect===_0x1d1c45(0x82)&&typeof Reflect[_0x1d1c45(0xa0)]===_0x1d1c45(0x93))_0x1c803b=Reflect[_0x1d1c45(0xa0)](_0x1e389d,_0x380cbd,_0x3ca44e,_0x307e86);else{for(var _0x17f9dd=_0x1e389d[_0x1d1c45(0x88)]-0x1;_0x17f9dd>=0x0;_0x17f9dd--)if(_0x20f9a1=_0x1e389d[_0x17f9dd])_0x1c803b=(_0x25288e<0x3?_0x20f9a1(_0x1c803b):_0x25288e>0x3?_0x20f9a1(_0x380cbd,_0x3ca44e,_0x1c803b):_0x20f9a1(_0x380cbd,_0x3ca44e))||_0x1c803b;}return _0x25288e>0x3&&_0x1c803b&&Object[_0x1d1c45(0xb5)](_0x380cbd,_0x3ca44e,_0x1c803b),_0x1c803b;},__metadata=this&&this[a4_0x60c8aa(0x92)]||function(_0x283ef9,_0x19b9c9){const _0x542165=a4_0x60c8aa;if(typeof Reflect===_0x542165(0x82)&&typeof Reflect[_0x542165(0x9e)]===_0x542165(0x93))return Reflect[_0x542165(0x9e)](_0x283ef9,_0x19b9c9);};Object[a4_0x60c8aa(0xb5)](exports,'__esModule',{'value':!![]}),exports[a4_0x60c8aa(0x91)]=void 0x0;const collect_js_1=require(a4_0x60c8aa(0xa8)),core_1=require(a4_0x60c8aa(0x8a)),interface_1=require(a4_0x60c8aa(0x8e));let EventService=class EventService{constructor(){const _0x2ad7e4=a4_0x60c8aa;this[_0x2ad7e4(0xad)]=![];}async[a4_0x60c8aa(0xab)](_0x4b0da8){const _0x379dca=a4_0x60c8aa;if(!this[_0x379dca(0xad)]){this[_0x379dca(0xad)]=!![],this[_0x379dca(0xac)]={},this['listevent_throttle']={};for(const _0x569181 of(0x0,core_1['listModule'])(interface_1[_0x379dca(0x8b)])||[]){const _0x34efa8=await this[_0x379dca(0x98)][_0x379dca(0x94)]()[_0x379dca(0x87)](_0x569181);for(const _0x3d66b2 of(0x0,core_1[_0x379dca(0xa7)])(interface_1[_0x379dca(0x9b)],_0x569181)||[]){typeof(_0x34efa8[_0x3d66b2['propertyKey']]==_0x379dca(0x93))&&(!this['listevent'][_0x3d66b2[_0x379dca(0x97)]]&&(this[_0x379dca(0xac)][_0x3d66b2[_0x379dca(0x97)]]=[]),this[_0x379dca(0xac)][_0x3d66b2[_0x379dca(0x97)]][_0x379dca(0xa9)]({'priority':(_0x3d66b2===null||_0x3d66b2===void 0x0?void 0x0:_0x3d66b2['priority'])||0x0,'throttle':(_0x3d66b2===null||_0x3d66b2===void 0x0?void 0x0:_0x3d66b2[_0x379dca(0x80)])||0x1f4,'resolve':_0x34efa8[_0x3d66b2[_0x379dca(0xae)]][_0x379dca(0xa1)](_0x34efa8),'propertyKey':_0x569181[_0x379dca(0x97)]+'@'+_0x3d66b2[_0x379dca(0xae)]}));}}for(const _0x4632cc in this[_0x379dca(0xac)]){this[_0x379dca(0xac)][_0x4632cc]=(0x0,collect_js_1[_0x379dca(0xb4)])(this[_0x379dca(0xac)][_0x4632cc])[_0x379dca(0x8d)](_0x379dca(0xa3))['all']();}}return _0x4b0da8?this[_0x379dca(0xac)][_0x4b0da8]||[]:this[_0x379dca(0xac)];}async[a4_0x60c8aa(0x85)](_0x4f7b90,..._0x58a928){const _0x1bb305=a4_0x60c8aa;var _0x471baa,_0x4687c6,_0xae74bf,_0x4218c0,_0x5bf93d;const _0x410dc7=''+JSON[_0x1bb305(0x89)](_0x58a928),_0x1a4742=Date['now']();await this[_0x1bb305(0xab)]();for(let _0xd6a974 in this[_0x1bb305(0x86)]){this[_0x1bb305(0x86)][_0xd6a974]<_0x1a4742&&delete this[_0x1bb305(0x86)][_0xd6a974];}for(let _0x3fa43a in(_0x471baa=this[_0x1bb305(0xac)])===null||_0x471baa===void 0x0?void 0x0:_0x471baa[_0x4f7b90]){if(((_0x4687c6=this[_0x1bb305(0xac)][_0x4f7b90])===null||_0x4687c6===void 0x0?void 0x0:_0x4687c6[_0x3fa43a])&&typeof((_0x4218c0=(_0xae74bf=this['listevent'][_0x4f7b90])===null||_0xae74bf===void 0x0?void 0x0:_0xae74bf[_0x3fa43a])===null||_0x4218c0===void 0x0?void 0x0:_0x4218c0[_0x1bb305(0x9f)])=='function'){const _0x443f63=_0x4f7b90+'_'+_0x3fa43a+'@'+_0x410dc7;(this[_0x1bb305(0x86)][_0x443f63]||0x0)<_0x1a4742&&(this['listevent_throttle'][_0x443f63]=_0x1a4742+(((_0x5bf93d=this[_0x1bb305(0xac)][_0x4f7b90][_0x3fa43a])===null||_0x5bf93d===void 0x0?void 0x0:_0x5bf93d[_0x1bb305(0x80)])||0x1f4),await this[_0x1bb305(0xac)][_0x4f7b90][_0x3fa43a][_0x1bb305(0x9f)](..._0x58a928));}}}async[a4_0x60c8aa(0xb2)](_0x4f7ae3,..._0x28bb56){const _0x32237d=a4_0x60c8aa;return await this['getListevent'](),await this[_0x32237d(0x85)](_0x4f7ae3,..._0x28bb56),this['off'](_0x4f7ae3);}async['off'](_0x4f0b29){const _0x5b33c4=a4_0x60c8aa;return await this[_0x5b33c4(0xab)](),this[_0x5b33c4(0xac)][_0x4f0b29]&&delete this[_0x5b33c4(0xac)][_0x4f0b29],!!this['listevent'][_0x4f0b29];}};__decorate([(0x0,core_1[a4_0x60c8aa(0xb3)])(),__metadata('design:type',Object)],EventService['prototype'],a4_0x60c8aa(0x98),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x60c8aa(0xaf)])(a4_0x60c8aa(0x83)),(0x0,core_1['Scope'])(core_1[a4_0x60c8aa(0x84)][a4_0x60c8aa(0x8c)])],EventService),exports[a4_0x60c8aa(0x91)]=EventService;
1
+ const a4_0x48904f=a4_0x4381;(function(_0x4deb6e,_0x3fbc8e){const _0x506a5d=a4_0x4381,_0x2d80e2=_0x4deb6e();while(!![]){try{const _0x505459=parseInt(_0x506a5d(0x12f))/0x1+-parseInt(_0x506a5d(0x11e))/0x2*(parseInt(_0x506a5d(0x130))/0x3)+-parseInt(_0x506a5d(0x129))/0x4*(-parseInt(_0x506a5d(0x126))/0x5)+-parseInt(_0x506a5d(0x132))/0x6+parseInt(_0x506a5d(0x138))/0x7+parseInt(_0x506a5d(0x149))/0x8+-parseInt(_0x506a5d(0x14a))/0x9;if(_0x505459===_0x3fbc8e)break;else _0x2d80e2['push'](_0x2d80e2['shift']());}catch(_0x4baa1e){_0x2d80e2['push'](_0x2d80e2['shift']());}}}(a4_0x2d2b,0x8c88c));const a4_0x21c8ab=(function(){let _0x534460=!![];return function(_0x34f2e6,_0x572ccb){const _0x592aef=_0x534460?function(){const _0x3b6ee7=a4_0x4381;if(_0x572ccb){const _0x3daa8b=_0x572ccb[_0x3b6ee7(0x142)](_0x34f2e6,arguments);return _0x572ccb=null,_0x3daa8b;}}:function(){};return _0x534460=![],_0x592aef;};}()),a4_0x2eace3=a4_0x21c8ab(this,function(){const _0x364df1=a4_0x4381;return a4_0x2eace3['toString']()[_0x364df1(0x147)](_0x364df1(0x146))['toString']()['constructor'](a4_0x2eace3)[_0x364df1(0x147)](_0x364df1(0x146));});function a4_0x4381(_0x37da00,_0x2486e5){_0x37da00=_0x37da00-0x11c;const _0x274a2e=a4_0x2d2b();let _0x2eace3=_0x274a2e[_0x37da00];return _0x2eace3;}a4_0x2eace3();'use strict';var __decorate=this&&this[a4_0x48904f(0x136)]||function(_0x13b9ea,_0x615d77,_0x13cdc9,_0x17f253){const _0x3041be=a4_0x48904f;var _0x1a53dc=arguments[_0x3041be(0x13a)],_0x5c6847=_0x1a53dc<0x3?_0x615d77:_0x17f253===null?_0x17f253=Object['getOwnPropertyDescriptor'](_0x615d77,_0x13cdc9):_0x17f253,_0xc0fba0;if(typeof Reflect===_0x3041be(0x11f)&&typeof Reflect[_0x3041be(0x148)]===_0x3041be(0x11d))_0x5c6847=Reflect[_0x3041be(0x148)](_0x13b9ea,_0x615d77,_0x13cdc9,_0x17f253);else{for(var _0xb585d4=_0x13b9ea[_0x3041be(0x13a)]-0x1;_0xb585d4>=0x0;_0xb585d4--)if(_0xc0fba0=_0x13b9ea[_0xb585d4])_0x5c6847=(_0x1a53dc<0x3?_0xc0fba0(_0x5c6847):_0x1a53dc>0x3?_0xc0fba0(_0x615d77,_0x13cdc9,_0x5c6847):_0xc0fba0(_0x615d77,_0x13cdc9))||_0x5c6847;}return _0x1a53dc>0x3&&_0x5c6847&&Object['defineProperty'](_0x615d77,_0x13cdc9,_0x5c6847),_0x5c6847;},__metadata=this&&this[a4_0x48904f(0x133)]||function(_0x50a741,_0x1c9974){const _0x4fe818=a4_0x48904f;if(typeof Reflect===_0x4fe818(0x11f)&&typeof Reflect['metadata']===_0x4fe818(0x11d))return Reflect[_0x4fe818(0x135)](_0x50a741,_0x1c9974);};Object['defineProperty'](exports,a4_0x48904f(0x124),{'value':!![]}),exports[a4_0x48904f(0x127)]=void 0x0;const collect_js_1=require(a4_0x48904f(0x140)),core_1=require('@midwayjs/core'),core_2=require(a4_0x48904f(0x13e)),interface_1=require('../interface');function a4_0x2d2b(){const _0x223831=['propertyKey','default','now','515663ssnhIO','60LRPocn','design:type','2660322LrAwBy','__metadata','throttle','metadata','__decorate','getListevent','5232052qwakio','EVENT_KEY','length','name','DecoratorManager','all','@midwayjs/core','init','collect.js','listevent','apply','Scope','stringify','listModule','(((.+)+)+)+$','search','decorate','7984384WfWrIT','11310300jHASqE','app','getOwnMetadata','priority','MetadataManager','prototype','function','81296GmjQnC','object','EVENT_ON_KEY','Singleton','off','emit','__esModule','listevent_throttle','1034410XekKZB','EventService','resolve','16MWnfvf','push','Provide'];a4_0x2d2b=function(){return _0x223831;};return a4_0x2d2b();}let EventService=class EventService{constructor(){const _0x5d2f64=a4_0x48904f;this[_0x5d2f64(0x13f)]=![];}async[a4_0x48904f(0x137)](_0xe84a73){const _0x3fbf3c=a4_0x48904f;if(!this[_0x3fbf3c(0x13f)]){this['init']=!![],this[_0x3fbf3c(0x141)]={},this[_0x3fbf3c(0x125)]={};for(const _0x86c273 of core_2[_0x3fbf3c(0x13c)][_0x3fbf3c(0x145)](interface_1[_0x3fbf3c(0x139)])||[]){const _0x409df5=await this[_0x3fbf3c(0x14b)]['getApplicationContext']()['getAsync'](_0x86c273);for(const _0x4e96e8 of core_2[_0x3fbf3c(0x14e)][_0x3fbf3c(0x14c)](interface_1[_0x3fbf3c(0x120)],_0x86c273)||[]){typeof(_0x409df5[_0x4e96e8['propertyKey']]==_0x3fbf3c(0x11d))&&(!this[_0x3fbf3c(0x141)][_0x4e96e8[_0x3fbf3c(0x13b)]]&&(this['listevent'][_0x4e96e8['name']]=[]),this[_0x3fbf3c(0x141)][_0x4e96e8['name']][_0x3fbf3c(0x12a)]({'priority':(_0x4e96e8===null||_0x4e96e8===void 0x0?void 0x0:_0x4e96e8[_0x3fbf3c(0x14d)])||0x0,'throttle':(_0x4e96e8===null||_0x4e96e8===void 0x0?void 0x0:_0x4e96e8[_0x3fbf3c(0x134)])||0x1f4,'resolve':_0x409df5[_0x4e96e8[_0x3fbf3c(0x12c)]]['bind'](_0x409df5),'propertyKey':_0x86c273[_0x3fbf3c(0x13b)]+'@'+_0x4e96e8[_0x3fbf3c(0x12c)]}));}}for(const _0x32af2c in this[_0x3fbf3c(0x141)]){this[_0x3fbf3c(0x141)][_0x32af2c]=(0x0,collect_js_1[_0x3fbf3c(0x12d)])(this[_0x3fbf3c(0x141)][_0x32af2c])['sortByDesc'](_0x3fbf3c(0x14d))[_0x3fbf3c(0x13d)]();}}return _0xe84a73?this[_0x3fbf3c(0x141)][_0xe84a73]||[]:this[_0x3fbf3c(0x141)];}async[a4_0x48904f(0x123)](_0x4045f5,..._0x597f40){const _0x53ca65=a4_0x48904f;var _0x20414b,_0x237057,_0x249eeb,_0x5890be,_0x1676f4;const _0x92b786=''+JSON[_0x53ca65(0x144)](_0x597f40),_0x50662f=Date[_0x53ca65(0x12e)]();await this[_0x53ca65(0x137)]();for(let _0x56fcfe in this[_0x53ca65(0x125)]){this['listevent_throttle'][_0x56fcfe]<_0x50662f&&delete this['listevent_throttle'][_0x56fcfe];}for(let _0x12a6aa in(_0x20414b=this[_0x53ca65(0x141)])===null||_0x20414b===void 0x0?void 0x0:_0x20414b[_0x4045f5]){if(((_0x237057=this[_0x53ca65(0x141)][_0x4045f5])===null||_0x237057===void 0x0?void 0x0:_0x237057[_0x12a6aa])&&typeof((_0x5890be=(_0x249eeb=this['listevent'][_0x4045f5])===null||_0x249eeb===void 0x0?void 0x0:_0x249eeb[_0x12a6aa])===null||_0x5890be===void 0x0?void 0x0:_0x5890be[_0x53ca65(0x128)])=='function'){const _0x445943=_0x4045f5+'_'+_0x12a6aa+'@'+_0x92b786;(this[_0x53ca65(0x125)][_0x445943]||0x0)<_0x50662f&&(this[_0x53ca65(0x125)][_0x445943]=_0x50662f+(((_0x1676f4=this[_0x53ca65(0x141)][_0x4045f5][_0x12a6aa])===null||_0x1676f4===void 0x0?void 0x0:_0x1676f4['throttle'])||0x1f4),await this[_0x53ca65(0x141)][_0x4045f5][_0x12a6aa]['resolve'](..._0x597f40));}}}async['once'](_0x21bfa7,..._0x5c0861){const _0x25a914=a4_0x48904f;return await this['getListevent'](),await this[_0x25a914(0x123)](_0x21bfa7,..._0x5c0861),this[_0x25a914(0x122)](_0x21bfa7);}async[a4_0x48904f(0x122)](_0x6ea638){const _0x24cf39=a4_0x48904f;return await this['getListevent'](),this['listevent'][_0x6ea638]&&delete this[_0x24cf39(0x141)][_0x6ea638],!!this[_0x24cf39(0x141)][_0x6ea638];}};exports[a4_0x48904f(0x127)]=EventService,__decorate([(0x0,core_1['MainApp'])(),__metadata(a4_0x48904f(0x131),Object)],EventService[a4_0x48904f(0x11c)],a4_0x48904f(0x14b),void 0x0),exports['EventService']=EventService=__decorate([(0x0,core_1[a4_0x48904f(0x12b)])('event'),(0x0,core_1[a4_0x48904f(0x143)])(core_1['ScopeEnum'][a4_0x48904f(0x121)])],EventService);
package/package.json CHANGED
@@ -1,26 +1,30 @@
1
1
  {
2
- "name": "@anncic-api/event",
3
- "version": "3.7.49",
4
- "main": "./dist/index.js",
5
- "license": "MIT",
6
- "files": [
7
- "dist"
8
- ],
9
- "publishConfig": {
10
- "access": "public",
11
- "registry": "https://registry.npmjs.org/"
12
- },
13
- "scripts": {
14
- "build2": "tsc",
15
- "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
16
- },
17
- "dependencies": {
18
- "collect.js": "~4.36.1"
19
- },
20
- "devDependencies": {
21
- "@types/node": "20.10.0",
22
- "javascript-obfuscator": "^4.0.2",
23
- "typescript": "^4.9.5"
24
- },
25
- "gitHead": "f709c4b2e911f1331c9817155ae89dbfb0d061d4"
26
- }
2
+ "name": "@anncic-api/event",
3
+ "version": "4.0.0",
4
+ "main": "./dist/index.js",
5
+ "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "dependencies": {
14
+ "collect.js": "^4.36.1"
15
+ },
16
+ "peerDependencies": {
17
+ "@midwayjs/core": "^4.2.6"
18
+ },
19
+ "devDependencies": {
20
+ "@midwayjs/core": "^4.2.6",
21
+ "@types/node": "20.10.0",
22
+ "javascript-obfuscator": "^4.0.2",
23
+ "typescript": "~5.9.3"
24
+ },
25
+ "gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880",
26
+ "scripts": {
27
+ "build2": "tsc",
28
+ "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
29
+ }
30
+ }