@anncic-api/event 1.1.24 → 1.1.25
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_0xfe34e7=a0_0x20fe;(function(_0x1e7b69,_0x4344af){var _0x21910d=a0_0x20fe,_0xd6435b=_0x1e7b69();while(!![]){try{var _0x4582d1=-parseInt(_0x21910d(0x179))/0x1+parseInt(_0x21910d(0x18c))/0x2*(parseInt(_0x21910d(0x17e))/0x3)+-parseInt(_0x21910d(0x197))/0x4*(-parseInt(_0x21910d(0x17b))/0x5)+-parseInt(_0x21910d(0x187))/0x6*(parseInt(_0x21910d(0x182))/0x7)+parseInt(_0x21910d(0x18a))/0x8*(-parseInt(_0x21910d(0x189))/0x9)+parseInt(_0x21910d(0x190))/0xa+-parseInt(_0x21910d(0x188))/0xb;if(_0x4582d1===_0x4344af)break;else _0xd6435b['push'](_0xd6435b['shift']());}catch(_0x325649){_0xd6435b['push'](_0xd6435b['shift']());}}}(a0_0x2cf0,0x54a7d));var __decorate=this&&this[a0_0xfe34e7(0x184)]||function(_0x3898c4,_0x19a2c4,_0x464888,_0x5a41e0){var _0x202282=a0_0xfe34e7,_0x3a85bb=arguments[_0x202282(0x198)],_0xe213c1=_0x3a85bb<0x3?_0x19a2c4:_0x5a41e0===null?_0x5a41e0=Object[_0x202282(0x193)](_0x19a2c4,_0x464888):_0x5a41e0,_0x403eea;if(typeof Reflect===_0x202282(0x18f)&&typeof Reflect[_0x202282(0x18e)]==='function')_0xe213c1=Reflect['decorate'](_0x3898c4,_0x19a2c4,_0x464888,_0x5a41e0);else{for(var _0x11464c=_0x3898c4[_0x202282(0x198)]-0x1;_0x11464c>=0x0;_0x11464c--)if(_0x403eea=_0x3898c4[_0x11464c])_0xe213c1=(_0x3a85bb<0x3?_0x403eea(_0xe213c1):_0x3a85bb>0x3?_0x403eea(_0x19a2c4,_0x464888,_0xe213c1):_0x403eea(_0x19a2c4,_0x464888))||_0xe213c1;}return _0x3a85bb>0x3&&_0xe213c1&&Object[_0x202282(0x17c)](_0x19a2c4,_0x464888,_0xe213c1),_0xe213c1;},__metadata=this&&this['__metadata']||function(_0xa09f79,_0x22ab9f){var _0x3a4f8e=a0_0xfe34e7;if(typeof Reflect==='object'&&typeof Reflect[_0x3a4f8e(0x191)]===_0x3a4f8e(0x17f))return Reflect['metadata'](_0xa09f79,_0x22ab9f);};function a0_0x20fe(_0x3e9ee9,_0x50951e){var _0x2cf0c7=a0_0x2cf0();return a0_0x20fe=function(_0x20fee6,_0x479d1d){_0x20fee6=_0x20fee6-0x179;var _0x305706=_0x2cf0c7[_0x20fee6];return _0x305706;},a0_0x20fe(_0x3e9ee9,_0x50951e);}Object[a0_0xfe34e7(0x17c)](exports,a0_0xfe34e7(0x181),{'value':!![]}),exports[a0_0xfe34e7(0x195)]=void 0x0;function a0_0x2cf0(){var _0xe5c93f=['getOwnPropertyDescriptor','Configuration','CustomConfiguration','MidwayDecoratorService','5552JCKKcQ','length','147968ZuhUJJ','config','1150PClZsf','defineProperty','@midwayjs/core','296745UlWaQq','function','decorator','__esModule','45899LMzKxP','@midwayjs/decorator','__decorate','MidwayConfigService','Inject','6zTNtky','147147symxtj','4761JbcjNW','5336iEmvte','design:type','6OVRLka','prototype','decorate','object','2515090qZNdUL','metadata','anncic-api:event'];a0_0x2cf0=function(){return _0xe5c93f;};return a0_0x2cf0();}const decorator_1=require(a0_0xfe34e7(0x183)),core_1=require(a0_0xfe34e7(0x17d));let CustomConfiguration=class CustomConfiguration{async['onReady'](){}};__decorate([(0x0,decorator_1[a0_0xfe34e7(0x186)])(),__metadata(a0_0xfe34e7(0x18b),core_1[a0_0xfe34e7(0x185)])],CustomConfiguration[a0_0xfe34e7(0x18d)],a0_0xfe34e7(0x17a),void 0x0),__decorate([(0x0,decorator_1[a0_0xfe34e7(0x186)])(),__metadata(a0_0xfe34e7(0x18b),core_1[a0_0xfe34e7(0x196)])],CustomConfiguration[a0_0xfe34e7(0x18d)],a0_0xfe34e7(0x180),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0xfe34e7(0x194)])({'conflictCheck':![],'namespace':a0_0xfe34e7(0x192)})],CustomConfiguration),exports[a0_0xfe34e7(0x195)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a1_0x1385(){const _0x2df93f=['523444OkyaTy','4284180KHTgKb','Scope','saveModule','6416420RownUe','4292240adGxyE','1294616kYzABf','Request','7xSmImR','EVENT_ON_KEY','2510505oXaAJk','attachClassMetadata','ScopeEnum','Event','31692152wrWBFt','defineProperty','EVENT_KEY'];a1_0x1385=function(){return _0x2df93f;};return a1_0x1385();}const a1_0xaa3a0b=a1_0x1c88;function a1_0x1c88(_0x1fa490,_0x263138){const _0x138561=a1_0x1385();return a1_0x1c88=function(_0x1c8803,_0x466b16){_0x1c8803=_0x1c8803-0xb4;let _0x1c390a=_0x138561[_0x1c8803];return _0x1c390a;},a1_0x1c88(_0x1fa490,_0x263138);}(function(_0x1de59f,_0x1aa208){const _0x217c79=a1_0x1c88,_0x3686bd=_0x1de59f();while(!![]){try{const _0x711e10=parseInt(_0x217c79(0xc3))/0x1+-parseInt(_0x217c79(0xbd))/0x2+-parseInt(_0x217c79(0xb6))/0x3+-parseInt(_0x217c79(0xc1))/0x4+-parseInt(_0x217c79(0xc2))/0x5+-parseInt(_0x217c79(0xbe))/0x6+parseInt(_0x217c79(0xb4))/0x7*(parseInt(_0x217c79(0xba))/0x8);if(_0x711e10===_0x1aa208)break;else _0x3686bd['push'](_0x3686bd['shift']());}catch(_0x500e2d){_0x3686bd['push'](_0x3686bd['shift']());}}}(a1_0x1385,0xef803));Object[a1_0xaa3a0b(0xbb)](exports,'__esModule',{'value':!![]}),exports[a1_0xaa3a0b(0xb9)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),interface_1=require('../interface');function Event(){return _0x48b26b=>{const _0x215f79=a1_0x1c88;(0x0,decorator_1['Provide'])()(_0x48b26b),(0x0,decorator_1[_0x215f79(0xc0)])(interface_1[_0x215f79(0xbc)],_0x48b26b),(0x0,decorator_1[_0x215f79(0xbf)])(decorator_1[_0x215f79(0xb8)][_0x215f79(0xc4)],{'allowDowngrade':!![]})(_0x48b26b);};}exports[a1_0xaa3a0b(0xb9)]=Event,Event['On']=function(_0x2f34e5,_0x1cda34=0x0){return(_0x449259,_0x2c7411,_0x544d2a)=>{const _0x4b3636=a1_0x1c88;return(0x0,decorator_1[_0x4b3636(0xb7)])(interface_1[_0x4b3636(0xb5)],{'name':_0x2f34e5,'priority':_0x1cda34,'propertyKey':_0x2c7411,'descriptor':_0x544d2a},_0x449259),_0x544d2a;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a2_0x8b6ccb=a2_0x342d;(function(_0x1ca2c2,_0x2be8f2){var _0x137648=a2_0x342d,_0x4a3591=_0x1ca2c2();while(!![]){try{var _0x46e156=parseInt(_0x137648(0x72))/0x1*(parseInt(_0x137648(0x6c))/0x2)+-parseInt(_0x137648(0x65))/0x3*(-parseInt(_0x137648(0x67))/0x4)+parseInt(_0x137648(0x6b))/0x5*(-parseInt(_0x137648(0x6f))/0x6)+parseInt(_0x137648(0x74))/0x7+-parseInt(_0x137648(0x76))/0x8+parseInt(_0x137648(0x66))/0x9*(-parseInt(_0x137648(0x70))/0xa)+parseInt(_0x137648(0x64))/0xb*(parseInt(_0x137648(0x77))/0xc);if(_0x46e156===_0x2be8f2)break;else _0x4a3591['push'](_0x4a3591['shift']());}catch(_0x4092a3){_0x4a3591['push'](_0x4a3591['shift']());}}}(a2_0x462d,0xa740d));Object['defineProperty'](exports,a2_0x8b6ccb(0x75),{'value':!![]}),exports[a2_0x8b6ccb(0x6e)]=exports['EventService']=exports['Event']=void 0x0;function a2_0x462d(){var _0x14849e=['CustomConfiguration','8331967mjEFLs','__esModule','10145088mmIAYK','109236ZzQVPS','484RfGWen','2424HbYJZI','27TjAvKJ','6348oteLgp','defineProperty','Event','./configuration','3573545vZPFxV','257188qYdGUd','./service/EventService','Configuration','6rZxQqa','1112630uvXcpo','EventService','1TXFJCo'];a2_0x462d=function(){return _0x14849e;};return a2_0x462d();}var Event_1=require('./decorator/Event');Object['defineProperty'](exports,a2_0x8b6ccb(0x69),{'enumerable':!![],'get':function(){var _0x2596f6=a2_0x8b6ccb;return Event_1[_0x2596f6(0x69)];}});function a2_0x342d(_0x933115,_0x49cdd5){var _0x462de5=a2_0x462d();return a2_0x342d=function(_0x342d93,_0x5c66d2){_0x342d93=_0x342d93-0x64;var _0x5dbce9=_0x462de5[_0x342d93];return _0x5dbce9;},a2_0x342d(_0x933115,_0x49cdd5);}var EventService_1=require(a2_0x8b6ccb(0x6d));Object[a2_0x8b6ccb(0x68)](exports,a2_0x8b6ccb(0x71),{'enumerable':!![],'get':function(){return EventService_1['EventService'];}});var configuration_1=require(a2_0x8b6ccb(0x6a));Object[a2_0x8b6ccb(0x68)](exports,a2_0x8b6ccb(0x6e),{'enumerable':!![],'get':function(){var _0x535d0c=a2_0x8b6ccb;return configuration_1[_0x535d0c(0x73)];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a3_0x388d(_0x3d34c8,_0x23258f){var _0x6ca191=a3_0x6ca1();return a3_0x388d=function(_0x388deb,_0x534bbc){_0x388deb=_0x388deb-0x130;var _0x464349=_0x6ca191[_0x388deb];return _0x464349;},a3_0x388d(_0x3d34c8,_0x23258f);}var a3_0xe867e=a3_0x388d;(function(_0x443ed5,_0x1c21b9){var _0x4b173a=a3_0x388d,_0x293ceb=_0x443ed5();while(!![]){try{var _0xbafc46=-parseInt(_0x4b173a(0x133))/0x1*(parseInt(_0x4b173a(0x13f))/0x2)+-parseInt(_0x4b173a(0x135))/0x3*(parseInt(_0x4b173a(0x13b))/0x4)+-parseInt(_0x4b173a(0x139))/0x5+parseInt(_0x4b173a(0x13c))/0x6+-parseInt(_0x4b173a(0x13d))/0x7*(parseInt(_0x4b173a(0x138))/0x8)+-parseInt(_0x4b173a(0x132))/0x9*(parseInt(_0x4b173a(0x13a))/0xa)+parseInt(_0x4b173a(0x137))/0xb;if(_0xbafc46===_0x1c21b9)break;else _0x293ceb['push'](_0x293ceb['shift']());}catch(_0xf3bf80){_0x293ceb['push'](_0x293ceb['shift']());}}}(a3_0x6ca1,0xd873c));function a3_0x6ca1(){var _0x532079=['anncic-api:event:on','53404835qzHeKa','7444280fxAPwr','552590lUIKaz','14260150DfJkIk','2124xuFYbU','7098768tPViKL','7nmSCCj','anncic-api:event','288AjdfEn','defineProperty','EVENT_KEY','9xNPGFS','11256YjYZpA','EVENT_ON_KEY','6009rGoVGu'];a3_0x6ca1=function(){return _0x532079;};return a3_0x6ca1();}Object[a3_0xe867e(0x130)](exports,'__esModule',{'value':!![]}),exports[a3_0xe867e(0x134)]=exports['EVENT_KEY']=void 0x0,exports[a3_0xe867e(0x131)]=a3_0xe867e(0x13e),exports['EVENT_ON_KEY']=a3_0xe867e(0x136);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x2f70(){const _0x36d826=['off','collect.js','defineProperty','event','__decorate','name','7pmMXeX','514030zRdney','listevent','getApplicationContext','default','bind','5063800NcLnzy','sortByDesc','2avvHSV','../interface','401718HriXQO','propertyKey','3668967VXFZlE','Provide','__esModule','prototype','length','40bZsvmI','resolve','object','605467BfOWtC','ScopeEnum','4qPffQY','design:type','EVENT_KEY','594819ZPmGAJ','emit','57690KYlOSI','priority','listModule','app','Scope','metadata','__metadata','EVENT_ON_KEY','function','getAsync','once','getClassMetadata','getListevent','decorate','init'];a4_0x2f70=function(){return _0x36d826;};return a4_0x2f70();}const a4_0x4be6f6=a4_0x3862;function a4_0x3862(_0x56ca97,_0xb18758){const _0x2f701a=a4_0x2f70();return a4_0x3862=function(_0x38620c,_0x16c209){_0x38620c=_0x38620c-0x1b3;let _0x579aae=_0x2f701a[_0x38620c];return _0x579aae;},a4_0x3862(_0x56ca97,_0xb18758);}(function(_0x24a3e7,_0x1b7944){const _0xfaf394=a4_0x3862,_0x1e1101=_0x24a3e7();while(!![]){try{const _0x24a8aa=-parseInt(_0xfaf394(0x1d3))/0x1*(-parseInt(_0xfaf394(0x1c7))/0x2)+parseInt(_0xfaf394(0x1d8))/0x3+parseInt(_0xfaf394(0x1d5))/0x4*(parseInt(_0xfaf394(0x1da))/0x5)+-parseInt(_0xfaf394(0x1c9))/0x6+parseInt(_0xfaf394(0x1bf))/0x7*(-parseInt(_0xfaf394(0x1c5))/0x8)+parseInt(_0xfaf394(0x1cb))/0x9+parseInt(_0xfaf394(0x1d0))/0xa*(-parseInt(_0xfaf394(0x1c0))/0xb);if(_0x24a8aa===_0x1b7944)break;else _0x1e1101['push'](_0x1e1101['shift']());}catch(_0x10d4d7){_0x1e1101['push'](_0x1e1101['shift']());}}}(a4_0x2f70,0x520dd));var __decorate=this&&this[a4_0x4be6f6(0x1bd)]||function(_0x37c066,_0x989cb9,_0x5b7d14,_0x4c5183){const _0x11ab14=a4_0x4be6f6;var _0x129d8b=arguments['length'],_0x9b1fb0=_0x129d8b<0x3?_0x989cb9:_0x4c5183===null?_0x4c5183=Object['getOwnPropertyDescriptor'](_0x989cb9,_0x5b7d14):_0x4c5183,_0x12553d;if(typeof Reflect==='object'&&typeof Reflect[_0x11ab14(0x1b7)]===_0x11ab14(0x1e2))_0x9b1fb0=Reflect[_0x11ab14(0x1b7)](_0x37c066,_0x989cb9,_0x5b7d14,_0x4c5183);else{for(var _0x5dba62=_0x37c066[_0x11ab14(0x1cf)]-0x1;_0x5dba62>=0x0;_0x5dba62--)if(_0x12553d=_0x37c066[_0x5dba62])_0x9b1fb0=(_0x129d8b<0x3?_0x12553d(_0x9b1fb0):_0x129d8b>0x3?_0x12553d(_0x989cb9,_0x5b7d14,_0x9b1fb0):_0x12553d(_0x989cb9,_0x5b7d14))||_0x9b1fb0;}return _0x129d8b>0x3&&_0x9b1fb0&&Object['defineProperty'](_0x989cb9,_0x5b7d14,_0x9b1fb0),_0x9b1fb0;},__metadata=this&&this[a4_0x4be6f6(0x1e0)]||function(_0x1e740c,_0x1f3d06){const _0xac40d9=a4_0x4be6f6;if(typeof Reflect===_0xac40d9(0x1d2)&&typeof Reflect[_0xac40d9(0x1df)]===_0xac40d9(0x1e2))return Reflect['metadata'](_0x1e740c,_0x1f3d06);};Object[a4_0x4be6f6(0x1bb)](exports,a4_0x4be6f6(0x1cd),{'value':!![]}),exports['EventService']=void 0x0;const collect_js_1=require(a4_0x4be6f6(0x1ba)),decorator_1=require('@midwayjs/decorator'),interface_1=require(a4_0x4be6f6(0x1c8));let EventService=class EventService{constructor(){const _0x30ab1b=a4_0x4be6f6;this[_0x30ab1b(0x1b8)]=![];}async[a4_0x4be6f6(0x1b6)](_0x190b55){const _0x168d48=a4_0x4be6f6;if(!this[_0x168d48(0x1b8)]){this[_0x168d48(0x1b8)]=!![],this['listevent']={};for(const _0x34fd80 of(0x0,decorator_1[_0x168d48(0x1dc)])(interface_1[_0x168d48(0x1d7)])||[]){const _0x41422f=await this[_0x168d48(0x1dd)][_0x168d48(0x1c2)]()[_0x168d48(0x1b3)](_0x34fd80);for(const _0x2d8268 of(0x0,decorator_1[_0x168d48(0x1b5)])(interface_1[_0x168d48(0x1e1)],_0x34fd80)||[]){typeof(_0x41422f[_0x2d8268[_0x168d48(0x1ca)]]=='function')&&(!this[_0x168d48(0x1c1)][_0x2d8268[_0x168d48(0x1be)]]&&(this[_0x168d48(0x1c1)][_0x2d8268[_0x168d48(0x1be)]]=[]),this['listevent'][_0x2d8268['name']]['push']({'priority':_0x2d8268[_0x168d48(0x1db)],'resolve':_0x41422f[_0x2d8268[_0x168d48(0x1ca)]][_0x168d48(0x1c4)](_0x41422f),'propertyKey':_0x34fd80[_0x168d48(0x1be)]+'@'+_0x2d8268[_0x168d48(0x1ca)]}));}}for(const _0x456141 in this[_0x168d48(0x1c1)]){this[_0x168d48(0x1c1)][_0x456141]=(0x0,collect_js_1[_0x168d48(0x1c3)])(this[_0x168d48(0x1c1)][_0x456141])[_0x168d48(0x1c6)](_0x168d48(0x1db))['all']();}}return _0x190b55?this[_0x168d48(0x1c1)][_0x190b55]||[]:this[_0x168d48(0x1c1)];}async[a4_0x4be6f6(0x1d9)](_0x44fd59,..._0x5152c3){const _0x3ab706=a4_0x4be6f6;var _0x2e24ce,_0x4444cb;await this[_0x3ab706(0x1b6)]();for(let _0x37a532 in(_0x2e24ce=this[_0x3ab706(0x1c1)])===null||_0x2e24ce===void 0x0?void 0x0:_0x2e24ce[_0x44fd59]){const _0x250633=(_0x4444cb=this[_0x3ab706(0x1c1)][_0x44fd59])===null||_0x4444cb===void 0x0?void 0x0:_0x4444cb[_0x37a532];(_0x250633===null||_0x250633===void 0x0?void 0x0:_0x250633[_0x3ab706(0x1d1)])&&typeof(_0x250633===null||_0x250633===void 0x0?void 0x0:_0x250633[_0x3ab706(0x1d1)])=='function'&&await _0x250633[_0x3ab706(0x1d1)](..._0x5152c3);}}async[a4_0x4be6f6(0x1b4)](_0x48ad68,..._0x2b6d85){const _0x590b51=a4_0x4be6f6;return await this[_0x590b51(0x1b6)](),await this['emit'](_0x48ad68,..._0x2b6d85),this['off'](_0x48ad68);}async[a4_0x4be6f6(0x1b9)](_0x44f6c8){const _0x1fe6c4=a4_0x4be6f6;return await this[_0x1fe6c4(0x1b6)](),this['listevent'][_0x44f6c8]&&delete this['listevent'][_0x44f6c8],!!this[_0x1fe6c4(0x1c1)][_0x44f6c8];}};__decorate([(0x0,decorator_1['App'])(),__metadata(a4_0x4be6f6(0x1d6),Object)],EventService[a4_0x4be6f6(0x1ce)],a4_0x4be6f6(0x1dd),void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x4be6f6(0x1cc)])(a4_0x4be6f6(0x1bc)),(0x0,decorator_1[a4_0x4be6f6(0x1de)])(decorator_1[a4_0x4be6f6(0x1d4)]['Singleton'])],EventService),exports['EventService']=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
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": "c03891c145e6c3a9ccd74cf1fed138d01c8c95a4"
|
|
25
25
|
}
|