@anncic-api/cache 1.1.27 → 1.1.29
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x14d220=a0_0x13ac;function a0_0x5698(){const _0x14f756=['1556874DHBuGg','8572352wGIqif','2355NHgqGe','defineProperty','cache-manager-fs-hash','1wSstxJ','memory','2060hMDLYZ','1114460maidwX','name','427emqIwv','default','1390262SnGrBV','/runtime/.cache','760630QCxBfx','file','32394KfgQZV'];a0_0x5698=function(){return _0x14f756;};return a0_0x5698();}(function(_0x44c630,_0x4cf2cd){const _0x499638=a0_0x13ac,_0xef6854=_0x44c630();while(!![]){try{const _0x5a9492=-parseInt(_0x499638(0x78))/0x1*(parseInt(_0x499638(0x7f))/0x2)+parseInt(_0x499638(0x75))/0x3*(parseInt(_0x499638(0x7a))/0x4)+parseInt(_0x499638(0x7b))/0x5+parseInt(_0x499638(0x72))/0x6*(-parseInt(_0x499638(0x7d))/0x7)+parseInt(_0x499638(0x74))/0x8+-parseInt(_0x499638(0x73))/0x9+parseInt(_0x499638(0x81))/0xa;if(_0x5a9492===_0x4cf2cd)break;else _0xef6854['push'](_0xef6854['shift']());}catch(_0x5be15d){_0xef6854['push'](_0xef6854['shift']());}}}(a0_0x5698,0x8cf26));function a0_0x13ac(_0x520922,_0x25af2d){const _0x5698ba=a0_0x5698();return a0_0x13ac=function(_0x13ac4b,_0xad4811){_0x13ac4b=_0x13ac4b-0x71;let _0x1588ca=_0x5698ba[_0x13ac4b];return _0x1588ca;},a0_0x13ac(_0x520922,_0x25af2d);}Object[a0_0x14d220(0x76)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x14d220(0x77)),redisStore=require('cache-manager-ioredis');exports[a0_0x14d220(0x7e)]=_0x4470da=>{const _0x66d04a=a0_0x14d220;return{'cache':{'default':_0x66d04a(0x71),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4470da['appDir']+_0x66d04a(0x80)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x4470da[_0x66d04a(0x7c)]+':'}},'memory':{'store':_0x66d04a(0x79),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x232c41=a1_0xa9a2;(function(_0x5375f2,_0x4a5282){var _0xdaf0c3=a1_0xa9a2,_0x1dad26=_0x5375f2();while(!![]){try{var _0x29e70e=parseInt(_0xdaf0c3(0x80))/0x1+-parseInt(_0xdaf0c3(0x77))/0x2+parseInt(_0xdaf0c3(0x82))/0x3+parseInt(_0xdaf0c3(0x7b))/0x4*(-parseInt(_0xdaf0c3(0x7c))/0x5)+-parseInt(_0xdaf0c3(0x7e))/0x6*(-parseInt(_0xdaf0c3(0x85))/0x7)+parseInt(_0xdaf0c3(0x75))/0x8*(parseInt(_0xdaf0c3(0x7f))/0x9)+-parseInt(_0xdaf0c3(0x81))/0xa*(-parseInt(_0xdaf0c3(0x84))/0xb);if(_0x29e70e===_0x4a5282)break;else _0x1dad26['push'](_0x1dad26['shift']());}catch(_0x3b5a9c){_0x1dad26['push'](_0x1dad26['shift']());}}}(a1_0x5ed5,0x2ed57));var __decorate=this&&this[a1_0x232c41(0x7a)]||function(_0x36f9d9,_0x5ef1b0,_0xbf9816,_0xc33fc6){var _0x837c70=a1_0x232c41,_0x59c7a0=arguments[_0x837c70(0x78)],_0x22b212=_0x59c7a0<0x3?_0x5ef1b0:_0xc33fc6===null?_0xc33fc6=Object['getOwnPropertyDescriptor'](_0x5ef1b0,_0xbf9816):_0xc33fc6,_0x561b39;if(typeof Reflect===_0x837c70(0x83)&&typeof Reflect[_0x837c70(0x73)]==='function')_0x22b212=Reflect[_0x837c70(0x73)](_0x36f9d9,_0x5ef1b0,_0xbf9816,_0xc33fc6);else{for(var _0x466909=_0x36f9d9[_0x837c70(0x78)]-0x1;_0x466909>=0x0;_0x466909--)if(_0x561b39=_0x36f9d9[_0x466909])_0x22b212=(_0x59c7a0<0x3?_0x561b39(_0x22b212):_0x59c7a0>0x3?_0x561b39(_0x5ef1b0,_0xbf9816,_0x22b212):_0x561b39(_0x5ef1b0,_0xbf9816))||_0x22b212;}return _0x59c7a0>0x3&&_0x22b212&&Object[_0x837c70(0x79)](_0x5ef1b0,_0xbf9816,_0x22b212),_0x22b212;};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0xa9a2(_0x3c396b,_0x1aefb6){var _0x5ed533=a1_0x5ed5();return a1_0xa9a2=function(_0xa9a268,_0x1fc1da){_0xa9a268=_0xa9a268-0x73;var _0x1f74de=_0x5ed533[_0xa9a268];return _0x1f74de;},a1_0xa9a2(_0x3c396b,_0x1aefb6);}const decorator_1=require(a1_0x232c41(0x74)),ConfigDefault=require(a1_0x232c41(0x7d));function a1_0x5ed5(){var _0x38a71f=['807594yPOcEg','9gflztT','31537ALQVsK','1975270oFujno','678309DKynjK','object','11aUsJVp','7UiKHMH','decorate','@midwayjs/decorator','601904eSAdSu','Configuration','486810kUoLTq','length','defineProperty','__decorate','4fsBUOe','1148840eMDohB','./config/config.default'];a1_0x5ed5=function(){return _0x38a71f;};return a1_0x5ed5();}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x232c41(0x76)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x2d287e=a2_0x5142;function a2_0x4087(){const _0x47f2a7=['value','850120IsOUgo','__esModule','getAsync','REQUEST_OBJ_CTX_KEY','app','84iXNhwo','17994hbJwPN','13966xiAyKN','crypto-js','apply','CacheService','2007djBvYF','MD5','25922UxiinT','getApplicationContext','197890jknHRN','../service/CacheService','Cache','stringify','2384pEUehO','parse','MethodDecorator','1078984WxPVxy','defineProperty','get','518btAWbF'];a2_0x4087=function(){return _0x47f2a7;};return a2_0x4087();}(function(_0x33b285,_0xc0d65c){const _0x388b7f=a2_0x5142,_0x2b97c2=_0x33b285();while(!![]){try{const _0x21a5ad=parseInt(_0x388b7f(0x1d1))/0x1+parseInt(_0x388b7f(0x1e6))/0x2*(parseInt(_0x388b7f(0x1e4))/0x3)+parseInt(_0x388b7f(0x1da))/0x4+parseInt(_0x388b7f(0x1d3))/0x5+parseInt(_0x388b7f(0x1e5))/0x6*(-parseInt(_0x388b7f(0x1dd))/0x7)+-parseInt(_0x388b7f(0x1d7))/0x8*(parseInt(_0x388b7f(0x1cf))/0x9)+-parseInt(_0x388b7f(0x1df))/0xa;if(_0x21a5ad===_0xc0d65c)break;else _0x2b97c2['push'](_0x2b97c2['shift']());}catch(_0x14ef4b){_0x2b97c2['push'](_0x2b97c2['shift']());}}}(a2_0x4087,0x266c2));function a2_0x5142(_0x4e9979,_0x2fe27c){const _0x408745=a2_0x4087();return a2_0x5142=function(_0x5142a7,_0x2cd889){_0x5142a7=_0x5142a7-0x1cd;let _0x72c06=_0x408745[_0x5142a7];return _0x72c06;},a2_0x5142(_0x4e9979,_0x2fe27c);}Object[a2_0x2d287e(0x1db)](exports,a2_0x2d287e(0x1e0),{'value':!![]}),exports[a2_0x2d287e(0x1d5)]=void 0x0;const crypto_js_1=require(a2_0x2d287e(0x1e7)),CacheService_1=require(a2_0x2d287e(0x1d4)),core_1=require('@midwayjs/core');function Cache(_0x53534f,_0x371895){return(_0xd3c74e,_0x3740c3,_0x206b24)=>{const _0x31ff0f=a2_0x5142,_0xbc0df6=_0x206b24['value'];return _0x206b24[_0x31ff0f(0x1de)]=async function(..._0x30e54f){const _0x3a2ea5=_0x31ff0f;!_0x53534f&&(_0x53534f=(0x0,crypto_js_1[_0x3a2ea5(0x1d0)])(JSON[_0x3a2ea5(0x1d6)](_0x30e54f))['toString']());let _0x78909=await this[core_1[_0x3a2ea5(0x1e2)]][_0x3a2ea5(0x1e3)][_0x3a2ea5(0x1d2)]()[_0x3a2ea5(0x1e1)](CacheService_1[_0x3a2ea5(0x1ce)]),_0x4e2a3d=await _0x78909['use'](_0x3a2ea5(0x1d9))[_0x3a2ea5(0x1dc)](_0x53534f);if(_0x4e2a3d)return JSON[_0x3a2ea5(0x1d8)](_0x4e2a3d);else _0x4e2a3d=await _0xbc0df6[_0x3a2ea5(0x1cd)](this,[..._0x30e54f]),await _0x78909['use']('MethodDecorator')['set'](_0x53534f,JSON[_0x3a2ea5(0x1d6)](_0x4e2a3d),_0x371895);return _0x4e2a3d;},_0x206b24;};}exports[a2_0x2d287e(0x1d5)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x5b86bf=a3_0x15de;(function(_0xd62f38,_0x4edca1){var _0x1b7c2d=a3_0x15de,_0x339046=_0xd62f38();while(!![]){try{var _0x3adc01=parseInt(_0x1b7c2d(0x181))/0x1*(-parseInt(_0x1b7c2d(0x17a))/0x2)+parseInt(_0x1b7c2d(0x183))/0x3+parseInt(_0x1b7c2d(0x180))/0x4*(-parseInt(_0x1b7c2d(0x177))/0x5)+-parseInt(_0x1b7c2d(0x173))/0x6+parseInt(_0x1b7c2d(0x17d))/0x7*(parseInt(_0x1b7c2d(0x17e))/0x8)+-parseInt(_0x1b7c2d(0x17c))/0x9+parseInt(_0x1b7c2d(0x176))/0xa;if(_0x3adc01===_0x4edca1)break;else _0x339046['push'](_0x339046['shift']());}catch(_0x35cbaf){_0x339046['push'](_0x339046['shift']());}}}(a3_0x19be,0x91589));function a3_0x19be(){var _0x49190e=['Configuration','4IJTQyz','10058MJiDkz','__esModule','2549943jcruYh','./configuration','1662102UCdtOY','CacheService','./decorator/Cache','10316150wjHgdc','2998145earnpI','CustomConfiguration','defineProperty','130AIeYOF','Cache','1331595ZLhhwr','1764pkvUeA','12448kwloWS'];a3_0x19be=function(){return _0x49190e;};return a3_0x19be();}Object[a3_0x5b86bf(0x179)](exports,a3_0x5b86bf(0x182),{'value':!![]}),exports[a3_0x5b86bf(0x174)]=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x5b86bf(0x172));Object[a3_0x5b86bf(0x179)](exports,a3_0x5b86bf(0x17f),{'enumerable':!![],'get':function(){var _0x248f41=a3_0x5b86bf;return configuration_1[_0x248f41(0x178)];}});var Cache_1=require(a3_0x5b86bf(0x175));Object['defineProperty'](exports,a3_0x5b86bf(0x17b),{'enumerable':!![],'get':function(){var _0x27cd70=a3_0x5b86bf;return Cache_1[_0x27cd70(0x17b)];}});var CacheService_1=require('./service/CacheService');function a3_0x15de(_0x3f3301,_0x1dc2f8){var _0x19bee3=a3_0x19be();return a3_0x15de=function(_0x15de1c,_0x5a5fde){_0x15de1c=_0x15de1c-0x172;var _0x56eabe=_0x19bee3[_0x15de1c];return _0x56eabe;},a3_0x15de(_0x3f3301,_0x1dc2f8);}Object[a3_0x5b86bf(0x179)](exports,a3_0x5b86bf(0x174),{'enumerable':!![],'get':function(){var _0x1ee21b=a3_0x5b86bf;return CacheService_1[_0x1ee21b(0x174)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x1398dd=a4_0x378c;(function(_0xb3b505,_0x1703d8){var _0x1c1d68=a4_0x378c,_0x5e4f93=_0xb3b505();while(!![]){try{var _0x3cb7fa=parseInt(_0x1c1d68(0x20d))/0x1*(parseInt(_0x1c1d68(0x204))/0x2)+parseInt(_0x1c1d68(0x1fa))/0x3+-parseInt(_0x1c1d68(0x201))/0x4+-parseInt(_0x1c1d68(0x1fe))/0x5*(parseInt(_0x1c1d68(0x216))/0x6)+parseInt(_0x1c1d68(0x212))/0x7*(parseInt(_0x1c1d68(0x1f3))/0x8)+-parseInt(_0x1c1d68(0x1f9))/0x9+parseInt(_0x1c1d68(0x1fc))/0xa;if(_0x3cb7fa===_0x1703d8)break;else _0x5e4f93['push'](_0x5e4f93['shift']());}catch(_0x97a009){_0x5e4f93['push'](_0x5e4f93['shift']());}}}(a4_0x40cf,0x70451));function a4_0x378c(_0x40cd1c,_0x497d16){var _0x40cf0b=a4_0x40cf();return a4_0x378c=function(_0x378c3a,_0x3c6909){_0x378c3a=_0x378c3a-0x1eb;var _0x13bf5a=_0x40cf0b[_0x378c3a];return _0x13bf5a;},a4_0x378c(_0x40cd1c,_0x497d16);}var __decorate=this&&this[a4_0x1398dd(0x1eb)]||function(_0x41f3d3,_0x5537ed,_0xef1d5c,_0x2006e6){var _0x15fa62=a4_0x1398dd,_0x12ad4e=arguments[_0x15fa62(0x1f8)],_0x4d1ac5=_0x12ad4e<0x3?_0x5537ed:_0x2006e6===null?_0x2006e6=Object[_0x15fa62(0x20b)](_0x5537ed,_0xef1d5c):_0x2006e6,_0x2ee8f7;if(typeof Reflect===_0x15fa62(0x207)&&typeof Reflect[_0x15fa62(0x20a)]===_0x15fa62(0x217))_0x4d1ac5=Reflect[_0x15fa62(0x20a)](_0x41f3d3,_0x5537ed,_0xef1d5c,_0x2006e6);else{for(var _0x3f57c1=_0x41f3d3[_0x15fa62(0x1f8)]-0x1;_0x3f57c1>=0x0;_0x3f57c1--)if(_0x2ee8f7=_0x41f3d3[_0x3f57c1])_0x4d1ac5=(_0x12ad4e<0x3?_0x2ee8f7(_0x4d1ac5):_0x12ad4e>0x3?_0x2ee8f7(_0x5537ed,_0xef1d5c,_0x4d1ac5):_0x2ee8f7(_0x5537ed,_0xef1d5c))||_0x4d1ac5;}return _0x12ad4e>0x3&&_0x4d1ac5&&Object[_0x15fa62(0x203)](_0x5537ed,_0xef1d5c,_0x4d1ac5),_0x4d1ac5;},__metadata=this&&this[a4_0x1398dd(0x1f0)]||function(_0x34ee97,_0x169e4e){var _0xc278c5=a4_0x1398dd;if(typeof Reflect===_0xc278c5(0x207)&&typeof Reflect[_0xc278c5(0x20e)]==='function')return Reflect[_0xc278c5(0x20e)](_0x34ee97,_0x169e4e);};Object[a4_0x1398dd(0x203)](exports,a4_0x1398dd(0x1ec),{'value':!![]}),exports[a4_0x1398dd(0x200)]=void 0x0;const cacheManager=require(a4_0x1398dd(0x20c)),decorator_1=require(a4_0x1398dd(0x209));let CacheService=class CacheService{constructor(){var _0x21ad0a=a4_0x1398dd;this[_0x21ad0a(0x206)]=undefined,this[_0x21ad0a(0x218)]=new Map();}[a4_0x1398dd(0x214)](_0x5dc285){var _0x5c3b9c=a4_0x1398dd,_0x464b50,_0x26522f;if(!this[_0x5c3b9c(0x206)]){const _0x2764e4=((_0x464b50=this['config']['stores'])===null||_0x464b50===void 0x0?void 0x0:_0x464b50[(_0x26522f=this[_0x5c3b9c(0x1f4)][_0x5c3b9c(0x206)])===null||_0x26522f===void 0x0?void 0x0:_0x26522f[_0x5c3b9c(0x1f2)]])||this[_0x5c3b9c(0x1f4)][_0x5c3b9c(0x1f5)][_0x5c3b9c(0x1f1)];this[_0x5c3b9c(0x206)]=cacheManager[_0x5c3b9c(0x1ed)]({..._0x2764e4[_0x5c3b9c(0x215)],'store':_0x2764e4['store']});}return!this[_0x5c3b9c(0x218)]['has'](_0x5dc285)&&this[_0x5c3b9c(0x218)][_0x5c3b9c(0x211)](_0x5dc285,new CacheHandler(_0x5dc285,this[_0x5c3b9c(0x206)])),this['clients'][_0x5c3b9c(0x1f7)](_0x5dc285);}async['reset'](){var _0x3f6732=a4_0x1398dd;return await this['cache'][_0x3f6732(0x1ee)]();}};__decorate([(0x0,decorator_1[a4_0x1398dd(0x1ef)])(a4_0x1398dd(0x206)),__metadata(a4_0x1398dd(0x1f6),Object)],CacheService[a4_0x1398dd(0x213)],a4_0x1398dd(0x1f4),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x1398dd(0x1fb)])(),(0x0,decorator_1[a4_0x1398dd(0x1ff)])(decorator_1['ScopeEnum'][a4_0x1398dd(0x20f)])],CacheService),exports[a4_0x1398dd(0x200)]=CacheService;class CacheHandler{constructor(_0x16b716,_0x77512a){this['cache']=_0x77512a,this['prefix']=_0x16b716;}async['del'](_0x6ae2ce){var _0x152b22=a4_0x1398dd;return await this[_0x152b22(0x206)][_0x152b22(0x208)](this['prefix']+':'+_0x6ae2ce);}async[a4_0x1398dd(0x211)](_0x4113aa,_0x3ab937,_0x7aca0c){var _0x69d4a8=a4_0x1398dd;return await this[_0x69d4a8(0x206)]['set'](this[_0x69d4a8(0x205)]+':'+_0x4113aa,_0x3ab937,_0x7aca0c);}async[a4_0x1398dd(0x1f7)](_0x5301a3,_0x22e0b2){return new Promise((_0x410013,_0x1e75c0)=>{var _0x2f87fa=a4_0x378c;this[_0x2f87fa(0x206)][_0x2f87fa(0x1f7)](this[_0x2f87fa(0x205)]+':'+_0x5301a3,(_0x3243d4,_0x13c47)=>{_0x3243d4?_0x1e75c0(_0x3243d4):_0x410013(_0x13c47||_0x22e0b2);});});}async[a4_0x1398dd(0x1fd)](_0x3eb5d3,_0x99326d){var _0x4fa9e1=a4_0x1398dd;return await this[_0x4fa9e1(0x208)](_0x3eb5d3+'-'+_0x99326d);}async[a4_0x1398dd(0x202)](_0x1243bb,_0xb8d3fb,_0x418679,_0x3e0e6e){var _0x28af47=a4_0x1398dd;return await this[_0x28af47(0x211)](_0x1243bb+'-'+_0xb8d3fb,_0x418679,_0x3e0e6e);}async[a4_0x1398dd(0x210)](_0x4b4a1a,_0x349d60,_0x1c1a39){var _0x140247=a4_0x1398dd;return await this[_0x140247(0x1f7)](_0x4b4a1a+'-'+_0x349d60,_0x1c1a39);}}function a4_0x40cf(){var _0x1da350=['metadata','Singleton','hget','set','7VXjGlN','prototype','use','options','2263002BywlGh','function','clients','__decorate','__esModule','caching','reset','Config','__metadata','file','default','4660984mqpUfO','config','stores','design:type','get','length','2925882jkNfnv','1139256gYtRoY','Provide','1092410SBKQKI','hdel','5SVjvGV','Scope','CacheService','2555808QKYxTu','hset','defineProperty','1458916LkGgxZ','prefix','cache','object','del','@midwayjs/decorator','decorate','getOwnPropertyDescriptor','cache-manager','1bclgnz'];a4_0x40cf=function(){return _0x1da350;};return a4_0x40cf();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.29",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "2.19.0",
|
|
24
24
|
"typescript": "^4.7.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "0cf871dada08ea550e685e6343a6d1127b97fb1b"
|
|
27
27
|
}
|