@anncic-api/event 1.1.8 → 1.1.11
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_0x553efe=a0_0x11cd;(function(_0x1ef4f0,_0x30e412){var _0x536f6b=a0_0x11cd,_0xd9b530=_0x1ef4f0();while(!![]){try{var _0x1fcc9d=-parseInt(_0x536f6b(0x1f3))/0x1+-parseInt(_0x536f6b(0x1fd))/0x2+-parseInt(_0x536f6b(0x1f2))/0x3+-parseInt(_0x536f6b(0x202))/0x4*(parseInt(_0x536f6b(0x1f9))/0x5)+parseInt(_0x536f6b(0x200))/0x6*(-parseInt(_0x536f6b(0x1ed))/0x7)+-parseInt(_0x536f6b(0x203))/0x8+parseInt(_0x536f6b(0x1f1))/0x9;if(_0x1fcc9d===_0x30e412)break;else _0xd9b530['push'](_0xd9b530['shift']());}catch(_0xa4d695){_0xd9b530['push'](_0xd9b530['shift']());}}}(a0_0x3c26,0x9a291));var __decorate=this&&this[a0_0x553efe(0x1fb)]||function(_0x149540,_0x3d93bb,_0x1348ec,_0x267c1c){var _0xe94547=a0_0x553efe,_0x4adf32=arguments['length'],_0x5ba07f=_0x4adf32<0x3?_0x3d93bb:_0x267c1c===null?_0x267c1c=Object['getOwnPropertyDescriptor'](_0x3d93bb,_0x1348ec):_0x267c1c,_0x4128ab;if(typeof Reflect===_0xe94547(0x201)&&typeof Reflect[_0xe94547(0x1ff)]==='function')_0x5ba07f=Reflect[_0xe94547(0x1ff)](_0x149540,_0x3d93bb,_0x1348ec,_0x267c1c);else{for(var _0x4f4100=_0x149540[_0xe94547(0x1fc)]-0x1;_0x4f4100>=0x0;_0x4f4100--)if(_0x4128ab=_0x149540[_0x4f4100])_0x5ba07f=(_0x4adf32<0x3?_0x4128ab(_0x5ba07f):_0x4adf32>0x3?_0x4128ab(_0x3d93bb,_0x1348ec,_0x5ba07f):_0x4128ab(_0x3d93bb,_0x1348ec))||_0x5ba07f;}return _0x4adf32>0x3&&_0x5ba07f&&Object[_0xe94547(0x1fe)](_0x3d93bb,_0x1348ec,_0x5ba07f),_0x5ba07f;},__metadata=this&&this[a0_0x553efe(0x1fa)]||function(_0x2259a3,_0xe16b47){var _0x33820e=a0_0x553efe;if(typeof Reflect===_0x33820e(0x201)&&typeof Reflect['metadata']==='function')return Reflect[_0x33820e(0x1f0)](_0x2259a3,_0xe16b47);};Object[a0_0x553efe(0x1fe)](exports,'__esModule',{'value':!![]}),exports[a0_0x553efe(0x1f8)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a0_0x553efe(0x1ee));function a0_0x11cd(_0x5c8a37,_0x51d380){var _0x3c261e=a0_0x3c26();return a0_0x11cd=function(_0x11cdeb,_0xa618e5){_0x11cdeb=_0x11cdeb-0x1ea;var _0x51a114=_0x3c261e[_0x11cdeb];return _0x51a114;},a0_0x11cd(_0x5c8a37,_0x51d380);}function a0_0x3c26(){var _0x46d3bd=['length','2201778JDWyYz','defineProperty','decorate','6NNWHuA','object','256JrBIAF','4442520Hlwqcf','onReady','config','Inject','4778963jWoIOg','@midwayjs/core','prototype','metadata','43979103BQwjMx','2861553LiWoNn','240378jMxcwr','Configuration','MidwayConfigService','anncic-api:event','design:type','CustomConfiguration','56405KtVLkN','__metadata','__decorate'];a0_0x3c26=function(){return _0x46d3bd;};return a0_0x3c26();}let CustomConfiguration=class CustomConfiguration{async[a0_0x553efe(0x1ea)](){}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a0_0x553efe(0x1f7),core_1[a0_0x553efe(0x1f5)])],CustomConfiguration[a0_0x553efe(0x1ef)],a0_0x553efe(0x1eb),void 0x0),__decorate([(0x0,decorator_1[a0_0x553efe(0x1ec)])(),__metadata(a0_0x553efe(0x1f7),core_1['MidwayDecoratorService'])],CustomConfiguration[a0_0x553efe(0x1ef)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x553efe(0x1f4)])({'conflictCheck':![],'namespace':a0_0x553efe(0x1f6)})],CustomConfiguration),exports[a0_0x553efe(0x1f8)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x1271(){const _0x31d1b8=['4wLgJJg','../interface','110199rqSzps','2648277jvyIFj','504516tCWsbn','3972832ZCalih','Scope','@midwayjs/decorator','ScopeEnum','113258qBjUHx','attachClassMetadata','12KjYALh','EVENT_KEY','45tJCqhf','1117941PSxmBz','30bKAUOY','__esModule','saveModule','6204793yygVSF','Event','EVENT_ON_KEY'];a1_0x1271=function(){return _0x31d1b8;};return a1_0x1271();}const a1_0x1eac4f=a1_0x4e8c;(function(_0x2481b4,_0xea5b91){const _0x5cb764=a1_0x4e8c,_0x389e4a=_0x2481b4();while(!![]){try{const _0x3bb7ee=parseInt(_0x5cb764(0x120))/0x1*(-parseInt(_0x5cb764(0x129))/0x2)+-parseInt(_0x5cb764(0x122))/0x3*(-parseInt(_0x5cb764(0x12b))/0x4)+-parseInt(_0x5cb764(0x12d))/0x5*(parseInt(_0x5cb764(0x124))/0x6)+parseInt(_0x5cb764(0x11d))/0x7+-parseInt(_0x5cb764(0x125))/0x8+-parseInt(_0x5cb764(0x123))/0x9*(-parseInt(_0x5cb764(0x12f))/0xa)+parseInt(_0x5cb764(0x12e))/0xb;if(_0x3bb7ee===_0xea5b91)break;else _0x389e4a['push'](_0x389e4a['shift']());}catch(_0x5a4559){_0x389e4a['push'](_0x389e4a['shift']());}}}(a1_0x1271,0x7a566));Object['defineProperty'](exports,a1_0x1eac4f(0x11b),{'value':!![]}),exports[a1_0x1eac4f(0x11e)]=void 0x0;const decorator_1=require(a1_0x1eac4f(0x127)),interface_1=require(a1_0x1eac4f(0x121));function a1_0x4e8c(_0x350a15,_0x5995a8){const _0x1271ad=a1_0x1271();return a1_0x4e8c=function(_0x4e8c57,_0x4d0246){_0x4e8c57=_0x4e8c57-0x11b;let _0xd15478=_0x1271ad[_0x4e8c57];return _0xd15478;},a1_0x4e8c(_0x350a15,_0x5995a8);}function Event(){return _0x151295=>{const _0x23768=a1_0x4e8c;(0x0,decorator_1['Provide'])()(_0x151295),(0x0,decorator_1[_0x23768(0x11c)])(interface_1[_0x23768(0x12c)],_0x151295),(0x0,decorator_1[_0x23768(0x126)])(decorator_1[_0x23768(0x128)]['Request'],{'allowDowngrade':!![]})(_0x151295);};}exports[a1_0x1eac4f(0x11e)]=Event,Event['On']=function(_0x75b9ad,_0x12f028=0x0){return(_0x4b97ec,_0x3e2ce0,_0x4a310f)=>{const _0x5f18d1=a1_0x4e8c;return(0x0,decorator_1[_0x5f18d1(0x12a)])(interface_1[_0x5f18d1(0x11f)],{'name':_0x75b9ad,'priority':_0x12f028,'propertyKey':_0x3e2ce0,'descriptor':_0x4a310f},_0x4b97ec),_0x4a310f;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x29e714=a2_0x591e;function a2_0x2fac(){var _0x1ab8d4=['defineProperty','__esModule','98jPsTUt','1GCtDEO','Event','CustomConfiguration','166302bScqSv','5449050iMliKE','10ajHyEo','773426UrXlxJ','./configuration','85878pbBIzY','1122712LgValk','4162590MTUtWR','917668rjPuSQ','Configuration','EventService'];a2_0x2fac=function(){return _0x1ab8d4;};return a2_0x2fac();}function a2_0x591e(_0x1b5518,_0x5dc2cf){var _0x2fac49=a2_0x2fac();return a2_0x591e=function(_0x591e1a,_0x515c3c){_0x591e1a=_0x591e1a-0x128;var _0x14c49c=_0x2fac49[_0x591e1a];return _0x14c49c;},a2_0x591e(_0x1b5518,_0x5dc2cf);}(function(_0x17383b,_0x1e66d7){var _0x57f7a1=a2_0x591e,_0x1014a2=_0x17383b();while(!![]){try{var _0x262490=-parseInt(_0x57f7a1(0x129))/0x1*(parseInt(_0x57f7a1(0x12f))/0x2)+parseInt(_0x57f7a1(0x131))/0x3+-parseInt(_0x57f7a1(0x134))/0x4*(-parseInt(_0x57f7a1(0x12e))/0x5)+parseInt(_0x57f7a1(0x12c))/0x6*(parseInt(_0x57f7a1(0x128))/0x7)+-parseInt(_0x57f7a1(0x132))/0x8+parseInt(_0x57f7a1(0x133))/0x9+-parseInt(_0x57f7a1(0x12d))/0xa;if(_0x262490===_0x1e66d7)break;else _0x1014a2['push'](_0x1014a2['shift']());}catch(_0x2cb049){_0x1014a2['push'](_0x1014a2['shift']());}}}(a2_0x2fac,0x40f43));Object[a2_0x29e714(0x137)](exports,a2_0x29e714(0x138),{'value':!![]}),exports['Configuration']=exports[a2_0x29e714(0x136)]=exports['Event']=void 0x0;var Event_1=require('./decorator/Event');Object['defineProperty'](exports,a2_0x29e714(0x12a),{'enumerable':!![],'get':function(){var _0x46ebaf=a2_0x29e714;return Event_1[_0x46ebaf(0x12a)];}});var EventService_1=require('./service/EventService');Object[a2_0x29e714(0x137)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x24e00f=a2_0x29e714;return EventService_1[_0x24e00f(0x136)];}});var configuration_1=require(a2_0x29e714(0x130));Object[a2_0x29e714(0x137)](exports,a2_0x29e714(0x135),{'enumerable':!![],'get':function(){var _0x1d07d8=a2_0x29e714;return configuration_1[_0x1d07d8(0x12b)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0xe71d(_0x1bcc44,_0x5cb9d0){var _0x4fbcfb=a3_0x4fbc();return a3_0xe71d=function(_0xe71d10,_0x23831b){_0xe71d10=_0xe71d10-0xf7;var _0x595607=_0x4fbcfb[_0xe71d10];return _0x595607;},a3_0xe71d(_0x1bcc44,_0x5cb9d0);}var a3_0x5b9daf=a3_0xe71d;(function(_0x345e43,_0x33c86a){var _0x334eee=a3_0xe71d,_0x8aebc0=_0x345e43();while(!![]){try{var _0x5dc73b=parseInt(_0x334eee(0x104))/0x1*(parseInt(_0x334eee(0x105))/0x2)+-parseInt(_0x334eee(0xfd))/0x3+-parseInt(_0x334eee(0xfa))/0x4*(-parseInt(_0x334eee(0xff))/0x5)+-parseInt(_0x334eee(0xfe))/0x6+parseInt(_0x334eee(0xf7))/0x7*(-parseInt(_0x334eee(0xfc))/0x8)+-parseInt(_0x334eee(0xf9))/0x9+parseInt(_0x334eee(0x103))/0xa;if(_0x5dc73b===_0x33c86a)break;else _0x8aebc0['push'](_0x8aebc0['shift']());}catch(_0x11fc09){_0x8aebc0['push'](_0x8aebc0['shift']());}}}(a3_0x4fbc,0xd3033));function a3_0x4fbc(){var _0xb9a379=['13494664CsQEwG','1894734qUqfkJ','9305898vIDNRB','65YZnSCc','EVENT_KEY','defineProperty','anncic-api:event','34603910ujbpDI','16229vHoaMP','40IgurUO','7nVBGAe','EVENT_ON_KEY','751932kFxiyZ','317624nrDmmU','anncic-api:event:on'];a3_0x4fbc=function(){return _0xb9a379;};return a3_0x4fbc();}Object[a3_0x5b9daf(0x101)](exports,'__esModule',{'value':!![]}),exports[a3_0x5b9daf(0xf8)]=exports[a3_0x5b9daf(0x100)]=void 0x0,exports[a3_0x5b9daf(0x100)]=a3_0x5b9daf(0x102),exports[a3_0x5b9daf(0xf8)]=a3_0x5b9daf(0xfb);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x5a8766=a4_0xcc41;(function(_0x4e8469,_0x1802dd){const _0x38ceb6=a4_0xcc41,_0x3dfbff=_0x4e8469();while(!![]){try{const _0x429ff8=-parseInt(_0x38ceb6(0x12b))/0x1+parseInt(_0x38ceb6(0x11c))/0x2*(-parseInt(_0x38ceb6(0x11f))/0x3)+-parseInt(_0x38ceb6(0x12e))/0x4+parseInt(_0x38ceb6(0x117))/0x5*(parseInt(_0x38ceb6(0x10f))/0x6)+parseInt(_0x38ceb6(0x10b))/0x7+parseInt(_0x38ceb6(0x107))/0x8*(parseInt(_0x38ceb6(0x118))/0x9)+parseInt(_0x38ceb6(0x119))/0xa;if(_0x429ff8===_0x1802dd)break;else _0x3dfbff['push'](_0x3dfbff['shift']());}catch(_0x468bd0){_0x3dfbff['push'](_0x3dfbff['shift']());}}}(a4_0x4ad6,0x6ca67));var __decorate=this&&this[a4_0x5a8766(0x12c)]||function(_0x20b898,_0x1d4939,_0x54be23,_0x449edd){const _0x71af91=a4_0x5a8766;var _0x29b914=arguments[_0x71af91(0x129)],_0x58973d=_0x29b914<0x3?_0x1d4939:_0x449edd===null?_0x449edd=Object['getOwnPropertyDescriptor'](_0x1d4939,_0x54be23):_0x449edd,_0x3b4fff;if(typeof Reflect==='object'&&typeof Reflect[_0x71af91(0x125)]===_0x71af91(0x127))_0x58973d=Reflect[_0x71af91(0x125)](_0x20b898,_0x1d4939,_0x54be23,_0x449edd);else{for(var _0x5bfa91=_0x20b898[_0x71af91(0x129)]-0x1;_0x5bfa91>=0x0;_0x5bfa91--)if(_0x3b4fff=_0x20b898[_0x5bfa91])_0x58973d=(_0x29b914<0x3?_0x3b4fff(_0x58973d):_0x29b914>0x3?_0x3b4fff(_0x1d4939,_0x54be23,_0x58973d):_0x3b4fff(_0x1d4939,_0x54be23))||_0x58973d;}return _0x29b914>0x3&&_0x58973d&&Object['defineProperty'](_0x1d4939,_0x54be23,_0x58973d),_0x58973d;},__metadata=this&&this['__metadata']||function(_0x48bb10,_0xb4891c){const _0x4cc8d8=a4_0x5a8766;if(typeof Reflect===_0x4cc8d8(0x11a)&&typeof Reflect['metadata']==='function')return Reflect[_0x4cc8d8(0x11d)](_0x48bb10,_0xb4891c);};function a4_0x4ad6(){const _0x11adab=['all','@midwayjs/decorator','132BXKWkk','resolve','priority','off','EventService','listevent','Singleton','prototype','155010nkADSK','351054Tlkekn','3544500mNdNyH','object','default','2JTnMKk','metadata','EVENT_KEY','1015347uwEZwz','app','sortByDesc','init','emit','App','decorate','collect.js','function','ScopeEnum','length','propertyKey','393296EURsRF','__decorate','getClassMetadata','1718484iEghfC','getApplicationContext','getListevent','88xmFgVr','name','push','../interface','985859mjkmhD','Provide'];a4_0x4ad6=function(){return _0x11adab;};return a4_0x4ad6();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['EventService']=void 0x0;function a4_0xcc41(_0x39378e,_0xd302b){const _0x4ad61c=a4_0x4ad6();return a4_0xcc41=function(_0xcc41d0,_0x42f190){_0xcc41d0=_0xcc41d0-0x106;let _0xa8462f=_0x4ad61c[_0xcc41d0];return _0xa8462f;},a4_0xcc41(_0x39378e,_0xd302b);}const collect_js_1=require(a4_0x5a8766(0x126)),decorator_1=require(a4_0x5a8766(0x10e)),interface_1=require(a4_0x5a8766(0x10a));let EventService=class EventService{constructor(){const _0x46177c=a4_0x5a8766;this[_0x46177c(0x122)]=![];}async[a4_0x5a8766(0x106)](_0x471b6c){const _0x45174b=a4_0x5a8766;if(!this[_0x45174b(0x122)]){this[_0x45174b(0x122)]=!![],this['listevent']={};for(const _0x556758 of(0x0,decorator_1['listModule'])(interface_1[_0x45174b(0x11e)])||[]){const _0x487dba=await this[_0x45174b(0x120)][_0x45174b(0x12f)]()['getAsync'](_0x556758);for(const _0x518563 of(0x0,decorator_1[_0x45174b(0x12d)])(interface_1['EVENT_ON_KEY'],_0x556758)||[]){typeof(_0x487dba[_0x518563[_0x45174b(0x12a)]]=='function')&&(!this[_0x45174b(0x114)][_0x518563[_0x45174b(0x108)]]&&(this[_0x45174b(0x114)][_0x518563[_0x45174b(0x108)]]=[]),this[_0x45174b(0x114)][_0x518563[_0x45174b(0x108)]][_0x45174b(0x109)]({'priority':_0x518563['priority'],'resolve':_0x487dba[_0x518563[_0x45174b(0x12a)]]['bind'](_0x487dba),'propertyKey':_0x556758[_0x45174b(0x108)]+'@'+_0x518563[_0x45174b(0x12a)]}));}}for(const _0x48384d in this[_0x45174b(0x114)]){this[_0x45174b(0x114)][_0x48384d]=(0x0,collect_js_1[_0x45174b(0x11b)])(this['listevent'][_0x48384d])[_0x45174b(0x121)](_0x45174b(0x111))[_0x45174b(0x10d)]();}}return _0x471b6c?this[_0x45174b(0x114)][_0x471b6c]||[]:this['listevent'];}async[a4_0x5a8766(0x123)](_0x1c04e5,..._0x367ab9){const _0x16a7fd=a4_0x5a8766;var _0x2ca81b,_0x2713c2;await this[_0x16a7fd(0x106)]();for(let _0x8eb4f0 in(_0x2ca81b=this[_0x16a7fd(0x114)])===null||_0x2ca81b===void 0x0?void 0x0:_0x2ca81b[_0x1c04e5]){const _0x33acb8=(_0x2713c2=this[_0x16a7fd(0x114)][_0x1c04e5])===null||_0x2713c2===void 0x0?void 0x0:_0x2713c2[_0x8eb4f0];(_0x33acb8===null||_0x33acb8===void 0x0?void 0x0:_0x33acb8[_0x16a7fd(0x110)])&&typeof(_0x33acb8===null||_0x33acb8===void 0x0?void 0x0:_0x33acb8[_0x16a7fd(0x110)])==_0x16a7fd(0x127)&&await _0x33acb8['resolve'](..._0x367ab9);}}async['once'](_0x4c9d9c,..._0x42f0af){const _0xb31a0e=a4_0x5a8766;return await this[_0xb31a0e(0x106)](),await this[_0xb31a0e(0x123)](_0x4c9d9c,..._0x42f0af),this[_0xb31a0e(0x112)](_0x4c9d9c);}async['off'](_0x43ec67){const _0x47cd69=a4_0x5a8766;return await this[_0x47cd69(0x106)](),this[_0x47cd69(0x114)][_0x43ec67]&&delete this[_0x47cd69(0x114)][_0x43ec67],!!this[_0x47cd69(0x114)][_0x43ec67];}};__decorate([(0x0,decorator_1[a4_0x5a8766(0x124)])(),__metadata('design:type',Object)],EventService[a4_0x5a8766(0x116)],a4_0x5a8766(0x120),void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x5a8766(0x10c)])('event'),(0x0,decorator_1['Scope'])(decorator_1[a4_0x5a8766(0x128)][a4_0x5a8766(0x115)])],EventService),exports[a4_0x5a8766(0x113)]=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.11",
|
|
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": "1fe484337204463e2386b18b278bfd2c6a9a70ae"
|
|
25
25
|
}
|