@anncic-api/event 1.4.10 → 1.4.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';function a0_0x36b2(){var _0x5377ba=['6260ztDIsv','decorator','7Ypfryb','metadata','prototype','__decorate','8132762jTAmye','14NgUgiT','onReady','getOwnPropertyDescriptor','Inject','33065nraRyC','__metadata','config','32124QhCDoe','object','35RJMNdi','__esModule','639822RoZpUm','2559992RKEriB','2854964uYVkJQ','123JClqHG','anncic-api:event','156ApszCN','defineProperty','18126tuVrGh','CustomConfiguration','decorate','design:type','@midwayjs/core','24WuRsBy','length','MidwayConfigService'];a0_0x36b2=function(){return _0x5377ba;};return a0_0x36b2();}var a0_0x3f6929=a0_0x1b0c;(function(_0x32d00e,_0x5d076c){var _0x52b954=a0_0x1b0c,_0xf690fc=_0x32d00e();while(!![]){try{var _0xd48f6c=parseInt(_0x52b954(0x1cf))/0x1*(-parseInt(_0x52b954(0x1cb))/0x2)+-parseInt(_0x52b954(0x1d9))/0x3*(-parseInt(_0x52b954(0x1d2))/0x4)+parseInt(_0x52b954(0x1d4))/0x5*(parseInt(_0x52b954(0x1d6))/0x6)+parseInt(_0x52b954(0x1c6))/0x7*(-parseInt(_0x52b954(0x1d7))/0x8)+-parseInt(_0x52b954(0x1bc))/0x9*(-parseInt(_0x52b954(0x1c4))/0xa)+-parseInt(_0x52b954(0x1ca))/0xb*(-parseInt(_0x52b954(0x1c1))/0xc)+-parseInt(_0x52b954(0x1ba))/0xd*(parseInt(_0x52b954(0x1d8))/0xe);if(_0xd48f6c===_0x5d076c)break;else _0xf690fc['push'](_0xf690fc['shift']());}catch(_0x3e8aea){_0xf690fc['push'](_0xf690fc['shift']());}}}(a0_0x36b2,0xc75e4));var __decorate=this&&this[a0_0x3f6929(0x1c9)]||function(_0xe35b9c,_0x4f189b,_0x1eb127,_0x571de9){var _0x1e5e35=a0_0x3f6929,_0x42efd7=arguments[_0x1e5e35(0x1c2)],_0x3bfe2f=_0x42efd7<0x3?_0x4f189b:_0x571de9===null?_0x571de9=Object[_0x1e5e35(0x1cd)](_0x4f189b,_0x1eb127):_0x571de9,_0x46cbe3;if(typeof Reflect===_0x1e5e35(0x1d3)&&typeof Reflect[_0x1e5e35(0x1be)]==='function')_0x3bfe2f=Reflect['decorate'](_0xe35b9c,_0x4f189b,_0x1eb127,_0x571de9);else{for(var _0x284a80=_0xe35b9c[_0x1e5e35(0x1c2)]-0x1;_0x284a80>=0x0;_0x284a80--)if(_0x46cbe3=_0xe35b9c[_0x284a80])_0x3bfe2f=(_0x42efd7<0x3?_0x46cbe3(_0x3bfe2f):_0x42efd7>0x3?_0x46cbe3(_0x4f189b,_0x1eb127,_0x3bfe2f):_0x46cbe3(_0x4f189b,_0x1eb127))||_0x3bfe2f;}return _0x42efd7>0x3&&_0x3bfe2f&&Object[_0x1e5e35(0x1bb)](_0x4f189b,_0x1eb127,_0x3bfe2f),_0x3bfe2f;},__metadata=this&&this[a0_0x3f6929(0x1d0)]||function(_0x475e9d,_0x139846){var _0x4217e1=a0_0x3f6929;if(typeof Reflect==='object'&&typeof Reflect[_0x4217e1(0x1c7)]==='function')return Reflect[_0x4217e1(0x1c7)](_0x475e9d,_0x139846);};Object['defineProperty'](exports,a0_0x3f6929(0x1d5),{'value':!![]}),exports[a0_0x3f6929(0x1bd)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a0_0x3f6929(0x1c0));function a0_0x1b0c(_0x375d51,_0x31852f){var _0x36b2a1=a0_0x36b2();return a0_0x1b0c=function(_0x1b0c52,_0x190137){_0x1b0c52=_0x1b0c52-0x1ba;var _0x9fc845=_0x36b2a1[_0x1b0c52];return _0x9fc845;},a0_0x1b0c(_0x375d51,_0x31852f);}let CustomConfiguration=class CustomConfiguration{async[a0_0x3f6929(0x1cc)](){}};__decorate([(0x0,core_1[a0_0x3f6929(0x1ce)])(),__metadata(a0_0x3f6929(0x1bf),core_2[a0_0x3f6929(0x1c3)])],CustomConfiguration[a0_0x3f6929(0x1c8)],a0_0x3f6929(0x1d1),void 0x0),__decorate([(0x0,core_1[a0_0x3f6929(0x1ce)])(),__metadata(a0_0x3f6929(0x1bf),core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a0_0x3f6929(0x1c5),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a0_0x3f6929(0x1da)})],CustomConfiguration),exports[a0_0x3f6929(0x1bd)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x26d55a=a1_0x3558;(function(_0x435ed8,_0x8c1fce){const _0x4d04a2=a1_0x3558,_0x18baff=_0x435ed8();while(!![]){try{const _0x49a8ff=-parseInt(_0x4d04a2(0x1b9))/0x1*(parseInt(_0x4d04a2(0x1b2))/0x2)+parseInt(_0x4d04a2(0x1b4))/0x3*(parseInt(_0x4d04a2(0x1b7))/0x4)+parseInt(_0x4d04a2(0x1bf))/0x5*(parseInt(_0x4d04a2(0x1bc))/0x6)+-parseInt(_0x4d04a2(0x1bb))/0x7+-parseInt(_0x4d04a2(0x1c6))/0x8*(parseInt(_0x4d04a2(0x1b3))/0x9)+parseInt(_0x4d04a2(0x1ba))/0xa*(parseInt(_0x4d04a2(0x1c2))/0xb)+-parseInt(_0x4d04a2(0x1c9))/0xc;if(_0x49a8ff===_0x8c1fce)break;else _0x18baff['push'](_0x18baff['shift']());}catch(_0x4d16e6){_0x18baff['push'](_0x18baff['shift']());}}}(a1_0x3178,0x38ccd));function a1_0x3178(){const _0x119cb0=['__esModule','Event','366890kUkxbL','Provide','EVENT_KEY','221584GrxAUi','ScopeEnum','Scope','defineProperty','37984HgPExH','Request','EVENT_ON_KEY','274188kwDMUR','attachClassMetadata','4bwfQyC','81nepvIQ','159nAxToB','../interface','@midwayjs/core','28660jkOAmY','saveModule','221773NNMgvS','120KFSYpo','698789BjBbBI','18MbQKZD'];a1_0x3178=function(){return _0x119cb0;};return a1_0x3178();}function a1_0x3558(_0x406217,_0x32d7be){const _0x317875=a1_0x3178();return a1_0x3558=function(_0x3558fc,_0x5c4861){_0x3558fc=_0x3558fc-0x1b2;let _0x5db9db=_0x317875[_0x3558fc];return _0x5db9db;},a1_0x3558(_0x406217,_0x32d7be);}Object[a1_0x26d55a(0x1c5)](exports,a1_0x26d55a(0x1bd),{'value':!![]}),exports[a1_0x26d55a(0x1be)]=void 0x0;const core_1=require(a1_0x26d55a(0x1b6)),interface_1=require(a1_0x26d55a(0x1b5));function Event(){return _0x58ad2f=>{const _0x444c62=a1_0x3558;(0x0,core_1[_0x444c62(0x1c0)])()(_0x58ad2f),(0x0,core_1[_0x444c62(0x1b8)])(interface_1[_0x444c62(0x1c1)],_0x58ad2f),(0x0,core_1[_0x444c62(0x1c4)])(core_1[_0x444c62(0x1c3)][_0x444c62(0x1c7)],{'allowDowngrade':!![]})(_0x58ad2f);};}exports[a1_0x26d55a(0x1be)]=Event,Event['On']=function(_0x2c627a,_0x21590c=0x0){return(_0x335026,_0x32ec59,_0x2e8a7a)=>{const _0x351f93=a1_0x3558;return(0x0,core_1[_0x351f93(0x1ca)])(interface_1[_0x351f93(0x1c8)],{'name':_0x2c627a,'priority':_0x21590c,'propertyKey':_0x32ec59,'descriptor':_0x2e8a7a},_0x335026),_0x2e8a7a;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a2_0xe8da(_0x319f1f,_0xbc096d){var _0x2a8ac6=a2_0x2a8a();return a2_0xe8da=function(_0xe8da50,_0x4b6a41){_0xe8da50=_0xe8da50-0x180;var _0x57bac3=_0x2a8ac6[_0xe8da50];return _0x57bac3;},a2_0xe8da(_0x319f1f,_0xbc096d);}var a2_0x46ef07=a2_0xe8da;(function(_0x3d944a,_0x52a403){var _0x5dc8ed=a2_0xe8da,_0x4aaed6=_0x3d944a();while(!![]){try{var _0x54cfa9=parseInt(_0x5dc8ed(0x188))/0x1+-parseInt(_0x5dc8ed(0x18b))/0x2*(-parseInt(_0x5dc8ed(0x189))/0x3)+parseInt(_0x5dc8ed(0x183))/0x4*(-parseInt(_0x5dc8ed(0x181))/0x5)+-parseInt(_0x5dc8ed(0x180))/0x6+parseInt(_0x5dc8ed(0x184))/0x7+parseInt(_0x5dc8ed(0x186))/0x8+parseInt(_0x5dc8ed(0x18d))/0x9;if(_0x54cfa9===_0x52a403)break;else _0x4aaed6['push'](_0x4aaed6['shift']());}catch(_0x2afd0a){_0x4aaed6['push'](_0x4aaed6['shift']());}}}(a2_0x2a8a,0x75b85));Object[a2_0x46ef07(0x182)](exports,a2_0x46ef07(0x18a),{'value':!![]}),exports['Configuration']=exports[a2_0x46ef07(0x18c)]=exports['Event']=void 0x0;function a2_0x2a8a(){var _0x11693f=['563760wpwuJf','12LJaqTs','__esModule','252056nNIkaH','EventService','318636EJUaAZ','4798302IDhMrE','2707170SXbTHr','defineProperty','4soLVuH','1442686vxRMWr','Event','4111664jbAFtO','./configuration'];a2_0x2a8a=function(){return _0x11693f;};return a2_0x2a8a();}var Event_1=require('./decorator/Event');Object[a2_0x46ef07(0x182)](exports,a2_0x46ef07(0x185),{'enumerable':!![],'get':function(){var _0x382722=a2_0x46ef07;return Event_1[_0x382722(0x185)];}});var EventService_1=require('./service/EventService');Object[a2_0x46ef07(0x182)](exports,a2_0x46ef07(0x18c),{'enumerable':!![],'get':function(){var _0xa634c5=a2_0x46ef07;return EventService_1[_0xa634c5(0x18c)];}});var configuration_1=require(a2_0x46ef07(0x187));Object[a2_0x46ef07(0x182)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0x31421f=a3_0x2603;(function(_0x46be5b,_0x1aa58d){var _0x1bfdfe=a3_0x2603,_0x2ad9c3=_0x46be5b();while(!![]){try{var _0x4a8a5b=parseInt(_0x1bfdfe(0xf8))/0x1*(-parseInt(_0x1bfdfe(0xf5))/0x2)+-parseInt(_0x1bfdfe(0xf4))/0x3*(parseInt(_0x1bfdfe(0xfd))/0x4)+parseInt(_0x1bfdfe(0xf2))/0x5+parseInt(_0x1bfdfe(0xf1))/0x6*(-parseInt(_0x1bfdfe(0xf0))/0x7)+-parseInt(_0x1bfdfe(0xef))/0x8*(-parseInt(_0x1bfdfe(0xfe))/0x9)+parseInt(_0x1bfdfe(0xee))/0xa*(-parseInt(_0x1bfdfe(0xf3))/0xb)+-parseInt(_0x1bfdfe(0xf9))/0xc*(-parseInt(_0x1bfdfe(0xf7))/0xd);if(_0x4a8a5b===_0x1aa58d)break;else _0x2ad9c3['push'](_0x2ad9c3['shift']());}catch(_0x350054){_0x2ad9c3['push'](_0x2ad9c3['shift']());}}}(a3_0xeb2f,0x2597a));function a3_0x2603(_0x143c8a,_0x286006){var _0xeb2f5c=a3_0xeb2f();return a3_0x2603=function(_0x260348,_0x484d55){_0x260348=_0x260348-0xee;var _0x24419b=_0xeb2f5c[_0x260348];return _0x24419b;},a3_0x2603(_0x143c8a,_0x286006);}function a3_0xeb2f(){var _0x31d0af=['19299hseWBP','618YbpaGu','153535TlwpKn','57871EXapna','612tQAoPC','2SCEowH','anncic-api:event:on','312ehoWVh','60509mAipFd','208860joPYrq','EVENT_ON_KEY','defineProperty','EVENT_KEY','3856gIKbiZ','198zpYyKg','70qUtAIP','103096jBBSJJ'];a3_0xeb2f=function(){return _0x31d0af;};return a3_0xeb2f();}Object[a3_0x31421f(0xfb)](exports,'__esModule',{'value':!![]}),exports[a3_0x31421f(0xfa)]=exports['EVENT_KEY']=void 0x0,exports[a3_0x31421f(0xfc)]='anncic-api:event',exports['EVENT_ON_KEY']=a3_0x31421f(0xf6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x43011f=a4_0x31a5;function a4_0x58ce(){const _0x5722cb=['Provide','EVENT_KEY','EVENT_ON_KEY','design:type','decorate','init','name','collect.js','off','event','../interface','Scope','object','2342998koYWsm','default','getListevent','function','getOwnPropertyDescriptor','getAsync','app','propertyKey','@midwayjs/core','324260RnqNlT','getApplicationContext','sortByDesc','App','Singleton','10GflAlX','6418269RLwQXr','ScopeEnum','185578eKUdfY','metadata','44GPovnA','__esModule','listevent','priority','2187648wUCbDi','325854vmNhcE','resolve','defineProperty','listModule','prototype','EventService','5629644uejvpx','__decorate','8KIBdcP','length'];a4_0x58ce=function(){return _0x5722cb;};return a4_0x58ce();}(function(_0x59051d,_0x4f5bf0){const _0x13334e=a4_0x31a5,_0x9862d8=_0x59051d();while(!![]){try{const _0x44ea45=-parseInt(_0x13334e(0x191))/0x1*(-parseInt(_0x13334e(0x1a0))/0x2)+parseInt(_0x13334e(0x198))/0x3+parseInt(_0x13334e(0x193))/0x4*(-parseInt(_0x13334e(0x189))/0x5)+-parseInt(_0x13334e(0x19e))/0x6+parseInt(_0x13334e(0x180))/0x7+parseInt(_0x13334e(0x197))/0x8+parseInt(_0x13334e(0x18f))/0x9*(parseInt(_0x13334e(0x18e))/0xa);if(_0x44ea45===_0x4f5bf0)break;else _0x9862d8['push'](_0x9862d8['shift']());}catch(_0x17c906){_0x9862d8['push'](_0x9862d8['shift']());}}}(a4_0x58ce,0x7f193));function a4_0x31a5(_0x25e1e8,_0x16a68a){const _0x58ce44=a4_0x58ce();return a4_0x31a5=function(_0x31a5d4,_0x1796cd){_0x31a5d4=_0x31a5d4-0x17a;let _0x314b86=_0x58ce44[_0x31a5d4];return _0x314b86;},a4_0x31a5(_0x25e1e8,_0x16a68a);}var __decorate=this&&this[a4_0x43011f(0x19f)]||function(_0xa4d7d4,_0x126645,_0x3ef950,_0x5b3349){const _0x5d4e99=a4_0x43011f;var _0x58e3a9=arguments[_0x5d4e99(0x1a1)],_0xc88102=_0x58e3a9<0x3?_0x126645:_0x5b3349===null?_0x5b3349=Object[_0x5d4e99(0x184)](_0x126645,_0x3ef950):_0x5b3349,_0x348541;if(typeof Reflect===_0x5d4e99(0x17f)&&typeof Reflect[_0x5d4e99(0x1a6)]===_0x5d4e99(0x183))_0xc88102=Reflect[_0x5d4e99(0x1a6)](_0xa4d7d4,_0x126645,_0x3ef950,_0x5b3349);else{for(var _0x50bec0=_0xa4d7d4['length']-0x1;_0x50bec0>=0x0;_0x50bec0--)if(_0x348541=_0xa4d7d4[_0x50bec0])_0xc88102=(_0x58e3a9<0x3?_0x348541(_0xc88102):_0x58e3a9>0x3?_0x348541(_0x126645,_0x3ef950,_0xc88102):_0x348541(_0x126645,_0x3ef950))||_0xc88102;}return _0x58e3a9>0x3&&_0xc88102&&Object[_0x5d4e99(0x19a)](_0x126645,_0x3ef950,_0xc88102),_0xc88102;},__metadata=this&&this['__metadata']||function(_0x42d277,_0x4925b7){const _0x594eb1=a4_0x43011f;if(typeof Reflect===_0x594eb1(0x17f)&&typeof Reflect[_0x594eb1(0x192)]===_0x594eb1(0x183))return Reflect[_0x594eb1(0x192)](_0x42d277,_0x4925b7);};Object[a4_0x43011f(0x19a)](exports,a4_0x43011f(0x194),{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require(a4_0x43011f(0x17a)),core_1=require(a4_0x43011f(0x188)),interface_1=require(a4_0x43011f(0x17d));let EventService=class EventService{constructor(){this['init']=![];}async[a4_0x43011f(0x182)](_0x1dd6cd){const _0x5d80a7=a4_0x43011f;if(!this['init']){this[_0x5d80a7(0x1a7)]=!![],this[_0x5d80a7(0x195)]={};for(const _0x5bd923 of(0x0,core_1[_0x5d80a7(0x19b)])(interface_1[_0x5d80a7(0x1a3)])||[]){const _0x36b10b=await this[_0x5d80a7(0x186)][_0x5d80a7(0x18a)]()[_0x5d80a7(0x185)](_0x5bd923);for(const _0xf56ab9 of(0x0,core_1['getClassMetadata'])(interface_1[_0x5d80a7(0x1a4)],_0x5bd923)||[]){typeof(_0x36b10b[_0xf56ab9[_0x5d80a7(0x187)]]==_0x5d80a7(0x183))&&(!this['listevent'][_0xf56ab9['name']]&&(this[_0x5d80a7(0x195)][_0xf56ab9[_0x5d80a7(0x1a8)]]=[]),this['listevent'][_0xf56ab9[_0x5d80a7(0x1a8)]]['push']({'priority':_0xf56ab9[_0x5d80a7(0x196)],'resolve':_0x36b10b[_0xf56ab9[_0x5d80a7(0x187)]]['bind'](_0x36b10b),'propertyKey':_0x5bd923[_0x5d80a7(0x1a8)]+'@'+_0xf56ab9[_0x5d80a7(0x187)]}));}}for(const _0x3919e8 in this[_0x5d80a7(0x195)]){this[_0x5d80a7(0x195)][_0x3919e8]=(0x0,collect_js_1[_0x5d80a7(0x181)])(this['listevent'][_0x3919e8])[_0x5d80a7(0x18b)](_0x5d80a7(0x196))['all']();}}return _0x1dd6cd?this['listevent'][_0x1dd6cd]||[]:this[_0x5d80a7(0x195)];}async['emit'](_0x389e12,..._0x557a61){const _0x4639b5=a4_0x43011f;var _0x5de4cb,_0x441e1d;await this[_0x4639b5(0x182)]();for(let _0x549828 in(_0x5de4cb=this[_0x4639b5(0x195)])===null||_0x5de4cb===void 0x0?void 0x0:_0x5de4cb[_0x389e12]){const _0x4331df=(_0x441e1d=this['listevent'][_0x389e12])===null||_0x441e1d===void 0x0?void 0x0:_0x441e1d[_0x549828];(_0x4331df===null||_0x4331df===void 0x0?void 0x0:_0x4331df[_0x4639b5(0x199)])&&typeof(_0x4331df===null||_0x4331df===void 0x0?void 0x0:_0x4331df[_0x4639b5(0x199)])==_0x4639b5(0x183)&&await _0x4331df[_0x4639b5(0x199)](..._0x557a61);}}async['once'](_0x3a67a0,..._0x535be4){const _0x23c60e=a4_0x43011f;return await this['getListevent'](),await this['emit'](_0x3a67a0,..._0x535be4),this[_0x23c60e(0x17b)](_0x3a67a0);}async[a4_0x43011f(0x17b)](_0x1177a0){const _0x168af0=a4_0x43011f;return await this[_0x168af0(0x182)](),this[_0x168af0(0x195)][_0x1177a0]&&delete this[_0x168af0(0x195)][_0x1177a0],!!this[_0x168af0(0x195)][_0x1177a0];}};__decorate([(0x0,core_1[a4_0x43011f(0x18c)])(),__metadata(a4_0x43011f(0x1a5),Object)],EventService[a4_0x43011f(0x19c)],'app',void 0x0),EventService=__decorate([(0x0,core_1[a4_0x43011f(0x1a2)])(a4_0x43011f(0x17c)),(0x0,core_1[a4_0x43011f(0x17e)])(core_1[a4_0x43011f(0x190)][a4_0x43011f(0x18d)])],EventService),exports[a4_0x43011f(0x19d)]=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.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": "7bdd9be96d43d085128a64bb2121ebf37696468b"
|
|
25
25
|
}
|