@anncic-api/event 1.4.8 → 1.4.9
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_0x11cd90=a0_0xe26a;(function(_0x5a249b,_0x142518){var _0x7b085a=a0_0xe26a,_0x29d9ad=_0x5a249b();while(!![]){try{var _0x167068=-parseInt(_0x7b085a(0x11d))/0x1+parseInt(_0x7b085a(0x111))/0x2*(-parseInt(_0x7b085a(0x110))/0x3)+parseInt(_0x7b085a(0x107))/0x4*(-parseInt(_0x7b085a(0x119))/0x5)+parseInt(_0x7b085a(0x117))/0x6*(parseInt(_0x7b085a(0x114))/0x7)+parseInt(_0x7b085a(0x10c))/0x8+parseInt(_0x7b085a(0x113))/0x9*(parseInt(_0x7b085a(0x11a))/0xa)+-parseInt(_0x7b085a(0x115))/0xb;if(_0x167068===_0x142518)break;else _0x29d9ad['push'](_0x29d9ad['shift']());}catch(_0x155a24){_0x29d9ad['push'](_0x29d9ad['shift']());}}}(a0_0x55b6,0x1db75));function a0_0xe26a(_0x41f03d,_0x21b58d){var _0x55b6bc=a0_0x55b6();return a0_0xe26a=function(_0xe26a34,_0xb37b6f){_0xe26a34=_0xe26a34-0x105;var _0x5bb524=_0x55b6bc[_0xe26a34];return _0x5bb524;},a0_0xe26a(_0x41f03d,_0x21b58d);}var __decorate=this&&this['__decorate']||function(_0x55a071,_0x12d82d,_0xc18571,_0x1cc336){var _0x18f48d=a0_0xe26a,_0xd9e10=arguments[_0x18f48d(0x121)],_0x5859da=_0xd9e10<0x3?_0x12d82d:_0x1cc336===null?_0x1cc336=Object[_0x18f48d(0x10e)](_0x12d82d,_0xc18571):_0x1cc336,_0x503161;if(typeof Reflect==='object'&&typeof Reflect[_0x18f48d(0x11b)]==='function')_0x5859da=Reflect[_0x18f48d(0x11b)](_0x55a071,_0x12d82d,_0xc18571,_0x1cc336);else{for(var _0x5e4e6e=_0x55a071[_0x18f48d(0x121)]-0x1;_0x5e4e6e>=0x0;_0x5e4e6e--)if(_0x503161=_0x55a071[_0x5e4e6e])_0x5859da=(_0xd9e10<0x3?_0x503161(_0x5859da):_0xd9e10>0x3?_0x503161(_0x12d82d,_0xc18571,_0x5859da):_0x503161(_0x12d82d,_0xc18571))||_0x5859da;}return _0xd9e10>0x3&&_0x5859da&&Object[_0x18f48d(0x11c)](_0x12d82d,_0xc18571,_0x5859da),_0x5859da;},__metadata=this&&this[a0_0x11cd90(0x10a)]||function(_0x564d09,_0x1d5b8e){var _0x4dc63f=a0_0x11cd90;if(typeof Reflect===_0x4dc63f(0x118)&&typeof Reflect[_0x4dc63f(0x11e)]==='function')return Reflect[_0x4dc63f(0x11e)](_0x564d09,_0x1d5b8e);};Object[a0_0x11cd90(0x11c)](exports,a0_0x11cd90(0x112),{'value':!![]}),exports[a0_0x11cd90(0x109)]=void 0x0;const core_1=require(a0_0x11cd90(0x106)),core_2=require(a0_0x11cd90(0x106));let CustomConfiguration=class CustomConfiguration{async[a0_0x11cd90(0x11f)](){}};__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x11cd90(0x120),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x11cd90(0x10b)],a0_0x11cd90(0x116),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x11cd90(0x120),core_2[a0_0x11cd90(0x108)])],CustomConfiguration[a0_0x11cd90(0x10b)],a0_0x11cd90(0x105),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x11cd90(0x10d)])({'conflictCheck':![],'namespace':a0_0x11cd90(0x10f)})],CustomConfiguration),exports[a0_0x11cd90(0x109)]=CustomConfiguration;function a0_0x55b6(){var _0x213ea7=['config','96zaRQTF','object','281435DpIjXb','807880dzMJEn','decorate','defineProperty','56006eFaZky','metadata','onReady','design:type','length','decorator','@midwayjs/core','4umQSci','MidwayDecoratorService','CustomConfiguration','__metadata','prototype','485864oPUUqq','Configuration','getOwnPropertyDescriptor','anncic-api:event','12WgBACW','2730AlATSN','__esModule','18NKbYgL','15568WhvAco','202653zaHOEZ'];a0_0x55b6=function(){return _0x213ea7;};return a0_0x55b6();}
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x1e71(){const _0x2df806=['Request','3867570CsreXK','301948djRgZZ','EVENT_ON_KEY','9008848IWELIG','@midwayjs/core','2027186FfkMfy','ScopeEnum','Provide','Scope','EVENT_KEY','2574279bPsyCP','2464842XvcIvS','attachClassMetadata','Event','1132583TgJagu','20zIXtco','30itrcJF','2zHEphZ'];a1_0x1e71=function(){return _0x2df806;};return a1_0x1e71();}const a1_0x24e053=a1_0x164f;(function(_0x2e3c89,_0x10614f){const _0x5d1ae8=a1_0x164f,_0x472719=_0x2e3c89();while(!![]){try{const _0x5a6deb=parseInt(_0x5d1ae8(0x65))/0x1*(parseInt(_0x5d1ae8(0x68))/0x2)+-parseInt(_0x5d1ae8(0x75))/0x3+parseInt(_0x5d1ae8(0x6b))/0x4*(parseInt(_0x5d1ae8(0x66))/0x5)+parseInt(_0x5d1ae8(0x6a))/0x6+-parseInt(_0x5d1ae8(0x6f))/0x7+-parseInt(_0x5d1ae8(0x6d))/0x8+parseInt(_0x5d1ae8(0x74))/0x9*(parseInt(_0x5d1ae8(0x67))/0xa);if(_0x5a6deb===_0x10614f)break;else _0x472719['push'](_0x472719['shift']());}catch(_0x390b20){_0x472719['push'](_0x472719['shift']());}}}(a1_0x1e71,0xaadfd));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Event']=void 0x0;function a1_0x164f(_0x2be3db,_0x257856){const _0x1e7150=a1_0x1e71();return a1_0x164f=function(_0x164f45,_0x24b9c1){_0x164f45=_0x164f45-0x64;let _0x580e15=_0x1e7150[_0x164f45];return _0x580e15;},a1_0x164f(_0x2be3db,_0x257856);}const core_1=require(a1_0x24e053(0x6e)),interface_1=require('../interface');function Event(){return _0x3c0303=>{const _0x1e8374=a1_0x164f;(0x0,core_1[_0x1e8374(0x71)])()(_0x3c0303),(0x0,core_1['saveModule'])(interface_1[_0x1e8374(0x73)],_0x3c0303),(0x0,core_1[_0x1e8374(0x72)])(core_1[_0x1e8374(0x70)][_0x1e8374(0x69)],{'allowDowngrade':!![]})(_0x3c0303);};}exports[a1_0x24e053(0x64)]=Event,Event['On']=function(_0x4cb804,_0x4d38b2=0x0){return(_0x222f9f,_0x193f25,_0x1ec78a)=>{const _0x1d4977=a1_0x164f;return(0x0,core_1[_0x1d4977(0x76)])(interface_1[_0x1d4977(0x6c)],{'name':_0x4cb804,'priority':_0x4d38b2,'propertyKey':_0x193f25,'descriptor':_0x1ec78a},_0x222f9f),_0x1ec78a;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a2_0x2575(_0x2fd10c,_0xf339e1){var _0x41c5bc=a2_0x41c5();return a2_0x2575=function(_0x257540,_0x416704){_0x257540=_0x257540-0xb1;var _0x4ac72e=_0x41c5bc[_0x257540];return _0x4ac72e;},a2_0x2575(_0x2fd10c,_0xf339e1);}var a2_0x20c358=a2_0x2575;(function(_0x486bc5,_0x1eda85){var _0x12487a=a2_0x2575,_0x4d5be8=_0x486bc5();while(!![]){try{var _0x4ec57a=-parseInt(_0x12487a(0xb2))/0x1+-parseInt(_0x12487a(0xbf))/0x2+parseInt(_0x12487a(0xbe))/0x3*(-parseInt(_0x12487a(0xb5))/0x4)+parseInt(_0x12487a(0xbb))/0x5*(-parseInt(_0x12487a(0xc2))/0x6)+-parseInt(_0x12487a(0xc1))/0x7+-parseInt(_0x12487a(0xb7))/0x8+parseInt(_0x12487a(0xbc))/0x9;if(_0x4ec57a===_0x1eda85)break;else _0x4d5be8['push'](_0x4d5be8['shift']());}catch(_0x4f5c81){_0x4d5be8['push'](_0x4d5be8['shift']());}}}(a2_0x41c5,0xc43ce));Object['defineProperty'](exports,a2_0x20c358(0xb4),{'value':!![]}),exports[a2_0x20c358(0xb9)]=exports[a2_0x20c358(0xb8)]=exports[a2_0x20c358(0xbd)]=void 0x0;var Event_1=require(a2_0x20c358(0xc0));Object[a2_0x20c358(0xba)](exports,'Event',{'enumerable':!![],'get':function(){var _0x4ff1d3=a2_0x20c358;return Event_1[_0x4ff1d3(0xbd)];}});var EventService_1=require(a2_0x20c358(0xb3));Object['defineProperty'](exports,a2_0x20c358(0xb8),{'enumerable':!![],'get':function(){return EventService_1['EventService'];}});var configuration_1=require(a2_0x20c358(0xb6));function a2_0x41c5(){var _0x28d6cd=['43986087GoqnSy','Event','177777Gzkbxt','424936TgCoSd','./decorator/Event','11145659TttUuj','174810yzcwSW','CustomConfiguration','469087DvKBjd','./service/EventService','__esModule','36hqcxQW','./configuration','9978360lnUQqZ','EventService','Configuration','defineProperty','5TvWyBx'];a2_0x41c5=function(){return _0x28d6cd;};return a2_0x41c5();}Object[a2_0x20c358(0xba)](exports,a2_0x20c358(0xb9),{'enumerable':!![],'get':function(){var _0x2f4d53=a2_0x20c358;return configuration_1[_0x2f4d53(0xb1)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x396f32=a3_0x2029;(function(_0x5f2b82,_0x5a5f52){var _0x585a84=a3_0x2029,_0x39a160=_0x5f2b82();while(!![]){try{var _0x5928f9=-parseInt(_0x585a84(0xb8))/0x1+parseInt(_0x585a84(0xc5))/0x2+-parseInt(_0x585a84(0xc4))/0x3*(parseInt(_0x585a84(0xb6))/0x4)+parseInt(_0x585a84(0xc3))/0x5+parseInt(_0x585a84(0xbc))/0x6*(parseInt(_0x585a84(0xbe))/0x7)+-parseInt(_0x585a84(0xc1))/0x8*(parseInt(_0x585a84(0xc0))/0x9)+-parseInt(_0x585a84(0xc2))/0xa*(-parseInt(_0x585a84(0xb5))/0xb);if(_0x5928f9===_0x5a5f52)break;else _0x39a160['push'](_0x39a160['shift']());}catch(_0x128a90){_0x39a160['push'](_0x39a160['shift']());}}}(a3_0x52f7,0x2b339));function a3_0x52f7(){var _0x230199=['EVENT_ON_KEY','24MeTAAB','anncic-api:event:on','73654BWmgXu','anncic-api:event','180612YHVMEV','48ZOmIPe','400uklUvT','65250tngCDe','693150WYxmIU','104024wTAWan','177529aNVFVj','4TTHaav','EVENT_KEY','224299nCsarW','defineProperty','__esModule'];a3_0x52f7=function(){return _0x230199;};return a3_0x52f7();}function a3_0x2029(_0x30eeb2,_0x50a158){var _0x52f757=a3_0x52f7();return a3_0x2029=function(_0x202910,_0x5be5c8){_0x202910=_0x202910-0xb5;var _0x59d084=_0x52f757[_0x202910];return _0x59d084;},a3_0x2029(_0x30eeb2,_0x50a158);}Object[a3_0x396f32(0xb9)](exports,a3_0x396f32(0xba),{'value':!![]}),exports[a3_0x396f32(0xbb)]=exports[a3_0x396f32(0xb7)]=void 0x0,exports[a3_0x396f32(0xb7)]=a3_0x396f32(0xbf),exports[a3_0x396f32(0xbb)]=a3_0x396f32(0xbd);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a4_0x4fef(_0x221c84,_0x137b17){const _0x4ff823=a4_0x4ff8();return a4_0x4fef=function(_0x4fefb9,_0x5694fb){_0x4fefb9=_0x4fefb9-0xe5;let _0x3732fa=_0x4ff823[_0x4fefb9];return _0x3732fa;},a4_0x4fef(_0x221c84,_0x137b17);}const a4_0xb0f374=a4_0x4fef;(function(_0x2854ba,_0x49b1f0){const _0x114de6=a4_0x4fef,_0x238976=_0x2854ba();while(!![]){try{const _0x3b8ec3=-parseInt(_0x114de6(0x101))/0x1*(parseInt(_0x114de6(0xff))/0x2)+-parseInt(_0x114de6(0x110))/0x3+parseInt(_0x114de6(0xf3))/0x4+parseInt(_0x114de6(0xf8))/0x5+parseInt(_0x114de6(0xe5))/0x6*(parseInt(_0x114de6(0x10a))/0x7)+parseInt(_0x114de6(0x109))/0x8+parseInt(_0x114de6(0xef))/0x9;if(_0x3b8ec3===_0x49b1f0)break;else _0x238976['push'](_0x238976['shift']());}catch(_0x2c00fe){_0x238976['push'](_0x238976['shift']());}}}(a4_0x4ff8,0x83165));function a4_0x4ff8(){const _0x404963=['bind','default','getApplicationContext','getListevent','EventService','object','listevent','3127365BOZAzG','decorate','Scope','design:type','2696440LvkecD','resolve','name','collect.js','ScopeEnum','1389895gOeyCp','Provide','metadata','defineProperty','EVENT_KEY','propertyKey','app','102122fEnNIj','@midwayjs/core','17yjWduW','App','../interface','function','push','once','off','Singleton','1975784sgnIvZ','3287473nHoNlj','length','getOwnPropertyDescriptor','getAsync','emit','getClassMetadata','1833648lJLTtz','init','priority','6XZKsUi','all','event'];a4_0x4ff8=function(){return _0x404963;};return a4_0x4ff8();}var __decorate=this&&this['__decorate']||function(_0x50abc0,_0x128f51,_0x34c3f1,_0x6f97a5){const _0x1d5601=a4_0x4fef;var _0x1171c5=arguments[_0x1d5601(0x10b)],_0x25328b=_0x1171c5<0x3?_0x128f51:_0x6f97a5===null?_0x6f97a5=Object[_0x1d5601(0x10c)](_0x128f51,_0x34c3f1):_0x6f97a5,_0x101999;if(typeof Reflect===_0x1d5601(0xed)&&typeof Reflect['decorate']===_0x1d5601(0x104))_0x25328b=Reflect[_0x1d5601(0xf0)](_0x50abc0,_0x128f51,_0x34c3f1,_0x6f97a5);else{for(var _0x580ee9=_0x50abc0[_0x1d5601(0x10b)]-0x1;_0x580ee9>=0x0;_0x580ee9--)if(_0x101999=_0x50abc0[_0x580ee9])_0x25328b=(_0x1171c5<0x3?_0x101999(_0x25328b):_0x1171c5>0x3?_0x101999(_0x128f51,_0x34c3f1,_0x25328b):_0x101999(_0x128f51,_0x34c3f1))||_0x25328b;}return _0x1171c5>0x3&&_0x25328b&&Object[_0x1d5601(0xfb)](_0x128f51,_0x34c3f1,_0x25328b),_0x25328b;},__metadata=this&&this['__metadata']||function(_0x5dee4f,_0x37bfa2){const _0x2fa5de=a4_0x4fef;if(typeof Reflect===_0x2fa5de(0xed)&&typeof Reflect[_0x2fa5de(0xfa)]==='function')return Reflect[_0x2fa5de(0xfa)](_0x5dee4f,_0x37bfa2);};Object[a4_0xb0f374(0xfb)](exports,'__esModule',{'value':!![]}),exports[a4_0xb0f374(0xec)]=void 0x0;const collect_js_1=require(a4_0xb0f374(0xf6)),core_1=require(a4_0xb0f374(0x100)),interface_1=require(a4_0xb0f374(0x103));let EventService=class EventService{constructor(){const _0x5754af=a4_0xb0f374;this[_0x5754af(0x111)]=![];}async[a4_0xb0f374(0xeb)](_0x564dc0){const _0x3c160f=a4_0xb0f374;if(!this[_0x3c160f(0x111)]){this[_0x3c160f(0x111)]=!![],this[_0x3c160f(0xee)]={};for(const _0x20e72a of(0x0,core_1['listModule'])(interface_1[_0x3c160f(0xfc)])||[]){const _0x426b75=await this['app'][_0x3c160f(0xea)]()[_0x3c160f(0x10d)](_0x20e72a);for(const _0x33e50 of(0x0,core_1[_0x3c160f(0x10f)])(interface_1['EVENT_ON_KEY'],_0x20e72a)||[]){typeof(_0x426b75[_0x33e50['propertyKey']]=='function')&&(!this['listevent'][_0x33e50[_0x3c160f(0xf5)]]&&(this[_0x3c160f(0xee)][_0x33e50[_0x3c160f(0xf5)]]=[]),this[_0x3c160f(0xee)][_0x33e50[_0x3c160f(0xf5)]][_0x3c160f(0x105)]({'priority':_0x33e50[_0x3c160f(0x112)],'resolve':_0x426b75[_0x33e50[_0x3c160f(0xfd)]][_0x3c160f(0xe8)](_0x426b75),'propertyKey':_0x20e72a[_0x3c160f(0xf5)]+'@'+_0x33e50[_0x3c160f(0xfd)]}));}}for(const _0x1f8b03 in this[_0x3c160f(0xee)]){this[_0x3c160f(0xee)][_0x1f8b03]=(0x0,collect_js_1[_0x3c160f(0xe9)])(this['listevent'][_0x1f8b03])['sortByDesc']('priority')[_0x3c160f(0xe6)]();}}return _0x564dc0?this[_0x3c160f(0xee)][_0x564dc0]||[]:this[_0x3c160f(0xee)];}async['emit'](_0x58d4c4,..._0x2ae35a){const _0x577959=a4_0xb0f374;var _0x43bfd3,_0xa88f63;await this[_0x577959(0xeb)]();for(let _0x1f607e in(_0x43bfd3=this[_0x577959(0xee)])===null||_0x43bfd3===void 0x0?void 0x0:_0x43bfd3[_0x58d4c4]){const _0x22c7d5=(_0xa88f63=this['listevent'][_0x58d4c4])===null||_0xa88f63===void 0x0?void 0x0:_0xa88f63[_0x1f607e];(_0x22c7d5===null||_0x22c7d5===void 0x0?void 0x0:_0x22c7d5[_0x577959(0xf4)])&&typeof(_0x22c7d5===null||_0x22c7d5===void 0x0?void 0x0:_0x22c7d5[_0x577959(0xf4)])==_0x577959(0x104)&&await _0x22c7d5['resolve'](..._0x2ae35a);}}async[a4_0xb0f374(0x106)](_0x526db6,..._0x453bda){const _0xda43e0=a4_0xb0f374;return await this[_0xda43e0(0xeb)](),await this[_0xda43e0(0x10e)](_0x526db6,..._0x453bda),this[_0xda43e0(0x107)](_0x526db6);}async['off'](_0x49e009){const _0x592b9b=a4_0xb0f374;return await this[_0x592b9b(0xeb)](),this[_0x592b9b(0xee)][_0x49e009]&&delete this[_0x592b9b(0xee)][_0x49e009],!!this['listevent'][_0x49e009];}};__decorate([(0x0,core_1[a4_0xb0f374(0x102)])(),__metadata(a4_0xb0f374(0xf2),Object)],EventService['prototype'],a4_0xb0f374(0xfe),void 0x0),EventService=__decorate([(0x0,core_1[a4_0xb0f374(0xf9)])(a4_0xb0f374(0xe7)),(0x0,core_1[a4_0xb0f374(0xf1)])(core_1[a4_0xb0f374(0xf7)][a4_0xb0f374(0x108)])],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.9",
|
|
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": "cfbc3c88b49da2001b14d140472f2f65634febc1"
|
|
25
25
|
}
|