@anncic-api/event 1.2.2 → 1.2.3
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_0x48d909=a0_0x1d86;(function(_0x12f8a1,_0x5331b3){var _0x5bbad7=a0_0x1d86,_0x5940e3=_0x12f8a1();while(!![]){try{var _0x32688d=parseInt(_0x5bbad7(0x1df))/0x1+-parseInt(_0x5bbad7(0x1e6))/0x2*(-parseInt(_0x5bbad7(0x1d8))/0x3)+parseInt(_0x5bbad7(0x1d2))/0x4+-parseInt(_0x5bbad7(0x1e2))/0x5+-parseInt(_0x5bbad7(0x1db))/0x6+parseInt(_0x5bbad7(0x1d0))/0x7+-parseInt(_0x5bbad7(0x1d5))/0x8;if(_0x32688d===_0x5331b3)break;else _0x5940e3['push'](_0x5940e3['shift']());}catch(_0x10c355){_0x5940e3['push'](_0x5940e3['shift']());}}}(a0_0x103f,0xb423c));var __decorate=this&&this['__decorate']||function(_0x568bcd,_0x41b8d9,_0x18e320,_0x436817){var _0x3d16fd=a0_0x1d86,_0x52df6f=arguments[_0x3d16fd(0x1d7)],_0x5f0118=_0x52df6f<0x3?_0x41b8d9:_0x436817===null?_0x436817=Object[_0x3d16fd(0x1d9)](_0x41b8d9,_0x18e320):_0x436817,_0x15c8a5;if(typeof Reflect===_0x3d16fd(0x1e8)&&typeof Reflect[_0x3d16fd(0x1d4)]==='function')_0x5f0118=Reflect['decorate'](_0x568bcd,_0x41b8d9,_0x18e320,_0x436817);else{for(var _0x3c2431=_0x568bcd[_0x3d16fd(0x1d7)]-0x1;_0x3c2431>=0x0;_0x3c2431--)if(_0x15c8a5=_0x568bcd[_0x3c2431])_0x5f0118=(_0x52df6f<0x3?_0x15c8a5(_0x5f0118):_0x52df6f>0x3?_0x15c8a5(_0x41b8d9,_0x18e320,_0x5f0118):_0x15c8a5(_0x41b8d9,_0x18e320))||_0x5f0118;}return _0x52df6f>0x3&&_0x5f0118&&Object[_0x3d16fd(0x1dc)](_0x41b8d9,_0x18e320,_0x5f0118),_0x5f0118;},__metadata=this&&this[a0_0x48d909(0x1e1)]||function(_0x39b9e0,_0x3d376e){var _0x588f68=a0_0x48d909;if(typeof Reflect===_0x588f68(0x1e8)&&typeof Reflect[_0x588f68(0x1e9)]===_0x588f68(0x1e7))return Reflect[_0x588f68(0x1e9)](_0x39b9e0,_0x3d376e);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x48d909(0x1e4)]=void 0x0;const core_1=require(a0_0x48d909(0x1de)),core_2=require(a0_0x48d909(0x1de));function a0_0x1d86(_0xb01780,_0x4cae48){var _0x103fbe=a0_0x103f();return a0_0x1d86=function(_0x1d868a,_0x2e6b20){_0x1d868a=_0x1d868a-0x1d0;var _0x570571=_0x103fbe[_0x1d868a];return _0x570571;},a0_0x1d86(_0xb01780,_0x4cae48);}let CustomConfiguration=class CustomConfiguration{async[a0_0x48d909(0x1e5)](){}};function a0_0x103f(){var _0x3f25ae=['prototype','length','1159731cCBfgk','getOwnPropertyDescriptor','MidwayConfigService','1569612BxJSwM','defineProperty','design:type','@midwayjs/core','318419xLZEul','MidwayDecoratorService','__metadata','1949285SlStOb','Inject','CustomConfiguration','onReady','4pZdmIt','function','object','metadata','9563232MtygCd','anncic-api:event','4857612SUDsyn','config','decorate','18262728NGhBLw'];a0_0x103f=function(){return _0x3f25ae;};return a0_0x103f();}__decorate([(0x0,core_1[a0_0x48d909(0x1e3)])(),__metadata(a0_0x48d909(0x1dd),core_2[a0_0x48d909(0x1da)])],CustomConfiguration[a0_0x48d909(0x1d6)],a0_0x48d909(0x1d3),void 0x0),__decorate([(0x0,core_1[a0_0x48d909(0x1e3)])(),__metadata(a0_0x48d909(0x1dd),core_2[a0_0x48d909(0x1e0)])],CustomConfiguration['prototype'],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a0_0x48d909(0x1d1)})],CustomConfiguration),exports[a0_0x48d909(0x1e4)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x29d866=a1_0x3d8a;function a1_0x3d8a(_0x303619,_0x2e386f){const _0x5c3956=a1_0x5c39();return a1_0x3d8a=function(_0x3d8a8b,_0x5130a6){_0x3d8a8b=_0x3d8a8b-0x169;let _0x4ed93e=_0x5c3956[_0x3d8a8b];return _0x4ed93e;},a1_0x3d8a(_0x303619,_0x2e386f);}(function(_0x490fe9,_0x2ef8bb){const _0xbb43d8=a1_0x3d8a,_0xbc9525=_0x490fe9();while(!![]){try{const _0xe1cc78=-parseInt(_0xbb43d8(0x16e))/0x1*(parseInt(_0xbb43d8(0x181))/0x2)+-parseInt(_0xbb43d8(0x17b))/0x3*(parseInt(_0xbb43d8(0x16b))/0x4)+parseInt(_0xbb43d8(0x17f))/0x5*(-parseInt(_0xbb43d8(0x17a))/0x6)+-parseInt(_0xbb43d8(0x177))/0x7*(parseInt(_0xbb43d8(0x16f))/0x8)+parseInt(_0xbb43d8(0x176))/0x9*(parseInt(_0xbb43d8(0x17e))/0xa)+-parseInt(_0xbb43d8(0x17d))/0xb*(-parseInt(_0xbb43d8(0x16c))/0xc)+parseInt(_0xbb43d8(0x16d))/0xd*(parseInt(_0xbb43d8(0x174))/0xe);if(_0xe1cc78===_0x2ef8bb)break;else _0xbc9525['push'](_0xbc9525['shift']());}catch(_0x381592){_0xbc9525['push'](_0xbc9525['shift']());}}}(a1_0x5c39,0xc8fcd));Object['defineProperty'](exports,a1_0x29d866(0x171),{'value':!![]}),exports[a1_0x29d866(0x179)]=void 0x0;function a1_0x5c39(){const _0x301498=['16027AdPlfq','4518470PzYNyc','215QBWrFP','EVENT_KEY','11226RxVIMQ','@midwayjs/core','EVENT_ON_KEY','86292ybXTAB','468dfFERU','6162JdTcCO','75DnVQzc','20576dQdbAk','saveModule','__esModule','../interface','Provide','70042OchHUk','Scope','18uJlvEj','3402jPJwTo','ScopeEnum','Event','17556RAVywP','99KjHAlq','Request'];a1_0x5c39=function(){return _0x301498;};return a1_0x5c39();}const core_1=require(a1_0x29d866(0x169)),interface_1=require(a1_0x29d866(0x172));function Event(){return _0x51f386=>{const _0x30de63=a1_0x3d8a;(0x0,core_1[_0x30de63(0x173)])()(_0x51f386),(0x0,core_1[_0x30de63(0x170)])(interface_1[_0x30de63(0x180)],_0x51f386),(0x0,core_1[_0x30de63(0x175)])(core_1[_0x30de63(0x178)][_0x30de63(0x17c)],{'allowDowngrade':!![]})(_0x51f386);};}exports['Event']=Event,Event['On']=function(_0x66d72d,_0x148e05=0x0){return(_0x1bd964,_0x1044e4,_0x25d337)=>{const _0x1f0206=a1_0x3d8a;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x1f0206(0x16a)],{'name':_0x66d72d,'priority':_0x148e05,'propertyKey':_0x1044e4,'descriptor':_0x25d337},_0x1bd964),_0x25d337;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x27c1dd=a2_0x1f91;(function(_0x2a0d33,_0x431a4f){var _0x4d06cb=a2_0x1f91,_0xe443bf=_0x2a0d33();while(!![]){try{var _0x133094=parseInt(_0x4d06cb(0xac))/0x1+parseInt(_0x4d06cb(0xb2))/0x2*(parseInt(_0x4d06cb(0xb3))/0x3)+-parseInt(_0x4d06cb(0xa7))/0x4*(parseInt(_0x4d06cb(0xa4))/0x5)+-parseInt(_0x4d06cb(0xae))/0x6*(-parseInt(_0x4d06cb(0xb1))/0x7)+parseInt(_0x4d06cb(0xaa))/0x8*(parseInt(_0x4d06cb(0xad))/0x9)+parseInt(_0x4d06cb(0xb0))/0xa+-parseInt(_0x4d06cb(0xaf))/0xb;if(_0x133094===_0x431a4f)break;else _0xe443bf['push'](_0xe443bf['shift']());}catch(_0x347462){_0xe443bf['push'](_0xe443bf['shift']());}}}(a2_0x1766,0xab64a));function a2_0x1766(){var _0x120309=['./decorator/Event','8eNWnGt','defineProperty','1034527psYlyd','2960109grmBgC','6EjnhlX','59202xvMjIv','3446310mYmpdk','1099672ZKQXCz','20734xGtPUl','3NPohlg','EventService','5hkNloA','CustomConfiguration','./service/EventService','4672456pNHFvc','Event'];a2_0x1766=function(){return _0x120309;};return a2_0x1766();}Object[a2_0x27c1dd(0xab)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports[a2_0x27c1dd(0xa3)]=exports['Event']=void 0x0;var Event_1=require(a2_0x27c1dd(0xa9));Object[a2_0x27c1dd(0xab)](exports,a2_0x27c1dd(0xa8),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x27c1dd(0xa6));Object[a2_0x27c1dd(0xab)](exports,a2_0x27c1dd(0xa3),{'enumerable':!![],'get':function(){var _0x1b9d6c=a2_0x27c1dd;return EventService_1[_0x1b9d6c(0xa3)];}});function a2_0x1f91(_0x1faf8,_0x2a7e72){var _0x176698=a2_0x1766();return a2_0x1f91=function(_0x1f91f3,_0x5bc05f){_0x1f91f3=_0x1f91f3-0xa3;var _0x1fe184=_0x176698[_0x1f91f3];return _0x1fe184;},a2_0x1f91(_0x1faf8,_0x2a7e72);}var configuration_1=require('./configuration');Object[a2_0x27c1dd(0xab)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x3d6fd9=a2_0x27c1dd;return configuration_1[_0x3d6fd9(0xa5)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x18b66d=a3_0x353d;function a3_0x353d(_0x4488a5,_0x4764ef){var _0x56c611=a3_0x56c6();return a3_0x353d=function(_0x353d3e,_0x867cda){_0x353d3e=_0x353d3e-0x12d;var _0x2458b2=_0x56c611[_0x353d3e];return _0x2458b2;},a3_0x353d(_0x4488a5,_0x4764ef);}(function(_0xa1f8ff,_0x2b911f){var _0x6661b8=a3_0x353d,_0x5287c3=_0xa1f8ff();while(!![]){try{var _0x4893b9=parseInt(_0x6661b8(0x12e))/0x1*(parseInt(_0x6661b8(0x138))/0x2)+parseInt(_0x6661b8(0x137))/0x3*(-parseInt(_0x6661b8(0x13b))/0x4)+-parseInt(_0x6661b8(0x13d))/0x5*(parseInt(_0x6661b8(0x132))/0x6)+parseInt(_0x6661b8(0x131))/0x7+parseInt(_0x6661b8(0x139))/0x8*(-parseInt(_0x6661b8(0x12d))/0x9)+-parseInt(_0x6661b8(0x136))/0xa+parseInt(_0x6661b8(0x130))/0xb;if(_0x4893b9===_0x2b911f)break;else _0x5287c3['push'](_0x5287c3['shift']());}catch(_0x1a6a67){_0x5287c3['push'](_0x5287c3['shift']());}}}(a3_0x56c6,0xee2ab));Object[a3_0x18b66d(0x13c)](exports,a3_0x18b66d(0x135),{'value':!![]}),exports[a3_0x18b66d(0x133)]=exports[a3_0x18b66d(0x13a)]=void 0x0,exports[a3_0x18b66d(0x13a)]=a3_0x18b66d(0x134),exports[a3_0x18b66d(0x133)]=a3_0x18b66d(0x12f);function a3_0x56c6(){var _0x44cdd5=['42508hkHXge','9162024dIuwST','EVENT_KEY','15332rnEBJs','defineProperty','9747845DDqDfC','9xVyyIo','76PyLTzl','anncic-api:event:on','48635345hntwyo','3184188mQHpoZ','6fQZUpA','EVENT_ON_KEY','anncic-api:event','__esModule','18654450vlUugF','435KtVvLt'];a3_0x56c6=function(){return _0x44cdd5;};return a3_0x56c6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x3953a2=a4_0x59c5;(function(_0x2642e6,_0x3025e5){const _0xf318ce=a4_0x59c5,_0x29e752=_0x2642e6();while(!![]){try{const _0x1c0279=-parseInt(_0xf318ce(0x109))/0x1*(parseInt(_0xf318ce(0x106))/0x2)+parseInt(_0xf318ce(0xfb))/0x3+parseInt(_0xf318ce(0x103))/0x4+-parseInt(_0xf318ce(0x105))/0x5+parseInt(_0xf318ce(0xfa))/0x6*(parseInt(_0xf318ce(0xf4))/0x7)+-parseInt(_0xf318ce(0x113))/0x8+parseInt(_0xf318ce(0xec))/0x9;if(_0x1c0279===_0x3025e5)break;else _0x29e752['push'](_0x29e752['shift']());}catch(_0x13bb36){_0x29e752['push'](_0x29e752['shift']());}}}(a4_0x57c7,0x62df9));var __decorate=this&&this['__decorate']||function(_0x3ba82d,_0x97bcc,_0x55a04d,_0x29f539){const _0x582bcc=a4_0x59c5;var _0x1bcd39=arguments[_0x582bcc(0xf2)],_0x2f352b=_0x1bcd39<0x3?_0x97bcc:_0x29f539===null?_0x29f539=Object[_0x582bcc(0x107)](_0x97bcc,_0x55a04d):_0x29f539,_0x1566e5;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x582bcc(0xf0))_0x2f352b=Reflect[_0x582bcc(0xff)](_0x3ba82d,_0x97bcc,_0x55a04d,_0x29f539);else{for(var _0x39c887=_0x3ba82d[_0x582bcc(0xf2)]-0x1;_0x39c887>=0x0;_0x39c887--)if(_0x1566e5=_0x3ba82d[_0x39c887])_0x2f352b=(_0x1bcd39<0x3?_0x1566e5(_0x2f352b):_0x1bcd39>0x3?_0x1566e5(_0x97bcc,_0x55a04d,_0x2f352b):_0x1566e5(_0x97bcc,_0x55a04d))||_0x2f352b;}return _0x1bcd39>0x3&&_0x2f352b&&Object[_0x582bcc(0x10c)](_0x97bcc,_0x55a04d,_0x2f352b),_0x2f352b;},__metadata=this&&this['__metadata']||function(_0x31b1c3,_0xee500){const _0x1bd40b=a4_0x59c5;if(typeof Reflect===_0x1bd40b(0x10f)&&typeof Reflect[_0x1bd40b(0xeb)]==='function')return Reflect['metadata'](_0x31b1c3,_0xee500);};function a4_0x57c7(){const _0x6c0a5d=['@midwayjs/core','24rKkZGV','641445cREGzX','all','listModule','../interface','decorate','prototype','EventService','name','649000UVIcuC','bind','2561160iPdiTt','71762zHsskg','getOwnPropertyDescriptor','Provide','13HHpucJ','event','collect.js','defineProperty','getAsync','init','object','design:type','off','priority','4342064jkLPID','sortByDesc','push','metadata','7590663TYonXj','emit','getListevent','propertyKey','function','App','length','resolve','1237173hQICXD','ScopeEnum','listevent','app','default'];a4_0x57c7=function(){return _0x6c0a5d;};return a4_0x57c7();}Object[a4_0x3953a2(0x10c)](exports,'__esModule',{'value':!![]}),exports[a4_0x3953a2(0x101)]=void 0x0;const collect_js_1=require(a4_0x3953a2(0x10b)),core_1=require(a4_0x3953a2(0xf9)),interface_1=require(a4_0x3953a2(0xfe));function a4_0x59c5(_0x19ac02,_0x1fdb3f){const _0x57c7cd=a4_0x57c7();return a4_0x59c5=function(_0x59c507,_0x2d83f3){_0x59c507=_0x59c507-0xeb;let _0x488d4f=_0x57c7cd[_0x59c507];return _0x488d4f;},a4_0x59c5(_0x19ac02,_0x1fdb3f);}let EventService=class EventService{constructor(){const _0x35274a=a4_0x3953a2;this[_0x35274a(0x10e)]=![];}async[a4_0x3953a2(0xee)](_0x14f585){const _0x240c0e=a4_0x3953a2;if(!this[_0x240c0e(0x10e)]){this[_0x240c0e(0x10e)]=!![],this[_0x240c0e(0xf6)]={};for(const _0x1e60d9 of(0x0,core_1[_0x240c0e(0xfd)])(interface_1['EVENT_KEY'])||[]){const _0x5ddd5f=await this[_0x240c0e(0xf7)]['getApplicationContext']()[_0x240c0e(0x10d)](_0x1e60d9);for(const _0x474dcc of(0x0,core_1['getClassMetadata'])(interface_1['EVENT_ON_KEY'],_0x1e60d9)||[]){typeof(_0x5ddd5f[_0x474dcc[_0x240c0e(0xef)]]=='function')&&(!this[_0x240c0e(0xf6)][_0x474dcc[_0x240c0e(0x102)]]&&(this[_0x240c0e(0xf6)][_0x474dcc[_0x240c0e(0x102)]]=[]),this[_0x240c0e(0xf6)][_0x474dcc[_0x240c0e(0x102)]][_0x240c0e(0x115)]({'priority':_0x474dcc[_0x240c0e(0x112)],'resolve':_0x5ddd5f[_0x474dcc[_0x240c0e(0xef)]][_0x240c0e(0x104)](_0x5ddd5f),'propertyKey':_0x1e60d9[_0x240c0e(0x102)]+'@'+_0x474dcc['propertyKey']}));}}for(const _0x41e3ea in this[_0x240c0e(0xf6)]){this[_0x240c0e(0xf6)][_0x41e3ea]=(0x0,collect_js_1[_0x240c0e(0xf8)])(this['listevent'][_0x41e3ea])[_0x240c0e(0x114)](_0x240c0e(0x112))[_0x240c0e(0xfc)]();}}return _0x14f585?this[_0x240c0e(0xf6)][_0x14f585]||[]:this['listevent'];}async['emit'](_0x1222c6,..._0x340fa9){const _0x285498=a4_0x3953a2;var _0x3056d7,_0x3f5a65;await this[_0x285498(0xee)]();for(let _0x35b0b5 in(_0x3056d7=this[_0x285498(0xf6)])===null||_0x3056d7===void 0x0?void 0x0:_0x3056d7[_0x1222c6]){const _0xfefca1=(_0x3f5a65=this['listevent'][_0x1222c6])===null||_0x3f5a65===void 0x0?void 0x0:_0x3f5a65[_0x35b0b5];(_0xfefca1===null||_0xfefca1===void 0x0?void 0x0:_0xfefca1[_0x285498(0xf3)])&&typeof(_0xfefca1===null||_0xfefca1===void 0x0?void 0x0:_0xfefca1[_0x285498(0xf3)])==_0x285498(0xf0)&&await _0xfefca1[_0x285498(0xf3)](..._0x340fa9);}}async['once'](_0xc59bf,..._0x284c99){const _0x31dea2=a4_0x3953a2;return await this[_0x31dea2(0xee)](),await this[_0x31dea2(0xed)](_0xc59bf,..._0x284c99),this[_0x31dea2(0x111)](_0xc59bf);}async['off'](_0x4add58){const _0x572780=a4_0x3953a2;return await this['getListevent'](),this[_0x572780(0xf6)][_0x4add58]&&delete this[_0x572780(0xf6)][_0x4add58],!!this['listevent'][_0x4add58];}};__decorate([(0x0,core_1[a4_0x3953a2(0xf1)])(),__metadata(a4_0x3953a2(0x110),Object)],EventService[a4_0x3953a2(0x100)],a4_0x3953a2(0xf7),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x3953a2(0x108)])(a4_0x3953a2(0x10a)),(0x0,core_1['Scope'])(core_1[a4_0x3953a2(0xf5)]['Singleton'])],EventService),exports[a4_0x3953a2(0x101)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
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": "425478059fdc37cb53af3b1c9022d4cbc116b656"
|
|
25
25
|
}
|