@anncic-api/event 1.1.49 → 1.2.0
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_0x427524=a0_0x4677;(function(_0x4dba7a,_0x2e906b){var _0x111448=a0_0x4677,_0x5437e4=_0x4dba7a();while(!![]){try{var _0x4a50e2=parseInt(_0x111448(0x1f8))/0x1+parseInt(_0x111448(0x1fb))/0x2+-parseInt(_0x111448(0x1eb))/0x3*(parseInt(_0x111448(0x1f2))/0x4)+parseInt(_0x111448(0x1f5))/0x5*(parseInt(_0x111448(0x1f9))/0x6)+parseInt(_0x111448(0x202))/0x7*(-parseInt(_0x111448(0x204))/0x8)+parseInt(_0x111448(0x201))/0x9*(parseInt(_0x111448(0x1f4))/0xa)+parseInt(_0x111448(0x1ec))/0xb*(-parseInt(_0x111448(0x1ea))/0xc);if(_0x4a50e2===_0x2e906b)break;else _0x5437e4['push'](_0x5437e4['shift']());}catch(_0x5177d5){_0x5437e4['push'](_0x5437e4['shift']());}}}(a0_0x82b3,0xd1d22));var __decorate=this&&this['__decorate']||function(_0x343d31,_0x5200b6,_0x3fd375,_0x228869){var _0x1fd894=a0_0x4677,_0x2e4e9c=arguments[_0x1fd894(0x1ef)],_0x54e524=_0x2e4e9c<0x3?_0x5200b6:_0x228869===null?_0x228869=Object[_0x1fd894(0x1f6)](_0x5200b6,_0x3fd375):_0x228869,_0x540589;if(typeof Reflect===_0x1fd894(0x1f3)&&typeof Reflect[_0x1fd894(0x1e9)]==='function')_0x54e524=Reflect[_0x1fd894(0x1e9)](_0x343d31,_0x5200b6,_0x3fd375,_0x228869);else{for(var _0x2a5203=_0x343d31['length']-0x1;_0x2a5203>=0x0;_0x2a5203--)if(_0x540589=_0x343d31[_0x2a5203])_0x54e524=(_0x2e4e9c<0x3?_0x540589(_0x54e524):_0x2e4e9c>0x3?_0x540589(_0x5200b6,_0x3fd375,_0x54e524):_0x540589(_0x5200b6,_0x3fd375))||_0x54e524;}return _0x2e4e9c>0x3&&_0x54e524&&Object[_0x1fd894(0x1fd)](_0x5200b6,_0x3fd375,_0x54e524),_0x54e524;},__metadata=this&&this[a0_0x427524(0x1fa)]||function(_0x1f74d2,_0x5c5283){var _0x27c9e3=a0_0x427524;if(typeof Reflect===_0x27c9e3(0x1f3)&&typeof Reflect['metadata']==='function')return Reflect[_0x27c9e3(0x1f0)](_0x1f74d2,_0x5c5283);};Object[a0_0x427524(0x1fd)](exports,a0_0x427524(0x1f7),{'value':!![]}),exports[a0_0x427524(0x1fe)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require('@midwayjs/core');function a0_0x82b3(){var _0x42c988=['20880pIeJul','8729119tQSYTM','decorator','8wJqtxw','Inject','decorate','33179208NUxtyl','24vlgsRk','11UeeiWr','anncic-api:event','design:type','length','metadata','MidwayDecoratorService','191064bJoycB','object','3800QlYGGI','6310ztBeUv','getOwnPropertyDescriptor','__esModule','1313932ALTzrn','7662YNCavB','__metadata','2892798pBPssW','prototype','defineProperty','CustomConfiguration','Configuration','onReady'];a0_0x82b3=function(){return _0x42c988;};return a0_0x82b3();}let CustomConfiguration=class CustomConfiguration{async[a0_0x427524(0x200)](){}};function a0_0x4677(_0x55c9e5,_0x7db4c8){var _0x82b32d=a0_0x82b3();return a0_0x4677=function(_0x4677b2,_0x23859a){_0x4677b2=_0x4677b2-0x1e8;var _0x1b871f=_0x82b32d[_0x4677b2];return _0x1b871f;},a0_0x4677(_0x55c9e5,_0x7db4c8);}__decorate([(0x0,decorator_1[a0_0x427524(0x1e8)])(),__metadata(a0_0x427524(0x1ee),core_1['MidwayConfigService'])],CustomConfiguration[a0_0x427524(0x1fc)],'config',void 0x0),__decorate([(0x0,decorator_1[a0_0x427524(0x1e8)])(),__metadata('design:type',core_1[a0_0x427524(0x1f1)])],CustomConfiguration['prototype'],a0_0x427524(0x203),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a0_0x427524(0x1ff)])({'conflictCheck':![],'namespace':a0_0x427524(0x1ed)})],CustomConfiguration),exports[a0_0x427524(0x1fe)]=CustomConfiguration;
|
package/dist/decorator/Event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a1_0x1890(){const _0x340c8a=['../interface','EVENT_ON_KEY','Scope','ScopeEnum','334ELHfzn','1529BjRNHi','499xrvVbC','12TaTvVJ','9bbNKfG','1678817OnUXjT','EVENT_KEY','Request','Provide','31100QHdGEV','1624800twNubE','defineProperty','__esModule','@midwayjs/decorator','attachClassMetadata','1307408bxBgWu','Event','2700iCETJl','40WwdkkN','47853nPSPSq','97868ldYrbW','saveModule'];a1_0x1890=function(){return _0x340c8a;};return a1_0x1890();}function a1_0x5f41(_0x324ea7,_0x1f25ef){const _0x18905f=a1_0x1890();return a1_0x5f41=function(_0x5f4196,_0x30a504){_0x5f4196=_0x5f4196-0x68;let _0x4b885c=_0x18905f[_0x5f4196];return _0x4b885c;},a1_0x5f41(_0x324ea7,_0x1f25ef);}const a1_0x5a16a4=a1_0x5f41;(function(_0x59c535,_0x531771){const _0x4b55f4=a1_0x5f41,_0x53679e=_0x59c535();while(!![]){try{const _0x5597a6=parseInt(_0x4b55f4(0x71))/0x1*(-parseInt(_0x4b55f4(0x6f))/0x2)+-parseInt(_0x4b55f4(0x79))/0x3+-parseInt(_0x4b55f4(0x69))/0x4*(-parseInt(_0x4b55f4(0x81))/0x5)+parseInt(_0x4b55f4(0x72))/0x6*(parseInt(_0x4b55f4(0x74))/0x7)+-parseInt(_0x4b55f4(0x7e))/0x8*(parseInt(_0x4b55f4(0x73))/0x9)+parseInt(_0x4b55f4(0x78))/0xa*(-parseInt(_0x4b55f4(0x70))/0xb)+-parseInt(_0x4b55f4(0x80))/0xc*(-parseInt(_0x4b55f4(0x68))/0xd);if(_0x5597a6===_0x531771)break;else _0x53679e['push'](_0x53679e['shift']());}catch(_0x362a81){_0x53679e['push'](_0x53679e['shift']());}}}(a1_0x1890,0x4515e));Object[a1_0x5a16a4(0x7a)](exports,a1_0x5a16a4(0x7b),{'value':!![]}),exports[a1_0x5a16a4(0x7f)]=void 0x0;const decorator_1=require(a1_0x5a16a4(0x7c)),interface_1=require(a1_0x5a16a4(0x6b));function Event(){return _0x53627f=>{const _0x1d9347=a1_0x5f41;(0x0,decorator_1[_0x1d9347(0x77)])()(_0x53627f),(0x0,decorator_1[_0x1d9347(0x6a)])(interface_1[_0x1d9347(0x75)],_0x53627f),(0x0,decorator_1[_0x1d9347(0x6d)])(decorator_1[_0x1d9347(0x6e)][_0x1d9347(0x76)],{'allowDowngrade':!![]})(_0x53627f);};}exports['Event']=Event,Event['On']=function(_0x27c498,_0x2f2f61=0x0){return(_0x8ebaef,_0x47c15f,_0xfb9ad3)=>{const _0x3a3ce0=a1_0x5f41;return(0x0,decorator_1[_0x3a3ce0(0x7d)])(interface_1[_0x3a3ce0(0x6c)],{'name':_0x27c498,'priority':_0x2f2f61,'propertyKey':_0x47c15f,'descriptor':_0xfb9ad3},_0x8ebaef),_0xfb9ad3;};};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a2_0x4bc0(){var _0x1fbd5e=['117CPeBpW','Configuration','4554vPUdHo','__esModule','4950qZnjsI','10522ZSYJDX','./service/EventService','./decorator/Event','EventService','48BHGxIP','1309635hEVBxw','./configuration','defineProperty','1140699GhBxfe','Event','27420XhRJTC','3031680ozqeJD','40581090dVqngQ','6828sSWBvT'];a2_0x4bc0=function(){return _0x1fbd5e;};return a2_0x4bc0();}var a2_0x109b45=a2_0x2d54;(function(_0x5db043,_0x256ea4){var _0x3521d6=a2_0x2d54,_0x55b55d=_0x5db043();while(!![]){try{var _0xe42705=-parseInt(_0x3521d6(0xc4))/0x1*(parseInt(_0x3521d6(0xc9))/0x2)+parseInt(_0x3521d6(0xce))/0x3+-parseInt(_0x3521d6(0xc3))/0x4*(-parseInt(_0x3521d6(0xc8))/0x5)+-parseInt(_0x3521d6(0xcd))/0x6*(-parseInt(_0x3521d6(0xd1))/0x7)+parseInt(_0x3521d6(0xd4))/0x8+parseInt(_0x3521d6(0xc6))/0x9*(parseInt(_0x3521d6(0xd3))/0xa)+-parseInt(_0x3521d6(0xd5))/0xb;if(_0xe42705===_0x256ea4)break;else _0x55b55d['push'](_0x55b55d['shift']());}catch(_0x450216){_0x55b55d['push'](_0x55b55d['shift']());}}}(a2_0x4bc0,0xd9ba8));Object[a2_0x109b45(0xd0)](exports,a2_0x109b45(0xc7),{'value':!![]}),exports[a2_0x109b45(0xc5)]=exports[a2_0x109b45(0xcc)]=exports[a2_0x109b45(0xd2)]=void 0x0;var Event_1=require(a2_0x109b45(0xcb));Object[a2_0x109b45(0xd0)](exports,a2_0x109b45(0xd2),{'enumerable':!![],'get':function(){var _0x9132e8=a2_0x109b45;return Event_1[_0x9132e8(0xd2)];}});function a2_0x2d54(_0xb51a7f,_0x1f202){var _0x4bc096=a2_0x4bc0();return a2_0x2d54=function(_0x2d5452,_0x7cc26b){_0x2d5452=_0x2d5452-0xc3;var _0x4035dc=_0x4bc096[_0x2d5452];return _0x4035dc;},a2_0x2d54(_0xb51a7f,_0x1f202);}var EventService_1=require(a2_0x109b45(0xca));Object['defineProperty'](exports,a2_0x109b45(0xcc),{'enumerable':!![],'get':function(){var _0x144d4c=a2_0x109b45;return EventService_1[_0x144d4c(0xcc)];}});var configuration_1=require(a2_0x109b45(0xcf));Object[a2_0x109b45(0xd0)](exports,a2_0x109b45(0xc5),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
package/dist/interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x5392(_0x5799e6,_0x17f43a){var _0x5adfa5=a3_0x5adf();return a3_0x5392=function(_0x5392b5,_0x4c4189){_0x5392b5=_0x5392b5-0x123;var _0x4ada85=_0x5adfa5[_0x5392b5];return _0x4ada85;},a3_0x5392(_0x5799e6,_0x17f43a);}var a3_0x1152c3=a3_0x5392;(function(_0x1ddd7e,_0x33a495){var _0x264759=a3_0x5392,_0x5a2a40=_0x1ddd7e();while(!![]){try{var _0x3d69b1=parseInt(_0x264759(0x12a))/0x1+-parseInt(_0x264759(0x129))/0x2*(parseInt(_0x264759(0x127))/0x3)+-parseInt(_0x264759(0x12e))/0x4+-parseInt(_0x264759(0x12b))/0x5*(-parseInt(_0x264759(0x123))/0x6)+-parseInt(_0x264759(0x124))/0x7+parseInt(_0x264759(0x12c))/0x8+parseInt(_0x264759(0x126))/0x9*(parseInt(_0x264759(0x12f))/0xa);if(_0x3d69b1===_0x33a495)break;else _0x5a2a40['push'](_0x5a2a40['shift']());}catch(_0x50c86b){_0x5a2a40['push'](_0x5a2a40['shift']());}}}(a3_0x5adf,0xd4f9f));function a3_0x5adf(){var _0x5031a6=['73737bJSgJe','6807BlLduk','defineProperty','1220GcvDJo','785813xYSEvm','775vSOyMh','6564392lDyxZF','__esModule','4060696QAlRss','610xfgXku','EVENT_KEY','52794mSbjMe','1388555ayxRcM','EVENT_ON_KEY'];a3_0x5adf=function(){return _0x5031a6;};return a3_0x5adf();}Object[a3_0x1152c3(0x128)](exports,a3_0x1152c3(0x12d),{'value':!![]}),exports[a3_0x1152c3(0x125)]=exports[a3_0x1152c3(0x130)]=void 0x0,exports[a3_0x1152c3(0x130)]='anncic-api:event',exports[a3_0x1152c3(0x125)]='anncic-api:event:on';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x2f4da5=a4_0x99a1;(function(_0x2742c6,_0x1e613e){const _0x36da94=a4_0x99a1,_0x56bff1=_0x2742c6();while(!![]){try{const _0x573984=-parseInt(_0x36da94(0x19a))/0x1*(parseInt(_0x36da94(0x18c))/0x2)+-parseInt(_0x36da94(0x19d))/0x3*(parseInt(_0x36da94(0x17c))/0x4)+-parseInt(_0x36da94(0x19f))/0x5+parseInt(_0x36da94(0x193))/0x6+parseInt(_0x36da94(0x185))/0x7+parseInt(_0x36da94(0x182))/0x8*(parseInt(_0x36da94(0x1a5))/0x9)+-parseInt(_0x36da94(0x195))/0xa*(parseInt(_0x36da94(0x189))/0xb);if(_0x573984===_0x1e613e)break;else _0x56bff1['push'](_0x56bff1['shift']());}catch(_0x5cc450){_0x56bff1['push'](_0x56bff1['shift']());}}}(a4_0x461f,0x1d412));var __decorate=this&&this[a4_0x2f4da5(0x188)]||function(_0x5670f3,_0x208ad3,_0x43fe47,_0x2124da){const _0x5a53ee=a4_0x2f4da5;var _0x289572=arguments[_0x5a53ee(0x186)],_0x3e1bc9=_0x289572<0x3?_0x208ad3:_0x2124da===null?_0x2124da=Object[_0x5a53ee(0x199)](_0x208ad3,_0x43fe47):_0x2124da,_0x62fa88;if(typeof Reflect===_0x5a53ee(0x1aa)&&typeof Reflect[_0x5a53ee(0x190)]===_0x5a53ee(0x1a6))_0x3e1bc9=Reflect[_0x5a53ee(0x190)](_0x5670f3,_0x208ad3,_0x43fe47,_0x2124da);else{for(var _0x16767e=_0x5670f3['length']-0x1;_0x16767e>=0x0;_0x16767e--)if(_0x62fa88=_0x5670f3[_0x16767e])_0x3e1bc9=(_0x289572<0x3?_0x62fa88(_0x3e1bc9):_0x289572>0x3?_0x62fa88(_0x208ad3,_0x43fe47,_0x3e1bc9):_0x62fa88(_0x208ad3,_0x43fe47))||_0x3e1bc9;}return _0x289572>0x3&&_0x3e1bc9&&Object[_0x5a53ee(0x17f)](_0x208ad3,_0x43fe47,_0x3e1bc9),_0x3e1bc9;},__metadata=this&&this[a4_0x2f4da5(0x1a4)]||function(_0x299a26,_0x43fc66){const _0x30ffe8=a4_0x2f4da5;if(typeof Reflect===_0x30ffe8(0x1aa)&&typeof Reflect[_0x30ffe8(0x194)]===_0x30ffe8(0x1a6))return Reflect[_0x30ffe8(0x194)](_0x299a26,_0x43fc66);};Object[a4_0x2f4da5(0x17f)](exports,'__esModule',{'value':!![]}),exports[a4_0x2f4da5(0x1a7)]=void 0x0;const collect_js_1=require(a4_0x2f4da5(0x18e)),decorator_1=require(a4_0x2f4da5(0x192)),interface_1=require(a4_0x2f4da5(0x197));function a4_0x461f(){const _0xc3022c=['5337dpaQiB','function','EventService','prototype','all','object','603716dZZjWP','app','Provide','defineProperty','emit','getListevent','2576FdaNxW','design:type','resolve','1153327iVALBn','length','default','__decorate','11kGtLDq','event','ScopeEnum','14304WYLeDU','priority','collect.js','EVENT_KEY','decorate','init','@midwayjs/decorator','802908aMolIo','metadata','1790410wIKFfx','once','../interface','getClassMetadata','getOwnPropertyDescriptor','4GdiJfL','listModule','listevent','3zgjcnK','propertyKey','55605syGEKE','getAsync','getApplicationContext','name','Singleton','__metadata'];a4_0x461f=function(){return _0xc3022c;};return a4_0x461f();}function a4_0x99a1(_0x23aaa3,_0x10ad1d){const _0x461f09=a4_0x461f();return a4_0x99a1=function(_0x99a126,_0x33e55a){_0x99a126=_0x99a126-0x17c;let _0x51c102=_0x461f09[_0x99a126];return _0x51c102;},a4_0x99a1(_0x23aaa3,_0x10ad1d);}let EventService=class EventService{constructor(){const _0x39c721=a4_0x2f4da5;this[_0x39c721(0x191)]=![];}async[a4_0x2f4da5(0x181)](_0x4ec82d){const _0x2b9d37=a4_0x2f4da5;if(!this[_0x2b9d37(0x191)]){this[_0x2b9d37(0x191)]=!![],this[_0x2b9d37(0x19c)]={};for(const _0x1594e1 of(0x0,decorator_1[_0x2b9d37(0x19b)])(interface_1[_0x2b9d37(0x18f)])||[]){const _0xdeef92=await this[_0x2b9d37(0x17d)][_0x2b9d37(0x1a1)]()[_0x2b9d37(0x1a0)](_0x1594e1);for(const _0x8fab2f of(0x0,decorator_1[_0x2b9d37(0x198)])(interface_1['EVENT_ON_KEY'],_0x1594e1)||[]){typeof(_0xdeef92[_0x8fab2f['propertyKey']]==_0x2b9d37(0x1a6))&&(!this[_0x2b9d37(0x19c)][_0x8fab2f[_0x2b9d37(0x1a2)]]&&(this[_0x2b9d37(0x19c)][_0x8fab2f[_0x2b9d37(0x1a2)]]=[]),this[_0x2b9d37(0x19c)][_0x8fab2f[_0x2b9d37(0x1a2)]]['push']({'priority':_0x8fab2f[_0x2b9d37(0x18d)],'resolve':_0xdeef92[_0x8fab2f[_0x2b9d37(0x19e)]]['bind'](_0xdeef92),'propertyKey':_0x1594e1['name']+'@'+_0x8fab2f[_0x2b9d37(0x19e)]}));}}for(const _0x469485 in this[_0x2b9d37(0x19c)]){this[_0x2b9d37(0x19c)][_0x469485]=(0x0,collect_js_1[_0x2b9d37(0x187)])(this['listevent'][_0x469485])['sortByDesc'](_0x2b9d37(0x18d))[_0x2b9d37(0x1a9)]();}}return _0x4ec82d?this[_0x2b9d37(0x19c)][_0x4ec82d]||[]:this[_0x2b9d37(0x19c)];}async[a4_0x2f4da5(0x180)](_0x450b50,..._0xd40b75){const _0x1d9e92=a4_0x2f4da5;var _0x3efe65,_0x189a5b;await this[_0x1d9e92(0x181)]();for(let _0x2e8ce3 in(_0x3efe65=this[_0x1d9e92(0x19c)])===null||_0x3efe65===void 0x0?void 0x0:_0x3efe65[_0x450b50]){const _0x14367a=(_0x189a5b=this[_0x1d9e92(0x19c)][_0x450b50])===null||_0x189a5b===void 0x0?void 0x0:_0x189a5b[_0x2e8ce3];(_0x14367a===null||_0x14367a===void 0x0?void 0x0:_0x14367a['resolve'])&&typeof(_0x14367a===null||_0x14367a===void 0x0?void 0x0:_0x14367a['resolve'])==_0x1d9e92(0x1a6)&&await _0x14367a[_0x1d9e92(0x184)](..._0xd40b75);}}async[a4_0x2f4da5(0x196)](_0x35f0c4,..._0x4155a0){const _0x285506=a4_0x2f4da5;return await this['getListevent'](),await this[_0x285506(0x180)](_0x35f0c4,..._0x4155a0),this['off'](_0x35f0c4);}async['off'](_0x48e73e){const _0x38c562=a4_0x2f4da5;return await this[_0x38c562(0x181)](),this[_0x38c562(0x19c)][_0x48e73e]&&delete this[_0x38c562(0x19c)][_0x48e73e],!!this[_0x38c562(0x19c)][_0x48e73e];}};__decorate([(0x0,decorator_1['App'])(),__metadata(a4_0x2f4da5(0x183),Object)],EventService[a4_0x2f4da5(0x1a8)],'app',void 0x0),EventService=__decorate([(0x0,decorator_1[a4_0x2f4da5(0x17e)])(a4_0x2f4da5(0x18a)),(0x0,decorator_1['Scope'])(decorator_1[a4_0x2f4da5(0x18b)][a4_0x2f4da5(0x1a3)])],EventService),exports['EventService']=EventService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/event",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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": "df8a56632f1499078db546232c694e3e0bc11290"
|
|
25
25
|
}
|