@anncic-api/event 1.1.3 → 1.1.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';var
|
|
1
|
+
'use strict';var a0_0x3096fb=a0_0x559d;(function(_0x20cb89,_0x1994f6){var _0x5fa942=a0_0x559d,_0x4b872d=_0x20cb89();while(!![]){try{var _0x41e374=parseInt(_0x5fa942(0x1ef))/0x1*(-parseInt(_0x5fa942(0x1f0))/0x2)+-parseInt(_0x5fa942(0x1e1))/0x3+-parseInt(_0x5fa942(0x1fa))/0x4+-parseInt(_0x5fa942(0x1f6))/0x5*(parseInt(_0x5fa942(0x1dd))/0x6)+-parseInt(_0x5fa942(0x1e0))/0x7*(-parseInt(_0x5fa942(0x1e6))/0x8)+parseInt(_0x5fa942(0x1eb))/0x9+parseInt(_0x5fa942(0x1e8))/0xa;if(_0x41e374===_0x1994f6)break;else _0x4b872d['push'](_0x4b872d['shift']());}catch(_0x185dd5){_0x4b872d['push'](_0x4b872d['shift']());}}}(a0_0x4383,0x7f12b));var __decorate=this&&this[a0_0x3096fb(0x1df)]||function(_0x141b15,_0x1f5b67,_0x166232,_0x542bd1){var _0x509459=a0_0x3096fb,_0x34b163=arguments[_0x509459(0x1e5)],_0x3b8f1e=_0x34b163<0x3?_0x1f5b67:_0x542bd1===null?_0x542bd1=Object[_0x509459(0x1e9)](_0x1f5b67,_0x166232):_0x542bd1,_0x4c5db1;if(typeof Reflect===_0x509459(0x1f8)&&typeof Reflect[_0x509459(0x1f5)]===_0x509459(0x1f7))_0x3b8f1e=Reflect[_0x509459(0x1f5)](_0x141b15,_0x1f5b67,_0x166232,_0x542bd1);else{for(var _0x47d84c=_0x141b15[_0x509459(0x1e5)]-0x1;_0x47d84c>=0x0;_0x47d84c--)if(_0x4c5db1=_0x141b15[_0x47d84c])_0x3b8f1e=(_0x34b163<0x3?_0x4c5db1(_0x3b8f1e):_0x34b163>0x3?_0x4c5db1(_0x1f5b67,_0x166232,_0x3b8f1e):_0x4c5db1(_0x1f5b67,_0x166232))||_0x3b8f1e;}return _0x34b163>0x3&&_0x3b8f1e&&Object['defineProperty'](_0x1f5b67,_0x166232,_0x3b8f1e),_0x3b8f1e;},__metadata=this&&this[a0_0x3096fb(0x1f9)]||function(_0x33c665,_0xf95fd5){var _0x29a336=a0_0x3096fb;if(typeof Reflect===_0x29a336(0x1f8)&&typeof Reflect[_0x29a336(0x1e3)]===_0x29a336(0x1f7))return Reflect['metadata'](_0x33c665,_0xf95fd5);};Object[a0_0x3096fb(0x1ea)](exports,a0_0x3096fb(0x1e7),{'value':!![]}),exports[a0_0x3096fb(0x1fb)]=void 0x0;const decorator_1=require(a0_0x3096fb(0x1ec)),core_1=require(a0_0x3096fb(0x1f3));function a0_0x559d(_0x242625,_0x314c11){var _0x43838f=a0_0x4383();return a0_0x559d=function(_0x559d25,_0x27b5fe){_0x559d25=_0x559d25-0x1dd;var _0x38b62e=_0x43838f[_0x559d25];return _0x38b62e;},a0_0x559d(_0x242625,_0x314c11);}function a0_0x4383(){var _0x331d5e=['defineProperty','6069960iccUkW','@midwayjs/decorator','Configuration','design:type','1pWrOLX','1696674eVQbld','prototype','onReady','@midwayjs/core','Inject','decorate','4895rgFhil','function','object','__metadata','4097848CxLAxG','CustomConfiguration','2766DauNew','MidwayConfigService','__decorate','4859491Dhaync','775920jGVPVw','config','metadata','decorator','length','8AHfoeH','__esModule','17345960UWeQJS','getOwnPropertyDescriptor'];a0_0x4383=function(){return _0x331d5e;};return a0_0x4383();}let CustomConfiguration=class CustomConfiguration{async[a0_0x3096fb(0x1f2)](){}};__decorate([(0x0,decorator_1[a0_0x3096fb(0x1f4)])(),__metadata(a0_0x3096fb(0x1ee),core_1[a0_0x3096fb(0x1de)])],CustomConfiguration[a0_0x3096fb(0x1f1)],a0_0x3096fb(0x1e2),void 0x0),__decorate([(0x0,decorator_1[a0_0x3096fb(0x1f4)])(),__metadata(a0_0x3096fb(0x1ee),core_1['MidwayDecoratorService'])],CustomConfiguration[a0_0x3096fb(0x1f1)],a0_0x3096fb(0x1e4),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x3096fb(0x1ed)])({'conflictCheck':![],'namespace':'anncic-api:event'})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x274c55=a1_0x50d4;function a1_0x2105(){const _0x4cdf82=['Scope','Request','441186dLniqc','Provide','5188600DBwEYQ','3766524HmqPXG','EVENT_KEY','343536YbjIyK','1506959ZNGQbc','EVENT_ON_KEY','10311203cHzHfl','Event','5030OsqrvN','ScopeEnum','defineProperty','5574IXSwYR','@midwayjs/decorator'];a1_0x2105=function(){return _0x4cdf82;};return a1_0x2105();}function a1_0x50d4(_0x5acc7f,_0x5812ab){const _0x210542=a1_0x2105();return a1_0x50d4=function(_0x50d44f,_0x11f770){_0x50d44f=_0x50d44f-0x1df;let _0x57615f=_0x210542[_0x50d44f];return _0x57615f;},a1_0x50d4(_0x5acc7f,_0x5812ab);}(function(_0xc54c26,_0x10712f){const _0x246473=a1_0x50d4,_0x3c9aae=_0xc54c26();while(!![]){try{const _0x4820a1=parseInt(_0x246473(0x1df))/0x1+parseInt(_0x246473(0x1ef))/0x2+parseInt(_0x246473(0x1ea))/0x3+-parseInt(_0x246473(0x1ed))/0x4+parseInt(_0x246473(0x1e3))/0x5*(-parseInt(_0x246473(0x1e6))/0x6)+parseInt(_0x246473(0x1e1))/0x7+-parseInt(_0x246473(0x1ec))/0x8;if(_0x4820a1===_0x10712f)break;else _0x3c9aae['push'](_0x3c9aae['shift']());}catch(_0x496954){_0x3c9aae['push'](_0x3c9aae['shift']());}}}(a1_0x2105,0xbcf96));Object[a1_0x274c55(0x1e5)](exports,'__esModule',{'value':!![]}),exports[a1_0x274c55(0x1e2)]=void 0x0;const decorator_1=require(a1_0x274c55(0x1e7)),interface_1=require('../interface');function Event(){return _0x15e8ee=>{const _0x57c118=a1_0x50d4;(0x0,decorator_1[_0x57c118(0x1eb)])()(_0x15e8ee),(0x0,decorator_1['saveModule'])(interface_1[_0x57c118(0x1ee)],_0x15e8ee),(0x0,decorator_1[_0x57c118(0x1e8)])(decorator_1[_0x57c118(0x1e4)][_0x57c118(0x1e9)],{'allowDowngrade':!![]})(_0x15e8ee);};}exports['Event']=Event,Event['On']=function(_0x4f4b81,_0x1f51e8=0x0){return(_0x2ed2de,_0x31f529,_0x5f4878)=>{const _0x5d1628=a1_0x50d4;return(0x0,decorator_1['attachClassMetadata'])(interface_1[_0x5d1628(0x1e0)],{'name':_0x4f4b81,'priority':_0x1f51e8,'propertyKey':_0x31f529,'descriptor':_0x5f4878},_0x2ed2de),_0x5f4878;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x3e912e=a2_0x962b;(function(_0x155d7e,_0x396549){var _0x2f8f97=a2_0x962b,_0x346b0c=_0x155d7e();while(!![]){try{var _0x3f685e=-parseInt(_0x2f8f97(0x197))/0x1+parseInt(_0x2f8f97(0x19a))/0x2+parseInt(_0x2f8f97(0x18a))/0x3+parseInt(_0x2f8f97(0x190))/0x4*(-parseInt(_0x2f8f97(0x198))/0x5)+parseInt(_0x2f8f97(0x196))/0x6+-parseInt(_0x2f8f97(0x18c))/0x7*(-parseInt(_0x2f8f97(0x191))/0x8)+parseInt(_0x2f8f97(0x195))/0x9*(parseInt(_0x2f8f97(0x18d))/0xa);if(_0x3f685e===_0x396549)break;else _0x346b0c['push'](_0x346b0c['shift']());}catch(_0x555026){_0x346b0c['push'](_0x346b0c['shift']());}}}(a2_0x4e1e,0x9a6fe));Object['defineProperty'](exports,a2_0x3e912e(0x199),{'value':!![]}),exports['Configuration']=exports[a2_0x3e912e(0x18f)]=exports[a2_0x3e912e(0x189)]=void 0x0;function a2_0x4e1e(){var _0x235ef7=['1228107QqkEgJ','43655pgfQgI','__esModule','1012716vVVWVe','Event','2529273htJfeo','./service/EventService','214543BwNvZT','1740IuZiHr','defineProperty','EventService','232wUGANg','88xSgTKB','./configuration','CustomConfiguration','Configuration','10395IyAarh','2877126PjTxRT'];a2_0x4e1e=function(){return _0x235ef7;};return a2_0x4e1e();}var Event_1=require('./decorator/Event');Object[a2_0x3e912e(0x18e)](exports,a2_0x3e912e(0x189),{'enumerable':!![],'get':function(){var _0x2db034=a2_0x3e912e;return Event_1[_0x2db034(0x189)];}});var EventService_1=require(a2_0x3e912e(0x18b));Object['defineProperty'](exports,'EventService',{'enumerable':!![],'get':function(){var _0xf835c=a2_0x3e912e;return EventService_1[_0xf835c(0x18f)];}});var configuration_1=require(a2_0x3e912e(0x192));function a2_0x962b(_0x328885,_0x5428f7){var _0x4e1eb3=a2_0x4e1e();return a2_0x962b=function(_0x962baf,_0x568423){_0x962baf=_0x962baf-0x189;var _0x20e549=_0x4e1eb3[_0x962baf];return _0x20e549;},a2_0x962b(_0x328885,_0x5428f7);}Object[a2_0x3e912e(0x18e)](exports,a2_0x3e912e(0x194),{'enumerable':!![],'get':function(){var _0x3e8826=a2_0x3e912e;return configuration_1[_0x3e8826(0x193)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x539097=a3_0x46c7;function a3_0x46c7(_0x218a1b,_0x20e73f){var _0xda02a1=a3_0xda02();return a3_0x46c7=function(_0x46c7c5,_0xffc7b2){_0x46c7c5=_0x46c7c5-0xd5;var _0x55d89f=_0xda02a1[_0x46c7c5];return _0x55d89f;},a3_0x46c7(_0x218a1b,_0x20e73f);}(function(_0x238c9d,_0x3c6759){var _0xf94666=a3_0x46c7,_0x2b1827=_0x238c9d();while(!![]){try{var _0x4c367d=-parseInt(_0xf94666(0xda))/0x1*(-parseInt(_0xf94666(0xe3))/0x2)+-parseInt(_0xf94666(0xd9))/0x3*(-parseInt(_0xf94666(0xd7))/0x4)+-parseInt(_0xf94666(0xe1))/0x5+parseInt(_0xf94666(0xdd))/0x6*(-parseInt(_0xf94666(0xe2))/0x7)+-parseInt(_0xf94666(0xd8))/0x8*(-parseInt(_0xf94666(0xdf))/0x9)+parseInt(_0xf94666(0xdc))/0xa*(parseInt(_0xf94666(0xde))/0xb)+-parseInt(_0xf94666(0xe0))/0xc;if(_0x4c367d===_0x3c6759)break;else _0x2b1827['push'](_0x2b1827['shift']());}catch(_0x37dc22){_0x2b1827['push'](_0x2b1827['shift']());}}}(a3_0xda02,0x9bf21));function a3_0xda02(){var _0x3f7da4=['1795tIiubO','EVENT_ON_KEY','1789940MiCacg','163326KcMPuc','22afAJKN','9xzbbsX','3281868sjhyRk','4549295HjIgpn','189hrxJfy','1386ajTGgI','anncic-api:event','anncic-api:event:on','4pgSPZw','943688tqmbwU','2511552PGPLTh'];a3_0xda02=function(){return _0x3f7da4;};return a3_0xda02();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x539097(0xdb)]=exports['EVENT_KEY']=void 0x0,exports['EVENT_KEY']=a3_0x539097(0xd5),exports[a3_0x539097(0xdb)]=a3_0x539097(0xd6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x988e47=a4_0x5cce;(function(_0x5dbf48,_0x2b833a){const _0x4bdee7=a4_0x5cce,_0x1de3b=_0x5dbf48();while(!![]){try{const _0x23c565=parseInt(_0x4bdee7(0xab))/0x1+-parseInt(_0x4bdee7(0xa9))/0x2*(-parseInt(_0x4bdee7(0x93))/0x3)+parseInt(_0x4bdee7(0xac))/0x4+parseInt(_0x4bdee7(0x99))/0x5+-parseInt(_0x4bdee7(0x8e))/0x6+-parseInt(_0x4bdee7(0xa2))/0x7+parseInt(_0x4bdee7(0x9d))/0x8;if(_0x23c565===_0x2b833a)break;else _0x1de3b['push'](_0x1de3b['shift']());}catch(_0x11486c){_0x1de3b['push'](_0x1de3b['shift']());}}}(a4_0x5610,0xa7cc7));function a4_0x5cce(_0x348f0c,_0xf9c11e){const _0x561083=a4_0x5610();return a4_0x5cce=function(_0x5cce7a,_0x355b8a){_0x5cce7a=_0x5cce7a-0x8e;let _0x53868c=_0x561083[_0x5cce7a];return _0x53868c;},a4_0x5cce(_0x348f0c,_0xf9c11e);}var __decorate=this&&this['__decorate']||function(_0x574dca,_0x4909bf,_0x2b2eeb,_0x63f3e9){const _0x1f99bd=a4_0x5cce;var _0x48402d=arguments[_0x1f99bd(0xa8)],_0x30c781=_0x48402d<0x3?_0x4909bf:_0x63f3e9===null?_0x63f3e9=Object[_0x1f99bd(0xb2)](_0x4909bf,_0x2b2eeb):_0x63f3e9,_0x1e652f;if(typeof Reflect===_0x1f99bd(0x9f)&&typeof Reflect[_0x1f99bd(0xb6)]===_0x1f99bd(0xb0))_0x30c781=Reflect[_0x1f99bd(0xb6)](_0x574dca,_0x4909bf,_0x2b2eeb,_0x63f3e9);else{for(var _0x9a5152=_0x574dca['length']-0x1;_0x9a5152>=0x0;_0x9a5152--)if(_0x1e652f=_0x574dca[_0x9a5152])_0x30c781=(_0x48402d<0x3?_0x1e652f(_0x30c781):_0x48402d>0x3?_0x1e652f(_0x4909bf,_0x2b2eeb,_0x30c781):_0x1e652f(_0x4909bf,_0x2b2eeb))||_0x30c781;}return _0x48402d>0x3&&_0x30c781&&Object[_0x1f99bd(0x9a)](_0x4909bf,_0x2b2eeb,_0x30c781),_0x30c781;},__metadata=this&&this[a4_0x988e47(0xa1)]||function(_0x3154b1,_0x1a5712){const _0x2e23e4=a4_0x988e47;if(typeof Reflect===_0x2e23e4(0x9f)&&typeof Reflect[_0x2e23e4(0xb1)]===_0x2e23e4(0xb0))return Reflect['metadata'](_0x3154b1,_0x1a5712);};Object[a4_0x988e47(0x9a)](exports,'__esModule',{'value':!![]}),exports[a4_0x988e47(0xa7)]=void 0x0;const collect_js_1=require(a4_0x988e47(0x91)),decorator_1=require(a4_0x988e47(0x98)),interface_1=require(a4_0x988e47(0xaa));let EventService=class EventService{constructor(){const _0x31ec82=a4_0x988e47;this[_0x31ec82(0xb4)]=![];}async[a4_0x988e47(0x95)](_0x5c2622){const _0x37cf92=a4_0x988e47;if(!this[_0x37cf92(0xb4)]){this['init']=!![],this[_0x37cf92(0x8f)]={};for(const _0x300a22 of(0x0,decorator_1[_0x37cf92(0x92)])(interface_1['EVENT_KEY'])||[]){const _0x103c04=await this[_0x37cf92(0xa6)][_0x37cf92(0xb5)]()['getAsync'](_0x300a22);for(const _0x37ab16 of(0x0,decorator_1[_0x37cf92(0xa4)])(interface_1[_0x37cf92(0x9c)],_0x300a22)||[]){typeof(_0x103c04[_0x37ab16[_0x37cf92(0x90)]]=='function')&&(!this[_0x37cf92(0x8f)][_0x37ab16[_0x37cf92(0xa0)]]&&(this[_0x37cf92(0x8f)][_0x37ab16['name']]=[]),this[_0x37cf92(0x8f)][_0x37ab16['name']][_0x37cf92(0x96)]({'priority':_0x37ab16[_0x37cf92(0xad)],'resolve':_0x103c04[_0x37ab16[_0x37cf92(0x90)]][_0x37cf92(0xa3)](_0x103c04),'propertyKey':_0x300a22[_0x37cf92(0xa0)]+'@'+_0x37ab16[_0x37cf92(0x90)]}));}}for(const _0x43841b in this[_0x37cf92(0x8f)]){this[_0x37cf92(0x8f)][_0x43841b]=(0x0,collect_js_1['default'])(this[_0x37cf92(0x8f)][_0x43841b])['sortByDesc'](_0x37cf92(0xad))[_0x37cf92(0x9b)]();}}return _0x5c2622?this['listevent'][_0x5c2622]||[]:this[_0x37cf92(0x8f)];}async['emit'](_0x33dcfa,..._0x4078f7){const _0x525202=a4_0x988e47;var _0x3cd3b4,_0x18a318;await this[_0x525202(0x95)]();for(let _0x4173f4 in(_0x3cd3b4=this[_0x525202(0x8f)])===null||_0x3cd3b4===void 0x0?void 0x0:_0x3cd3b4[_0x33dcfa]){const _0x31812a=(_0x18a318=this['listevent'][_0x33dcfa])===null||_0x18a318===void 0x0?void 0x0:_0x18a318[_0x4173f4];(_0x31812a===null||_0x31812a===void 0x0?void 0x0:_0x31812a['resolve'])&&typeof(_0x31812a===null||_0x31812a===void 0x0?void 0x0:_0x31812a[_0x525202(0xb3)])==_0x525202(0xb0)&&await _0x31812a[_0x525202(0xb3)](..._0x4078f7);}}async['once'](_0x57471d,..._0x5b80eb){const _0x2e6974=a4_0x988e47;return await this[_0x2e6974(0x95)](),await this[_0x2e6974(0xaf)](_0x57471d,..._0x5b80eb),this[_0x2e6974(0xa5)](_0x57471d);}async[a4_0x988e47(0xa5)](_0x3e4447){const _0x5f5538=a4_0x988e47;return await this[_0x5f5538(0x95)](),this[_0x5f5538(0x8f)][_0x3e4447]&&delete this['listevent'][_0x3e4447],!!this['listevent'][_0x3e4447];}};__decorate([(0x0,decorator_1['App'])(),__metadata(a4_0x988e47(0xb7),Object)],EventService[a4_0x988e47(0x97)],a4_0x988e47(0xa6),void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x988e47(0x94)])('event'),(0x0,decorator_1[a4_0x988e47(0xae)])(decorator_1['ScopeEnum'][a4_0x988e47(0x9e)])],EventService),exports[a4_0x988e47(0xa7)]=EventService;function a4_0x5610(){const _0x1c87f5=['__metadata','7032606vPxcol','bind','getClassMetadata','off','app','EventService','length','42UxxiPJ','../interface','56913lThYjn','3467596BnJqDY','priority','Scope','emit','function','metadata','getOwnPropertyDescriptor','resolve','init','getApplicationContext','decorate','design:type','8014368TrVsTn','listevent','propertyKey','collect.js','listModule','41301QllUSD','Provide','getListevent','push','prototype','@midwayjs/decorator','5437690ZPQIzs','defineProperty','all','EVENT_ON_KEY','5817856igBtqJ','Singleton','object','name'];a4_0x5610=function(){return _0x1c87f5;};return a4_0x5610();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.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": "c3515458c76e02ff95219389d6322d473eb79a9f"
|
|
25
25
|
}
|