@anncic-api/event 1.0.9 → 1.0.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_0x324727=a0_0x1f0d;function a0_0x54d4(){var _0x84d7d0=['length','8fBXWMX','__esModule','object','anncic-api:event','744507QWmQDu','prototype','metadata','143632QtdATP','defineProperty','onReady','12573230NNskTY','21HElRqZ','22kaqTRh','9qzAbzp','@midwayjs/core','design:type','CustomConfiguration','MidwayConfigService','MidwayDecoratorService','config','1256643CqtrGB','1963986ndnzKC','getOwnPropertyDescriptor','@midwayjs/decorator','decorator','1327790XPoFBu','2DIApYg','11968860DvlebS','Inject','decorate','function'];a0_0x54d4=function(){return _0x84d7d0;};return a0_0x54d4();}(function(_0x248142,_0x16d63f){var _0x3e2998=a0_0x1f0d,_0x2533bc=_0x248142();while(!![]){try{var _0x11fee0=-parseInt(_0x3e2998(0x1a8))/0x1*(parseInt(_0x3e2998(0x1ae))/0x2)+parseInt(_0x3e2998(0x1b8))/0x3*(parseInt(_0x3e2998(0x1b4))/0x4)+-parseInt(_0x3e2998(0x1ad))/0x5+-parseInt(_0x3e2998(0x1a9))/0x6*(-parseInt(_0x3e2998(0x19f))/0x7)+parseInt(_0x3e2998(0x19b))/0x8+parseInt(_0x3e2998(0x1a1))/0x9*(-parseInt(_0x3e2998(0x19e))/0xa)+-parseInt(_0x3e2998(0x1a0))/0xb*(-parseInt(_0x3e2998(0x1af))/0xc);if(_0x11fee0===_0x16d63f)break;else _0x2533bc['push'](_0x2533bc['shift']());}catch(_0x1d54af){_0x2533bc['push'](_0x2533bc['shift']());}}}(a0_0x54d4,0xadb93));function a0_0x1f0d(_0x43f15c,_0x3f9da5){var _0x54d425=a0_0x54d4();return a0_0x1f0d=function(_0x1f0d80,_0x3e5cf4){_0x1f0d80=_0x1f0d80-0x19a;var _0x20ae8a=_0x54d425[_0x1f0d80];return _0x20ae8a;},a0_0x1f0d(_0x43f15c,_0x3f9da5);}var __decorate=this&&this['__decorate']||function(_0x366229,_0x21c711,_0x1c2d9f,_0x106ff7){var _0x4e3d2c=a0_0x1f0d,_0x3f2141=arguments[_0x4e3d2c(0x1b3)],_0x297eca=_0x3f2141<0x3?_0x21c711:_0x106ff7===null?_0x106ff7=Object[_0x4e3d2c(0x1aa)](_0x21c711,_0x1c2d9f):_0x106ff7,_0x509c8d;if(typeof Reflect===_0x4e3d2c(0x1b6)&&typeof Reflect['decorate']===_0x4e3d2c(0x1b2))_0x297eca=Reflect[_0x4e3d2c(0x1b1)](_0x366229,_0x21c711,_0x1c2d9f,_0x106ff7);else{for(var _0x41cd59=_0x366229[_0x4e3d2c(0x1b3)]-0x1;_0x41cd59>=0x0;_0x41cd59--)if(_0x509c8d=_0x366229[_0x41cd59])_0x297eca=(_0x3f2141<0x3?_0x509c8d(_0x297eca):_0x3f2141>0x3?_0x509c8d(_0x21c711,_0x1c2d9f,_0x297eca):_0x509c8d(_0x21c711,_0x1c2d9f))||_0x297eca;}return _0x3f2141>0x3&&_0x297eca&&Object['defineProperty'](_0x21c711,_0x1c2d9f,_0x297eca),_0x297eca;},__metadata=this&&this['__metadata']||function(_0x115b68,_0x4b2e43){var _0x391dff=a0_0x1f0d;if(typeof Reflect===_0x391dff(0x1b6)&&typeof Reflect[_0x391dff(0x19a)]==='function')return Reflect[_0x391dff(0x19a)](_0x115b68,_0x4b2e43);};Object[a0_0x324727(0x19c)](exports,a0_0x324727(0x1b5),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a0_0x324727(0x1ab)),core_1=require(a0_0x324727(0x1a2));let CustomConfiguration=class CustomConfiguration{async[a0_0x324727(0x19d)](){}};__decorate([(0x0,decorator_1[a0_0x324727(0x1b0)])(),__metadata(a0_0x324727(0x1a3),core_1[a0_0x324727(0x1a5)])],CustomConfiguration[a0_0x324727(0x1b9)],a0_0x324727(0x1a7),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1[a0_0x324727(0x1a6)])],CustomConfiguration[a0_0x324727(0x1b9)],a0_0x324727(0x1ac),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a0_0x324727(0x1b7)})],CustomConfiguration),exports[a0_0x324727(0x1a4)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x62ac1b=a1_0x37cb;function a1_0x37cb(_0x36b4f2,_0x3ac61e){const _0x102b2c=a1_0x102b();return a1_0x37cb=function(_0x37cbdc,_0x22de39){_0x37cbdc=_0x37cbdc-0x173;let _0x46131e=_0x102b2c[_0x37cbdc];return _0x46131e;},a1_0x37cb(_0x36b4f2,_0x3ac61e);}(function(_0x142e78,_0x37a403){const _0x183248=a1_0x37cb,_0x47c5d3=_0x142e78();while(!![]){try{const _0x366159=-parseInt(_0x183248(0x187))/0x1*(parseInt(_0x183248(0x183))/0x2)+-parseInt(_0x183248(0x184))/0x3+parseInt(_0x183248(0x175))/0x4+parseInt(_0x183248(0x17b))/0x5*(-parseInt(_0x183248(0x178))/0x6)+parseInt(_0x183248(0x173))/0x7*(-parseInt(_0x183248(0x179))/0x8)+parseInt(_0x183248(0x17f))/0x9*(parseInt(_0x183248(0x174))/0xa)+-parseInt(_0x183248(0x180))/0xb*(-parseInt(_0x183248(0x177))/0xc);if(_0x366159===_0x37a403)break;else _0x47c5d3['push'](_0x47c5d3['shift']());}catch(_0x2cd45b){_0x47c5d3['push'](_0x47c5d3['shift']());}}}(a1_0x102b,0x858c2));Object[a1_0x62ac1b(0x17c)](exports,a1_0x62ac1b(0x176),{'value':!![]}),exports[a1_0x62ac1b(0x186)]=void 0x0;const decorator_1=require(a1_0x62ac1b(0x181)),interface_1=require('../interface');function a1_0x102b(){const _0x2188f4=['Event','374VldQBX','1680ektgcG','16170AFLyHq','3437740REIUtv','__esModule','2676opeiJy','126AAJcJa','13712YaMmLs','saveModule','167415YeTJKX','defineProperty','attachClassMetadata','EVENT_KEY','5202QWoDOS','22616IeYQQF','@midwayjs/decorator','Provide','1514xjTISt','923754jdxYWp','Request'];a1_0x102b=function(){return _0x2188f4;};return a1_0x102b();}function Event(){return _0x2b2a77=>{const _0x55be31=a1_0x37cb;(0x0,decorator_1[_0x55be31(0x182)])()(_0x2b2a77),(0x0,decorator_1[_0x55be31(0x17a)])(interface_1[_0x55be31(0x17e)],_0x2b2a77),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum'][_0x55be31(0x185)],{'allowDowngrade':!![]})(_0x2b2a77);};}exports[a1_0x62ac1b(0x186)]=Event,Event['On']=function(_0x5bf05c,_0x2f031d=0x0){return(_0x298330,_0x297e4e,_0x3d41af)=>{const _0x4d54c4=a1_0x37cb;return(0x0,decorator_1[_0x4d54c4(0x17d)])(interface_1['EVENT_ON_KEY'],{'name':_0x5bf05c,'priority':_0x2f031d,'propertyKey':_0x297e4e,'descriptor':_0x3d41af},_0x298330),_0x3d41af;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x56405a=a2_0x81dd;(function(_0x39ba69,_0x432e84){var _0x5edfc6=a2_0x81dd,_0x1d97ba=_0x39ba69();while(!![]){try{var _0x1503bc=-parseInt(_0x5edfc6(0xb6))/0x1*(-parseInt(_0x5edfc6(0xc0))/0x2)+-parseInt(_0x5edfc6(0xbe))/0x3*(-parseInt(_0x5edfc6(0xc1))/0x4)+parseInt(_0x5edfc6(0xb4))/0x5*(-parseInt(_0x5edfc6(0xbb))/0x6)+-parseInt(_0x5edfc6(0xbd))/0x7*(parseInt(_0x5edfc6(0xb9))/0x8)+-parseInt(_0x5edfc6(0xb5))/0x9+-parseInt(_0x5edfc6(0xb7))/0xa+parseInt(_0x5edfc6(0xb3))/0xb;if(_0x1503bc===_0x432e84)break;else _0x1d97ba['push'](_0x1d97ba['shift']());}catch(_0x28d5f5){_0x1d97ba['push'](_0x1d97ba['shift']());}}}(a2_0x1606,0xba399));function a2_0x1606(){var _0x7f4d6a=['43451650JiZwPz','740895fIndcn','5449257GgEwpZ','9955jbCSuz','9774040avdHBd','__esModule','11201464tXuKJd','Configuration','42DkNGlL','defineProperty','7dVqfrD','284445oMJUPX','Event','34XuqyHL','28KqEBYz','./service/EventService','CustomConfiguration','./configuration','EventService'];a2_0x1606=function(){return _0x7f4d6a;};return a2_0x1606();}Object[a2_0x56405a(0xbc)](exports,a2_0x56405a(0xb8),{'value':!![]}),exports[a2_0x56405a(0xba)]=exports[a2_0x56405a(0xb2)]=exports[a2_0x56405a(0xbf)]=void 0x0;var Event_1=require('./decorator/Event');function a2_0x81dd(_0x3730ee,_0x1edc6f){var _0x1606de=a2_0x1606();return a2_0x81dd=function(_0x81dd35,_0x173ef1){_0x81dd35=_0x81dd35-0xaf;var _0x480b57=_0x1606de[_0x81dd35];return _0x480b57;},a2_0x81dd(_0x3730ee,_0x1edc6f);}Object[a2_0x56405a(0xbc)](exports,a2_0x56405a(0xbf),{'enumerable':!![],'get':function(){return Event_1['Event'];}});var EventService_1=require(a2_0x56405a(0xaf));Object[a2_0x56405a(0xbc)](exports,a2_0x56405a(0xb2),{'enumerable':!![],'get':function(){return EventService_1['EventService'];}});var configuration_1=require(a2_0x56405a(0xb1));Object['defineProperty'](exports,a2_0x56405a(0xba),{'enumerable':!![],'get':function(){var _0x544f0c=a2_0x56405a;return configuration_1[_0x544f0c(0xb0)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0x27a2(_0x8f2b59,_0x2d3510){var _0x40099e=a3_0x4009();return a3_0x27a2=function(_0x27a2f9,_0x1d48e8){_0x27a2f9=_0x27a2f9-0x168;var _0x50f42d=_0x40099e[_0x27a2f9];return _0x50f42d;},a3_0x27a2(_0x8f2b59,_0x2d3510);}var a3_0x3fe801=a3_0x27a2;(function(_0x31d796,_0x124d02){var _0xe68bb4=a3_0x27a2,_0x57fc6c=_0x31d796();while(!![]){try{var _0x21c4d6=-parseInt(_0xe68bb4(0x174))/0x1*(parseInt(_0xe68bb4(0x169))/0x2)+parseInt(_0xe68bb4(0x16b))/0x3+parseInt(_0xe68bb4(0x171))/0x4+-parseInt(_0xe68bb4(0x172))/0x5*(parseInt(_0xe68bb4(0x16f))/0x6)+parseInt(_0xe68bb4(0x173))/0x7*(-parseInt(_0xe68bb4(0x16c))/0x8)+parseInt(_0xe68bb4(0x16e))/0x9+parseInt(_0xe68bb4(0x175))/0xa;if(_0x21c4d6===_0x124d02)break;else _0x57fc6c['push'](_0x57fc6c['shift']());}catch(_0x538ab8){_0x57fc6c['push'](_0x57fc6c['shift']());}}}(a3_0x4009,0x94dec));function a3_0x4009(){var _0x286dc9=['EVENT_ON_KEY','778KensrN','EVENT_KEY','425760otSVWc','872qePQOo','anncic-api:event:on','7403652qFpsEq','42vbFzoF','defineProperty','2974096fhcirG','690495cdDEhR','64799vPILUs','580HBweDU','11030260auNMlU','anncic-api:event'];a3_0x4009=function(){return _0x286dc9;};return a3_0x4009();}Object[a3_0x3fe801(0x170)](exports,'__esModule',{'value':!![]}),exports['EVENT_ON_KEY']=exports['EVENT_KEY']=void 0x0,exports[a3_0x3fe801(0x16a)]=a3_0x3fe801(0x176),exports[a3_0x3fe801(0x168)]=a3_0x3fe801(0x16d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x5ed23a=a4_0x36e3;function a4_0xf19c(){const _0x54dfdb=['249422IhYxth','collect.js','EVENT_ON_KEY','__esModule','listModule','ScopeEnum','getListevent','2984635jQRFQw','all','object','EventService','metadata','listevent','off','defineProperty','getOwnPropertyDescriptor','length','emit','decorate','6sdvxuJ','Scope','1284426jcvFMY','priority','prototype','design:type','event','3970043mLiynM','6068040FdStID','getApplicationContext','function','EVENT_KEY','281211JbSXgq','4voGjJc','../interface','resolve','once','name','getClassMetadata','init','propertyKey','sortByDesc','Singleton','bind','App','13716693cmtsIx','__metadata'];a4_0xf19c=function(){return _0x54dfdb;};return a4_0xf19c();}(function(_0x2114ad,_0x3df969){const _0x193548=a4_0x36e3,_0x58884b=_0x2114ad();while(!![]){try{const _0x1fc227=parseInt(_0x193548(0x119))/0x1+parseInt(_0x193548(0x100))/0x2+parseInt(_0x193548(0x10a))/0x3*(-parseInt(_0x193548(0x10b))/0x4)+-parseInt(_0x193548(0x120))/0x5*(parseInt(_0x193548(0xfe))/0x6)+-parseInt(_0x193548(0x105))/0x7+-parseInt(_0x193548(0x106))/0x8+parseInt(_0x193548(0x117))/0x9;if(_0x1fc227===_0x3df969)break;else _0x58884b['push'](_0x58884b['shift']());}catch(_0x187718){_0x58884b['push'](_0x58884b['shift']());}}}(a4_0xf19c,0x61822));function a4_0x36e3(_0x1391be,_0x1d90f0){const _0xf19cf6=a4_0xf19c();return a4_0x36e3=function(_0x36e361,_0x56c9a0){_0x36e361=_0x36e361-0xf5;let _0x26a274=_0xf19cf6[_0x36e361];return _0x26a274;},a4_0x36e3(_0x1391be,_0x1d90f0);}var __decorate=this&&this['__decorate']||function(_0xa09913,_0x3455fb,_0x56dc49,_0x4568c4){const _0x26f1bc=a4_0x36e3;var _0x5b2c54=arguments[_0x26f1bc(0xfb)],_0x5ceaec=_0x5b2c54<0x3?_0x3455fb:_0x4568c4===null?_0x4568c4=Object[_0x26f1bc(0xfa)](_0x3455fb,_0x56dc49):_0x4568c4,_0x1f4867;if(typeof Reflect===_0x26f1bc(0x122)&&typeof Reflect['decorate']===_0x26f1bc(0x108))_0x5ceaec=Reflect[_0x26f1bc(0xfd)](_0xa09913,_0x3455fb,_0x56dc49,_0x4568c4);else{for(var _0xdc0724=_0xa09913['length']-0x1;_0xdc0724>=0x0;_0xdc0724--)if(_0x1f4867=_0xa09913[_0xdc0724])_0x5ceaec=(_0x5b2c54<0x3?_0x1f4867(_0x5ceaec):_0x5b2c54>0x3?_0x1f4867(_0x3455fb,_0x56dc49,_0x5ceaec):_0x1f4867(_0x3455fb,_0x56dc49))||_0x5ceaec;}return _0x5b2c54>0x3&&_0x5ceaec&&Object[_0x26f1bc(0xf9)](_0x3455fb,_0x56dc49,_0x5ceaec),_0x5ceaec;},__metadata=this&&this[a4_0x5ed23a(0x118)]||function(_0x566921,_0x1fb0a5){const _0x17533c=a4_0x5ed23a;if(typeof Reflect===_0x17533c(0x122)&&typeof Reflect[_0x17533c(0xf6)]===_0x17533c(0x108))return Reflect[_0x17533c(0xf6)](_0x566921,_0x1fb0a5);};Object['defineProperty'](exports,a4_0x5ed23a(0x11c),{'value':!![]}),exports[a4_0x5ed23a(0xf5)]=void 0x0;const collect_js_1=require(a4_0x5ed23a(0x11a)),decorator_1=require('@midwayjs/decorator'),interface_1=require(a4_0x5ed23a(0x10c));let EventService=class EventService{constructor(){const _0x1fbb56=a4_0x5ed23a;this[_0x1fbb56(0x111)]=![];}async[a4_0x5ed23a(0x11f)](_0x5b560c){const _0x437a39=a4_0x5ed23a;if(!this[_0x437a39(0x111)]){this[_0x437a39(0x111)]=!![],this[_0x437a39(0xf7)]={};for(const _0x304732 of(0x0,decorator_1[_0x437a39(0x11d)])(interface_1[_0x437a39(0x109)])||[]){const _0x5c0e91=await this['app'][_0x437a39(0x107)]()['getAsync'](_0x304732);for(const _0x20c8db of(0x0,decorator_1[_0x437a39(0x110)])(interface_1[_0x437a39(0x11b)],_0x304732)||[]){typeof(_0x5c0e91[_0x20c8db['propertyKey']]==_0x437a39(0x108))&&(!this[_0x437a39(0xf7)][_0x20c8db[_0x437a39(0x10f)]]&&(this['listevent'][_0x20c8db[_0x437a39(0x10f)]]=[]),this['listevent'][_0x20c8db[_0x437a39(0x10f)]]['push']({'priority':_0x20c8db[_0x437a39(0x101)],'resolve':_0x5c0e91[_0x20c8db[_0x437a39(0x112)]][_0x437a39(0x115)](_0x5c0e91),'propertyKey':_0x304732[_0x437a39(0x10f)]+'@'+_0x20c8db[_0x437a39(0x112)]}));}}for(const _0x215bc7 in this[_0x437a39(0xf7)]){this[_0x437a39(0xf7)][_0x215bc7]=(0x0,collect_js_1['default'])(this[_0x437a39(0xf7)][_0x215bc7])[_0x437a39(0x113)](_0x437a39(0x101))[_0x437a39(0x121)]();}}return _0x5b560c?this[_0x437a39(0xf7)][_0x5b560c]||[]:this[_0x437a39(0xf7)];}async[a4_0x5ed23a(0xfc)](_0x261af8,..._0x56f10f){const _0x395787=a4_0x5ed23a;var _0x242cea,_0x388715;await this[_0x395787(0x11f)]();for(let _0x49f876 in(_0x242cea=this[_0x395787(0xf7)])===null||_0x242cea===void 0x0?void 0x0:_0x242cea[_0x261af8]){const _0x57198f=(_0x388715=this['listevent'][_0x261af8])===null||_0x388715===void 0x0?void 0x0:_0x388715[_0x49f876];(_0x57198f===null||_0x57198f===void 0x0?void 0x0:_0x57198f[_0x395787(0x10d)])&&typeof(_0x57198f===null||_0x57198f===void 0x0?void 0x0:_0x57198f[_0x395787(0x10d)])==_0x395787(0x108)&&await _0x57198f['resolve'](..._0x56f10f);}}async[a4_0x5ed23a(0x10e)](_0x15d0ec,..._0x41f556){const _0x49513c=a4_0x5ed23a;return await this['getListevent'](),await this['emit'](_0x15d0ec,..._0x41f556),this[_0x49513c(0xf8)](_0x15d0ec);}async[a4_0x5ed23a(0xf8)](_0x40a7f3){const _0x3a1b6a=a4_0x5ed23a;return await this[_0x3a1b6a(0x11f)](),this[_0x3a1b6a(0xf7)][_0x40a7f3]&&delete this[_0x3a1b6a(0xf7)][_0x40a7f3],!!this['listevent'][_0x40a7f3];}};__decorate([(0x0,decorator_1[a4_0x5ed23a(0x116)])(),__metadata(a4_0x5ed23a(0x103),Object)],EventService[a4_0x5ed23a(0x102)],'app',void 0x0),EventService=__decorate([(0x0,decorator_1['Provide'])(a4_0x5ed23a(0x104)),(0x0,decorator_1[a4_0x5ed23a(0xff)])(decorator_1[a4_0x5ed23a(0x11e)][a4_0x5ed23a(0x114)])],EventService),exports[a4_0x5ed23a(0xf5)]=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.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": "5a1add10415cd9a465caa2a1f8fb4d1ea36ce6f2"
|
|
25
25
|
}
|