@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.
- package/dist/configuration.d.ts +6 -6
- package/dist/configuration.js +1 -1
- package/dist/decorator/Event.d.ts +4 -4
- package/dist/decorator/Event.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +2 -2
- package/dist/interface.js +1 -1
- package/dist/service/EventService.d.ts +32 -32
- package/dist/service/EventService.js +1 -1
- package/package.json +5 -5
package/dist/configuration.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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
|
+
}
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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
|
|
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)];}});
|
package/dist/interface.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
+
"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
|
-
"
|
|
15
|
-
"
|
|
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": {
|