@anncic-api/event 1.1.9 → 1.1.12
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_0x458a4e=a0_0x5118;(function(_0x19baca,_0x3685dc){var _0x139d04=a0_0x5118,_0x49db18=_0x19baca();while(!![]){try{var _0x261080=parseInt(_0x139d04(0x1f3))/0x1*(parseInt(_0x139d04(0x1f6))/0x2)+parseInt(_0x139d04(0x1ef))/0x3*(parseInt(_0x139d04(0x1fb))/0x4)+parseInt(_0x139d04(0x1fe))/0x5+parseInt(_0x139d04(0x205))/0x6*(parseInt(_0x139d04(0x1ee))/0x7)+-parseInt(_0x139d04(0x203))/0x8*(-parseInt(_0x139d04(0x1f7))/0x9)+-parseInt(_0x139d04(0x209))/0xa+-parseInt(_0x139d04(0x1f8))/0xb*(parseInt(_0x139d04(0x202))/0xc);if(_0x261080===_0x3685dc)break;else _0x49db18['push'](_0x49db18['shift']());}catch(_0x17ee62){_0x49db18['push'](_0x49db18['shift']());}}}(a0_0x57e7,0xf170d));var __decorate=this&&this[a0_0x458a4e(0x208)]||function(_0x2f5f8e,_0x5831d0,_0x2a7f5f,_0x360374){var _0x374c5d=a0_0x458a4e,_0x5afbd9=arguments['length'],_0x2edb73=_0x5afbd9<0x3?_0x5831d0:_0x360374===null?_0x360374=Object[_0x374c5d(0x1ed)](_0x5831d0,_0x2a7f5f):_0x360374,_0x2ce009;if(typeof Reflect===_0x374c5d(0x1f2)&&typeof Reflect['decorate']===_0x374c5d(0x1f1))_0x2edb73=Reflect[_0x374c5d(0x1fc)](_0x2f5f8e,_0x5831d0,_0x2a7f5f,_0x360374);else{for(var _0x1ec7fe=_0x2f5f8e['length']-0x1;_0x1ec7fe>=0x0;_0x1ec7fe--)if(_0x2ce009=_0x2f5f8e[_0x1ec7fe])_0x2edb73=(_0x5afbd9<0x3?_0x2ce009(_0x2edb73):_0x5afbd9>0x3?_0x2ce009(_0x5831d0,_0x2a7f5f,_0x2edb73):_0x2ce009(_0x5831d0,_0x2a7f5f))||_0x2edb73;}return _0x5afbd9>0x3&&_0x2edb73&&Object[_0x374c5d(0x201)](_0x5831d0,_0x2a7f5f,_0x2edb73),_0x2edb73;},__metadata=this&&this['__metadata']||function(_0x21b00b,_0x36c550){var _0x250799=a0_0x458a4e;if(typeof Reflect===_0x250799(0x1f2)&&typeof Reflect[_0x250799(0x20c)]==='function')return Reflect[_0x250799(0x20c)](_0x21b00b,_0x36c550);};Object[a0_0x458a4e(0x201)](exports,a0_0x458a4e(0x1fd),{'value':!![]}),exports[a0_0x458a4e(0x1f9)]=void 0x0;const decorator_1=require(a0_0x458a4e(0x20b)),core_1=require(a0_0x458a4e(0x1fa));let CustomConfiguration=class CustomConfiguration{async[a0_0x458a4e(0x20a)](){}};function a0_0x57e7(){var _0x57e607=['930IaFZKq','prototype','function','object','1724893ajBKzp','Configuration','anncic-api:event','2rSYKqe','9eCEqkF','25960066SegTcR','CustomConfiguration','@midwayjs/core','16676rLUnnr','decorate','__esModule','4339110mKaSKD','Inject','MidwayConfigService','defineProperty','12gYiHIL','2377688CXxiDd','MidwayDecoratorService','54960GJNXbc','design:type','decorator','__decorate','8791690iIGtgB','onReady','@midwayjs/decorator','metadata','getOwnPropertyDescriptor','35RFGKCx'];a0_0x57e7=function(){return _0x57e607;};return a0_0x57e7();}function a0_0x5118(_0x24de68,_0x81ed43){var _0x57e777=a0_0x57e7();return a0_0x5118=function(_0x511848,_0x273332){_0x511848=_0x511848-0x1ed;var _0x17306f=_0x57e777[_0x511848];return _0x17306f;},a0_0x5118(_0x24de68,_0x81ed43);}__decorate([(0x0,decorator_1['Inject'])(),__metadata(a0_0x458a4e(0x206),core_1[a0_0x458a4e(0x200)])],CustomConfiguration[a0_0x458a4e(0x1f0)],'config',void 0x0),__decorate([(0x0,decorator_1[a0_0x458a4e(0x1ff)])(),__metadata(a0_0x458a4e(0x206),core_1[a0_0x458a4e(0x204)])],CustomConfiguration[a0_0x458a4e(0x1f0)],a0_0x458a4e(0x207),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x458a4e(0x1f4)])({'conflictCheck':![],'namespace':a0_0x458a4e(0x1f5)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x143c59=a1_0x44b5;(function(_0x60c8fd,_0x20c9fc){const _0x18a4b0=a1_0x44b5,_0x3de7e1=_0x60c8fd();while(!![]){try{const _0x2f3427=-parseInt(_0x18a4b0(0xf5))/0x1+-parseInt(_0x18a4b0(0xf8))/0x2+-parseInt(_0x18a4b0(0xf3))/0x3+parseInt(_0x18a4b0(0xff))/0x4+-parseInt(_0x18a4b0(0xf6))/0x5+parseInt(_0x18a4b0(0x100))/0x6*(parseInt(_0x18a4b0(0xfe))/0x7)+parseInt(_0x18a4b0(0xfb))/0x8;if(_0x2f3427===_0x20c9fc)break;else _0x3de7e1['push'](_0x3de7e1['shift']());}catch(_0x4b297f){_0x3de7e1['push'](_0x3de7e1['shift']());}}}(a1_0x5ddb,0x187b8));Object[a1_0x143c59(0xf9)](exports,'__esModule',{'value':!![]}),exports[a1_0x143c59(0xf4)]=void 0x0;function a1_0x5ddb(){const _0x2ba3c4=['39335WxuNED','Provide','252562KFJepS','defineProperty','../interface','1985096pERFpy','Request','EVENT_ON_KEY','13979Dkkyur','360076cXzfZT','354drAcfT','Scope','104886QhenmE','Event','186589XxEnyA'];a1_0x5ddb=function(){return _0x2ba3c4;};return a1_0x5ddb();}const decorator_1=require('@midwayjs/decorator'),interface_1=require(a1_0x143c59(0xfa));function Event(){return _0x2c28ef=>{const _0x16568e=a1_0x44b5;(0x0,decorator_1[_0x16568e(0xf7)])()(_0x2c28ef),(0x0,decorator_1['saveModule'])(interface_1['EVENT_KEY'],_0x2c28ef),(0x0,decorator_1[_0x16568e(0xf2)])(decorator_1['ScopeEnum'][_0x16568e(0xfc)],{'allowDowngrade':!![]})(_0x2c28ef);};}function a1_0x44b5(_0x4acea9,_0x526bda){const _0x5ddb4d=a1_0x5ddb();return a1_0x44b5=function(_0x44b54f,_0x55e9f7){_0x44b54f=_0x44b54f-0xf2;let _0x5a5758=_0x5ddb4d[_0x44b54f];return _0x5a5758;},a1_0x44b5(_0x4acea9,_0x526bda);}exports['Event']=Event,Event['On']=function(_0x31229e,_0x68e5c=0x0){return(_0x58e3f6,_0x384343,_0x5366c0)=>{const _0x50bf1a=a1_0x44b5;return(0x0,decorator_1['attachClassMetadata'])(interface_1[_0x50bf1a(0xfd)],{'name':_0x31229e,'priority':_0x68e5c,'propertyKey':_0x384343,'descriptor':_0x5366c0},_0x58e3f6),_0x5366c0;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x15f382=a2_0x1d8e;(function(_0x59aca6,_0x553806){var _0x91bc89=a2_0x1d8e,_0x1bfd07=_0x59aca6();while(!![]){try{var _0x3b19a8=-parseInt(_0x91bc89(0x1bb))/0x1*(-parseInt(_0x91bc89(0x1c0))/0x2)+-parseInt(_0x91bc89(0x1b7))/0x3+-parseInt(_0x91bc89(0x1c6))/0x4+parseInt(_0x91bc89(0x1c5))/0x5*(-parseInt(_0x91bc89(0x1bc))/0x6)+-parseInt(_0x91bc89(0x1b5))/0x7*(parseInt(_0x91bc89(0x1bd))/0x8)+-parseInt(_0x91bc89(0x1ba))/0x9+parseInt(_0x91bc89(0x1c4))/0xa*(parseInt(_0x91bc89(0x1c2))/0xb);if(_0x3b19a8===_0x553806)break;else _0x1bfd07['push'](_0x1bfd07['shift']());}catch(_0x126d70){_0x1bfd07['push'](_0x1bfd07['shift']());}}}(a2_0x80f1,0xd8109));Object['defineProperty'](exports,a2_0x15f382(0x1c7),{'value':!![]}),exports[a2_0x15f382(0x1be)]=exports[a2_0x15f382(0x1b9)]=exports[a2_0x15f382(0x1b6)]=void 0x0;function a2_0x1d8e(_0x5972dc,_0x36617c){var _0x80f16d=a2_0x80f1();return a2_0x1d8e=function(_0x1d8eb8,_0x2d9c9a){_0x1d8eb8=_0x1d8eb8-0x1b5;var _0x34e309=_0x80f16d[_0x1d8eb8];return _0x34e309;},a2_0x1d8e(_0x5972dc,_0x36617c);}var Event_1=require(a2_0x15f382(0x1c3));Object[a2_0x15f382(0x1b8)](exports,a2_0x15f382(0x1b6),{'enumerable':!![],'get':function(){var _0x547e76=a2_0x15f382;return Event_1[_0x547e76(0x1b6)];}});var EventService_1=require(a2_0x15f382(0x1c1));function a2_0x80f1(){var _0x59453f=['./service/EventService','3003twiLHK','./decorator/Event','176010ogdsWt','65ywWTfN','6097248SbwZsp','__esModule','814975Bvptej','Event','1832256DxNpvq','defineProperty','EventService','14685579bBjesw','4wAjWKW','196368JOHkeH','8YSdBjK','Configuration','./configuration','194306HBsJKm'];a2_0x80f1=function(){return _0x59453f;};return a2_0x80f1();}Object[a2_0x15f382(0x1b8)](exports,a2_0x15f382(0x1b9),{'enumerable':!![],'get':function(){var _0x485530=a2_0x15f382;return EventService_1[_0x485530(0x1b9)];}});var configuration_1=require(a2_0x15f382(0x1bf));Object[a2_0x15f382(0x1b8)](exports,a2_0x15f382(0x1be),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x19c431=a3_0x1f57;(function(_0x27f306,_0x4979b1){var _0x1426fa=a3_0x1f57,_0x1a68b5=_0x27f306();while(!![]){try{var _0x14e142=-parseInt(_0x1426fa(0x1d4))/0x1*(-parseInt(_0x1426fa(0x1db))/0x2)+parseInt(_0x1426fa(0x1d3))/0x3*(-parseInt(_0x1426fa(0x1d0))/0x4)+parseInt(_0x1426fa(0x1dc))/0x5*(-parseInt(_0x1426fa(0x1de))/0x6)+-parseInt(_0x1426fa(0x1da))/0x7+parseInt(_0x1426fa(0x1d6))/0x8+parseInt(_0x1426fa(0x1dd))/0x9+parseInt(_0x1426fa(0x1d1))/0xa;if(_0x14e142===_0x4979b1)break;else _0x1a68b5['push'](_0x1a68b5['shift']());}catch(_0x1f3988){_0x1a68b5['push'](_0x1a68b5['shift']());}}}(a3_0x4430,0xd8070));function a3_0x4430(){var _0x28b495=['35dczdYp','11730276dbwIpx','1080654wgEQRU','555020mwLCcP','18121310hLOCgL','__esModule','30qUlZtt','1dumiSX','anncic-api:event:on','3298656loQcPG','EVENT_KEY','EVENT_ON_KEY','anncic-api:event','185283dNhDLN','63606tyCWBL'];a3_0x4430=function(){return _0x28b495;};return a3_0x4430();}function a3_0x1f57(_0x3bd56e,_0x3e3b29){var _0x44308f=a3_0x4430();return a3_0x1f57=function(_0x1f57d2,_0x382a87){_0x1f57d2=_0x1f57d2-0x1d0;var _0x498a0b=_0x44308f[_0x1f57d2];return _0x498a0b;},a3_0x1f57(_0x3bd56e,_0x3e3b29);}Object['defineProperty'](exports,a3_0x19c431(0x1d2),{'value':!![]}),exports[a3_0x19c431(0x1d8)]=exports['EVENT_KEY']=void 0x0,exports[a3_0x19c431(0x1d7)]=a3_0x19c431(0x1d9),exports['EVENT_ON_KEY']=a3_0x19c431(0x1d5);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x12af7b=a4_0x3316;function a4_0x3316(_0x3684d6,_0x2392cc){const _0x178ba3=a4_0x178b();return a4_0x3316=function(_0x331627,_0x5869aa){_0x331627=_0x331627-0x17b;let _0x14c487=_0x178ba3[_0x331627];return _0x14c487;},a4_0x3316(_0x3684d6,_0x2392cc);}(function(_0x5b1293,_0x555326){const _0x5515bc=a4_0x3316,_0x39bac9=_0x5b1293();while(!![]){try{const _0x45d3e2=-parseInt(_0x5515bc(0x1aa))/0x1+parseInt(_0x5515bc(0x17d))/0x2+parseInt(_0x5515bc(0x1a2))/0x3+-parseInt(_0x5515bc(0x1a0))/0x4*(-parseInt(_0x5515bc(0x1a5))/0x5)+-parseInt(_0x5515bc(0x198))/0x6*(-parseInt(_0x5515bc(0x17f))/0x7)+-parseInt(_0x5515bc(0x183))/0x8*(-parseInt(_0x5515bc(0x191))/0x9)+-parseInt(_0x5515bc(0x18d))/0xa*(parseInt(_0x5515bc(0x199))/0xb);if(_0x45d3e2===_0x555326)break;else _0x39bac9['push'](_0x39bac9['shift']());}catch(_0x19eb23){_0x39bac9['push'](_0x39bac9['shift']());}}}(a4_0x178b,0x34fb5));var __decorate=this&&this[a4_0x12af7b(0x19b)]||function(_0x36c393,_0x553747,_0x270a5f,_0x468a8f){const _0x3f3e15=a4_0x12af7b;var _0x250fac=arguments[_0x3f3e15(0x19a)],_0x2f265a=_0x250fac<0x3?_0x553747:_0x468a8f===null?_0x468a8f=Object[_0x3f3e15(0x17b)](_0x553747,_0x270a5f):_0x468a8f,_0x5bedc8;if(typeof Reflect===_0x3f3e15(0x181)&&typeof Reflect[_0x3f3e15(0x1a9)]==='function')_0x2f265a=Reflect[_0x3f3e15(0x1a9)](_0x36c393,_0x553747,_0x270a5f,_0x468a8f);else{for(var _0x25bf2a=_0x36c393[_0x3f3e15(0x19a)]-0x1;_0x25bf2a>=0x0;_0x25bf2a--)if(_0x5bedc8=_0x36c393[_0x25bf2a])_0x2f265a=(_0x250fac<0x3?_0x5bedc8(_0x2f265a):_0x250fac>0x3?_0x5bedc8(_0x553747,_0x270a5f,_0x2f265a):_0x5bedc8(_0x553747,_0x270a5f))||_0x2f265a;}return _0x250fac>0x3&&_0x2f265a&&Object[_0x3f3e15(0x1a6)](_0x553747,_0x270a5f,_0x2f265a),_0x2f265a;},__metadata=this&&this[a4_0x12af7b(0x1a1)]||function(_0x5b3c59,_0x11a7d6){const _0x1f8312=a4_0x12af7b;if(typeof Reflect===_0x1f8312(0x181)&&typeof Reflect[_0x1f8312(0x19f)]===_0x1f8312(0x1a3))return Reflect[_0x1f8312(0x19f)](_0x5b3c59,_0x11a7d6);};Object['defineProperty'](exports,a4_0x12af7b(0x17c),{'value':!![]}),exports[a4_0x12af7b(0x188)]=void 0x0;const collect_js_1=require(a4_0x12af7b(0x1a8)),decorator_1=require('@midwayjs/decorator'),interface_1=require(a4_0x12af7b(0x19c));let EventService=class EventService{constructor(){const _0x5f22d6=a4_0x12af7b;this[_0x5f22d6(0x184)]=![];}async[a4_0x12af7b(0x182)](_0x5f26ee){const _0x41ef56=a4_0x12af7b;if(!this[_0x41ef56(0x184)]){this[_0x41ef56(0x184)]=!![],this[_0x41ef56(0x194)]={};for(const _0x28aa55 of(0x0,decorator_1[_0x41ef56(0x186)])(interface_1['EVENT_KEY'])||[]){const _0x370d25=await this['app'][_0x41ef56(0x17e)]()['getAsync'](_0x28aa55);for(const _0x298576 of(0x0,decorator_1['getClassMetadata'])(interface_1[_0x41ef56(0x18a)],_0x28aa55)||[]){typeof(_0x370d25[_0x298576[_0x41ef56(0x1a4)]]==_0x41ef56(0x1a3))&&(!this[_0x41ef56(0x194)][_0x298576[_0x41ef56(0x196)]]&&(this[_0x41ef56(0x194)][_0x298576['name']]=[]),this['listevent'][_0x298576[_0x41ef56(0x196)]][_0x41ef56(0x192)]({'priority':_0x298576[_0x41ef56(0x19e)],'resolve':_0x370d25[_0x298576[_0x41ef56(0x1a4)]][_0x41ef56(0x18e)](_0x370d25),'propertyKey':_0x28aa55['name']+'@'+_0x298576[_0x41ef56(0x1a4)]}));}}for(const _0x5b21b9 in this['listevent']){this[_0x41ef56(0x194)][_0x5b21b9]=(0x0,collect_js_1[_0x41ef56(0x190)])(this[_0x41ef56(0x194)][_0x5b21b9])[_0x41ef56(0x18c)](_0x41ef56(0x19e))['all']();}}return _0x5f26ee?this[_0x41ef56(0x194)][_0x5f26ee]||[]:this[_0x41ef56(0x194)];}async[a4_0x12af7b(0x19d)](_0x563186,..._0x2b9c29){const _0x587c3c=a4_0x12af7b;var _0x9c9e25,_0x950e26;await this[_0x587c3c(0x182)]();for(let _0x3ea1de in(_0x9c9e25=this[_0x587c3c(0x194)])===null||_0x9c9e25===void 0x0?void 0x0:_0x9c9e25[_0x563186]){const _0x424fda=(_0x950e26=this[_0x587c3c(0x194)][_0x563186])===null||_0x950e26===void 0x0?void 0x0:_0x950e26[_0x3ea1de];(_0x424fda===null||_0x424fda===void 0x0?void 0x0:_0x424fda[_0x587c3c(0x189)])&&typeof(_0x424fda===null||_0x424fda===void 0x0?void 0x0:_0x424fda[_0x587c3c(0x189)])==_0x587c3c(0x1a3)&&await _0x424fda['resolve'](..._0x2b9c29);}}async['once'](_0x488cdb,..._0x58126e){const _0x2b51a0=a4_0x12af7b;return await this[_0x2b51a0(0x182)](),await this[_0x2b51a0(0x19d)](_0x488cdb,..._0x58126e),this['off'](_0x488cdb);}async[a4_0x12af7b(0x197)](_0x4a0911){const _0x4118e6=a4_0x12af7b;return await this[_0x4118e6(0x182)](),this['listevent'][_0x4a0911]&&delete this['listevent'][_0x4a0911],!!this['listevent'][_0x4a0911];}};function a4_0x178b(){const _0x294bdc=['299061xvgGgY','getOwnPropertyDescriptor','__esModule','286436UmgScT','getApplicationContext','2851128rogeUn','design:type','object','getListevent','2749576pXkTbQ','init','Singleton','listModule','app','EventService','resolve','EVENT_ON_KEY','Provide','sortByDesc','6820TANNPq','bind','prototype','default','9qlCLPo','push','ScopeEnum','listevent','App','name','off','6EfKRih','16973GltjRA','length','__decorate','../interface','emit','priority','metadata','8292IfcrEy','__metadata','1008846GtDSrf','function','propertyKey','815jRsHhs','defineProperty','event','collect.js','decorate'];a4_0x178b=function(){return _0x294bdc;};return a4_0x178b();}__decorate([(0x0,decorator_1[a4_0x12af7b(0x195)])(),__metadata(a4_0x12af7b(0x180),Object)],EventService[a4_0x12af7b(0x18f)],a4_0x12af7b(0x187),void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x12af7b(0x18b)])(a4_0x12af7b(0x1a7)),(0x0,decorator_1['Scope'])(decorator_1[a4_0x12af7b(0x193)][a4_0x12af7b(0x185)])],EventService),exports[a4_0x12af7b(0x188)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
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": "28c0a11ed53b8b71939f001917aceb983736a1fe"
|
|
25
25
|
}
|