@anncic-api/event 1.3.4 → 1.3.6
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';function
|
|
1
|
+
'use strict';var a0_0x1b9912=a0_0x3d9a;function a0_0x3b50(){var _0x3b861f=['prototype','9SzGwIA','getOwnPropertyDescriptor','3178128ZteIJo','8HmWXwe','config','Configuration','417889VXhXSJ','design:type','Inject','7092855LVIOqZ','function','4jIEtsm','146712CmPtZk','2166102hYqXcf','MidwayConfigService','onReady','@midwayjs/core','3039071dQIMWM','metadata','CustomConfiguration','length','18qacrdJ','2101KTXCuB','MidwayDecoratorService','defineProperty','13861270aeNFte','decorate','object'];a0_0x3b50=function(){return _0x3b861f;};return a0_0x3b50();}(function(_0x225eff,_0x10fbbd){var _0x2d77f6=a0_0x3d9a,_0x101031=_0x225eff();while(!![]){try{var _0x27f08a=parseInt(_0x2d77f6(0x159))/0x1*(parseInt(_0x2d77f6(0x15e))/0x2)+-parseInt(_0x2d77f6(0x160))/0x3*(-parseInt(_0x2d77f6(0x156))/0x4)+-parseInt(_0x2d77f6(0x15c))/0x5+-parseInt(_0x2d77f6(0x168))/0x6*(-parseInt(_0x2d77f6(0x164))/0x7)+-parseInt(_0x2d77f6(0x155))/0x8+parseInt(_0x2d77f6(0x170))/0x9*(parseInt(_0x2d77f6(0x16c))/0xa)+-parseInt(_0x2d77f6(0x169))/0xb*(parseInt(_0x2d77f6(0x15f))/0xc);if(_0x27f08a===_0x10fbbd)break;else _0x101031['push'](_0x101031['shift']());}catch(_0x20bfdf){_0x101031['push'](_0x101031['shift']());}}}(a0_0x3b50,0xc7915));var __decorate=this&&this['__decorate']||function(_0x4c1c8a,_0x33b9c5,_0x53016e,_0x33e48b){var _0x2b6f9d=a0_0x3d9a,_0x1c8610=arguments['length'],_0x218a0b=_0x1c8610<0x3?_0x33b9c5:_0x33e48b===null?_0x33e48b=Object[_0x2b6f9d(0x171)](_0x33b9c5,_0x53016e):_0x33e48b,_0x34f3fe;if(typeof Reflect===_0x2b6f9d(0x16e)&&typeof Reflect[_0x2b6f9d(0x16d)]===_0x2b6f9d(0x15d))_0x218a0b=Reflect[_0x2b6f9d(0x16d)](_0x4c1c8a,_0x33b9c5,_0x53016e,_0x33e48b);else{for(var _0x34e150=_0x4c1c8a[_0x2b6f9d(0x167)]-0x1;_0x34e150>=0x0;_0x34e150--)if(_0x34f3fe=_0x4c1c8a[_0x34e150])_0x218a0b=(_0x1c8610<0x3?_0x34f3fe(_0x218a0b):_0x1c8610>0x3?_0x34f3fe(_0x33b9c5,_0x53016e,_0x218a0b):_0x34f3fe(_0x33b9c5,_0x53016e))||_0x218a0b;}return _0x1c8610>0x3&&_0x218a0b&&Object[_0x2b6f9d(0x16b)](_0x33b9c5,_0x53016e,_0x218a0b),_0x218a0b;},__metadata=this&&this['__metadata']||function(_0xb28048,_0x143d1b){var _0x35fedd=a0_0x3d9a;if(typeof Reflect===_0x35fedd(0x16e)&&typeof Reflect[_0x35fedd(0x165)]===_0x35fedd(0x15d))return Reflect['metadata'](_0xb28048,_0x143d1b);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1b9912(0x166)]=void 0x0;function a0_0x3d9a(_0xd3e261,_0x52c9ef){var _0x3b502d=a0_0x3b50();return a0_0x3d9a=function(_0x3d9a7a,_0x28fc0a){_0x3d9a7a=_0x3d9a7a-0x155;var _0x4d0655=_0x3b502d[_0x3d9a7a];return _0x4d0655;},a0_0x3d9a(_0xd3e261,_0x52c9ef);}const core_1=require('@midwayjs/core'),core_2=require(a0_0x1b9912(0x163));let CustomConfiguration=class CustomConfiguration{async[a0_0x1b9912(0x162)](){}};__decorate([(0x0,core_1[a0_0x1b9912(0x15b)])(),__metadata(a0_0x1b9912(0x15a),core_2[a0_0x1b9912(0x161)])],CustomConfiguration[a0_0x1b9912(0x16f)],a0_0x1b9912(0x157),void 0x0),__decorate([(0x0,core_1[a0_0x1b9912(0x15b)])(),__metadata('design:type',core_2[a0_0x1b9912(0x16a)])],CustomConfiguration[a0_0x1b9912(0x16f)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x1b9912(0x158)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x1b9912(0x166)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x181be8=a1_0x1647;(function(_0x37268d,_0x425682){const _0x548bd5=a1_0x1647,_0x4937e0=_0x37268d();while(!![]){try{const _0x2f66b7=-parseInt(_0x548bd5(0x6f))/0x1*(-parseInt(_0x548bd5(0x6b))/0x2)+parseInt(_0x548bd5(0x6d))/0x3+-parseInt(_0x548bd5(0x69))/0x4+-parseInt(_0x548bd5(0x65))/0x5+-parseInt(_0x548bd5(0x70))/0x6+parseInt(_0x548bd5(0x6c))/0x7+parseInt(_0x548bd5(0x6a))/0x8;if(_0x2f66b7===_0x425682)break;else _0x4937e0['push'](_0x4937e0['shift']());}catch(_0x1f9b5d){_0x4937e0['push'](_0x4937e0['shift']());}}}(a1_0x164a,0xf1af0));function a1_0x1647(_0x42e1d6,_0x431bde){const _0x164adc=a1_0x164a();return a1_0x1647=function(_0x1647c1,_0x4e9b4f){_0x1647c1=_0x1647c1-0x64;let _0x32bc0c=_0x164adc[_0x1647c1];return _0x32bc0c;},a1_0x1647(_0x42e1d6,_0x431bde);}Object['defineProperty'](exports,a1_0x181be8(0x71),{'value':!![]}),exports[a1_0x181be8(0x73)]=void 0x0;const core_1=require(a1_0x181be8(0x64)),interface_1=require('../interface');function Event(){return _0x48d756=>{const _0x236672=a1_0x1647;(0x0,core_1[_0x236672(0x74)])()(_0x48d756),(0x0,core_1[_0x236672(0x6e)])(interface_1[_0x236672(0x67)],_0x48d756),(0x0,core_1[_0x236672(0x75)])(core_1[_0x236672(0x68)][_0x236672(0x66)],{'allowDowngrade':!![]})(_0x48d756);};}function a1_0x164a(){const _0x3d3209=['attachClassMetadata','Event','Provide','Scope','EVENT_ON_KEY','@midwayjs/core','1257890tNoSvk','Request','EVENT_KEY','ScopeEnum','7864544nDuNhJ','15053128GNvZVD','34hMEkJE','8561273bKmNmE','90708iocCpm','saveModule','78261YjQMiq','7546218qqMPdA','__esModule'];a1_0x164a=function(){return _0x3d3209;};return a1_0x164a();}exports[a1_0x181be8(0x73)]=Event,Event['On']=function(_0x3de8a1,_0x566e45=0x0){return(_0x2daa22,_0xd9cc02,_0x256801)=>{const _0x2c8653=a1_0x1647;return(0x0,core_1[_0x2c8653(0x72)])(interface_1[_0x2c8653(0x76)],{'name':_0x3de8a1,'priority':_0x566e45,'propertyKey':_0xd9cc02,'descriptor':_0x256801},_0x2daa22),_0x256801;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x2249c8=a2_0x5354;(function(_0x38bafe,_0x17f9e7){var _0x1956ea=a2_0x5354,_0x4c471f=_0x38bafe();while(!![]){try{var _0x5a45dc=-parseInt(_0x1956ea(0x18c))/0x1+-parseInt(_0x1956ea(0x194))/0x2+-parseInt(_0x1956ea(0x189))/0x3+parseInt(_0x1956ea(0x186))/0x4*(-parseInt(_0x1956ea(0x190))/0x5)+-parseInt(_0x1956ea(0x191))/0x6*(parseInt(_0x1956ea(0x196))/0x7)+parseInt(_0x1956ea(0x18f))/0x8+parseInt(_0x1956ea(0x187))/0x9;if(_0x5a45dc===_0x17f9e7)break;else _0x4c471f['push'](_0x4c471f['shift']());}catch(_0xbf6d95){_0x4c471f['push'](_0x4c471f['shift']());}}}(a2_0x4eec,0x19cb5));Object[a2_0x2249c8(0x192)](exports,a2_0x2249c8(0x195),{'value':!![]}),exports[a2_0x2249c8(0x188)]=exports[a2_0x2249c8(0x18a)]=exports[a2_0x2249c8(0x18b)]=void 0x0;var Event_1=require('./decorator/Event');Object[a2_0x2249c8(0x192)](exports,a2_0x2249c8(0x18b),{'enumerable':!![],'get':function(){var _0x5bbf4b=a2_0x2249c8;return Event_1[_0x5bbf4b(0x18b)];}});function a2_0x5354(_0x478aa0,_0x4bf17c){var _0x4eec89=a2_0x4eec();return a2_0x5354=function(_0x535496,_0x3b03c6){_0x535496=_0x535496-0x186;var _0x119662=_0x4eec89[_0x535496];return _0x119662;},a2_0x5354(_0x478aa0,_0x4bf17c);}var EventService_1=require(a2_0x2249c8(0x18d));Object[a2_0x2249c8(0x192)](exports,a2_0x2249c8(0x18a),{'enumerable':!![],'get':function(){var _0x4f9c99=a2_0x2249c8;return EventService_1[_0x4f9c99(0x18a)];}});var configuration_1=require(a2_0x2249c8(0x193));Object[a2_0x2249c8(0x192)](exports,a2_0x2249c8(0x188),{'enumerable':!![],'get':function(){var _0x1006b0=a2_0x2249c8;return configuration_1[_0x1006b0(0x18e)];}});function a2_0x4eec(){var _0x191602=['__esModule','321629vCOzrn','736136ANOiJi','5478813RHqohq','Configuration','324471iZuvpM','EventService','Event','100234HtOOnK','./service/EventService','CustomConfiguration','1592048gQGSWH','5urvPPb','18IIGzZx','defineProperty','./configuration','343688NEPzPG'];a2_0x4eec=function(){return _0x191602;};return a2_0x4eec();}
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a3_0x3f7d69=a3_0x2b4f;function a3_0x2b4f(_0x37f755,_0x289286){var _0x36f1ee=a3_0x36f1();return a3_0x2b4f=function(_0x2b4f5b,_0x3d22d0){_0x2b4f5b=_0x2b4f5b-0x18c;var _0x50cf36=_0x36f1ee[_0x2b4f5b];return _0x50cf36;},a3_0x2b4f(_0x37f755,_0x289286);}(function(_0x201c50,_0x1bc1b2){var _0x4ecb09=a3_0x2b4f,_0x5a00a1=_0x201c50();while(!![]){try{var _0x2e4dc0=parseInt(_0x4ecb09(0x193))/0x1+-parseInt(_0x4ecb09(0x198))/0x2*(parseInt(_0x4ecb09(0x18d))/0x3)+-parseInt(_0x4ecb09(0x191))/0x4+parseInt(_0x4ecb09(0x19b))/0x5*(parseInt(_0x4ecb09(0x196))/0x6)+-parseInt(_0x4ecb09(0x18e))/0x7+parseInt(_0x4ecb09(0x190))/0x8*(-parseInt(_0x4ecb09(0x194))/0x9)+parseInt(_0x4ecb09(0x18c))/0xa;if(_0x2e4dc0===_0x1bc1b2)break;else _0x5a00a1['push'](_0x5a00a1['shift']());}catch(_0x1a2fb2){_0x5a00a1['push'](_0x5a00a1['shift']());}}}(a3_0x36f1,0xe81d2));function a3_0x36f1(){var _0x5b83d2=['1634853yizsFP','9772245DuwODx','__esModule','2937512SjiqxT','4145436KgNMjZ','anncic-api:event:on','1237960mMQwKy','18JawmGK','anncic-api:event','551640lCXzmz','EVENT_KEY','2fpEqxA','EVENT_ON_KEY','defineProperty','80vfYUgg','19534610SmWqNh'];a3_0x36f1=function(){return _0x5b83d2;};return a3_0x36f1();}Object[a3_0x3f7d69(0x19a)](exports,a3_0x3f7d69(0x18f),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0x3f7d69(0x197)]=void 0x0,exports[a3_0x3f7d69(0x197)]=a3_0x3f7d69(0x195),exports[a3_0x3f7d69(0x199)]=a3_0x3f7d69(0x192);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x2f857c=a4_0x1d35;(function(_0x3cef76,_0x55ca2d){const _0x2d8654=a4_0x1d35,_0x4fc3f5=_0x3cef76();while(!![]){try{const _0x4d9d54=-parseInt(_0x2d8654(0x9f))/0x1+-parseInt(_0x2d8654(0xbc))/0x2+-parseInt(_0x2d8654(0xaa))/0x3+-parseInt(_0x2d8654(0x9a))/0x4+-parseInt(_0x2d8654(0x92))/0x5+parseInt(_0x2d8654(0xa2))/0x6*(parseInt(_0x2d8654(0xbd))/0x7)+parseInt(_0x2d8654(0x9c))/0x8;if(_0x4d9d54===_0x55ca2d)break;else _0x4fc3f5['push'](_0x4fc3f5['shift']());}catch(_0x2630e4){_0x4fc3f5['push'](_0x4fc3f5['shift']());}}}(a4_0x1e9e,0xa4760));var __decorate=this&&this[a4_0x2f857c(0xa8)]||function(_0x44865d,_0x40d2c6,_0x204aeb,_0xcdc33){const _0x187fbe=a4_0x2f857c;var _0x302a66=arguments[_0x187fbe(0x96)],_0x17e834=_0x302a66<0x3?_0x40d2c6:_0xcdc33===null?_0xcdc33=Object[_0x187fbe(0xba)](_0x40d2c6,_0x204aeb):_0xcdc33,_0x108354;if(typeof Reflect===_0x187fbe(0x99)&&typeof Reflect[_0x187fbe(0xa1)]==='function')_0x17e834=Reflect[_0x187fbe(0xa1)](_0x44865d,_0x40d2c6,_0x204aeb,_0xcdc33);else{for(var _0x57af53=_0x44865d['length']-0x1;_0x57af53>=0x0;_0x57af53--)if(_0x108354=_0x44865d[_0x57af53])_0x17e834=(_0x302a66<0x3?_0x108354(_0x17e834):_0x302a66>0x3?_0x108354(_0x40d2c6,_0x204aeb,_0x17e834):_0x108354(_0x40d2c6,_0x204aeb))||_0x17e834;}return _0x302a66>0x3&&_0x17e834&&Object[_0x187fbe(0xac)](_0x40d2c6,_0x204aeb,_0x17e834),_0x17e834;},__metadata=this&&this[a4_0x2f857c(0xb0)]||function(_0x4fa328,_0x378b7e){const _0x280450=a4_0x2f857c;if(typeof Reflect==='object'&&typeof Reflect[_0x280450(0xa3)]===_0x280450(0xb7))return Reflect['metadata'](_0x4fa328,_0x378b7e);};function a4_0x1e9e(){const _0x53a75b=['default','emit','push','event','function','off','EventService','getOwnPropertyDescriptor','priority','330886lievdK','7nlvtBW','5503770pzwWVl','propertyKey','prototype','design:type','length','ScopeEnum','name','object','1003484lVZnvr','Provide','24612664uENGKG','App','getClassMetadata','110771iPfsVe','sortByDesc','decorate','2722122GKzYFH','metadata','listevent','getListevent','resolve','@midwayjs/core','__decorate','app','3686397hyDdoj','Singleton','defineProperty','EVENT_ON_KEY','init','collect.js','__metadata','../interface','all'];a4_0x1e9e=function(){return _0x53a75b;};return a4_0x1e9e();}Object[a4_0x2f857c(0xac)](exports,'__esModule',{'value':!![]}),exports[a4_0x2f857c(0xb9)]=void 0x0;function a4_0x1d35(_0x17a73a,_0x5116f1){const _0x1e9e06=a4_0x1e9e();return a4_0x1d35=function(_0x1d35a0,_0xc5fa41){_0x1d35a0=_0x1d35a0-0x92;let _0x31e5a7=_0x1e9e06[_0x1d35a0];return _0x31e5a7;},a4_0x1d35(_0x17a73a,_0x5116f1);}const collect_js_1=require(a4_0x2f857c(0xaf)),core_1=require(a4_0x2f857c(0xa7)),interface_1=require(a4_0x2f857c(0xb1));let EventService=class EventService{constructor(){this['init']=![];}async[a4_0x2f857c(0xa5)](_0x1772c3){const _0x134069=a4_0x2f857c;if(!this[_0x134069(0xae)]){this['init']=!![],this[_0x134069(0xa4)]={};for(const _0xa0e8a0 of(0x0,core_1['listModule'])(interface_1['EVENT_KEY'])||[]){const _0x17916a=await this['app']['getApplicationContext']()['getAsync'](_0xa0e8a0);for(const _0x583905 of(0x0,core_1[_0x134069(0x9e)])(interface_1[_0x134069(0xad)],_0xa0e8a0)||[]){typeof(_0x17916a[_0x583905[_0x134069(0x93)]]==_0x134069(0xb7))&&(!this['listevent'][_0x583905[_0x134069(0x98)]]&&(this[_0x134069(0xa4)][_0x583905[_0x134069(0x98)]]=[]),this[_0x134069(0xa4)][_0x583905[_0x134069(0x98)]][_0x134069(0xb5)]({'priority':_0x583905['priority'],'resolve':_0x17916a[_0x583905['propertyKey']]['bind'](_0x17916a),'propertyKey':_0xa0e8a0[_0x134069(0x98)]+'@'+_0x583905[_0x134069(0x93)]}));}}for(const _0x325f36 in this[_0x134069(0xa4)]){this['listevent'][_0x325f36]=(0x0,collect_js_1[_0x134069(0xb3)])(this['listevent'][_0x325f36])[_0x134069(0xa0)](_0x134069(0xbb))[_0x134069(0xb2)]();}}return _0x1772c3?this[_0x134069(0xa4)][_0x1772c3]||[]:this[_0x134069(0xa4)];}async[a4_0x2f857c(0xb4)](_0x1de6e2,..._0x275d5a){const _0x426aaf=a4_0x2f857c;var _0x33c67b,_0x966b7d;await this['getListevent']();for(let _0x4d22f8 in(_0x33c67b=this[_0x426aaf(0xa4)])===null||_0x33c67b===void 0x0?void 0x0:_0x33c67b[_0x1de6e2]){const _0x24db16=(_0x966b7d=this[_0x426aaf(0xa4)][_0x1de6e2])===null||_0x966b7d===void 0x0?void 0x0:_0x966b7d[_0x4d22f8];(_0x24db16===null||_0x24db16===void 0x0?void 0x0:_0x24db16[_0x426aaf(0xa6)])&&typeof(_0x24db16===null||_0x24db16===void 0x0?void 0x0:_0x24db16[_0x426aaf(0xa6)])==_0x426aaf(0xb7)&&await _0x24db16[_0x426aaf(0xa6)](..._0x275d5a);}}async['once'](_0x591952,..._0x4776fe){const _0x3732c1=a4_0x2f857c;return await this[_0x3732c1(0xa5)](),await this[_0x3732c1(0xb4)](_0x591952,..._0x4776fe),this[_0x3732c1(0xb8)](_0x591952);}async['off'](_0x2b42fe){const _0x2aeb7f=a4_0x2f857c;return await this[_0x2aeb7f(0xa5)](),this['listevent'][_0x2b42fe]&&delete this[_0x2aeb7f(0xa4)][_0x2b42fe],!!this['listevent'][_0x2b42fe];}};__decorate([(0x0,core_1[a4_0x2f857c(0x9d)])(),__metadata(a4_0x2f857c(0x95),Object)],EventService[a4_0x2f857c(0x94)],a4_0x2f857c(0xa9),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x2f857c(0x9b)])(a4_0x2f857c(0xb6)),(0x0,core_1['Scope'])(core_1[a4_0x2f857c(0x97)][a4_0x2f857c(0xab)])],EventService),exports[a4_0x2f857c(0xb9)]=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.6",
|
|
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": "92211a82ff3469ae11998c0af4e34ce499bd37e6"
|
|
25
25
|
}
|