@anncic-api/event 1.0.28 → 1.1.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.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_0x44209d=a0_0x4c1c;(function(_0x27c781,_0x1e99d4){var _0x258160=a0_0x4c1c,_0x4386e4=_0x27c781();while(!![]){try{var _0x2fbcd7=-parseInt(_0x258160(0x11c))/0x1+parseInt(_0x258160(0x112))/0x2*(parseInt(_0x258160(0x125))/0x3)+parseInt(_0x258160(0x11b))/0x4*(parseInt(_0x258160(0x123))/0x5)+parseInt(_0x258160(0x126))/0x6+-parseInt(_0x258160(0x110))/0x7+parseInt(_0x258160(0x11a))/0x8+parseInt(_0x258160(0x12a))/0x9*(-parseInt(_0x258160(0x122))/0xa);if(_0x2fbcd7===_0x1e99d4)break;else _0x4386e4['push'](_0x4386e4['shift']());}catch(_0x30c314){_0x4386e4['push'](_0x4386e4['shift']());}}}(a0_0x2fad,0xe6efd));var __decorate=this&&this[a0_0x44209d(0x12b)]||function(_0x4e2fe6,_0x270486,_0x295f77,_0x294384){var _0x532071=a0_0x44209d,_0x5280fb=arguments[_0x532071(0x11f)],_0x31c0d6=_0x5280fb<0x3?_0x270486:_0x294384===null?_0x294384=Object[_0x532071(0x116)](_0x270486,_0x295f77):_0x294384,_0x1db6f3;if(typeof Reflect===_0x532071(0x12c)&&typeof Reflect[_0x532071(0x11d)]===_0x532071(0x129))_0x31c0d6=Reflect[_0x532071(0x11d)](_0x4e2fe6,_0x270486,_0x295f77,_0x294384);else{for(var _0x27a3c0=_0x4e2fe6['length']-0x1;_0x27a3c0>=0x0;_0x27a3c0--)if(_0x1db6f3=_0x4e2fe6[_0x27a3c0])_0x31c0d6=(_0x5280fb<0x3?_0x1db6f3(_0x31c0d6):_0x5280fb>0x3?_0x1db6f3(_0x270486,_0x295f77,_0x31c0d6):_0x1db6f3(_0x270486,_0x295f77))||_0x31c0d6;}return _0x5280fb>0x3&&_0x31c0d6&&Object['defineProperty'](_0x270486,_0x295f77,_0x31c0d6),_0x31c0d6;},__metadata=this&&this[a0_0x44209d(0x127)]||function(_0x19333d,_0x223fdf){var _0x2eaca3=a0_0x44209d;if(typeof Reflect===_0x2eaca3(0x12c)&&typeof Reflect[_0x2eaca3(0x121)]===_0x2eaca3(0x129))return Reflect[_0x2eaca3(0x121)](_0x19333d,_0x223fdf);};Object[a0_0x44209d(0x128)](exports,a0_0x44209d(0x114),{'value':!![]}),exports[a0_0x44209d(0x111)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a0_0x44209d(0x113));function a0_0x2fad(){var _0x4fb9bd=['12281997IvSXTr','CustomConfiguration','221438DhGrFp','@midwayjs/core','__esModule','onReady','getOwnPropertyDescriptor','prototype','Inject','decorator','9743064WIfqpD','3092UakUEv','1008549pInOrz','decorate','Configuration','length','MidwayConfigService','metadata','705640ZHFNJi','11525bBrUVZ','anncic-api:event','6PGAMWM','4197858JvruOS','__metadata','defineProperty','function','27PMgwRa','__decorate','object'];a0_0x2fad=function(){return _0x4fb9bd;};return a0_0x2fad();}let CustomConfiguration=class CustomConfiguration{async[a0_0x44209d(0x115)](){}};function a0_0x4c1c(_0x25405f,_0x387ca0){var _0x2fad2f=a0_0x2fad();return a0_0x4c1c=function(_0x4c1c80,_0x233f3e){_0x4c1c80=_0x4c1c80-0x110;var _0x43b140=_0x2fad2f[_0x4c1c80];return _0x43b140;},a0_0x4c1c(_0x25405f,_0x387ca0);}__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a0_0x44209d(0x120)])],CustomConfiguration[a0_0x44209d(0x117)],'config',void 0x0),__decorate([(0x0,decorator_1[a0_0x44209d(0x118)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a0_0x44209d(0x117)],a0_0x44209d(0x119),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x44209d(0x11e)])({'conflictCheck':![],'namespace':a0_0x44209d(0x124)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x168cfb=a1_0x1c8f;(function(_0x2900dd,_0x13cd83){const _0x8dd577=a1_0x1c8f,_0x22eeae=_0x2900dd();while(!![]){try{const _0xb1a65e=parseInt(_0x8dd577(0x10b))/0x1*(-parseInt(_0x8dd577(0x107))/0x2)+-parseInt(_0x8dd577(0x105))/0x3*(parseInt(_0x8dd577(0xfe))/0x4)+parseInt(_0x8dd577(0xfb))/0x5*(parseInt(_0x8dd577(0xff))/0x6)+parseInt(_0x8dd577(0x102))/0x7*(parseInt(_0x8dd577(0xf9))/0x8)+parseInt(_0x8dd577(0x108))/0x9*(-parseInt(_0x8dd577(0xfd))/0xa)+parseInt(_0x8dd577(0x109))/0xb+parseInt(_0x8dd577(0x101))/0xc*(parseInt(_0x8dd577(0x106))/0xd);if(_0xb1a65e===_0x13cd83)break;else _0x22eeae['push'](_0x22eeae['shift']());}catch(_0x39f36e){_0x22eeae['push'](_0x22eeae['shift']());}}}(a1_0x259d,0x3798e));function a1_0x259d(){const _0x3824b2=['ScopeEnum','EVENT_ON_KEY','109353hCMaYK','2912TJuTAE','11864zvSsRK','18oXxtsr','454586hUefEi','defineProperty','59DOlssA','342184LRjVgJ','Request','455XPDNbs','Scope','67380zcthMw','20CoSdCC','26148mYrxXX','saveModule','15684vIJmcb','7stXXZj'];a1_0x259d=function(){return _0x3824b2;};return a1_0x259d();}function a1_0x1c8f(_0x51b79e,_0x2cb6ff){const _0x259d1e=a1_0x259d();return a1_0x1c8f=function(_0x1c8fb1,_0x3b0dc6){_0x1c8fb1=_0x1c8fb1-0xf9;let _0x357ee2=_0x259d1e[_0x1c8fb1];return _0x357ee2;},a1_0x1c8f(_0x51b79e,_0x2cb6ff);}Object[a1_0x168cfb(0x10a)](exports,'__esModule',{'value':!![]}),exports['Event']=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require('../interface');function Event(){return _0x4bdaeb=>{const _0x4dd53e=a1_0x1c8f;(0x0,decorator_1['Provide'])()(_0x4bdaeb),(0x0,decorator_1[_0x4dd53e(0x100)])(interface_1['EVENT_KEY'],_0x4bdaeb),(0x0,decorator_1[_0x4dd53e(0xfc)])(decorator_1[_0x4dd53e(0x103)][_0x4dd53e(0xfa)],{'allowDowngrade':!![]})(_0x4bdaeb);};}exports['Event']=Event,Event['On']=function(_0x41e486,_0x2af3f1=0x0){return(_0x2ef64f,_0x229a1c,_0x3b6b0c)=>{const _0x404273=a1_0x1c8f;return(0x0,decorator_1['attachClassMetadata'])(interface_1[_0x404273(0x104)],{'name':_0x41e486,'priority':_0x2af3f1,'propertyKey':_0x229a1c,'descriptor':_0x3b6b0c},_0x2ef64f),_0x3b6b0c;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0xe3ea0e=a2_0x5a34;function a2_0x4e56(){var _0x55cb76=['./decorator/Event','89826MlQTTK','__esModule','./service/EventService','./configuration','1584588JjSCXg','5658114VXXQai','919700wVcyWo','EventService','Event','CustomConfiguration','7606501ArBkIH','963lxRJlZ','defineProperty','87056LSSZTL','13780aSDHkF','Configuration','695rHrNKs'];a2_0x4e56=function(){return _0x55cb76;};return a2_0x4e56();}(function(_0xf871dd,_0xb790ab){var _0x703f18=a2_0x5a34,_0xf4700f=_0xf871dd();while(!![]){try{var _0x2510ec=parseInt(_0x703f18(0xec))/0x1+-parseInt(_0x703f18(0xe6))/0x2+parseInt(_0x703f18(0xea))/0x3+-parseInt(_0x703f18(0xf4))/0x4*(-parseInt(_0x703f18(0xf6))/0x5)+-parseInt(_0x703f18(0xeb))/0x6+parseInt(_0x703f18(0xf0))/0x7+-parseInt(_0x703f18(0xf3))/0x8*(parseInt(_0x703f18(0xf1))/0x9);if(_0x2510ec===_0xb790ab)break;else _0xf4700f['push'](_0xf4700f['shift']());}catch(_0x2ee09b){_0xf4700f['push'](_0xf4700f['shift']());}}}(a2_0x4e56,0xd23a0));Object[a2_0xe3ea0e(0xf2)](exports,a2_0xe3ea0e(0xe7),{'value':!![]}),exports[a2_0xe3ea0e(0xf5)]=exports['EventService']=exports['Event']=void 0x0;function a2_0x5a34(_0x54f974,_0x189784){var _0x4e569e=a2_0x4e56();return a2_0x5a34=function(_0x5a34b7,_0x327da9){_0x5a34b7=_0x5a34b7-0xe5;var _0x493a4c=_0x4e569e[_0x5a34b7];return _0x493a4c;},a2_0x5a34(_0x54f974,_0x189784);}var Event_1=require(a2_0xe3ea0e(0xe5));Object[a2_0xe3ea0e(0xf2)](exports,a2_0xe3ea0e(0xee),{'enumerable':!![],'get':function(){var _0x1db9db=a2_0xe3ea0e;return Event_1[_0x1db9db(0xee)];}});var EventService_1=require(a2_0xe3ea0e(0xe8));Object[a2_0xe3ea0e(0xf2)](exports,a2_0xe3ea0e(0xed),{'enumerable':!![],'get':function(){var _0x46e035=a2_0xe3ea0e;return EventService_1[_0x46e035(0xed)];}});var configuration_1=require(a2_0xe3ea0e(0xe9));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x2cd559=a2_0xe3ea0e;return configuration_1[_0x2cd559(0xef)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0x3363f2=a3_0x4ea5;(function(_0x2c554f,_0x5f231f){var _0x2c764b=a3_0x4ea5,_0x18f926=_0x2c554f();while(!![]){try{var _0x2f6f10=parseInt(_0x2c764b(0xb5))/0x1*(-parseInt(_0x2c764b(0xa8))/0x2)+parseInt(_0x2c764b(0xb6))/0x3+parseInt(_0x2c764b(0xb1))/0x4+parseInt(_0x2c764b(0xae))/0x5*(-parseInt(_0x2c764b(0xb4))/0x6)+parseInt(_0x2c764b(0xac))/0x7+parseInt(_0x2c764b(0xb3))/0x8+-parseInt(_0x2c764b(0xaa))/0x9;if(_0x2f6f10===_0x5f231f)break;else _0x18f926['push'](_0x18f926['shift']());}catch(_0x51a566){_0x18f926['push'](_0x18f926['shift']());}}}(a3_0x4479,0xeebf8));function a3_0x4479(){var _0x55db47=['338262sMHJBI','anncic-api:event:on','14313375XUJhfE','__esModule','4045937VKhTvW','EVENT_ON_KEY','37735PPYWcp','defineProperty','EVENT_KEY','1634428FBEcoq','anncic-api:event','12651328BmKlWy','468ZFprYe','3vgbKGL','3288996wTAcTW'];a3_0x4479=function(){return _0x55db47;};return a3_0x4479();}function a3_0x4ea5(_0x3a518c,_0x155b0e){var _0x447971=a3_0x4479();return a3_0x4ea5=function(_0x4ea5f7,_0x1df9bc){_0x4ea5f7=_0x4ea5f7-0xa8;var _0x48892f=_0x447971[_0x4ea5f7];return _0x48892f;},a3_0x4ea5(_0x3a518c,_0x155b0e);}Object[a3_0x3363f2(0xaf)](exports,a3_0x3363f2(0xab),{'value':!![]}),exports[a3_0x3363f2(0xad)]=exports[a3_0x3363f2(0xb0)]=void 0x0,exports['EVENT_KEY']=a3_0x3363f2(0xb2),exports['EVENT_ON_KEY']=a3_0x3363f2(0xa9);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x787e55=a4_0x2b17;(function(_0x37f485,_0x4fd890){const _0x3545d0=a4_0x2b17,_0x3f7b93=_0x37f485();while(!![]){try{const _0x549a75=parseInt(_0x3545d0(0x145))/0x1*(parseInt(_0x3545d0(0x126))/0x2)+parseInt(_0x3545d0(0x12c))/0x3*(-parseInt(_0x3545d0(0x138))/0x4)+-parseInt(_0x3545d0(0x135))/0x5+parseInt(_0x3545d0(0x12b))/0x6+parseInt(_0x3545d0(0x130))/0x7*(-parseInt(_0x3545d0(0x12e))/0x8)+-parseInt(_0x3545d0(0x11e))/0x9*(parseInt(_0x3545d0(0x124))/0xa)+parseInt(_0x3545d0(0x11c))/0xb*(parseInt(_0x3545d0(0x127))/0xc);if(_0x549a75===_0x4fd890)break;else _0x3f7b93['push'](_0x3f7b93['shift']());}catch(_0x1ed8ed){_0x3f7b93['push'](_0x3f7b93['shift']());}}}(a4_0x40fb,0x66845));var __decorate=this&&this['__decorate']||function(_0x4c841a,_0x2d4f79,_0x589972,_0x51a1e7){const _0x2d73d9=a4_0x2b17;var _0x239cbf=arguments[_0x2d73d9(0x133)],_0xa89491=_0x239cbf<0x3?_0x2d4f79:_0x51a1e7===null?_0x51a1e7=Object[_0x2d73d9(0x13d)](_0x2d4f79,_0x589972):_0x51a1e7,_0x57607e;if(typeof Reflect==='object'&&typeof Reflect[_0x2d73d9(0x147)]===_0x2d73d9(0x134))_0xa89491=Reflect[_0x2d73d9(0x147)](_0x4c841a,_0x2d4f79,_0x589972,_0x51a1e7);else{for(var _0x3d5cc6=_0x4c841a[_0x2d73d9(0x133)]-0x1;_0x3d5cc6>=0x0;_0x3d5cc6--)if(_0x57607e=_0x4c841a[_0x3d5cc6])_0xa89491=(_0x239cbf<0x3?_0x57607e(_0xa89491):_0x239cbf>0x3?_0x57607e(_0x2d4f79,_0x589972,_0xa89491):_0x57607e(_0x2d4f79,_0x589972))||_0xa89491;}return _0x239cbf>0x3&&_0xa89491&&Object[_0x2d73d9(0x143)](_0x2d4f79,_0x589972,_0xa89491),_0xa89491;},__metadata=this&&this['__metadata']||function(_0x20b190,_0x4178c0){const _0x3fde7b=a4_0x2b17;if(typeof Reflect===_0x3fde7b(0x13a)&&typeof Reflect[_0x3fde7b(0x122)]==='function')return Reflect[_0x3fde7b(0x122)](_0x20b190,_0x4178c0);};Object[a4_0x787e55(0x143)](exports,'__esModule',{'value':!![]}),exports[a4_0x787e55(0x123)]=void 0x0;function a4_0x40fb(){const _0x2a9e1d=['name','1ScYXIv','Scope','decorate','getAsync','listevent','1132901YOVNrF','EVENT_KEY','4417326qwcpYZ','listModule','priority','App','metadata','EventService','10jFsoXu','EVENT_ON_KEY','1029034IuvyER','132OSMlaj','once','getClassMetadata','collect.js','3891150OCViqm','263076gfXDsx','resolve','174552xIIsuZ','getListevent','196JBDFgW','init','off','length','function','3432980BmnKWz','bind','prototype','4qZcxHp','ScopeEnum','object','../interface','propertyKey','getOwnPropertyDescriptor','app','emit','default','Provide','sortByDesc','defineProperty'];a4_0x40fb=function(){return _0x2a9e1d;};return a4_0x40fb();}const collect_js_1=require(a4_0x787e55(0x12a)),decorator_1=require('@midwayjs/decorator'),interface_1=require(a4_0x787e55(0x13b));let EventService=class EventService{constructor(){const _0x20f459=a4_0x787e55;this[_0x20f459(0x131)]=![];}async['getListevent'](_0x42a0ec){const _0x57908b=a4_0x787e55;if(!this[_0x57908b(0x131)]){this['init']=!![],this[_0x57908b(0x11b)]={};for(const _0x380d14 of(0x0,decorator_1[_0x57908b(0x11f)])(interface_1[_0x57908b(0x11d)])||[]){const _0x17e42b=await this[_0x57908b(0x13e)]['getApplicationContext']()[_0x57908b(0x11a)](_0x380d14);for(const _0x363713 of(0x0,decorator_1[_0x57908b(0x129)])(interface_1[_0x57908b(0x125)],_0x380d14)||[]){typeof(_0x17e42b[_0x363713[_0x57908b(0x13c)]]==_0x57908b(0x134))&&(!this[_0x57908b(0x11b)][_0x363713[_0x57908b(0x144)]]&&(this[_0x57908b(0x11b)][_0x363713['name']]=[]),this[_0x57908b(0x11b)][_0x363713[_0x57908b(0x144)]]['push']({'priority':_0x363713['priority'],'resolve':_0x17e42b[_0x363713[_0x57908b(0x13c)]][_0x57908b(0x136)](_0x17e42b),'propertyKey':_0x380d14[_0x57908b(0x144)]+'@'+_0x363713[_0x57908b(0x13c)]}));}}for(const _0x3f7241 in this['listevent']){this[_0x57908b(0x11b)][_0x3f7241]=(0x0,collect_js_1[_0x57908b(0x140)])(this[_0x57908b(0x11b)][_0x3f7241])[_0x57908b(0x142)](_0x57908b(0x120))['all']();}}return _0x42a0ec?this[_0x57908b(0x11b)][_0x42a0ec]||[]:this[_0x57908b(0x11b)];}async['emit'](_0x5c3e03,..._0x422e1b){const _0x107d2f=a4_0x787e55;var _0x290347,_0x41dc77;await this['getListevent']();for(let _0xf84c8b in(_0x290347=this[_0x107d2f(0x11b)])===null||_0x290347===void 0x0?void 0x0:_0x290347[_0x5c3e03]){const _0x387934=(_0x41dc77=this[_0x107d2f(0x11b)][_0x5c3e03])===null||_0x41dc77===void 0x0?void 0x0:_0x41dc77[_0xf84c8b];(_0x387934===null||_0x387934===void 0x0?void 0x0:_0x387934['resolve'])&&typeof(_0x387934===null||_0x387934===void 0x0?void 0x0:_0x387934['resolve'])==_0x107d2f(0x134)&&await _0x387934[_0x107d2f(0x12d)](..._0x422e1b);}}async[a4_0x787e55(0x128)](_0x1121c7,..._0x3b8e32){const _0x52b5e6=a4_0x787e55;return await this['getListevent'](),await this[_0x52b5e6(0x13f)](_0x1121c7,..._0x3b8e32),this[_0x52b5e6(0x132)](_0x1121c7);}async[a4_0x787e55(0x132)](_0x33b457){const _0x265440=a4_0x787e55;return await this[_0x265440(0x12f)](),this[_0x265440(0x11b)][_0x33b457]&&delete this[_0x265440(0x11b)][_0x33b457],!!this[_0x265440(0x11b)][_0x33b457];}};function a4_0x2b17(_0x494044,_0x466065){const _0x40fb5c=a4_0x40fb();return a4_0x2b17=function(_0x2b174d,_0x2674f4){_0x2b174d=_0x2b174d-0x11a;let _0x12cf8c=_0x40fb5c[_0x2b174d];return _0x12cf8c;},a4_0x2b17(_0x494044,_0x466065);}__decorate([(0x0,decorator_1[a4_0x787e55(0x121)])(),__metadata('design:type',Object)],EventService[a4_0x787e55(0x137)],'app',void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x787e55(0x141)])('event'),(0x0,decorator_1[a4_0x787e55(0x146)])(decorator_1[a4_0x787e55(0x139)]['Singleton'])],EventService),exports['EventService']=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
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": "e7efdf15bb83435be251d3e1492f9e5cf65ca81d"
|
|
25
25
|
}
|