@anncic-api/event 1.3.15 → 1.3.16
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_0x40471c=a0_0x423d;function a0_0x5134(){var _0x352d36=['2412957mdYcVY','__decorate','@midwayjs/core','40qLGrgF','length','Configuration','Inject','45usvOGU','decorate','145QFoGtV','CustomConfiguration','__metadata','28988VeOyoz','prototype','anncic-api:event','1816670CdRZdB','288ohlSuj','7732MlxuNH','MidwayConfigService','function','design:type','59196445huurxh','metadata','defineProperty','config','705915SyAtIB','MidwayDecoratorService','7740162yUffBi','__esModule'];a0_0x5134=function(){return _0x352d36;};return a0_0x5134();}(function(_0xa45884,_0x328963){var _0x60b48=a0_0x423d,_0x4734e1=_0xa45884();while(!![]){try{var _0x5a58b1=parseInt(_0x60b48(0x1d6))/0x1*(-parseInt(_0x60b48(0x1d5))/0x2)+-parseInt(_0x60b48(0x1c5))/0x3+parseInt(_0x60b48(0x1d1))/0x4*(parseInt(_0x60b48(0x1ce))/0x5)+-parseInt(_0x60b48(0x1c3))/0x6+parseInt(_0x60b48(0x1de))/0x7*(-parseInt(_0x60b48(0x1c8))/0x8)+parseInt(_0x60b48(0x1cc))/0x9*(-parseInt(_0x60b48(0x1d4))/0xa)+parseInt(_0x60b48(0x1da))/0xb;if(_0x5a58b1===_0x328963)break;else _0x4734e1['push'](_0x4734e1['shift']());}catch(_0x31d51e){_0x4734e1['push'](_0x4734e1['shift']());}}}(a0_0x5134,0xed250));var __decorate=this&&this[a0_0x40471c(0x1c6)]||function(_0x385f38,_0x2e56e7,_0x1de303,_0x423e21){var _0x328080=a0_0x40471c,_0x3757a4=arguments[_0x328080(0x1c9)],_0x26c605=_0x3757a4<0x3?_0x2e56e7:_0x423e21===null?_0x423e21=Object['getOwnPropertyDescriptor'](_0x2e56e7,_0x1de303):_0x423e21,_0x2b376b;if(typeof Reflect==='object'&&typeof Reflect[_0x328080(0x1cd)]===_0x328080(0x1d8))_0x26c605=Reflect[_0x328080(0x1cd)](_0x385f38,_0x2e56e7,_0x1de303,_0x423e21);else{for(var _0x62ce12=_0x385f38['length']-0x1;_0x62ce12>=0x0;_0x62ce12--)if(_0x2b376b=_0x385f38[_0x62ce12])_0x26c605=(_0x3757a4<0x3?_0x2b376b(_0x26c605):_0x3757a4>0x3?_0x2b376b(_0x2e56e7,_0x1de303,_0x26c605):_0x2b376b(_0x2e56e7,_0x1de303))||_0x26c605;}return _0x3757a4>0x3&&_0x26c605&&Object[_0x328080(0x1dc)](_0x2e56e7,_0x1de303,_0x26c605),_0x26c605;},__metadata=this&&this[a0_0x40471c(0x1d0)]||function(_0x6adb3d,_0x37205d){var _0x1963d5=a0_0x40471c;if(typeof Reflect==='object'&&typeof Reflect[_0x1963d5(0x1db)]===_0x1963d5(0x1d8))return Reflect[_0x1963d5(0x1db)](_0x6adb3d,_0x37205d);};function a0_0x423d(_0x2d1ab0,_0x11e5ed){var _0x5134e5=a0_0x5134();return a0_0x423d=function(_0x423df2,_0x28a615){_0x423df2=_0x423df2-0x1c2;var _0x50e1dc=_0x5134e5[_0x423df2];return _0x50e1dc;},a0_0x423d(_0x2d1ab0,_0x11e5ed);}Object['defineProperty'](exports,a0_0x40471c(0x1c4),{'value':!![]}),exports[a0_0x40471c(0x1cf)]=void 0x0;const core_1=require(a0_0x40471c(0x1c7)),core_2=require('@midwayjs/core');let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1[a0_0x40471c(0x1cb)])(),__metadata(a0_0x40471c(0x1d9),core_2[a0_0x40471c(0x1d7)])],CustomConfiguration[a0_0x40471c(0x1d2)],a0_0x40471c(0x1dd),void 0x0),__decorate([(0x0,core_1[a0_0x40471c(0x1cb)])(),__metadata('design:type',core_2[a0_0x40471c(0x1c2)])],CustomConfiguration[a0_0x40471c(0x1d2)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x40471c(0x1ca)])({'conflictCheck':![],'namespace':a0_0x40471c(0x1d3)})],CustomConfiguration),exports[a0_0x40471c(0x1cf)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x48f409=a1_0x635e;(function(_0x46d0cc,_0x24b483){const _0x383958=a1_0x635e,_0x5aa1d7=_0x46d0cc();while(!![]){try{const _0x3f99d8=-parseInt(_0x383958(0x9d))/0x1*(-parseInt(_0x383958(0x90))/0x2)+parseInt(_0x383958(0x8f))/0x3*(parseInt(_0x383958(0x96))/0x4)+parseInt(_0x383958(0x94))/0x5*(parseInt(_0x383958(0xa1))/0x6)+-parseInt(_0x383958(0x9f))/0x7+parseInt(_0x383958(0x92))/0x8+parseInt(_0x383958(0xa0))/0x9+-parseInt(_0x383958(0x99))/0xa*(parseInt(_0x383958(0x91))/0xb);if(_0x3f99d8===_0x24b483)break;else _0x5aa1d7['push'](_0x5aa1d7['shift']());}catch(_0xde1668){_0x5aa1d7['push'](_0x5aa1d7['shift']());}}}(a1_0x1871,0x8df6d));function a1_0x635e(_0x285bc8,_0x7541d9){const _0x18718f=a1_0x1871();return a1_0x635e=function(_0x635e3a,_0x26fa24){_0x635e3a=_0x635e3a-0x8f;let _0x234808=_0x18718f[_0x635e3a];return _0x234808;},a1_0x635e(_0x285bc8,_0x7541d9);}Object['defineProperty'](exports,a1_0x48f409(0x95),{'value':!![]}),exports[a1_0x48f409(0x9c)]=void 0x0;function a1_0x1871(){const _0x297135=['395266bvVgsi','ScopeEnum','6996605ZpdlyA','4025196CHMTmF','4734TKgeSz','165VHwlSl','2NLtFtE','22531916nBfrUn','9064504YEhcxU','attachClassMetadata','3760pkcdVb','__esModule','77124yrSKsw','Request','Provide','10GURokl','EVENT_KEY','../interface','Event'];a1_0x1871=function(){return _0x297135;};return a1_0x1871();}const core_1=require('@midwayjs/core'),interface_1=require(a1_0x48f409(0x9b));function Event(){return _0x1155f0=>{const _0x112f55=a1_0x635e;(0x0,core_1[_0x112f55(0x98)])()(_0x1155f0),(0x0,core_1['saveModule'])(interface_1[_0x112f55(0x9a)],_0x1155f0),(0x0,core_1['Scope'])(core_1[_0x112f55(0x9e)][_0x112f55(0x97)],{'allowDowngrade':!![]})(_0x1155f0);};}exports[a1_0x48f409(0x9c)]=Event,Event['On']=function(_0x5abc32,_0x12e510=0x0){return(_0x57af26,_0xb487b9,_0x552cb5)=>{const _0x1112b8=a1_0x635e;return(0x0,core_1[_0x1112b8(0x93)])(interface_1['EVENT_ON_KEY'],{'name':_0x5abc32,'priority':_0x12e510,'propertyKey':_0xb487b9,'descriptor':_0x552cb5},_0x57af26),_0x552cb5;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x7ff70a=a2_0x3a40;(function(_0x37d728,_0x21b61e){var _0x3e75b8=a2_0x3a40,_0x27d1b3=_0x37d728();while(!![]){try{var _0x4c9607=parseInt(_0x3e75b8(0xb6))/0x1+-parseInt(_0x3e75b8(0xc5))/0x2+parseInt(_0x3e75b8(0xc1))/0x3+parseInt(_0x3e75b8(0xba))/0x4+-parseInt(_0x3e75b8(0xbe))/0x5+parseInt(_0x3e75b8(0xbc))/0x6*(-parseInt(_0x3e75b8(0xc4))/0x7)+parseInt(_0x3e75b8(0xbd))/0x8;if(_0x4c9607===_0x21b61e)break;else _0x27d1b3['push'](_0x27d1b3['shift']());}catch(_0x222157){_0x27d1b3['push'](_0x27d1b3['shift']());}}}(a2_0x7823,0xae67a));Object[a2_0x7ff70a(0xb7)](exports,a2_0x7ff70a(0xbb),{'value':!![]}),exports[a2_0x7ff70a(0xc2)]=exports[a2_0x7ff70a(0xb8)]=exports['Event']=void 0x0;function a2_0x3a40(_0x37af4a,_0x411869){var _0x7823d2=a2_0x7823();return a2_0x3a40=function(_0x3a4047,_0x2cb459){_0x3a4047=_0x3a4047-0xb5;var _0x18ba60=_0x7823d2[_0x3a4047];return _0x18ba60;},a2_0x3a40(_0x37af4a,_0x411869);}var Event_1=require(a2_0x7ff70a(0xb5));Object[a2_0x7ff70a(0xb7)](exports,'Event',{'enumerable':!![],'get':function(){var _0x458116=a2_0x7ff70a;return Event_1[_0x458116(0xbf)];}});var EventService_1=require(a2_0x7ff70a(0xc3));Object[a2_0x7ff70a(0xb7)](exports,a2_0x7ff70a(0xb8),{'enumerable':!![],'get':function(){var _0x16450d=a2_0x7ff70a;return EventService_1[_0x16450d(0xb8)];}});var configuration_1=require(a2_0x7ff70a(0xc0));function a2_0x7823(){var _0x187495=['./configuration','3259995llVhaG','Configuration','./service/EventService','14CXRBhw','2415434jzibZw','./decorator/Event','1177145gZArMi','defineProperty','EventService','CustomConfiguration','3140508plBTjK','__esModule','1013610reJYFN','3064968iTbEaG','5860545GfjZHM','Event'];a2_0x7823=function(){return _0x187495;};return a2_0x7823();}Object[a2_0x7ff70a(0xb7)](exports,a2_0x7ff70a(0xc2),{'enumerable':!![],'get':function(){var _0x18bd1c=a2_0x7ff70a;return configuration_1[_0x18bd1c(0xb9)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a3_0x211b(_0x1d7d43,_0xe65d52){var _0x445bed=a3_0x445b();return a3_0x211b=function(_0x211b93,_0x5daaf5){_0x211b93=_0x211b93-0x1af;var _0x4a5bbc=_0x445bed[_0x211b93];return _0x4a5bbc;},a3_0x211b(_0x1d7d43,_0xe65d52);}function a3_0x445b(){var _0x25b1f8=['233049FkveBn','__esModule','696108rExSLV','defineProperty','90PDeUqG','24dAVHZY','82092JBQXbw','anncic-api:event','EVENT_KEY','38720wHToeq','1032024XkUfHk','758375dXxOwI','EVENT_ON_KEY','1242288yJReDV'];a3_0x445b=function(){return _0x25b1f8;};return a3_0x445b();}var a3_0x526a9f=a3_0x211b;(function(_0x25e559,_0x6f6109){var _0x3e2d53=a3_0x211b,_0x1a0e70=_0x25e559();while(!![]){try{var _0x437d10=-parseInt(_0x3e2d53(0x1b0))/0x1+parseInt(_0x3e2d53(0x1b6))/0x2*(-parseInt(_0x3e2d53(0x1b5))/0x3)+parseInt(_0x3e2d53(0x1af))/0x4+parseInt(_0x3e2d53(0x1bb))/0x5+parseInt(_0x3e2d53(0x1ba))/0x6+parseInt(_0x3e2d53(0x1b2))/0x7+-parseInt(_0x3e2d53(0x1b9))/0x8*(-parseInt(_0x3e2d53(0x1b4))/0x9);if(_0x437d10===_0x6f6109)break;else _0x1a0e70['push'](_0x1a0e70['shift']());}catch(_0x2fabe8){_0x1a0e70['push'](_0x1a0e70['shift']());}}}(a3_0x445b,0x35e06));Object[a3_0x526a9f(0x1b3)](exports,a3_0x526a9f(0x1b1),{'value':!![]}),exports[a3_0x526a9f(0x1bc)]=exports[a3_0x526a9f(0x1b8)]=void 0x0,exports[a3_0x526a9f(0x1b8)]=a3_0x526a9f(0x1b7),exports[a3_0x526a9f(0x1bc)]='anncic-api:event:on';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x274617=a4_0x46d8;(function(_0x20ac2b,_0x44db9c){const _0x58d97e=a4_0x46d8,_0x14d381=_0x20ac2b();while(!![]){try{const _0x51dcb4=parseInt(_0x58d97e(0x1bd))/0x1*(parseInt(_0x58d97e(0x199))/0x2)+parseInt(_0x58d97e(0x1b7))/0x3+parseInt(_0x58d97e(0x1b6))/0x4*(parseInt(_0x58d97e(0x1a3))/0x5)+parseInt(_0x58d97e(0x1b8))/0x6+parseInt(_0x58d97e(0x196))/0x7*(-parseInt(_0x58d97e(0x1b2))/0x8)+parseInt(_0x58d97e(0x1a7))/0x9*(parseInt(_0x58d97e(0x1a9))/0xa)+-parseInt(_0x58d97e(0x19d))/0xb;if(_0x51dcb4===_0x44db9c)break;else _0x14d381['push'](_0x14d381['shift']());}catch(_0x383530){_0x14d381['push'](_0x14d381['shift']());}}}(a4_0x1f69,0x6b1cd));var __decorate=this&&this['__decorate']||function(_0x13d82e,_0x1867cd,_0xe31333,_0x2554aa){const _0x1eccf5=a4_0x46d8;var _0xb0d905=arguments[_0x1eccf5(0x192)],_0x1087c9=_0xb0d905<0x3?_0x1867cd:_0x2554aa===null?_0x2554aa=Object[_0x1eccf5(0x19e)](_0x1867cd,_0xe31333):_0x2554aa,_0x197b6f;if(typeof Reflect===_0x1eccf5(0x1ac)&&typeof Reflect[_0x1eccf5(0x1a1)]===_0x1eccf5(0x1b1))_0x1087c9=Reflect[_0x1eccf5(0x1a1)](_0x13d82e,_0x1867cd,_0xe31333,_0x2554aa);else{for(var _0x27ce6a=_0x13d82e[_0x1eccf5(0x192)]-0x1;_0x27ce6a>=0x0;_0x27ce6a--)if(_0x197b6f=_0x13d82e[_0x27ce6a])_0x1087c9=(_0xb0d905<0x3?_0x197b6f(_0x1087c9):_0xb0d905>0x3?_0x197b6f(_0x1867cd,_0xe31333,_0x1087c9):_0x197b6f(_0x1867cd,_0xe31333))||_0x1087c9;}return _0xb0d905>0x3&&_0x1087c9&&Object[_0x1eccf5(0x1b0)](_0x1867cd,_0xe31333,_0x1087c9),_0x1087c9;},__metadata=this&&this[a4_0x274617(0x1a4)]||function(_0xa5b635,_0x26248f){const _0x23c6d7=a4_0x274617;if(typeof Reflect===_0x23c6d7(0x1ac)&&typeof Reflect[_0x23c6d7(0x1a2)]===_0x23c6d7(0x1b1))return Reflect['metadata'](_0xa5b635,_0x26248f);};function a4_0x46d8(_0xc3ce89,_0x5230ed){const _0x1f6961=a4_0x1f69();return a4_0x46d8=function(_0x46d8f8,_0x1809ff){_0x46d8f8=_0x46d8f8-0x192;let _0x1b7c3a=_0x1f6961[_0x46d8f8];return _0x1b7c3a;},a4_0x46d8(_0xc3ce89,_0x5230ed);}Object[a4_0x274617(0x1b0)](exports,a4_0x274617(0x193),{'value':!![]}),exports[a4_0x274617(0x1b3)]=void 0x0;const collect_js_1=require(a4_0x274617(0x1b4)),core_1=require(a4_0x274617(0x1b9)),interface_1=require(a4_0x274617(0x19b));function a4_0x1f69(){const _0x386d83=['ScopeEnum','6cVKQyz','App','../interface','all','29874823pgnHRd','getOwnPropertyDescriptor','EVENT_KEY','Scope','decorate','metadata','514835MOICEX','__metadata','propertyKey','event','1374786lZnbKp','getListevent','50YJcrmk','emit','listevent','object','getClassMetadata','push','Provide','defineProperty','function','1313504iYCfwn','EventService','collect.js','bind','28mcZQeH','2004762dQJNwo','5177640eRPqyz','@midwayjs/core','app','init','name','101027YvzevU','off','length','__esModule','resolve','priority','7DKCfuW','default'];a4_0x1f69=function(){return _0x386d83;};return a4_0x1f69();}let EventService=class EventService{constructor(){this['init']=![];}async['getListevent'](_0x525b99){const _0x1402d1=a4_0x274617;if(!this[_0x1402d1(0x1bb)]){this[_0x1402d1(0x1bb)]=!![],this['listevent']={};for(const _0x39c0c8 of(0x0,core_1['listModule'])(interface_1[_0x1402d1(0x19f)])||[]){const _0x9fd236=await this[_0x1402d1(0x1ba)]['getApplicationContext']()['getAsync'](_0x39c0c8);for(const _0x2c70b7 of(0x0,core_1[_0x1402d1(0x1ad)])(interface_1['EVENT_ON_KEY'],_0x39c0c8)||[]){typeof(_0x9fd236[_0x2c70b7[_0x1402d1(0x1a5)]]==_0x1402d1(0x1b1))&&(!this[_0x1402d1(0x1ab)][_0x2c70b7['name']]&&(this[_0x1402d1(0x1ab)][_0x2c70b7[_0x1402d1(0x1bc)]]=[]),this[_0x1402d1(0x1ab)][_0x2c70b7[_0x1402d1(0x1bc)]][_0x1402d1(0x1ae)]({'priority':_0x2c70b7[_0x1402d1(0x195)],'resolve':_0x9fd236[_0x2c70b7['propertyKey']][_0x1402d1(0x1b5)](_0x9fd236),'propertyKey':_0x39c0c8[_0x1402d1(0x1bc)]+'@'+_0x2c70b7[_0x1402d1(0x1a5)]}));}}for(const _0x4612bf in this['listevent']){this[_0x1402d1(0x1ab)][_0x4612bf]=(0x0,collect_js_1[_0x1402d1(0x197)])(this[_0x1402d1(0x1ab)][_0x4612bf])['sortByDesc'](_0x1402d1(0x195))[_0x1402d1(0x19c)]();}}return _0x525b99?this[_0x1402d1(0x1ab)][_0x525b99]||[]:this['listevent'];}async[a4_0x274617(0x1aa)](_0x5a89b2,..._0x370525){const _0x4f1a2b=a4_0x274617;var _0x166fe9,_0x1e0f84;await this[_0x4f1a2b(0x1a8)]();for(let _0x418b27 in(_0x166fe9=this['listevent'])===null||_0x166fe9===void 0x0?void 0x0:_0x166fe9[_0x5a89b2]){const _0x24f7a2=(_0x1e0f84=this['listevent'][_0x5a89b2])===null||_0x1e0f84===void 0x0?void 0x0:_0x1e0f84[_0x418b27];(_0x24f7a2===null||_0x24f7a2===void 0x0?void 0x0:_0x24f7a2[_0x4f1a2b(0x194)])&&typeof(_0x24f7a2===null||_0x24f7a2===void 0x0?void 0x0:_0x24f7a2[_0x4f1a2b(0x194)])=='function'&&await _0x24f7a2[_0x4f1a2b(0x194)](..._0x370525);}}async['once'](_0x54498a,..._0x4e02c0){const _0x5efd6f=a4_0x274617;return await this[_0x5efd6f(0x1a8)](),await this[_0x5efd6f(0x1aa)](_0x54498a,..._0x4e02c0),this['off'](_0x54498a);}async[a4_0x274617(0x1be)](_0x2d47d7){const _0x120541=a4_0x274617;return await this[_0x120541(0x1a8)](),this['listevent'][_0x2d47d7]&&delete this[_0x120541(0x1ab)][_0x2d47d7],!!this[_0x120541(0x1ab)][_0x2d47d7];}};__decorate([(0x0,core_1[a4_0x274617(0x19a)])(),__metadata('design:type',Object)],EventService['prototype'],a4_0x274617(0x1ba),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x274617(0x1af)])(a4_0x274617(0x1a6)),(0x0,core_1[a4_0x274617(0x1a0)])(core_1[a4_0x274617(0x198)]['Singleton'])],EventService),exports[a4_0x274617(0x1b3)]=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.16",
|
|
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": "09b73c237971f136ca906932d8748679a36451e2"
|
|
25
25
|
}
|