@anncic-api/event 1.4.20 → 1.4.22
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';function a0_0x1902(){var _0x127079=['16eUlHAm','26txXpzY','223659hDBjjG','design:type','metadata','2358YmsCKV','1654105AfReWa','8usQzow','MidwayDecoratorService','CustomConfiguration','function','prototype','onReady','4476330iUrjZW','length','object','@midwayjs/core','decorate','1258579FdRGpL','4333pqiWcE','Inject','25465rEAsBh','43376256yshrVL','defineProperty','6590xHRIlS','getOwnPropertyDescriptor','Configuration','__metadata'];a0_0x1902=function(){return _0x127079;};return a0_0x1902();}var a0_0x4fa1df=a0_0x4f11;(function(_0x336d30,_0x192e82){var _0x2acc67=a0_0x4f11,_0x4b2850=_0x336d30();while(!![]){try{var _0x45e7bb=parseInt(_0x2acc67(0x187))/0x1+parseInt(_0x2acc67(0x176))/0x2*(-parseInt(_0x2acc67(0x177))/0x3)+-parseInt(_0x2acc67(0x191))/0x4*(parseInt(_0x2acc67(0x17b))/0x5)+parseInt(_0x2acc67(0x17a))/0x6*(parseInt(_0x2acc67(0x188))/0x7)+-parseInt(_0x2acc67(0x17c))/0x8*(parseInt(_0x2acc67(0x182))/0x9)+parseInt(_0x2acc67(0x18d))/0xa*(-parseInt(_0x2acc67(0x18a))/0xb)+parseInt(_0x2acc67(0x18b))/0xc;if(_0x45e7bb===_0x192e82)break;else _0x4b2850['push'](_0x4b2850['shift']());}catch(_0x2d3d7e){_0x4b2850['push'](_0x4b2850['shift']());}}}(a0_0x1902,0xc3952));var __decorate=this&&this['__decorate']||function(_0x93934e,_0x3f672d,_0x1d7f11,_0x46f226){var _0x365d05=a0_0x4f11,_0x1c8144=arguments['length'],_0x198b53=_0x1c8144<0x3?_0x3f672d:_0x46f226===null?_0x46f226=Object[_0x365d05(0x18e)](_0x3f672d,_0x1d7f11):_0x46f226,_0x462124;if(typeof Reflect==='object'&&typeof Reflect[_0x365d05(0x186)]===_0x365d05(0x17f))_0x198b53=Reflect[_0x365d05(0x186)](_0x93934e,_0x3f672d,_0x1d7f11,_0x46f226);else{for(var _0x408064=_0x93934e[_0x365d05(0x183)]-0x1;_0x408064>=0x0;_0x408064--)if(_0x462124=_0x93934e[_0x408064])_0x198b53=(_0x1c8144<0x3?_0x462124(_0x198b53):_0x1c8144>0x3?_0x462124(_0x3f672d,_0x1d7f11,_0x198b53):_0x462124(_0x3f672d,_0x1d7f11))||_0x198b53;}return _0x1c8144>0x3&&_0x198b53&&Object[_0x365d05(0x18c)](_0x3f672d,_0x1d7f11,_0x198b53),_0x198b53;},__metadata=this&&this[a0_0x4fa1df(0x190)]||function(_0x5b6eeb,_0x2e5f6f){var _0x34867a=a0_0x4fa1df;if(typeof Reflect===_0x34867a(0x184)&&typeof Reflect['metadata']===_0x34867a(0x17f))return Reflect[_0x34867a(0x179)](_0x5b6eeb,_0x2e5f6f);};Object[a0_0x4fa1df(0x18c)](exports,'__esModule',{'value':!![]}),exports[a0_0x4fa1df(0x17e)]=void 0x0;const core_1=require(a0_0x4fa1df(0x185)),core_2=require('@midwayjs/core');function a0_0x4f11(_0x215e79,_0x266780){var _0x1902d9=a0_0x1902();return a0_0x4f11=function(_0x4f1171,_0x4511bb){_0x4f1171=_0x4f1171-0x176;var _0x3ed1ab=_0x1902d9[_0x4f1171];return _0x3ed1ab;},a0_0x4f11(_0x215e79,_0x266780);}let CustomConfiguration=class CustomConfiguration{async[a0_0x4fa1df(0x181)](){}};__decorate([(0x0,core_1[a0_0x4fa1df(0x189)])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a0_0x4fa1df(0x180)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x4fa1df(0x189)])(),__metadata(a0_0x4fa1df(0x178),core_2[a0_0x4fa1df(0x17d)])],CustomConfiguration[a0_0x4fa1df(0x180)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x4fa1df(0x18f)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports[a0_0x4fa1df(0x17e)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x1441(){const _0x237af7=['20iJjHJz','../interface','Request','3697240BkjgfU','1191376JxpNwd','EVENT_ON_KEY','6338QFmdxy','__esModule','6318072dCcROG','384sLUTuL','1410RybDHk','492HGemrN','46963LBIOeN','Scope','1151227UrQpmb','177345HUciLY','EVENT_KEY','attachClassMetadata','20jDLgYY','Event'];a1_0x1441=function(){return _0x237af7;};return a1_0x1441();}function a1_0x2a7b(_0x43eb5b,_0x5132ac){const _0x1441d=a1_0x1441();return a1_0x2a7b=function(_0x2a7b33,_0x5dba8d){_0x2a7b33=_0x2a7b33-0x174;let _0x16e12a=_0x1441d[_0x2a7b33];return _0x16e12a;},a1_0x2a7b(_0x43eb5b,_0x5132ac);}const a1_0x2ccd21=a1_0x2a7b;(function(_0x360f5c,_0x20b5c4){const _0x415ed9=a1_0x2a7b,_0x546a58=_0x360f5c();while(!![]){try{const _0xbb3f6f=-parseInt(_0x415ed9(0x185))/0x1*(-parseInt(_0x415ed9(0x182))/0x2)+parseInt(_0x415ed9(0x177))/0x3*(parseInt(_0x415ed9(0x17c))/0x4)+parseInt(_0x415ed9(0x17f))/0x5+-parseInt(_0x415ed9(0x186))/0x6*(-parseInt(_0x415ed9(0x174))/0x7)+-parseInt(_0x415ed9(0x180))/0x8+-parseInt(_0x415ed9(0x184))/0x9*(-parseInt(_0x415ed9(0x17a))/0xa)+-parseInt(_0x415ed9(0x176))/0xb*(parseInt(_0x415ed9(0x187))/0xc);if(_0xbb3f6f===_0x20b5c4)break;else _0x546a58['push'](_0x546a58['shift']());}catch(_0x363222){_0x546a58['push'](_0x546a58['shift']());}}}(a1_0x1441,0xc1873));Object['defineProperty'](exports,a1_0x2ccd21(0x183),{'value':!![]}),exports['Event']=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a1_0x2ccd21(0x17d));function Event(){return _0x1d0306=>{const _0x24aaed=a1_0x2a7b;(0x0,core_1['Provide'])()(_0x1d0306),(0x0,core_1['saveModule'])(interface_1[_0x24aaed(0x178)],_0x1d0306),(0x0,core_1[_0x24aaed(0x175)])(core_1['ScopeEnum'][_0x24aaed(0x17e)],{'allowDowngrade':!![]})(_0x1d0306);};}exports[a1_0x2ccd21(0x17b)]=Event,Event['On']=function(_0xb8a8c5,_0x59def3=0x0){return(_0x72ac7b,_0x4ee767,_0x9d6c21)=>{const _0xe6dbf0=a1_0x2a7b;return(0x0,core_1[_0xe6dbf0(0x179)])(interface_1[_0xe6dbf0(0x181)],{'name':_0xb8a8c5,'priority':_0x59def3,'propertyKey':_0x4ee767,'descriptor':_0x9d6c21},_0x72ac7b),_0x9d6c21;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x3ba484=a2_0xd44b;(function(_0x4ebb13,_0x243366){var _0x28e2a4=a2_0xd44b,_0x2c62c5=_0x4ebb13();while(!![]){try{var _0x48e58c=parseInt(_0x28e2a4(0x79))/0x1*(parseInt(_0x28e2a4(0x7c))/0x2)+parseInt(_0x28e2a4(0x74))/0x3*(parseInt(_0x28e2a4(0x75))/0x4)+parseInt(_0x28e2a4(0x77))/0x5+parseInt(_0x28e2a4(0x70))/0x6+-parseInt(_0x28e2a4(0x7e))/0x7*(-parseInt(_0x28e2a4(0x72))/0x8)+parseInt(_0x28e2a4(0x73))/0x9+-parseInt(_0x28e2a4(0x7d))/0xa;if(_0x48e58c===_0x243366)break;else _0x2c62c5['push'](_0x2c62c5['shift']());}catch(_0x2a5a79){_0x2c62c5['push'](_0x2c62c5['shift']());}}}(a2_0x63fb,0xba656));function a2_0x63fb(){var _0xe0d20=['18GUcjcS','21552650uLbwHW','710143ekTwwC','Configuration','2863398rUpRnx','Event','104sJeOxc','1547055FOJACY','3gIkZGf','2454448gmjgFN','defineProperty','68575KQwfnH','EventService','35939iugVsb','CustomConfiguration','./decorator/Event'];a2_0x63fb=function(){return _0xe0d20;};return a2_0x63fb();}Object[a2_0x3ba484(0x76)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports['EventService']=exports[a2_0x3ba484(0x71)]=void 0x0;var Event_1=require(a2_0x3ba484(0x7b));Object['defineProperty'](exports,a2_0x3ba484(0x71),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require('./service/EventService');Object[a2_0x3ba484(0x76)](exports,a2_0x3ba484(0x78),{'enumerable':!![],'get':function(){var _0x58237c=a2_0x3ba484;return EventService_1[_0x58237c(0x78)];}});function a2_0xd44b(_0x30c0ba,_0x1c0a02){var _0x63fb22=a2_0x63fb();return a2_0xd44b=function(_0xd44bac,_0xec272e){_0xd44bac=_0xd44bac-0x70;var _0x2c6632=_0x63fb22[_0xd44bac];return _0x2c6632;},a2_0xd44b(_0x30c0ba,_0x1c0a02);}var configuration_1=require('./configuration');Object[a2_0x3ba484(0x76)](exports,a2_0x3ba484(0x7f),{'enumerable':!![],'get':function(){var _0x31c396=a2_0x3ba484;return configuration_1[_0x31c396(0x7a)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x46bbd5=a3_0x3b07;function a3_0x3b07(_0x3b34f5,_0x2fddf2){var _0x4a55a7=a3_0x4a55();return a3_0x3b07=function(_0x3b079d,_0x46a2d7){_0x3b079d=_0x3b079d-0xe7;var _0x31e675=_0x4a55a7[_0x3b079d];return _0x31e675;},a3_0x3b07(_0x3b34f5,_0x2fddf2);}(function(_0x1a5341,_0xba3a09){var _0x237873=a3_0x3b07,_0x17fc25=_0x1a5341();while(!![]){try{var _0x4a755a=-parseInt(_0x237873(0xec))/0x1*(-parseInt(_0x237873(0xf3))/0x2)+parseInt(_0x237873(0xf8))/0x3+-parseInt(_0x237873(0xf2))/0x4*(-parseInt(_0x237873(0xed))/0x5)+-parseInt(_0x237873(0xe7))/0x6*(parseInt(_0x237873(0xea))/0x7)+parseInt(_0x237873(0xf6))/0x8+parseInt(_0x237873(0xf4))/0x9*(parseInt(_0x237873(0xee))/0xa)+-parseInt(_0x237873(0xef))/0xb*(-parseInt(_0x237873(0xe9))/0xc);if(_0x4a755a===_0xba3a09)break;else _0x17fc25['push'](_0x17fc25['shift']());}catch(_0x4865cb){_0x17fc25['push'](_0x17fc25['shift']());}}}(a3_0x4a55,0xd68ad));Object[a3_0x46bbd5(0xf0)](exports,a3_0x46bbd5(0xf7),{'value':!![]}),exports[a3_0x46bbd5(0xf5)]=exports['EVENT_KEY']=void 0x0,exports[a3_0x46bbd5(0xe8)]=a3_0x46bbd5(0xf1),exports[a3_0x46bbd5(0xf5)]=a3_0x46bbd5(0xeb);function a3_0x4a55(){var _0x36ac8c=['__esModule','1375950YXwMIX','78AVjpLN','EVENT_KEY','12Lhuupn','569933ttXFem','anncic-api:event:on','94YHirMx','15BOpmyy','10HWCypY','6859644shugst','defineProperty','anncic-api:event','242580RHlbDx','2544LZifgg','3087351PwOfAU','EVENT_ON_KEY','1683328VsPgVn'];a3_0x4a55=function(){return _0x36ac8c;};return a3_0x4a55();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x5e7c3c=a4_0x5794;(function(_0x37cf5d,_0x4330ee){const _0x51a71d=a4_0x5794,_0x774e1f=_0x37cf5d();while(!![]){try{const _0x2c448e=-parseInt(_0x51a71d(0x1ff))/0x1+-parseInt(_0x51a71d(0x20b))/0x2*(-parseInt(_0x51a71d(0x20c))/0x3)+-parseInt(_0x51a71d(0x1eb))/0x4*(parseInt(_0x51a71d(0x205))/0x5)+-parseInt(_0x51a71d(0x1fb))/0x6*(-parseInt(_0x51a71d(0x1e6))/0x7)+-parseInt(_0x51a71d(0x207))/0x8+parseInt(_0x51a71d(0x202))/0x9+parseInt(_0x51a71d(0x210))/0xa*(-parseInt(_0x51a71d(0x1ec))/0xb);if(_0x2c448e===_0x4330ee)break;else _0x774e1f['push'](_0x774e1f['shift']());}catch(_0x7c93d0){_0x774e1f['push'](_0x774e1f['shift']());}}}(a4_0x500d,0xd8e70));function a4_0x500d(){const _0x193532=['Scope','off','listevent','design:type','1456852OlSSej','216502MWqjhI','App','ScopeEnum','app','getListevent','Singleton','push','getOwnPropertyDescriptor','init','priority','EVENT_KEY','once','EventService','resolve','metadata','1044eTYeMm','sortByDesc','decorate','bind','240484XlmgLC','emit','../interface','13485825NSEuHU','defineProperty','propertyKey','5poLtzl','length','6955976oIVWGy','Provide','__metadata','function','406PpwIIm','3501ikEwmv','__esModule','name','@midwayjs/core','420wwczHC','getAsync','object','prototype','listModule','58492VeJcfJ'];a4_0x500d=function(){return _0x193532;};return a4_0x500d();}var __decorate=this&&this['__decorate']||function(_0x5c4956,_0x2b1028,_0x1c5b1a,_0x4077d5){const _0x17465e=a4_0x5794;var _0x365983=arguments[_0x17465e(0x206)],_0x5204ee=_0x365983<0x3?_0x2b1028:_0x4077d5===null?_0x4077d5=Object[_0x17465e(0x1f3)](_0x2b1028,_0x1c5b1a):_0x4077d5,_0x1f80f5;if(typeof Reflect===_0x17465e(0x1e3)&&typeof Reflect[_0x17465e(0x1fd)]===_0x17465e(0x20a))_0x5204ee=Reflect[_0x17465e(0x1fd)](_0x5c4956,_0x2b1028,_0x1c5b1a,_0x4077d5);else{for(var _0x35ff5b=_0x5c4956[_0x17465e(0x206)]-0x1;_0x35ff5b>=0x0;_0x35ff5b--)if(_0x1f80f5=_0x5c4956[_0x35ff5b])_0x5204ee=(_0x365983<0x3?_0x1f80f5(_0x5204ee):_0x365983>0x3?_0x1f80f5(_0x2b1028,_0x1c5b1a,_0x5204ee):_0x1f80f5(_0x2b1028,_0x1c5b1a))||_0x5204ee;}return _0x365983>0x3&&_0x5204ee&&Object['defineProperty'](_0x2b1028,_0x1c5b1a,_0x5204ee),_0x5204ee;},__metadata=this&&this[a4_0x5e7c3c(0x209)]||function(_0x5a7a8a,_0x18f098){const _0x59f0fe=a4_0x5e7c3c;if(typeof Reflect==='object'&&typeof Reflect[_0x59f0fe(0x1fa)]===_0x59f0fe(0x20a))return Reflect[_0x59f0fe(0x1fa)](_0x5a7a8a,_0x18f098);};function a4_0x5794(_0x2f49dc,_0x159ef3){const _0x500d29=a4_0x500d();return a4_0x5794=function(_0x57946d,_0x3645c3){_0x57946d=_0x57946d-0x1e2;let _0x277b91=_0x500d29[_0x57946d];return _0x277b91;},a4_0x5794(_0x2f49dc,_0x159ef3);}Object[a4_0x5e7c3c(0x203)](exports,a4_0x5e7c3c(0x20d),{'value':!![]}),exports[a4_0x5e7c3c(0x1f8)]=void 0x0;const collect_js_1=require('collect.js'),core_1=require(a4_0x5e7c3c(0x20f)),interface_1=require(a4_0x5e7c3c(0x201));let EventService=class EventService{constructor(){const _0x47d31a=a4_0x5e7c3c;this[_0x47d31a(0x1f4)]=![];}async[a4_0x5e7c3c(0x1f0)](_0x4dd31d){const _0x58e1b5=a4_0x5e7c3c;if(!this[_0x58e1b5(0x1f4)]){this[_0x58e1b5(0x1f4)]=!![],this[_0x58e1b5(0x1e9)]={};for(const _0x54395c of(0x0,core_1[_0x58e1b5(0x1e5)])(interface_1[_0x58e1b5(0x1f6)])||[]){const _0x3b2f45=await this[_0x58e1b5(0x1ef)]['getApplicationContext']()[_0x58e1b5(0x1e2)](_0x54395c);for(const _0x55c125 of(0x0,core_1['getClassMetadata'])(interface_1['EVENT_ON_KEY'],_0x54395c)||[]){typeof(_0x3b2f45[_0x55c125['propertyKey']]==_0x58e1b5(0x20a))&&(!this['listevent'][_0x55c125['name']]&&(this[_0x58e1b5(0x1e9)][_0x55c125[_0x58e1b5(0x20e)]]=[]),this[_0x58e1b5(0x1e9)][_0x55c125[_0x58e1b5(0x20e)]][_0x58e1b5(0x1f2)]({'priority':_0x55c125[_0x58e1b5(0x1f5)],'resolve':_0x3b2f45[_0x55c125[_0x58e1b5(0x204)]][_0x58e1b5(0x1fe)](_0x3b2f45),'propertyKey':_0x54395c[_0x58e1b5(0x20e)]+'@'+_0x55c125[_0x58e1b5(0x204)]}));}}for(const _0x461d43 in this[_0x58e1b5(0x1e9)]){this[_0x58e1b5(0x1e9)][_0x461d43]=(0x0,collect_js_1['default'])(this[_0x58e1b5(0x1e9)][_0x461d43])[_0x58e1b5(0x1fc)](_0x58e1b5(0x1f5))['all']();}}return _0x4dd31d?this[_0x58e1b5(0x1e9)][_0x4dd31d]||[]:this[_0x58e1b5(0x1e9)];}async['emit'](_0xb0c04e,..._0x1e3978){const _0x25ccac=a4_0x5e7c3c;var _0x1a1573,_0x5b5331;await this[_0x25ccac(0x1f0)]();for(let _0x4e8dec in(_0x1a1573=this[_0x25ccac(0x1e9)])===null||_0x1a1573===void 0x0?void 0x0:_0x1a1573[_0xb0c04e]){const _0x577e72=(_0x5b5331=this[_0x25ccac(0x1e9)][_0xb0c04e])===null||_0x5b5331===void 0x0?void 0x0:_0x5b5331[_0x4e8dec];(_0x577e72===null||_0x577e72===void 0x0?void 0x0:_0x577e72[_0x25ccac(0x1f9)])&&typeof(_0x577e72===null||_0x577e72===void 0x0?void 0x0:_0x577e72[_0x25ccac(0x1f9)])==_0x25ccac(0x20a)&&await _0x577e72[_0x25ccac(0x1f9)](..._0x1e3978);}}async[a4_0x5e7c3c(0x1f7)](_0x32c825,..._0x400177){const _0x534d5f=a4_0x5e7c3c;return await this[_0x534d5f(0x1f0)](),await this[_0x534d5f(0x200)](_0x32c825,..._0x400177),this['off'](_0x32c825);}async[a4_0x5e7c3c(0x1e8)](_0x19bc82){const _0x3e18a4=a4_0x5e7c3c;return await this[_0x3e18a4(0x1f0)](),this[_0x3e18a4(0x1e9)][_0x19bc82]&&delete this[_0x3e18a4(0x1e9)][_0x19bc82],!!this[_0x3e18a4(0x1e9)][_0x19bc82];}};__decorate([(0x0,core_1[a4_0x5e7c3c(0x1ed)])(),__metadata(a4_0x5e7c3c(0x1ea),Object)],EventService[a4_0x5e7c3c(0x1e4)],a4_0x5e7c3c(0x1ef),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x5e7c3c(0x208)])('event'),(0x0,core_1[a4_0x5e7c3c(0x1e7)])(core_1[a4_0x5e7c3c(0x1ee)][a4_0x5e7c3c(0x1f1)])],EventService),exports['EventService']=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22",
|
|
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": "60b66cdaaf850e963345cfd226f2aec091e1bd50"
|
|
25
25
|
}
|