@anncic-api/event 1.4.8 → 1.4.10
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_0x5c3a51=a0_0xe63f;(function(_0x4b3d39,_0x5a4966){var _0x5c17a7=a0_0xe63f,_0x2fd9ac=_0x4b3d39();while(!![]){try{var _0x9b6a4d=parseInt(_0x5c17a7(0x18a))/0x1+-parseInt(_0x5c17a7(0x198))/0x2+parseInt(_0x5c17a7(0x186))/0x3+parseInt(_0x5c17a7(0x18b))/0x4+parseInt(_0x5c17a7(0x190))/0x5*(parseInt(_0x5c17a7(0x19c))/0x6)+-parseInt(_0x5c17a7(0x188))/0x7+parseInt(_0x5c17a7(0x19a))/0x8*(-parseInt(_0x5c17a7(0x196))/0x9);if(_0x9b6a4d===_0x5a4966)break;else _0x2fd9ac['push'](_0x2fd9ac['shift']());}catch(_0xf72357){_0x2fd9ac['push'](_0x2fd9ac['shift']());}}}(a0_0x31a0,0xbddf0));function a0_0xe63f(_0x155875,_0x3b315d){var _0x31a095=a0_0x31a0();return a0_0xe63f=function(_0xe63f11,_0x5815fa){_0xe63f11=_0xe63f11-0x186;var _0x14c2a4=_0x31a095[_0xe63f11];return _0x14c2a4;},a0_0xe63f(_0x155875,_0x3b315d);}function a0_0x31a0(){var _0x5cc3f5=['@midwayjs/core','776898jCprzc','Configuration','object','__decorate','4511328MBnDNQ','decorate','94493XFuQjb','getOwnPropertyDescriptor','251757SUWPGH','2539236xDuMPh','anncic-api:event','metadata','function','Inject','15ddanND','defineProperty','CustomConfiguration','prototype','MidwayConfigService','MidwayDecoratorService','15467391RYYeiV','length','537962iMiYPX','design:type','8FNCOck'];a0_0x31a0=function(){return _0x5cc3f5;};return a0_0x31a0();}var __decorate=this&&this[a0_0x5c3a51(0x19f)]||function(_0x2da549,_0x46c7eb,_0x2a2dd7,_0x29dd52){var _0x7c1284=a0_0x5c3a51,_0x1ad47a=arguments['length'],_0x37593d=_0x1ad47a<0x3?_0x46c7eb:_0x29dd52===null?_0x29dd52=Object[_0x7c1284(0x189)](_0x46c7eb,_0x2a2dd7):_0x29dd52,_0x5729c0;if(typeof Reflect===_0x7c1284(0x19e)&&typeof Reflect[_0x7c1284(0x187)]===_0x7c1284(0x18e))_0x37593d=Reflect[_0x7c1284(0x187)](_0x2da549,_0x46c7eb,_0x2a2dd7,_0x29dd52);else{for(var _0x2a8052=_0x2da549[_0x7c1284(0x197)]-0x1;_0x2a8052>=0x0;_0x2a8052--)if(_0x5729c0=_0x2da549[_0x2a8052])_0x37593d=(_0x1ad47a<0x3?_0x5729c0(_0x37593d):_0x1ad47a>0x3?_0x5729c0(_0x46c7eb,_0x2a2dd7,_0x37593d):_0x5729c0(_0x46c7eb,_0x2a2dd7))||_0x37593d;}return _0x1ad47a>0x3&&_0x37593d&&Object[_0x7c1284(0x191)](_0x46c7eb,_0x2a2dd7,_0x37593d),_0x37593d;},__metadata=this&&this['__metadata']||function(_0x4189a1,_0x5cdb02){var _0x5aed90=a0_0x5c3a51;if(typeof Reflect===_0x5aed90(0x19e)&&typeof Reflect[_0x5aed90(0x18d)]===_0x5aed90(0x18e))return Reflect[_0x5aed90(0x18d)](_0x4189a1,_0x5cdb02);};Object[a0_0x5c3a51(0x191)](exports,'__esModule',{'value':!![]}),exports[a0_0x5c3a51(0x192)]=void 0x0;const core_1=require(a0_0x5c3a51(0x19b)),core_2=require(a0_0x5c3a51(0x19b));let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1[a0_0x5c3a51(0x18f)])(),__metadata(a0_0x5c3a51(0x199),core_2[a0_0x5c3a51(0x194)])],CustomConfiguration[a0_0x5c3a51(0x193)],'config',void 0x0),__decorate([(0x0,core_1[a0_0x5c3a51(0x18f)])(),__metadata(a0_0x5c3a51(0x199),core_2[a0_0x5c3a51(0x195)])],CustomConfiguration[a0_0x5c3a51(0x193)],'decorator',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x5c3a51(0x19d)])({'conflictCheck':![],'namespace':a0_0x5c3a51(0x18c)})],CustomConfiguration),exports[a0_0x5c3a51(0x192)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x589260=a1_0x2411;function a1_0x2411(_0xb946e4,_0x557119){const _0x4754df=a1_0x4754();return a1_0x2411=function(_0x2411b4,_0x1b9665){_0x2411b4=_0x2411b4-0xa8;let _0x869f67=_0x4754df[_0x2411b4];return _0x869f67;},a1_0x2411(_0xb946e4,_0x557119);}(function(_0x534576,_0x16d66d){const _0x11f6bb=a1_0x2411,_0x209f7b=_0x534576();while(!![]){try{const _0x8da2e5=-parseInt(_0x11f6bb(0xae))/0x1+-parseInt(_0x11f6bb(0xb9))/0x2+-parseInt(_0x11f6bb(0xba))/0x3*(-parseInt(_0x11f6bb(0xaf))/0x4)+-parseInt(_0x11f6bb(0xb8))/0x5+parseInt(_0x11f6bb(0xb3))/0x6+-parseInt(_0x11f6bb(0xb7))/0x7+-parseInt(_0x11f6bb(0xb0))/0x8*(-parseInt(_0x11f6bb(0xab))/0x9);if(_0x8da2e5===_0x16d66d)break;else _0x209f7b['push'](_0x209f7b['shift']());}catch(_0x8fe961){_0x209f7b['push'](_0x209f7b['shift']());}}}(a1_0x4754,0x84219));Object[a1_0x589260(0xb2)](exports,'__esModule',{'value':!![]}),exports[a1_0x589260(0xb5)]=void 0x0;const core_1=require(a1_0x589260(0xa9)),interface_1=require(a1_0x589260(0xb1));function a1_0x4754(){const _0x3b73ce=['6763169XpeGIK','331005SPeDtK','1545254KKhMeW','282zIhgBy','Provide','@midwayjs/core','EVENT_ON_KEY','18795519hJIbAB','Scope','EVENT_KEY','816616dstoyI','30908VsKTNf','8cqKVgZ','../interface','defineProperty','2088546DCFHkx','Request','Event','saveModule'];a1_0x4754=function(){return _0x3b73ce;};return a1_0x4754();}function Event(){return _0x5a14ca=>{const _0x336e27=a1_0x2411;(0x0,core_1[_0x336e27(0xa8)])()(_0x5a14ca),(0x0,core_1[_0x336e27(0xb6)])(interface_1[_0x336e27(0xad)],_0x5a14ca),(0x0,core_1[_0x336e27(0xac)])(core_1['ScopeEnum'][_0x336e27(0xb4)],{'allowDowngrade':!![]})(_0x5a14ca);};}exports[a1_0x589260(0xb5)]=Event,Event['On']=function(_0x13bbf5,_0x41d262=0x0){return(_0x5b6c87,_0x11b4ff,_0x3f0dc5)=>{const _0x15c03a=a1_0x2411;return(0x0,core_1['attachClassMetadata'])(interface_1[_0x15c03a(0xaa)],{'name':_0x13bbf5,'priority':_0x41d262,'propertyKey':_0x11b4ff,'descriptor':_0x3f0dc5},_0x5b6c87),_0x3f0dc5;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a2_0x129c26=a2_0x1399;(function(_0x4c5a0b,_0x361cfd){var _0x59306d=a2_0x1399,_0x2f3262=_0x4c5a0b();while(!![]){try{var _0x31500a=-parseInt(_0x59306d(0x85))/0x1+parseInt(_0x59306d(0x93))/0x2+-parseInt(_0x59306d(0x88))/0x3*(parseInt(_0x59306d(0x90))/0x4)+-parseInt(_0x59306d(0x91))/0x5*(-parseInt(_0x59306d(0x86))/0x6)+-parseInt(_0x59306d(0x89))/0x7*(parseInt(_0x59306d(0x8a))/0x8)+-parseInt(_0x59306d(0x8d))/0x9+parseInt(_0x59306d(0x94))/0xa*(parseInt(_0x59306d(0x87))/0xb);if(_0x31500a===_0x361cfd)break;else _0x2f3262['push'](_0x2f3262['shift']());}catch(_0x3ff426){_0x2f3262['push'](_0x2f3262['shift']());}}}(a2_0x4f2a,0x570b5));function a2_0x1399(_0x3d0776,_0x33a5e6){var _0x4f2a5c=a2_0x4f2a();return a2_0x1399=function(_0x1399a7,_0x555114){_0x1399a7=_0x1399a7-0x85;var _0x379147=_0x4f2a5c[_0x1399a7];return _0x379147;},a2_0x1399(_0x3d0776,_0x33a5e6);}Object[a2_0x129c26(0x8c)](exports,a2_0x129c26(0x8f),{'value':!![]}),exports[a2_0x129c26(0x95)]=exports[a2_0x129c26(0x92)]=exports[a2_0x129c26(0x8e)]=void 0x0;function a2_0x4f2a(){var _0x2fbd53=['16219310xPoeUf','Configuration','./configuration','517902DCeDIG','158076tcupTv','11FCrKOE','1446ZASIaQ','2649997UMLFmC','8fQpnPK','./service/EventService','defineProperty','4058199TnLohb','Event','__esModule','2416jYFPAD','20EtvQsa','EventService','535460eTXYWD'];a2_0x4f2a=function(){return _0x2fbd53;};return a2_0x4f2a();}var Event_1=require('./decorator/Event');Object[a2_0x129c26(0x8c)](exports,a2_0x129c26(0x8e),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x129c26(0x8b));Object[a2_0x129c26(0x8c)](exports,a2_0x129c26(0x92),{'enumerable':!![],'get':function(){var _0x484852=a2_0x129c26;return EventService_1[_0x484852(0x92)];}});var configuration_1=require(a2_0x129c26(0x96));Object['defineProperty'](exports,a2_0x129c26(0x95),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0x3825(){var _0x5612f8=['26283hisefK','14oUlGrM','500950gNCLgV','28VPQmiK','2549608oANfye','EVENT_ON_KEY','31321KASrHr','7IrvQSM','defineProperty','anncic-api:event','5001180CiKxHZ','504243EuRLoI','580056ZHTLfi'];a3_0x3825=function(){return _0x5612f8;};return a3_0x3825();}var a3_0xefe6=a3_0x4a54;(function(_0x3ae558,_0x4e66dc){var _0x60f52c=a3_0x4a54,_0x1ffc65=_0x3ae558();while(!![]){try{var _0x5b3072=parseInt(_0x60f52c(0x84))/0x1*(-parseInt(_0x60f52c(0x7f))/0x2)+-parseInt(_0x60f52c(0x7e))/0x3*(-parseInt(_0x60f52c(0x81))/0x4)+parseInt(_0x60f52c(0x80))/0x5+parseInt(_0x60f52c(0x7d))/0x6+-parseInt(_0x60f52c(0x85))/0x7*(parseInt(_0x60f52c(0x82))/0x8)+-parseInt(_0x60f52c(0x7c))/0x9+parseInt(_0x60f52c(0x7b))/0xa;if(_0x5b3072===_0x4e66dc)break;else _0x1ffc65['push'](_0x1ffc65['shift']());}catch(_0x852cd2){_0x1ffc65['push'](_0x1ffc65['shift']());}}}(a3_0x3825,0x281f0));function a3_0x4a54(_0x4b3086,_0x424b22){var _0x382583=a3_0x3825();return a3_0x4a54=function(_0x4a54c4,_0x46384a){_0x4a54c4=_0x4a54c4-0x79;var _0x224678=_0x382583[_0x4a54c4];return _0x224678;},a3_0x4a54(_0x4b3086,_0x424b22);}Object[a3_0xefe6(0x79)](exports,'__esModule',{'value':!![]}),exports['EVENT_ON_KEY']=exports['EVENT_KEY']=void 0x0,exports['EVENT_KEY']=a3_0xefe6(0x7a),exports[a3_0xefe6(0x83)]='anncic-api:event:on';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a4_0x3279e6=a4_0x21fd;function a4_0x21fd(_0x1feb43,_0xd3d653){const _0x76d4fa=a4_0x76d4();return a4_0x21fd=function(_0x21fde5,_0x33dd4a){_0x21fde5=_0x21fde5-0xa3;let _0x5e1437=_0x76d4fa[_0x21fde5];return _0x5e1437;},a4_0x21fd(_0x1feb43,_0xd3d653);}function a4_0x76d4(){const _0x453df9=['propertyKey','App','2336404GdQdfk','getListevent','init','metadata','collect.js','@midwayjs/core','4699227IjDIoy','prototype','Provide','10LIWvSx','9631539BRJspk','resolve','8ryZIGd','event','__esModule','off','Scope','getAsync','all','5oIcxCl','sortByDesc','42kSjoAJ','7nZqQrd','EVENT_KEY','default','app','object','name','getOwnPropertyDescriptor','4180074FkgzCS','emit','defineProperty','decorate','EventService','48drqRRx','once','design:type','length','776799TOChoS','function','listevent','getClassMetadata','26183pJnSsd','9228461SzjWtC','__metadata'];a4_0x76d4=function(){return _0x453df9;};return a4_0x76d4();}(function(_0x4039ca,_0x32af9e){const _0x19384c=a4_0x21fd,_0x3edf1e=_0x4039ca();while(!![]){try{const _0x426c44=parseInt(_0x19384c(0xb7))/0x1*(parseInt(_0x19384c(0xd1))/0x2)+-parseInt(_0x19384c(0xb3))/0x3+parseInt(_0x19384c(0xbc))/0x4*(parseInt(_0x19384c(0xcf))/0x5)+-parseInt(_0x19384c(0xaa))/0x6*(parseInt(_0x19384c(0xa3))/0x7)+-parseInt(_0x19384c(0xc8))/0x8*(-parseInt(_0x19384c(0xc6))/0x9)+parseInt(_0x19384c(0xc5))/0xa*(parseInt(_0x19384c(0xb8))/0xb)+-parseInt(_0x19384c(0xaf))/0xc*(parseInt(_0x19384c(0xc2))/0xd);if(_0x426c44===_0x32af9e)break;else _0x3edf1e['push'](_0x3edf1e['shift']());}catch(_0xb03335){_0x3edf1e['push'](_0x3edf1e['shift']());}}}(a4_0x76d4,0x9ca02));var __decorate=this&&this['__decorate']||function(_0x447ffc,_0x9a323f,_0x40d325,_0x4d1a07){const _0x373d70=a4_0x21fd;var _0x96abe3=arguments[_0x373d70(0xb2)],_0x4b8938=_0x96abe3<0x3?_0x9a323f:_0x4d1a07===null?_0x4d1a07=Object[_0x373d70(0xa9)](_0x9a323f,_0x40d325):_0x4d1a07,_0x44b3b2;if(typeof Reflect==='object'&&typeof Reflect[_0x373d70(0xad)]==='function')_0x4b8938=Reflect[_0x373d70(0xad)](_0x447ffc,_0x9a323f,_0x40d325,_0x4d1a07);else{for(var _0x1ec0ff=_0x447ffc[_0x373d70(0xb2)]-0x1;_0x1ec0ff>=0x0;_0x1ec0ff--)if(_0x44b3b2=_0x447ffc[_0x1ec0ff])_0x4b8938=(_0x96abe3<0x3?_0x44b3b2(_0x4b8938):_0x96abe3>0x3?_0x44b3b2(_0x9a323f,_0x40d325,_0x4b8938):_0x44b3b2(_0x9a323f,_0x40d325))||_0x4b8938;}return _0x96abe3>0x3&&_0x4b8938&&Object['defineProperty'](_0x9a323f,_0x40d325,_0x4b8938),_0x4b8938;},__metadata=this&&this[a4_0x3279e6(0xb9)]||function(_0x2f6108,_0x700ce9){const _0x59ff1b=a4_0x3279e6;if(typeof Reflect===_0x59ff1b(0xa7)&&typeof Reflect[_0x59ff1b(0xbf)]===_0x59ff1b(0xb4))return Reflect[_0x59ff1b(0xbf)](_0x2f6108,_0x700ce9);};Object[a4_0x3279e6(0xac)](exports,a4_0x3279e6(0xca),{'value':!![]}),exports[a4_0x3279e6(0xae)]=void 0x0;const collect_js_1=require(a4_0x3279e6(0xc0)),core_1=require(a4_0x3279e6(0xc1)),interface_1=require('../interface');let EventService=class EventService{constructor(){this['init']=![];}async[a4_0x3279e6(0xbd)](_0x4721ba){const _0xfe2ae7=a4_0x3279e6;if(!this[_0xfe2ae7(0xbe)]){this[_0xfe2ae7(0xbe)]=!![],this[_0xfe2ae7(0xb5)]={};for(const _0x21372e of(0x0,core_1['listModule'])(interface_1[_0xfe2ae7(0xa4)])||[]){const _0x390694=await this['app']['getApplicationContext']()[_0xfe2ae7(0xcd)](_0x21372e);for(const _0x10f59b of(0x0,core_1[_0xfe2ae7(0xb6)])(interface_1['EVENT_ON_KEY'],_0x21372e)||[]){typeof(_0x390694[_0x10f59b['propertyKey']]==_0xfe2ae7(0xb4))&&(!this[_0xfe2ae7(0xb5)][_0x10f59b['name']]&&(this[_0xfe2ae7(0xb5)][_0x10f59b[_0xfe2ae7(0xa8)]]=[]),this['listevent'][_0x10f59b[_0xfe2ae7(0xa8)]]['push']({'priority':_0x10f59b['priority'],'resolve':_0x390694[_0x10f59b['propertyKey']]['bind'](_0x390694),'propertyKey':_0x21372e[_0xfe2ae7(0xa8)]+'@'+_0x10f59b[_0xfe2ae7(0xba)]}));}}for(const _0x43c399 in this[_0xfe2ae7(0xb5)]){this[_0xfe2ae7(0xb5)][_0x43c399]=(0x0,collect_js_1[_0xfe2ae7(0xa5)])(this[_0xfe2ae7(0xb5)][_0x43c399])[_0xfe2ae7(0xd0)]('priority')[_0xfe2ae7(0xce)]();}}return _0x4721ba?this[_0xfe2ae7(0xb5)][_0x4721ba]||[]:this[_0xfe2ae7(0xb5)];}async[a4_0x3279e6(0xab)](_0xdc638b,..._0x25c150){const _0x20985c=a4_0x3279e6;var _0x2c989c,_0x4dfd4e;await this['getListevent']();for(let _0x6fd9a0 in(_0x2c989c=this[_0x20985c(0xb5)])===null||_0x2c989c===void 0x0?void 0x0:_0x2c989c[_0xdc638b]){const _0x2403d1=(_0x4dfd4e=this[_0x20985c(0xb5)][_0xdc638b])===null||_0x4dfd4e===void 0x0?void 0x0:_0x4dfd4e[_0x6fd9a0];(_0x2403d1===null||_0x2403d1===void 0x0?void 0x0:_0x2403d1[_0x20985c(0xc7)])&&typeof(_0x2403d1===null||_0x2403d1===void 0x0?void 0x0:_0x2403d1[_0x20985c(0xc7)])==_0x20985c(0xb4)&&await _0x2403d1['resolve'](..._0x25c150);}}async[a4_0x3279e6(0xb0)](_0x3dffa7,..._0x5595dc){const _0x13c370=a4_0x3279e6;return await this[_0x13c370(0xbd)](),await this[_0x13c370(0xab)](_0x3dffa7,..._0x5595dc),this[_0x13c370(0xcb)](_0x3dffa7);}async[a4_0x3279e6(0xcb)](_0x2c5586){const _0x466952=a4_0x3279e6;return await this[_0x466952(0xbd)](),this[_0x466952(0xb5)][_0x2c5586]&&delete this[_0x466952(0xb5)][_0x2c5586],!!this[_0x466952(0xb5)][_0x2c5586];}};__decorate([(0x0,core_1[a4_0x3279e6(0xbb)])(),__metadata(a4_0x3279e6(0xb1),Object)],EventService[a4_0x3279e6(0xc3)],a4_0x3279e6(0xa6),void 0x0),EventService=__decorate([(0x0,core_1[a4_0x3279e6(0xc4)])(a4_0x3279e6(0xc9)),(0x0,core_1[a4_0x3279e6(0xcc)])(core_1['ScopeEnum']['Singleton'])],EventService),exports[a4_0x3279e6(0xae)]=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.10",
|
|
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": "bd9d97c22d221db7a48b93b757f194f73bba4a6e"
|
|
25
25
|
}
|