@anveroapi/event 0.0.0-stage → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +1 -0
- package/dist/decorator/Event.d.ts +4 -0
- package/dist/decorator/Event.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/interface.d.ts +2 -0
- package/dist/interface.js +1 -0
- package/dist/service/EventService.d.ts +32 -0
- package/dist/service/EventService.js +1 -0
- package/package.json +24 -3
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a0_0xd3e8eb=a0_0x500e;function a0_0x1651(){var _0x29d861=['1178491LshVWq','prototype','__decorate','__esModule','5654955NnKMeU','@midwayjs/core','5692482lEQrcp','Configuration','defineProperty','toString','metadata','decorator','getOwnPropertyDescriptor','32YCoKMm','(((.+)+)+)+$','onReady','design:type','MidwayConfigService','constructor','7652528ZcgUCN','526830WowAKL','function','anvero-api:event','1140980aLYare','search','config','__metadata','63LBfhfF','apply','CustomConfiguration','MidwayDecoratorService','Inject','decorate','object','685302DTybGl'];a0_0x1651=function(){return _0x29d861;};return a0_0x1651();}(function(_0x4f7ff1,_0x225e38){var _0x160822=a0_0x500e,_0x35565d=_0x4f7ff1();while(!![]){try{var _0x4a1736=parseInt(_0x160822(0x17f))/0x1+-parseInt(_0x160822(0x173))/0x2+parseInt(_0x160822(0x170))/0x3*(-parseInt(_0x160822(0x169))/0x4)+parseInt(_0x160822(0x160))/0x5+-parseInt(_0x160822(0x17e))/0x6*(parseInt(_0x160822(0x177))/0x7)+parseInt(_0x160822(0x16f))/0x8+parseInt(_0x160822(0x162))/0x9;if(_0x4a1736===_0x225e38)break;else _0x35565d['push'](_0x35565d['shift']());}catch(_0x220f95){_0x35565d['push'](_0x35565d['shift']());}}}(a0_0x1651,0xda8f7));var a0_0x556ec3=(function(){var _0x23b536=!![];return function(_0x39754e,_0x50d6b2){var _0x571b5c=_0x23b536?function(){var _0x15a182=a0_0x500e;if(_0x50d6b2){var _0x4fa46d=_0x50d6b2[_0x15a182(0x178)](_0x39754e,arguments);return _0x50d6b2=null,_0x4fa46d;}}:function(){};return _0x23b536=![],_0x571b5c;};}()),a0_0x59faff=a0_0x556ec3(this,function(){var _0x1c60be=a0_0x500e;return a0_0x59faff['toString']()[_0x1c60be(0x174)](_0x1c60be(0x16a))[_0x1c60be(0x165)]()[_0x1c60be(0x16e)](a0_0x59faff)[_0x1c60be(0x174)](_0x1c60be(0x16a));});a0_0x59faff();'use strict';var __decorate=this&&this[a0_0xd3e8eb(0x15e)]||function(_0xf2aa5a,_0x37a79e,_0x334efd,_0x391855){var _0x13fcf5=a0_0xd3e8eb,_0x121aaf=arguments['length'],_0xba515f=_0x121aaf<0x3?_0x37a79e:_0x391855===null?_0x391855=Object[_0x13fcf5(0x168)](_0x37a79e,_0x334efd):_0x391855,_0x3604b1;if(typeof Reflect===_0x13fcf5(0x17d)&&typeof Reflect['decorate']==='function')_0xba515f=Reflect[_0x13fcf5(0x17c)](_0xf2aa5a,_0x37a79e,_0x334efd,_0x391855);else{for(var _0x505d64=_0xf2aa5a['length']-0x1;_0x505d64>=0x0;_0x505d64--)if(_0x3604b1=_0xf2aa5a[_0x505d64])_0xba515f=(_0x121aaf<0x3?_0x3604b1(_0xba515f):_0x121aaf>0x3?_0x3604b1(_0x37a79e,_0x334efd,_0xba515f):_0x3604b1(_0x37a79e,_0x334efd))||_0xba515f;}return _0x121aaf>0x3&&_0xba515f&&Object[_0x13fcf5(0x164)](_0x37a79e,_0x334efd,_0xba515f),_0xba515f;},__metadata=this&&this[a0_0xd3e8eb(0x176)]||function(_0x7b7bc6,_0x75870d){var _0x3f90af=a0_0xd3e8eb;if(typeof Reflect===_0x3f90af(0x17d)&&typeof Reflect[_0x3f90af(0x166)]===_0x3f90af(0x171))return Reflect[_0x3f90af(0x166)](_0x7b7bc6,_0x75870d);};Object[a0_0xd3e8eb(0x164)](exports,a0_0xd3e8eb(0x15f),{'value':!![]}),exports[a0_0xd3e8eb(0x179)]=void 0x0;const core_1=require(a0_0xd3e8eb(0x161)),core_2=require(a0_0xd3e8eb(0x161));let CustomConfiguration=class CustomConfiguration{async[a0_0xd3e8eb(0x16b)](){}};function a0_0x500e(_0x13728a,_0x47ae27){_0x13728a=_0x13728a-0x15e;var _0x10fadb=a0_0x1651();var _0x59faff=_0x10fadb[_0x13728a];return _0x59faff;}exports[a0_0xd3e8eb(0x179)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0xd3e8eb(0x17b)])(),__metadata(a0_0xd3e8eb(0x16c),core_2[a0_0xd3e8eb(0x16d)])],CustomConfiguration[a0_0xd3e8eb(0x180)],a0_0xd3e8eb(0x175),void 0x0),__decorate([(0x0,core_1[a0_0xd3e8eb(0x17b)])(),__metadata(a0_0xd3e8eb(0x16c),core_2[a0_0xd3e8eb(0x17a)])],CustomConfiguration['prototype'],a0_0xd3e8eb(0x167),void 0x0),exports[a0_0xd3e8eb(0x179)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0xd3e8eb(0x163)])({'conflictCheck':![],'namespace':a0_0xd3e8eb(0x172)})],CustomConfiguration);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a1_0x1dd598=a1_0x373b;(function(_0x25ca43,_0x19ff71){const _0x188f5e=a1_0x373b,_0x457a34=_0x25ca43();while(!![]){try{const _0x28e19b=-parseInt(_0x188f5e(0x1f8))/0x1+-parseInt(_0x188f5e(0x1ff))/0x2+-parseInt(_0x188f5e(0x202))/0x3+parseInt(_0x188f5e(0x1f5))/0x4*(parseInt(_0x188f5e(0x208))/0x5)+parseInt(_0x188f5e(0x205))/0x6*(-parseInt(_0x188f5e(0x203))/0x7)+-parseInt(_0x188f5e(0x201))/0x8+parseInt(_0x188f5e(0x1fd))/0x9*(parseInt(_0x188f5e(0x209))/0xa);if(_0x28e19b===_0x19ff71)break;else _0x457a34['push'](_0x457a34['shift']());}catch(_0xda749e){_0x457a34['push'](_0x457a34['shift']());}}}(a1_0x529a,0x9fe22));const a1_0x15d50c=(function(){let _0x5f58c6=!![];return function(_0x2e1f41,_0x34ffa7){const _0x175eba=_0x5f58c6?function(){const _0x2c43fe=a1_0x373b;if(_0x34ffa7){const _0x5d485c=_0x34ffa7[_0x2c43fe(0x1f7)](_0x2e1f41,arguments);return _0x34ffa7=null,_0x5d485c;}}:function(){};return _0x5f58c6=![],_0x175eba;};}()),a1_0x43dee8=a1_0x15d50c(this,function(){const _0x40a566=a1_0x373b;return a1_0x43dee8[_0x40a566(0x1f9)]()[_0x40a566(0x1f6)](_0x40a566(0x1fe))[_0x40a566(0x1f9)]()['constructor'](a1_0x43dee8)[_0x40a566(0x1f6)]('(((.+)+)+)+$');});a1_0x43dee8();function a1_0x529a(){const _0x143460=['1356vVQhEa','__esModule','defineProperty','2120bHXxWI','8810rKoAtP','Event','@midwayjs/core','EVENT_KEY','Provide','7404OteDyL','search','apply','478676kqxXim','toString','attachClassMetadata','saveModule','ScopeEnum','39249bvZDij','(((.+)+)+)+$','2603092OIeHDc','EVENT_ON_KEY','5925960NxbHMp','946776nXpKZD','35168xIKyDf','../interface'];a1_0x529a=function(){return _0x143460;};return a1_0x529a();}'use strict';Object[a1_0x1dd598(0x207)](exports,a1_0x1dd598(0x206),{'value':!![]}),exports[a1_0x1dd598(0x20a)]=Event;const core_1=require(a1_0x1dd598(0x1f2)),interface_1=require(a1_0x1dd598(0x204));function Event(){return _0x55fbe7=>{const _0x3815c4=a1_0x373b;(0x0,core_1[_0x3815c4(0x1f4)])()(_0x55fbe7),(0x0,core_1[_0x3815c4(0x1fb)])(interface_1[_0x3815c4(0x1f3)],_0x55fbe7),(0x0,core_1['Scope'])(core_1[_0x3815c4(0x1fc)]['Request'],{'allowDowngrade':!![]})(_0x55fbe7);};}function a1_0x373b(_0x2b5f3e,_0x445eaf){_0x2b5f3e=_0x2b5f3e-0x1f2;const _0x5f1395=a1_0x529a();let _0x43dee8=_0x5f1395[_0x2b5f3e];return _0x43dee8;}Event['On']=function(_0xa59b37,_0x22d50d=0x0,_0x542ea1=0x1f4){return(_0x5d46c8,_0x45e56d,_0x45b337)=>{const _0x1aa647=a1_0x373b;return(0x0,core_1[_0x1aa647(0x1fa)])(interface_1[_0x1aa647(0x200)],{'name':_0xa59b37,'priority':_0x22d50d,'propertyKey':_0x45e56d,'descriptor':_0x45b337,'throttle':_0x542ea1},_0x5d46c8),_0x45b337;};};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a2_0x42aeb6=a2_0x2f9d;function a2_0x5af5(){var _0x39c8e4=['./service/EventService','1073798cqxcll','Event','996TtEhMR','__esModule','Configuration','787440FCTMbx','./decorator/Event','4306020rPHsdM','apply','8vLZlsD','search','toString','40nAXUFr','./configuration','1hkgeZT','EventService','2435flzAoW','defineProperty','constructor','10054JwyhpL','2644362JDfbmm','28nhXyxQ','776037SnRjDk'];a2_0x5af5=function(){return _0x39c8e4;};return a2_0x5af5();}(function(_0x5e3ae4,_0x5be2e3){var _0xb4bd48=a2_0x2f9d,_0x1887d0=_0x5e3ae4();while(!![]){try{var _0x8614af=-parseInt(_0xb4bd48(0xed))/0x1*(parseInt(_0xb4bd48(0xda))/0x2)+parseInt(_0xb4bd48(0xdd))/0x3+parseInt(_0xb4bd48(0xe1))/0x4*(parseInt(_0xb4bd48(0xd7))/0x5)+parseInt(_0xb4bd48(0xe4))/0x6*(parseInt(_0xb4bd48(0xdc))/0x7)+-parseInt(_0xb4bd48(0xe8))/0x8*(-parseInt(_0xb4bd48(0xdb))/0x9)+parseInt(_0xb4bd48(0xeb))/0xa*(-parseInt(_0xb4bd48(0xdf))/0xb)+-parseInt(_0xb4bd48(0xe6))/0xc;if(_0x8614af===_0x5be2e3)break;else _0x1887d0['push'](_0x1887d0['shift']());}catch(_0xf3ecfc){_0x1887d0['push'](_0x1887d0['shift']());}}}(a2_0x5af5,0x6c7e2));var a2_0x4e83e5=(function(){var _0x1065d4=!![];return function(_0x20d163,_0x1be1fb){var _0x45ea9d=_0x1065d4?function(){var _0x3ae65c=a2_0x2f9d;if(_0x1be1fb){var _0x3a8390=_0x1be1fb[_0x3ae65c(0xe7)](_0x20d163,arguments);return _0x1be1fb=null,_0x3a8390;}}:function(){};return _0x1065d4=![],_0x45ea9d;};}()),a2_0x2b4781=a2_0x4e83e5(this,function(){var _0x4204a6=a2_0x2f9d;return a2_0x2b4781[_0x4204a6(0xea)]()[_0x4204a6(0xe9)]('(((.+)+)+)+$')[_0x4204a6(0xea)]()[_0x4204a6(0xd9)](a2_0x2b4781)[_0x4204a6(0xe9)]('(((.+)+)+)+$');});a2_0x2b4781();'use strict';Object[a2_0x42aeb6(0xd8)](exports,a2_0x42aeb6(0xe2),{'value':!![]}),exports[a2_0x42aeb6(0xe3)]=exports['EventService']=exports[a2_0x42aeb6(0xe0)]=void 0x0;var Event_1=require(a2_0x42aeb6(0xe5));function a2_0x2f9d(_0x2dc394,_0x5bf88b){_0x2dc394=_0x2dc394-0xd7;var _0x1b01a8=a2_0x5af5();var _0x2b4781=_0x1b01a8[_0x2dc394];return _0x2b4781;}Object[a2_0x42aeb6(0xd8)](exports,a2_0x42aeb6(0xe0),{'enumerable':!![],'get':function(){var _0x48a5d8=a2_0x42aeb6;return Event_1[_0x48a5d8(0xe0)];}});var EventService_1=require(a2_0x42aeb6(0xde));Object[a2_0x42aeb6(0xd8)](exports,a2_0x42aeb6(0xee),{'enumerable':!![],'get':function(){var _0x1ed621=a2_0x42aeb6;return EventService_1[_0x1ed621(0xee)];}});var configuration_1=require(a2_0x42aeb6(0xec));Object[a2_0x42aeb6(0xd8)](exports,a2_0x42aeb6(0xe3),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a3_0x1dca09=a3_0x4354;(function(_0x1e6b58,_0x38e02f){var _0x53f22c=a3_0x4354,_0x1bd71c=_0x1e6b58();while(!![]){try{var _0x46aad3=-parseInt(_0x53f22c(0xd7))/0x1*(-parseInt(_0x53f22c(0xda))/0x2)+parseInt(_0x53f22c(0xd4))/0x3+-parseInt(_0x53f22c(0xdf))/0x4*(parseInt(_0x53f22c(0xe8))/0x5)+parseInt(_0x53f22c(0xd6))/0x6*(-parseInt(_0x53f22c(0xe2))/0x7)+parseInt(_0x53f22c(0xd9))/0x8+-parseInt(_0x53f22c(0xe5))/0x9*(-parseInt(_0x53f22c(0xe1))/0xa)+parseInt(_0x53f22c(0xde))/0xb*(-parseInt(_0x53f22c(0xdc))/0xc);if(_0x46aad3===_0x38e02f)break;else _0x1bd71c['push'](_0x1bd71c['shift']());}catch(_0x4ee77e){_0x1bd71c['push'](_0x1bd71c['shift']());}}}(a3_0x5e7d,0x6d3c7));var a3_0x52651e=(function(){var _0x1396b2=!![];return function(_0x3f59be,_0x2c0706){var _0xe00f0b=_0x1396b2?function(){if(_0x2c0706){var _0x5240ed=_0x2c0706['apply'](_0x3f59be,arguments);return _0x2c0706=null,_0x5240ed;}}:function(){};return _0x1396b2=![],_0xe00f0b;};}()),a3_0x44cade=a3_0x52651e(this,function(){var _0x27b906=a3_0x4354;return a3_0x44cade['toString']()[_0x27b906(0xdd)]('(((.+)+)+)+$')[_0x27b906(0xd5)]()[_0x27b906(0xe7)](a3_0x44cade)[_0x27b906(0xdd)](_0x27b906(0xd8));});a3_0x44cade();function a3_0x5e7d(){var _0xa9f29=['10QiGKLQ','781984sIgGGd','anvero-api:event:on','__esModule','5756301DixgNS','EVENT_ON_KEY','constructor','1229110SOvbbB','2512725wcfXzG','toString','18ozVBwh','3vpKukZ','(((.+)+)+)+$','5064968CAcMxt','435722unExhw','defineProperty','8436WlNCpT','search','23309wZmxGM','8ZerKYR','anvero-api:event'];a3_0x5e7d=function(){return _0xa9f29;};return a3_0x5e7d();}'use strict';function a3_0x4354(_0x1d4092,_0xcb308){_0x1d4092=_0x1d4092-0xd4;var _0xce3069=a3_0x5e7d();var _0x44cade=_0xce3069[_0x1d4092];return _0x44cade;}Object[a3_0x1dca09(0xdb)](exports,a3_0x1dca09(0xe4),{'value':!![]}),exports[a3_0x1dca09(0xe6)]=exports['EVENT_KEY']=void 0x0,exports['EVENT_KEY']=a3_0x1dca09(0xe0),exports[a3_0x1dca09(0xe6)]=a3_0x1dca09(0xe3);
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a4_0x3f56c0=a4_0x5ada;function a4_0x17a4(){const _0x5c790=['310vKUooj','all','apply','203517NftGrB','272888WldOCE','bind','object','sortByDesc','374cBKxAW','priority','EventService','__esModule','throttle','name','6cPHGJt','propertyKey','emit','__decorate','listevent_throttle','design:type','event','off','Scope','2550265jHOGHF','getClassMetadata','3674808ZJDClE','search','__metadata','listevent','App','length','ScopeEnum','stringify','2748Vtjpxy','318765EIfysm','init','metadata','resolve','now','(((.+)+)+)+$','decorate','Singleton','getListevent','prototype','getApplicationContext','@midwayjs/core','defineProperty','getOwnPropertyDescriptor','../interface','4241503HHHlSB','EVENT_KEY','function'];a4_0x17a4=function(){return _0x5c790;};return a4_0x17a4();}(function(_0x380d9e,_0x3f8413){const _0x1e46af=a4_0x5ada,_0x18bcc1=_0x380d9e();while(!![]){try{const _0x35d56f=-parseInt(_0x1e46af(0x1bc))/0x1*(-parseInt(_0x1e46af(0x1a3))/0x2)+parseInt(_0x1e46af(0x1bd))/0x3+-parseInt(_0x1e46af(0x1b4))/0x4+-parseInt(_0x1e46af(0x1b2))/0x5+-parseInt(_0x1e46af(0x1a9))/0x6*(-parseInt(_0x1e46af(0x198))/0x7)+-parseInt(_0x1e46af(0x19f))/0x8+-parseInt(_0x1e46af(0x19e))/0x9*(-parseInt(_0x1e46af(0x19b))/0xa);if(_0x35d56f===_0x3f8413)break;else _0x18bcc1['push'](_0x18bcc1['shift']());}catch(_0x386cbd){_0x18bcc1['push'](_0x18bcc1['shift']());}}}(a4_0x17a4,0x71545));const a4_0x5a872d=(function(){let _0x2e76d0=!![];return function(_0x4a732f,_0x1cbb56){const _0x2fa91f=_0x2e76d0?function(){const _0x33ec96=a4_0x5ada;if(_0x1cbb56){const _0x2b0f1b=_0x1cbb56[_0x33ec96(0x19d)](_0x4a732f,arguments);return _0x1cbb56=null,_0x2b0f1b;}}:function(){};return _0x2e76d0=![],_0x2fa91f;};}()),a4_0x2ba4a8=a4_0x5a872d(this,function(){const _0x21acf2=a4_0x5ada;return a4_0x2ba4a8['toString']()[_0x21acf2(0x1b5)](_0x21acf2(0x18e))['toString']()['constructor'](a4_0x2ba4a8)[_0x21acf2(0x1b5)](_0x21acf2(0x18e));});a4_0x2ba4a8();'use strict';var __decorate=this&&this[a4_0x3f56c0(0x1ac)]||function(_0x556dcf,_0xde4f0b,_0x10f7c4,_0x379c07){const _0x152b56=a4_0x3f56c0;var _0x1e16f3=arguments['length'],_0x59d429=_0x1e16f3<0x3?_0xde4f0b:_0x379c07===null?_0x379c07=Object[_0x152b56(0x196)](_0xde4f0b,_0x10f7c4):_0x379c07,_0x4591d5;if(typeof Reflect===_0x152b56(0x1a1)&&typeof Reflect[_0x152b56(0x18f)]==='function')_0x59d429=Reflect[_0x152b56(0x18f)](_0x556dcf,_0xde4f0b,_0x10f7c4,_0x379c07);else{for(var _0x56a8ab=_0x556dcf[_0x152b56(0x1b9)]-0x1;_0x56a8ab>=0x0;_0x56a8ab--)if(_0x4591d5=_0x556dcf[_0x56a8ab])_0x59d429=(_0x1e16f3<0x3?_0x4591d5(_0x59d429):_0x1e16f3>0x3?_0x4591d5(_0xde4f0b,_0x10f7c4,_0x59d429):_0x4591d5(_0xde4f0b,_0x10f7c4))||_0x59d429;}return _0x1e16f3>0x3&&_0x59d429&&Object[_0x152b56(0x195)](_0xde4f0b,_0x10f7c4,_0x59d429),_0x59d429;},__metadata=this&&this[a4_0x3f56c0(0x1b6)]||function(_0x4899d4,_0x1f934e){const _0x2ed014=a4_0x3f56c0;if(typeof Reflect===_0x2ed014(0x1a1)&&typeof Reflect[_0x2ed014(0x1bf)]==='function')return Reflect['metadata'](_0x4899d4,_0x1f934e);};Object[a4_0x3f56c0(0x195)](exports,a4_0x3f56c0(0x1a6),{'value':!![]}),exports[a4_0x3f56c0(0x1a5)]=void 0x0;const collect_js_1=require('collect.js'),core_1=require(a4_0x3f56c0(0x194)),interface_1=require(a4_0x3f56c0(0x197));let EventService=class EventService{constructor(){const _0x41c0cc=a4_0x3f56c0;this[_0x41c0cc(0x1be)]=![];}async[a4_0x3f56c0(0x191)](_0x1db441){const _0x35935b=a4_0x3f56c0;if(!this['init']){this['init']=!![],this[_0x35935b(0x1b7)]={},this[_0x35935b(0x1ad)]={};for(const _0x4becf8 of(0x0,core_1['listModule'])(interface_1[_0x35935b(0x199)])||[]){const _0x8bd11e=await this['app'][_0x35935b(0x193)]()['getAsync'](_0x4becf8);for(const _0x206cd6 of(0x0,core_1[_0x35935b(0x1b3)])(interface_1['EVENT_ON_KEY'],_0x4becf8)||[]){typeof(_0x8bd11e[_0x206cd6[_0x35935b(0x1aa)]]==_0x35935b(0x19a))&&(!this[_0x35935b(0x1b7)][_0x206cd6['name']]&&(this[_0x35935b(0x1b7)][_0x206cd6['name']]=[]),this[_0x35935b(0x1b7)][_0x206cd6[_0x35935b(0x1a8)]]['push']({'priority':(_0x206cd6===null||_0x206cd6===void 0x0?void 0x0:_0x206cd6[_0x35935b(0x1a4)])||0x0,'throttle':(_0x206cd6===null||_0x206cd6===void 0x0?void 0x0:_0x206cd6[_0x35935b(0x1a7)])||0x1f4,'resolve':_0x8bd11e[_0x206cd6[_0x35935b(0x1aa)]][_0x35935b(0x1a0)](_0x8bd11e),'propertyKey':_0x4becf8[_0x35935b(0x1a8)]+'@'+_0x206cd6[_0x35935b(0x1aa)]}));}}for(const _0x1924f2 in this[_0x35935b(0x1b7)]){this[_0x35935b(0x1b7)][_0x1924f2]=(0x0,collect_js_1['default'])(this['listevent'][_0x1924f2])[_0x35935b(0x1a2)](_0x35935b(0x1a4))[_0x35935b(0x19c)]();}}return _0x1db441?this[_0x35935b(0x1b7)][_0x1db441]||[]:this['listevent'];}async[a4_0x3f56c0(0x1ab)](_0x13b8c7,..._0x555e5f){const _0x59374d=a4_0x3f56c0;var _0x4e5332,_0xc53ccc,_0x6753b5,_0x5e18fb,_0x4f1361;const _0x2937ed=''+JSON[_0x59374d(0x1bb)](_0x555e5f),_0x2f3501=Date[_0x59374d(0x18d)]();await this[_0x59374d(0x191)]();for(let _0x203da8 in this['listevent_throttle']){this[_0x59374d(0x1ad)][_0x203da8]<_0x2f3501&&delete this[_0x59374d(0x1ad)][_0x203da8];}for(let _0x1c44bd in(_0x4e5332=this['listevent'])===null||_0x4e5332===void 0x0?void 0x0:_0x4e5332[_0x13b8c7]){if(((_0xc53ccc=this['listevent'][_0x13b8c7])===null||_0xc53ccc===void 0x0?void 0x0:_0xc53ccc[_0x1c44bd])&&typeof((_0x5e18fb=(_0x6753b5=this[_0x59374d(0x1b7)][_0x13b8c7])===null||_0x6753b5===void 0x0?void 0x0:_0x6753b5[_0x1c44bd])===null||_0x5e18fb===void 0x0?void 0x0:_0x5e18fb[_0x59374d(0x1c0)])==_0x59374d(0x19a)){const _0x3851af=_0x13b8c7+'_'+_0x1c44bd+'@'+_0x2937ed;(this[_0x59374d(0x1ad)][_0x3851af]||0x0)<_0x2f3501&&(this[_0x59374d(0x1ad)][_0x3851af]=_0x2f3501+(((_0x4f1361=this[_0x59374d(0x1b7)][_0x13b8c7][_0x1c44bd])===null||_0x4f1361===void 0x0?void 0x0:_0x4f1361[_0x59374d(0x1a7)])||0x1f4),await this[_0x59374d(0x1b7)][_0x13b8c7][_0x1c44bd]['resolve'](..._0x555e5f));}}}async['once'](_0x5e745e,..._0x2d305b){const _0x20a7a9=a4_0x3f56c0;return await this[_0x20a7a9(0x191)](),await this[_0x20a7a9(0x1ab)](_0x5e745e,..._0x2d305b),this[_0x20a7a9(0x1b0)](_0x5e745e);}async['off'](_0x5535ff){const _0x31657a=a4_0x3f56c0;return await this[_0x31657a(0x191)](),this[_0x31657a(0x1b7)][_0x5535ff]&&delete this[_0x31657a(0x1b7)][_0x5535ff],!!this[_0x31657a(0x1b7)][_0x5535ff];}};function a4_0x5ada(_0x35cefd,_0x3ad698){_0x35cefd=_0x35cefd-0x18d;const _0x389a54=a4_0x17a4();let _0x2ba4a8=_0x389a54[_0x35cefd];return _0x2ba4a8;}exports[a4_0x3f56c0(0x1a5)]=EventService,__decorate([(0x0,core_1[a4_0x3f56c0(0x1b8)])(),__metadata(a4_0x3f56c0(0x1ae),Object)],EventService[a4_0x3f56c0(0x192)],'app',void 0x0),exports[a4_0x3f56c0(0x1a5)]=EventService=__decorate([(0x0,core_1['Provide'])(a4_0x3f56c0(0x1af)),(0x0,core_1[a4_0x3f56c0(0x1b1)])(core_1[a4_0x3f56c0(0x1ba)][a4_0x3f56c0(0x190)])],EventService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anveroapi/event",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "3.0.2",
|
|
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
|
+
"@midwayjs/core": "^3.17.1",
|
|
15
|
+
"collect.js": "^4.36.1"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "20.10.0",
|
|
19
|
+
"javascript-obfuscator": "^4.0.2",
|
|
20
|
+
"typescript": "~5.9.3"
|
|
21
|
+
},
|
|
22
|
+
"gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build2": "tsc",
|
|
25
|
+
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
26
|
+
}
|
|
6
27
|
}
|
package/README.md
DELETED