@anncic-api/event 1.3.5 → 1.3.9
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.js +1 -1
- package/dist/decorator/Event.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/dist/service/EventService.js +1 -1
- package/package.json +2 -2
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x3d9ce4=a0_0x2e2a;function a0_0x2e2a(_0x4b419e,_0xd274f8){var _0x3e01e7=a0_0x3e01();return a0_0x2e2a=function(_0x2e2aa8,_0x14daa4){_0x2e2aa8=_0x2e2aa8-0x8a;var _0x1def74=_0x3e01e7[_0x2e2aa8];return _0x1def74;},a0_0x2e2a(_0x4b419e,_0xd274f8);}(function(_0x3e2e63,_0x13e8cb){var _0x27ca6a=a0_0x2e2a,_0x424cf1=_0x3e2e63();while(!![]){try{var _0x101f4d=parseInt(_0x27ca6a(0x95))/0x1*(-parseInt(_0x27ca6a(0xa4))/0x2)+parseInt(_0x27ca6a(0x8b))/0x3*(-parseInt(_0x27ca6a(0x9e))/0x4)+-parseInt(_0x27ca6a(0x96))/0x5+parseInt(_0x27ca6a(0x9b))/0x6+parseInt(_0x27ca6a(0x90))/0x7+-parseInt(_0x27ca6a(0x94))/0x8+parseInt(_0x27ca6a(0x8c))/0x9*(parseInt(_0x27ca6a(0xa1))/0xa);if(_0x101f4d===_0x13e8cb)break;else _0x424cf1['push'](_0x424cf1['shift']());}catch(_0x26c988){_0x424cf1['push'](_0x424cf1['shift']());}}}(a0_0x3e01,0xb93d8));var __decorate=this&&this['__decorate']||function(_0xa281ad,_0x3733d5,_0x126a36,_0x454d3f){var _0xddfdf=a0_0x2e2a,_0x16c78b=arguments[_0xddfdf(0x9d)],_0x117a60=_0x16c78b<0x3?_0x3733d5:_0x454d3f===null?_0x454d3f=Object[_0xddfdf(0x9f)](_0x3733d5,_0x126a36):_0x454d3f,_0x23a5e7;if(typeof Reflect===_0xddfdf(0x99)&&typeof Reflect[_0xddfdf(0x97)]===_0xddfdf(0x8d))_0x117a60=Reflect[_0xddfdf(0x97)](_0xa281ad,_0x3733d5,_0x126a36,_0x454d3f);else{for(var _0x540652=_0xa281ad[_0xddfdf(0x9d)]-0x1;_0x540652>=0x0;_0x540652--)if(_0x23a5e7=_0xa281ad[_0x540652])_0x117a60=(_0x16c78b<0x3?_0x23a5e7(_0x117a60):_0x16c78b>0x3?_0x23a5e7(_0x3733d5,_0x126a36,_0x117a60):_0x23a5e7(_0x3733d5,_0x126a36))||_0x117a60;}return _0x16c78b>0x3&&_0x117a60&&Object[_0xddfdf(0xa5)](_0x3733d5,_0x126a36,_0x117a60),_0x117a60;},__metadata=this&&this[a0_0x3d9ce4(0x98)]||function(_0x4a00dc,_0x3fb972){var _0x54cc65=a0_0x3d9ce4;if(typeof Reflect===_0x54cc65(0x99)&&typeof Reflect[_0x54cc65(0xa6)]===_0x54cc65(0x8d))return Reflect[_0x54cc65(0xa6)](_0x4a00dc,_0x3fb972);};Object['defineProperty'](exports,a0_0x3d9ce4(0x9c),{'value':!![]}),exports[a0_0x3d9ce4(0x8e)]=void 0x0;const core_1=require(a0_0x3d9ce4(0x91)),core_2=require(a0_0x3d9ce4(0x91));let CustomConfiguration=class CustomConfiguration{async[a0_0x3d9ce4(0x92)](){}};function a0_0x3e01(){var _0x5111ed=['6981310zxcudz','decorate','__metadata','object','MidwayDecoratorService','8851200LQizbQ','__esModule','length','8dVtnMY','getOwnPropertyDescriptor','MidwayConfigService','2867630ZXLQXu','design:type','config','184iEPFCI','defineProperty','metadata','decorator','2101548WOdsfc','126ZHAMfN','function','CustomConfiguration','Configuration','76832XSngcg','@midwayjs/core','onReady','Inject','6292320JfhtOh','12590WBfrpq'];a0_0x3e01=function(){return _0x5111ed;};return a0_0x3e01();}__decorate([(0x0,core_1[a0_0x3d9ce4(0x93)])(),__metadata(a0_0x3d9ce4(0xa2),core_2[a0_0x3d9ce4(0xa0)])],CustomConfiguration['prototype'],a0_0x3d9ce4(0xa3),void 0x0),__decorate([(0x0,core_1[a0_0x3d9ce4(0x93)])(),__metadata(a0_0x3d9ce4(0xa2),core_2[a0_0x3d9ce4(0x9a)])],CustomConfiguration['prototype'],a0_0x3d9ce4(0x8a),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x3d9ce4(0x8f)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x3d9ce4(0x8e)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a1_0x419ecf=a1_0x1821;function a1_0x5326(){const _0xe8cbaf=['585mUAdEq','1185498wHQuQY','defineProperty','3030665VLMlac','Request','2921429bGGTHc','1329498qTwFkA','66IIskgo','attachClassMetadata','EVENT_ON_KEY','15492vyddTd','525586oYUVxn','../interface','223432dwXoCx','ScopeEnum','EVENT_KEY'];a1_0x5326=function(){return _0xe8cbaf;};return a1_0x5326();}(function(_0x45c71b,_0x263ca4){const _0xfd389e=a1_0x1821,_0x21a359=_0x45c71b();while(!![]){try{const _0x3ee22d=-parseInt(_0xfd389e(0x183))/0x1+-parseInt(_0xfd389e(0x189))/0x2+parseInt(_0xfd389e(0x17f))/0x3*(parseInt(_0xfd389e(0x182))/0x4)+-parseInt(_0xfd389e(0x18b))/0x5+-parseInt(_0xfd389e(0x18e))/0x6+parseInt(_0xfd389e(0x18d))/0x7+-parseInt(_0xfd389e(0x185))/0x8*(-parseInt(_0xfd389e(0x188))/0x9);if(_0x3ee22d===_0x263ca4)break;else _0x21a359['push'](_0x21a359['shift']());}catch(_0x17c7ae){_0x21a359['push'](_0x21a359['shift']());}}}(a1_0x5326,0x5acaf));Object[a1_0x419ecf(0x18a)](exports,'__esModule',{'value':!![]}),exports['Event']=void 0x0;function a1_0x1821(_0x3cab35,_0x4524b9){const _0x53262a=a1_0x5326();return a1_0x1821=function(_0x1821cc,_0x3f1059){_0x1821cc=_0x1821cc-0x17f;let _0x3784f6=_0x53262a[_0x1821cc];return _0x3784f6;},a1_0x1821(_0x3cab35,_0x4524b9);}const core_1=require('@midwayjs/core'),interface_1=require(a1_0x419ecf(0x184));function Event(){return _0x5d0401=>{const _0xd756f5=a1_0x1821;(0x0,core_1['Provide'])()(_0x5d0401),(0x0,core_1['saveModule'])(interface_1[_0xd756f5(0x187)],_0x5d0401),(0x0,core_1['Scope'])(core_1[_0xd756f5(0x186)][_0xd756f5(0x18c)],{'allowDowngrade':!![]})(_0x5d0401);};}exports['Event']=Event,Event['On']=function(_0x4bfd4a,_0x13b1c5=0x0){return(_0x3c2e55,_0x4c6ca3,_0x1da93f)=>{const _0x1cad14=a1_0x1821;return(0x0,core_1[_0x1cad14(0x180)])(interface_1[_0x1cad14(0x181)],{'name':_0x4bfd4a,'priority':_0x13b1c5,'propertyKey':_0x4c6ca3,'descriptor':_0x1da93f},_0x3c2e55),_0x1da93f;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a2_0x3f02(){var _0xc68ba7=['2135qGwKNu','1557LFdFBX','./service/EventService','1269805bBruif','691167cxkqOJ','1446LTyYlx','defineProperty','EventService','__esModule','27036nETngH','10664CTbDEs','Configuration','954964OkJWnD','./configuration','Event','486570oZhKBk'];a2_0x3f02=function(){return _0xc68ba7;};return a2_0x3f02();}var a2_0x24d4c9=a2_0xfe51;(function(_0x1629db,_0x483233){var _0x5a4e46=a2_0xfe51,_0x244f49=_0x1629db();while(!![]){try{var _0x547917=-parseInt(_0x5a4e46(0x71))/0x1+parseInt(_0x5a4e46(0x77))/0x2+parseInt(_0x5a4e46(0x7c))/0x3+parseInt(_0x5a4e46(0x74))/0x4+-parseInt(_0x5a4e46(0x7b))/0x5+parseInt(_0x5a4e46(0x7d))/0x6*(-parseInt(_0x5a4e46(0x78))/0x7)+-parseInt(_0x5a4e46(0x72))/0x8*(parseInt(_0x5a4e46(0x79))/0x9);if(_0x547917===_0x483233)break;else _0x244f49['push'](_0x244f49['shift']());}catch(_0x1c1c7d){_0x244f49['push'](_0x244f49['shift']());}}}(a2_0x3f02,0x1f148));Object['defineProperty'](exports,a2_0x24d4c9(0x70),{'value':!![]}),exports[a2_0x24d4c9(0x73)]=exports[a2_0x24d4c9(0x6f)]=exports[a2_0x24d4c9(0x76)]=void 0x0;var Event_1=require('./decorator/Event');function a2_0xfe51(_0x466c52,_0x5893ce){var _0x3f02dd=a2_0x3f02();return a2_0xfe51=function(_0xfe51d6,_0x2e4245){_0xfe51d6=_0xfe51d6-0x6e;var _0x4fcc5d=_0x3f02dd[_0xfe51d6];return _0x4fcc5d;},a2_0xfe51(_0x466c52,_0x5893ce);}Object[a2_0x24d4c9(0x6e)](exports,a2_0x24d4c9(0x76),{'enumerable':!![],'get':function(){var _0x501c34=a2_0x24d4c9;return Event_1[_0x501c34(0x76)];}});var EventService_1=require(a2_0x24d4c9(0x7a));Object['defineProperty'](exports,'EventService',{'enumerable':!![],'get':function(){var _0x4983a1=a2_0x24d4c9;return EventService_1[_0x4983a1(0x6f)];}});var configuration_1=require(a2_0x24d4c9(0x75));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x2e9001=a3_0x3256;function a3_0x3256(_0x3d532b,_0x372e36){var _0x3b4930=a3_0x3b49();return a3_0x3256=function(_0x32565e,_0xa07cb4){_0x32565e=_0x32565e-0xd3;var _0x2011ac=_0x3b4930[_0x32565e];return _0x2011ac;},a3_0x3256(_0x3d532b,_0x372e36);}function a3_0x3b49(){var _0x29e4d4=['1618562aMFfwY','8hZlmkw','10038392oJAqLu','__esModule','2801308iNqiXm','anncic-api:event:on','96tkIojS','364082qzpqZU','anncic-api:event','5kGEClg','EVENT_ON_KEY','defineProperty','129550yhUrqF','429816nTCItO','234UurECq','3sHHMnb','9020564PVBPfb','EVENT_KEY'];a3_0x3b49=function(){return _0x29e4d4;};return a3_0x3b49();}(function(_0x1426e3,_0x46b6c3){var _0x3f768a=a3_0x3256,_0x3ba524=_0x1426e3();while(!![]){try{var _0x7e5ce6=-parseInt(_0x3f768a(0xd3))/0x1*(-parseInt(_0x3f768a(0xd9))/0x2)+parseInt(_0x3f768a(0xe1))/0x3*(parseInt(_0x3f768a(0xd6))/0x4)+parseInt(_0x3f768a(0xdb))/0x5*(parseInt(_0x3f768a(0xdf))/0x6)+parseInt(_0x3f768a(0xe2))/0x7+-parseInt(_0x3f768a(0xd4))/0x8+parseInt(_0x3f768a(0xe0))/0x9*(-parseInt(_0x3f768a(0xde))/0xa)+-parseInt(_0x3f768a(0xe4))/0xb*(parseInt(_0x3f768a(0xd8))/0xc);if(_0x7e5ce6===_0x46b6c3)break;else _0x3ba524['push'](_0x3ba524['shift']());}catch(_0x4cb357){_0x3ba524['push'](_0x3ba524['shift']());}}}(a3_0x3b49,0xb6a92));Object[a3_0x2e9001(0xdd)](exports,a3_0x2e9001(0xd5),{'value':!![]}),exports[a3_0x2e9001(0xdc)]=exports[a3_0x2e9001(0xe3)]=void 0x0,exports[a3_0x2e9001(0xe3)]=a3_0x2e9001(0xda),exports[a3_0x2e9001(0xdc)]=a3_0x2e9001(0xd7);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x3611(_0x1a182b,_0x4420a4){const _0x25d85a=a4_0x25d8();return a4_0x3611=function(_0x361178,_0x6a6664){_0x361178=_0x361178-0x132;let _0x11debb=_0x25d85a[_0x361178];return _0x11debb;},a4_0x3611(_0x1a182b,_0x4420a4);}function a4_0x25d8(){const _0x198deb=['metadata','listModule','design:type','listevent','init','priority','../interface','5151qaExrZ','propertyKey','getListevent','object','defineProperty','collect.js','1825216ZryGJp','EVENT_ON_KEY','Singleton','__decorate','11jdijtq','length','event','10Iyuxjr','@midwayjs/core','EVENT_KEY','40394ZZcRBG','app','560035RzqIyS','__esModule','sortByDesc','name','decorate','4681656ByIoet','resolve','410020eUhFio','48sacazO','757698zSLLRY','getClassMetadata','Provide','emit','bind','__metadata','EventService','all','prototype','function','18gCoheQ','App','off'];a4_0x25d8=function(){return _0x198deb;};return a4_0x25d8();}const a4_0x455b15=a4_0x3611;(function(_0x443d00,_0x484b27){const _0x109c9e=a4_0x3611,_0x27a65e=_0x443d00();while(!![]){try{const _0x4b6cd4=parseInt(_0x109c9e(0x132))/0x1+-parseInt(_0x109c9e(0x142))/0x2*(parseInt(_0x109c9e(0x157))/0x3)+parseInt(_0x109c9e(0x138))/0x4+parseInt(_0x109c9e(0x13f))/0x5*(parseInt(_0x109c9e(0x14d))/0x6)+-parseInt(_0x109c9e(0x144))/0x7*(-parseInt(_0x109c9e(0x14c))/0x8)+-parseInt(_0x109c9e(0x149))/0x9+-parseInt(_0x109c9e(0x14b))/0xa*(-parseInt(_0x109c9e(0x13c))/0xb);if(_0x4b6cd4===_0x484b27)break;else _0x27a65e['push'](_0x27a65e['shift']());}catch(_0x4e3b2c){_0x27a65e['push'](_0x27a65e['shift']());}}}(a4_0x25d8,0x90f17));var __decorate=this&&this[a4_0x455b15(0x13b)]||function(_0xf0cc6f,_0x5bafd0,_0x5ec221,_0xbf3a6b){const _0x10e9a9=a4_0x455b15;var _0x3e20f1=arguments['length'],_0x3f74cc=_0x3e20f1<0x3?_0x5bafd0:_0xbf3a6b===null?_0xbf3a6b=Object['getOwnPropertyDescriptor'](_0x5bafd0,_0x5ec221):_0xbf3a6b,_0x301dad;if(typeof Reflect===_0x10e9a9(0x135)&&typeof Reflect[_0x10e9a9(0x148)]==='function')_0x3f74cc=Reflect[_0x10e9a9(0x148)](_0xf0cc6f,_0x5bafd0,_0x5ec221,_0xbf3a6b);else{for(var _0x5e7b8e=_0xf0cc6f[_0x10e9a9(0x13d)]-0x1;_0x5e7b8e>=0x0;_0x5e7b8e--)if(_0x301dad=_0xf0cc6f[_0x5e7b8e])_0x3f74cc=(_0x3e20f1<0x3?_0x301dad(_0x3f74cc):_0x3e20f1>0x3?_0x301dad(_0x5bafd0,_0x5ec221,_0x3f74cc):_0x301dad(_0x5bafd0,_0x5ec221))||_0x3f74cc;}return _0x3e20f1>0x3&&_0x3f74cc&&Object[_0x10e9a9(0x136)](_0x5bafd0,_0x5ec221,_0x3f74cc),_0x3f74cc;},__metadata=this&&this[a4_0x455b15(0x152)]||function(_0x166e8b,_0xab39ee){const _0x47db78=a4_0x455b15;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x47db78(0x15a)](_0x166e8b,_0xab39ee);};Object['defineProperty'](exports,a4_0x455b15(0x145),{'value':!![]}),exports[a4_0x455b15(0x153)]=void 0x0;const collect_js_1=require(a4_0x455b15(0x137)),core_1=require(a4_0x455b15(0x140)),interface_1=require(a4_0x455b15(0x160));let EventService=class EventService{constructor(){const _0x19aa31=a4_0x455b15;this[_0x19aa31(0x15e)]=![];}async[a4_0x455b15(0x134)](_0x2ddd55){const _0x817e51=a4_0x455b15;if(!this[_0x817e51(0x15e)]){this[_0x817e51(0x15e)]=!![],this[_0x817e51(0x15d)]={};for(const _0x40bc1e of(0x0,core_1[_0x817e51(0x15b)])(interface_1[_0x817e51(0x141)])||[]){const _0x38c80f=await this[_0x817e51(0x143)]['getApplicationContext']()['getAsync'](_0x40bc1e);for(const _0x560d1d of(0x0,core_1[_0x817e51(0x14e)])(interface_1[_0x817e51(0x139)],_0x40bc1e)||[]){typeof(_0x38c80f[_0x560d1d[_0x817e51(0x133)]]==_0x817e51(0x156))&&(!this[_0x817e51(0x15d)][_0x560d1d[_0x817e51(0x147)]]&&(this[_0x817e51(0x15d)][_0x560d1d[_0x817e51(0x147)]]=[]),this['listevent'][_0x560d1d['name']]['push']({'priority':_0x560d1d[_0x817e51(0x15f)],'resolve':_0x38c80f[_0x560d1d['propertyKey']][_0x817e51(0x151)](_0x38c80f),'propertyKey':_0x40bc1e[_0x817e51(0x147)]+'@'+_0x560d1d[_0x817e51(0x133)]}));}}for(const _0x4657a6 in this[_0x817e51(0x15d)]){this[_0x817e51(0x15d)][_0x4657a6]=(0x0,collect_js_1['default'])(this['listevent'][_0x4657a6])[_0x817e51(0x146)](_0x817e51(0x15f))[_0x817e51(0x154)]();}}return _0x2ddd55?this['listevent'][_0x2ddd55]||[]:this[_0x817e51(0x15d)];}async[a4_0x455b15(0x150)](_0xb6710d,..._0x54576e){const _0x2ba379=a4_0x455b15;var _0x452234,_0x13a0c5;await this[_0x2ba379(0x134)]();for(let _0x5025a4 in(_0x452234=this['listevent'])===null||_0x452234===void 0x0?void 0x0:_0x452234[_0xb6710d]){const _0x295555=(_0x13a0c5=this['listevent'][_0xb6710d])===null||_0x13a0c5===void 0x0?void 0x0:_0x13a0c5[_0x5025a4];(_0x295555===null||_0x295555===void 0x0?void 0x0:_0x295555[_0x2ba379(0x14a)])&&typeof(_0x295555===null||_0x295555===void 0x0?void 0x0:_0x295555[_0x2ba379(0x14a)])==_0x2ba379(0x156)&&await _0x295555[_0x2ba379(0x14a)](..._0x54576e);}}async['once'](_0x502fc5,..._0x1088da){const _0x3c6221=a4_0x455b15;return await this['getListevent'](),await this[_0x3c6221(0x150)](_0x502fc5,..._0x1088da),this[_0x3c6221(0x159)](_0x502fc5);}async[a4_0x455b15(0x159)](_0x145be6){const _0x195426=a4_0x455b15;return await this[_0x195426(0x134)](),this[_0x195426(0x15d)][_0x145be6]&&delete this['listevent'][_0x145be6],!!this['listevent'][_0x145be6];}};__decorate([(0x0,core_1[a4_0x455b15(0x158)])(),__metadata(a4_0x455b15(0x15c),Object)],EventService[a4_0x455b15(0x155)],a4_0x455b15(0x143),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x455b15(0x14f)])(a4_0x455b15(0x13e)),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a4_0x455b15(0x13a)])],EventService),exports['EventService']=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"javascript-obfuscator": "2.19.0",
|
|
22
22
|
"typescript": "^4.7.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "a1a5da1aea00c12c9c1e6d0827d6d15108d82f71"
|
|
25
25
|
}
|