@anncic-api/event 1.2.0 → 1.2.1
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_0x358f(_0x49f2c5,_0x719e3f){var _0x5aa92f=a0_0x5aa9();return a0_0x358f=function(_0x358f4b,_0xd313e3){_0x358f4b=_0x358f4b-0x144;var _0x4c4f2e=_0x5aa92f[_0x358f4b];return _0x4c4f2e;},a0_0x358f(_0x49f2c5,_0x719e3f);}var a0_0x4f13ed=a0_0x358f;function a0_0x5aa9(){var _0x513c65=['config','anncic-api:event','CustomConfiguration','prototype','defineProperty','196299QusUPe','metadata','MidwayDecoratorService','2468358atyGrr','length','@midwayjs/core','6110idXoDK','Inject','MidwayConfigService','__metadata','488842kkdjfg','12753sFfZxP','decorate','__esModule','object','design:type','374516ItGtFv','__decorate','24ZBlisN','376490lfWKnB','6426976OqRxlt','Configuration','function','decorator','7urIBoy'];a0_0x5aa9=function(){return _0x513c65;};return a0_0x5aa9();}(function(_0x49a3ec,_0x408893){var _0x363360=a0_0x358f,_0x36fce7=_0x49a3ec();while(!![]){try{var _0x28bb22=parseInt(_0x363360(0x147))/0x1+parseInt(_0x363360(0x15f))/0x2+-parseInt(_0x363360(0x155))/0x3+parseInt(_0x363360(0x149))/0x4*(-parseInt(_0x363360(0x14a))/0x5)+parseInt(_0x363360(0x158))/0x6+-parseInt(_0x363360(0x14f))/0x7*(-parseInt(_0x363360(0x14b))/0x8)+parseInt(_0x363360(0x160))/0x9*(-parseInt(_0x363360(0x15b))/0xa);if(_0x28bb22===_0x408893)break;else _0x36fce7['push'](_0x36fce7['shift']());}catch(_0x49588d){_0x36fce7['push'](_0x36fce7['shift']());}}}(a0_0x5aa9,0x6e086));var __decorate=this&&this[a0_0x4f13ed(0x148)]||function(_0x2d034c,_0x503e22,_0x2b5f58,_0x3c10ef){var _0x35601d=a0_0x4f13ed,_0x5e2093=arguments[_0x35601d(0x159)],_0x797f2c=_0x5e2093<0x3?_0x503e22:_0x3c10ef===null?_0x3c10ef=Object['getOwnPropertyDescriptor'](_0x503e22,_0x2b5f58):_0x3c10ef,_0x295f3e;if(typeof Reflect==='object'&&typeof Reflect[_0x35601d(0x161)]==='function')_0x797f2c=Reflect[_0x35601d(0x161)](_0x2d034c,_0x503e22,_0x2b5f58,_0x3c10ef);else{for(var _0x498b26=_0x2d034c[_0x35601d(0x159)]-0x1;_0x498b26>=0x0;_0x498b26--)if(_0x295f3e=_0x2d034c[_0x498b26])_0x797f2c=(_0x5e2093<0x3?_0x295f3e(_0x797f2c):_0x5e2093>0x3?_0x295f3e(_0x503e22,_0x2b5f58,_0x797f2c):_0x295f3e(_0x503e22,_0x2b5f58))||_0x797f2c;}return _0x5e2093>0x3&&_0x797f2c&&Object[_0x35601d(0x154)](_0x503e22,_0x2b5f58,_0x797f2c),_0x797f2c;},__metadata=this&&this[a0_0x4f13ed(0x15e)]||function(_0x3499c8,_0x521905){var _0x42eba9=a0_0x4f13ed;if(typeof Reflect===_0x42eba9(0x145)&&typeof Reflect[_0x42eba9(0x156)]===_0x42eba9(0x14d))return Reflect[_0x42eba9(0x156)](_0x3499c8,_0x521905);};Object['defineProperty'](exports,a0_0x4f13ed(0x144),{'value':!![]}),exports[a0_0x4f13ed(0x152)]=void 0x0;const core_1=require(a0_0x4f13ed(0x15a)),core_2=require('@midwayjs/core');let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,core_1[a0_0x4f13ed(0x15c)])(),__metadata(a0_0x4f13ed(0x146),core_2[a0_0x4f13ed(0x15d)])],CustomConfiguration[a0_0x4f13ed(0x153)],a0_0x4f13ed(0x150),void 0x0),__decorate([(0x0,core_1[a0_0x4f13ed(0x15c)])(),__metadata('design:type',core_2[a0_0x4f13ed(0x157)])],CustomConfiguration['prototype'],a0_0x4f13ed(0x14e),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x4f13ed(0x14c)])({'conflictCheck':![],'namespace':a0_0x4f13ed(0x151)})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x751f(){const _0x5f465a=['EVENT_KEY','813870PBIdeB','ScopeEnum','5292744vCoydT','13540WUZfwl','EVENT_ON_KEY','3WBIXud','Request','Provide','defineProperty','../interface','452516CyPPBO','1030194FcegPG','7902aojqCo','775IDqvSN','saveModule','@midwayjs/core','4425435IBkTaY','14180eHdwNU','Event','__esModule','attachClassMetadata'];a1_0x751f=function(){return _0x5f465a;};return a1_0x751f();}function a1_0x2496(_0x191fbe,_0x4981c4){const _0x751f33=a1_0x751f();return a1_0x2496=function(_0x249662,_0x461a45){_0x249662=_0x249662-0xb3;let _0x353a56=_0x751f33[_0x249662];return _0x353a56;},a1_0x2496(_0x191fbe,_0x4981c4);}const a1_0x454800=a1_0x2496;(function(_0x19d597,_0x558aea){const _0x3997a8=a1_0x2496,_0x102897=_0x19d597();while(!![]){try{const _0x259f29=parseInt(_0x3997a8(0xc2))/0x1+-parseInt(_0x3997a8(0xb8))/0x2*(-parseInt(_0x3997a8(0xbd))/0x3)+parseInt(_0x3997a8(0xb3))/0x4*(-parseInt(_0x3997a8(0xc5))/0x5)+parseInt(_0x3997a8(0xc3))/0x6+-parseInt(_0x3997a8(0xc8))/0x7+-parseInt(_0x3997a8(0xba))/0x8+parseInt(_0x3997a8(0xc4))/0x9*(parseInt(_0x3997a8(0xbb))/0xa);if(_0x259f29===_0x558aea)break;else _0x102897['push'](_0x102897['shift']());}catch(_0x5c925f){_0x102897['push'](_0x102897['shift']());}}}(a1_0x751f,0x5bf71));Object[a1_0x454800(0xc0)](exports,a1_0x454800(0xb5),{'value':!![]}),exports['Event']=void 0x0;const core_1=require(a1_0x454800(0xc7)),interface_1=require(a1_0x454800(0xc1));function Event(){return _0x14ce9f=>{const _0x53c274=a1_0x2496;(0x0,core_1[_0x53c274(0xbf)])()(_0x14ce9f),(0x0,core_1[_0x53c274(0xc6)])(interface_1[_0x53c274(0xb7)],_0x14ce9f),(0x0,core_1['Scope'])(core_1[_0x53c274(0xb9)][_0x53c274(0xbe)],{'allowDowngrade':!![]})(_0x14ce9f);};}exports[a1_0x454800(0xb4)]=Event,Event['On']=function(_0x4c6600,_0x5e3ee4=0x0){return(_0x30153c,_0x59159e,_0x181208)=>{const _0x183219=a1_0x2496;return(0x0,core_1[_0x183219(0xb6)])(interface_1[_0x183219(0xbc)],{'name':_0x4c6600,'priority':_0x5e3ee4,'propertyKey':_0x59159e,'descriptor':_0x181208},_0x30153c),_0x181208;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a2_0x26fe54=a2_0x27dd;(function(_0x55c443,_0x2086a7){var _0x425bbc=a2_0x27dd,_0x2dbb83=_0x55c443();while(!![]){try{var _0x3b2b11=-parseInt(_0x425bbc(0x78))/0x1+parseInt(_0x425bbc(0x74))/0x2*(-parseInt(_0x425bbc(0x7a))/0x3)+-parseInt(_0x425bbc(0x77))/0x4+-parseInt(_0x425bbc(0x7e))/0x5+parseInt(_0x425bbc(0x72))/0x6*(parseInt(_0x425bbc(0x70))/0x7)+-parseInt(_0x425bbc(0x73))/0x8+parseInt(_0x425bbc(0x75))/0x9;if(_0x3b2b11===_0x2086a7)break;else _0x2dbb83['push'](_0x2dbb83['shift']());}catch(_0x215da3){_0x2dbb83['push'](_0x2dbb83['shift']());}}}(a2_0x3762,0xb72d8));function a2_0x3762(){var _0x1c803a=['116799PgzneM','CustomConfiguration','./configuration','./service/EventService','5191430jieLGy','defineProperty','20251RKFYip','Event','2946yRfZUn','2573392caVLSr','58HXPiMx','33030747qPsYMB','Configuration','3321864VAeAwZ','1020767SDOBhw','EventService'];a2_0x3762=function(){return _0x1c803a;};return a2_0x3762();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x26fe54(0x76)]=exports[a2_0x26fe54(0x79)]=exports[a2_0x26fe54(0x71)]=void 0x0;var Event_1=require('./decorator/Event');function a2_0x27dd(_0x12d83a,_0x585c3b){var _0x376288=a2_0x3762();return a2_0x27dd=function(_0x27dd9d,_0x54452f){_0x27dd9d=_0x27dd9d-0x6f;var _0x502def=_0x376288[_0x27dd9d];return _0x502def;},a2_0x27dd(_0x12d83a,_0x585c3b);}Object['defineProperty'](exports,'Event',{'enumerable':!![],'get':function(){var _0x457714=a2_0x26fe54;return Event_1[_0x457714(0x71)];}});var EventService_1=require(a2_0x26fe54(0x7d));Object[a2_0x26fe54(0x6f)](exports,a2_0x26fe54(0x79),{'enumerable':!![],'get':function(){var _0x5f1615=a2_0x26fe54;return EventService_1[_0x5f1615(0x79)];}});var configuration_1=require(a2_0x26fe54(0x7c));Object[a2_0x26fe54(0x6f)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x49a876=a2_0x26fe54;return configuration_1[_0x49a876(0x7b)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0xd2182=a3_0x4631;(function(_0x327671,_0x1f1938){var _0x5233ac=a3_0x4631,_0x5efb69=_0x327671();while(!![]){try{var _0x4d5f6e=parseInt(_0x5233ac(0x19e))/0x1*(parseInt(_0x5233ac(0x196))/0x2)+-parseInt(_0x5233ac(0x19a))/0x3*(parseInt(_0x5233ac(0x197))/0x4)+parseInt(_0x5233ac(0x19b))/0x5*(parseInt(_0x5233ac(0x19d))/0x6)+parseInt(_0x5233ac(0x192))/0x7+-parseInt(_0x5233ac(0x195))/0x8*(-parseInt(_0x5233ac(0x193))/0x9)+parseInt(_0x5233ac(0x198))/0xa+-parseInt(_0x5233ac(0x191))/0xb;if(_0x4d5f6e===_0x1f1938)break;else _0x5efb69['push'](_0x5efb69['shift']());}catch(_0x205af5){_0x5efb69['push'](_0x5efb69['shift']());}}}(a3_0x5e55,0xca117));function a3_0x4631(_0x571db2,_0x212711){var _0x5e5557=a3_0x5e55();return a3_0x4631=function(_0x4631d9,_0x4fd37e){_0x4631d9=_0x4631d9-0x190;var _0xec9c7c=_0x5e5557[_0x4631d9];return _0xec9c7c;},a3_0x4631(_0x571db2,_0x212711);}function a3_0x5e55(){var _0x18375f=['42GTFqmU','485707zyEVti','__esModule','42901738jrZFzd','6393219YlgUmX','135BXHXYl','EVENT_KEY','507216Fhjvzx','2DzaXXV','101992LHfkbz','13917110wVzDlz','defineProperty','30lHMjie','886460CFWGaM','anncic-api:event'];a3_0x5e55=function(){return _0x18375f;};return a3_0x5e55();}Object[a3_0xd2182(0x199)](exports,a3_0xd2182(0x190),{'value':!![]}),exports['EVENT_ON_KEY']=exports[a3_0xd2182(0x194)]=void 0x0,exports[a3_0xd2182(0x194)]=a3_0xd2182(0x19c),exports['EVENT_ON_KEY']='anncic-api:event:on';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x4605ba=a4_0x59dd;(function(_0x494308,_0x240ad0){const _0x25286e=a4_0x59dd,_0x5d1eb2=_0x494308();while(!![]){try{const _0x4c3286=-parseInt(_0x25286e(0x178))/0x1*(-parseInt(_0x25286e(0x174))/0x2)+parseInt(_0x25286e(0x185))/0x3+-parseInt(_0x25286e(0x167))/0x4*(parseInt(_0x25286e(0x160))/0x5)+parseInt(_0x25286e(0x168))/0x6*(-parseInt(_0x25286e(0x17a))/0x7)+parseInt(_0x25286e(0x175))/0x8+parseInt(_0x25286e(0x183))/0x9+-parseInt(_0x25286e(0x163))/0xa;if(_0x4c3286===_0x240ad0)break;else _0x5d1eb2['push'](_0x5d1eb2['shift']());}catch(_0x569ccb){_0x5d1eb2['push'](_0x5d1eb2['shift']());}}}(a4_0x6b30,0x44916));var __decorate=this&&this[a4_0x4605ba(0x162)]||function(_0x2a0d8a,_0x2fe503,_0x30b7f6,_0x4b0c09){const _0x343e78=a4_0x4605ba;var _0x3c43d3=arguments['length'],_0x2d297f=_0x3c43d3<0x3?_0x2fe503:_0x4b0c09===null?_0x4b0c09=Object['getOwnPropertyDescriptor'](_0x2fe503,_0x30b7f6):_0x4b0c09,_0x5d75c7;if(typeof Reflect===_0x343e78(0x16e)&&typeof Reflect[_0x343e78(0x179)]==='function')_0x2d297f=Reflect[_0x343e78(0x179)](_0x2a0d8a,_0x2fe503,_0x30b7f6,_0x4b0c09);else{for(var _0x1015b3=_0x2a0d8a[_0x343e78(0x161)]-0x1;_0x1015b3>=0x0;_0x1015b3--)if(_0x5d75c7=_0x2a0d8a[_0x1015b3])_0x2d297f=(_0x3c43d3<0x3?_0x5d75c7(_0x2d297f):_0x3c43d3>0x3?_0x5d75c7(_0x2fe503,_0x30b7f6,_0x2d297f):_0x5d75c7(_0x2fe503,_0x30b7f6))||_0x2d297f;}return _0x3c43d3>0x3&&_0x2d297f&&Object[_0x343e78(0x177)](_0x2fe503,_0x30b7f6,_0x2d297f),_0x2d297f;},__metadata=this&&this[a4_0x4605ba(0x17d)]||function(_0x349da1,_0x4e7bed){const _0x4e4f7a=a4_0x4605ba;if(typeof Reflect===_0x4e4f7a(0x16e)&&typeof Reflect[_0x4e4f7a(0x173)]===_0x4e4f7a(0x164))return Reflect[_0x4e4f7a(0x173)](_0x349da1,_0x4e7bed);};Object[a4_0x4605ba(0x177)](exports,a4_0x4605ba(0x184),{'value':!![]}),exports[a4_0x4605ba(0x188)]=void 0x0;function a4_0x59dd(_0x44bf79,_0x1bb0a6){const _0x6b300d=a4_0x6b30();return a4_0x59dd=function(_0x59ddc8,_0x27c6ac){_0x59ddc8=_0x59ddc8-0x15d;let _0x5cc205=_0x6b300d[_0x59ddc8];return _0x5cc205;},a4_0x59dd(_0x44bf79,_0x1bb0a6);}const collect_js_1=require(a4_0x4605ba(0x16d)),core_1=require(a4_0x4605ba(0x172)),interface_1=require(a4_0x4605ba(0x17f));let EventService=class EventService{constructor(){this['init']=![];}async[a4_0x4605ba(0x17c)](_0x40c1a3){const _0xac91fe=a4_0x4605ba;if(!this['init']){this[_0xac91fe(0x16f)]=!![],this[_0xac91fe(0x165)]={};for(const _0x452785 of(0x0,core_1[_0xac91fe(0x18a)])(interface_1[_0xac91fe(0x189)])||[]){const _0x13653=await this[_0xac91fe(0x15e)][_0xac91fe(0x16c)]()[_0xac91fe(0x171)](_0x452785);for(const _0x264dbd of(0x0,core_1['getClassMetadata'])(interface_1['EVENT_ON_KEY'],_0x452785)||[]){typeof(_0x13653[_0x264dbd[_0xac91fe(0x17e)]]==_0xac91fe(0x164))&&(!this['listevent'][_0x264dbd[_0xac91fe(0x166)]]&&(this[_0xac91fe(0x165)][_0x264dbd[_0xac91fe(0x166)]]=[]),this[_0xac91fe(0x165)][_0x264dbd[_0xac91fe(0x166)]]['push']({'priority':_0x264dbd['priority'],'resolve':_0x13653[_0x264dbd['propertyKey']][_0xac91fe(0x181)](_0x13653),'propertyKey':_0x452785[_0xac91fe(0x166)]+'@'+_0x264dbd['propertyKey']}));}}for(const _0x3c0505 in this[_0xac91fe(0x165)]){this[_0xac91fe(0x165)][_0x3c0505]=(0x0,collect_js_1[_0xac91fe(0x17b)])(this[_0xac91fe(0x165)][_0x3c0505])[_0xac91fe(0x187)](_0xac91fe(0x182))[_0xac91fe(0x16a)]();}}return _0x40c1a3?this[_0xac91fe(0x165)][_0x40c1a3]||[]:this['listevent'];}async[a4_0x4605ba(0x170)](_0x4f844c,..._0x405d52){const _0xaa8681=a4_0x4605ba;var _0x3a1b5d,_0x4b3157;await this[_0xaa8681(0x17c)]();for(let _0x39de28 in(_0x3a1b5d=this['listevent'])===null||_0x3a1b5d===void 0x0?void 0x0:_0x3a1b5d[_0x4f844c]){const _0x113113=(_0x4b3157=this[_0xaa8681(0x165)][_0x4f844c])===null||_0x4b3157===void 0x0?void 0x0:_0x4b3157[_0x39de28];(_0x113113===null||_0x113113===void 0x0?void 0x0:_0x113113[_0xaa8681(0x176)])&&typeof(_0x113113===null||_0x113113===void 0x0?void 0x0:_0x113113['resolve'])=='function'&&await _0x113113['resolve'](..._0x405d52);}}async[a4_0x4605ba(0x15f)](_0x84100d,..._0x10fdc0){const _0x130834=a4_0x4605ba;return await this[_0x130834(0x17c)](),await this[_0x130834(0x170)](_0x84100d,..._0x10fdc0),this[_0x130834(0x16b)](_0x84100d);}async['off'](_0x16c2a3){const _0x30f1bc=a4_0x4605ba;return await this[_0x30f1bc(0x17c)](),this['listevent'][_0x16c2a3]&&delete this[_0x30f1bc(0x165)][_0x16c2a3],!!this[_0x30f1bc(0x165)][_0x16c2a3];}};__decorate([(0x0,core_1[a4_0x4605ba(0x169)])(),__metadata(a4_0x4605ba(0x186),Object)],EventService['prototype'],'app',void 0x0),EventService=__decorate([(0x0,core_1[a4_0x4605ba(0x180)])('event'),(0x0,core_1['Scope'])(core_1[a4_0x4605ba(0x18b)][a4_0x4605ba(0x15d)])],EventService),exports[a4_0x4605ba(0x188)]=EventService;function a4_0x6b30(){const _0x23dd43=['getAsync','@midwayjs/core','metadata','152902rPvkAB','4077104dJohHk','resolve','defineProperty','7XWtQYf','decorate','7rRGxKW','default','getListevent','__metadata','propertyKey','../interface','Provide','bind','priority','4085379BysnAY','__esModule','80493LiXDhh','design:type','sortByDesc','EventService','EVENT_KEY','listModule','ScopeEnum','Singleton','app','once','2638235jOurms','length','__decorate','5191650xUNtBk','function','listevent','name','4ZMOOqm','1187346sRFJNS','App','all','off','getApplicationContext','collect.js','object','init','emit'];a4_0x6b30=function(){return _0x23dd43;};return a4_0x6b30();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
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": "d43eedc661a63dbdfe722e7144b151aff0e4ffe2"
|
|
25
25
|
}
|