@anncic-api/cache 1.4.17 → 1.4.19
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';function
|
|
1
|
+
'use strict';function a0_0x1677(){const _0x4e3738=['file','127.0.0.1','1612674aMwuAf','3180309LQbYrz','4959TFwThI','/runtime/.cache','name','5718kUWLWG','30vupwpU','2906705IAkKYc','default','memory','2047340lyujuE','1696EVTYvy','cache-manager-ioredis','__esModule','1140161gYbRFi','30QgUKhQ','cache-manager-fs-hash','16nnJUqI'];a0_0x1677=function(){return _0x4e3738;};return a0_0x1677();}const a0_0x59278e=a0_0x4421;function a0_0x4421(_0x34c834,_0x9cde49){const _0x1677e8=a0_0x1677();return a0_0x4421=function(_0x4421a3,_0x4828af){_0x4421a3=_0x4421a3-0x7d;let _0x4f23df=_0x1677e8[_0x4421a3];return _0x4f23df;},a0_0x4421(_0x34c834,_0x9cde49);}(function(_0x5af2e2,_0x473849){const _0x16750b=a0_0x4421,_0x39bd9d=_0x5af2e2();while(!![]){try{const _0x2c53e0=parseInt(_0x16750b(0x90))/0x1*(parseInt(_0x16750b(0x88))/0x2)+-parseInt(_0x16750b(0x8c))/0x3+-parseInt(_0x16750b(0x81))/0x4+parseInt(_0x16750b(0x7e))/0x5+-parseInt(_0x16750b(0x7d))/0x6*(-parseInt(_0x16750b(0x8b))/0x7)+-parseInt(_0x16750b(0x82))/0x8*(-parseInt(_0x16750b(0x8d))/0x9)+parseInt(_0x16750b(0x86))/0xa*(parseInt(_0x16750b(0x85))/0xb);if(_0x2c53e0===_0x473849)break;else _0x39bd9d['push'](_0x39bd9d['shift']());}catch(_0x51c746){_0x39bd9d['push'](_0x39bd9d['shift']());}}}(a0_0x1677,0x9afc6));Object['defineProperty'](exports,a0_0x59278e(0x84),{'value':!![]});const fsStore=require(a0_0x59278e(0x87)),redisStore=require(a0_0x59278e(0x83));exports[a0_0x59278e(0x7f)]=_0x2b758b=>{const _0xf8b9e6=a0_0x59278e;return{'cache':{'default':_0xf8b9e6(0x89),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x2b758b['appDir']+_0xf8b9e6(0x8e)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0xf8b9e6(0x8a),'password':'','ttl':0x1e13380,'keyPrefix':_0x2b758b[_0xf8b9e6(0x8f)]+':'}},'memory':{'store':_0xf8b9e6(0x80),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x2d61(){var _0x54fdf1=['501771ZHNOzc','117zwdlHI','668052cOMIpf','375360CbaMUs','defineProperty','267672aCyZdR','__esModule','95420SpIPBA','decorate','function','4744222YEosHC','./config/config.default','@midwayjs/core','length','378666gtJirq','68zkkHVd','getOwnPropertyDescriptor'];a1_0x2d61=function(){return _0x54fdf1;};return a1_0x2d61();}var a1_0x23b962=a1_0x10cd;function a1_0x10cd(_0x40b1c3,_0x3ebbff){var _0x2d619f=a1_0x2d61();return a1_0x10cd=function(_0x10cd9e,_0x34e26d){_0x10cd9e=_0x10cd9e-0xbc;var _0x37b273=_0x2d619f[_0x10cd9e];return _0x37b273;},a1_0x10cd(_0x40b1c3,_0x3ebbff);}(function(_0x62c8a4,_0x106587){var _0x35bb00=a1_0x10cd,_0x451a0d=_0x62c8a4();while(!![]){try{var _0x355055=parseInt(_0x35bb00(0xc7))/0x1+-parseInt(_0x35bb00(0xcc))/0x2+parseInt(_0x35bb00(0xca))/0x3+parseInt(_0x35bb00(0xc8))/0x4*(parseInt(_0x35bb00(0xc0))/0x5)+parseInt(_0x35bb00(0xbc))/0x6+-parseInt(_0x35bb00(0xc3))/0x7+-parseInt(_0x35bb00(0xbe))/0x8*(-parseInt(_0x35bb00(0xcb))/0x9);if(_0x355055===_0x106587)break;else _0x451a0d['push'](_0x451a0d['shift']());}catch(_0x297601){_0x451a0d['push'](_0x451a0d['shift']());}}}(a1_0x2d61,0x56f0a));var __decorate=this&&this['__decorate']||function(_0x685417,_0x5adbb0,_0x53e655,_0xa2e00b){var _0x169b8f=a1_0x10cd,_0x2c6599=arguments[_0x169b8f(0xc6)],_0x4b463e=_0x2c6599<0x3?_0x5adbb0:_0xa2e00b===null?_0xa2e00b=Object[_0x169b8f(0xc9)](_0x5adbb0,_0x53e655):_0xa2e00b,_0x1639bf;if(typeof Reflect==='object'&&typeof Reflect[_0x169b8f(0xc1)]===_0x169b8f(0xc2))_0x4b463e=Reflect[_0x169b8f(0xc1)](_0x685417,_0x5adbb0,_0x53e655,_0xa2e00b);else{for(var _0x3aa60b=_0x685417[_0x169b8f(0xc6)]-0x1;_0x3aa60b>=0x0;_0x3aa60b--)if(_0x1639bf=_0x685417[_0x3aa60b])_0x4b463e=(_0x2c6599<0x3?_0x1639bf(_0x4b463e):_0x2c6599>0x3?_0x1639bf(_0x5adbb0,_0x53e655,_0x4b463e):_0x1639bf(_0x5adbb0,_0x53e655))||_0x4b463e;}return _0x2c6599>0x3&&_0x4b463e&&Object[_0x169b8f(0xbd)](_0x5adbb0,_0x53e655,_0x4b463e),_0x4b463e;};Object['defineProperty'](exports,a1_0x23b962(0xbf),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x23b962(0xc5)),ConfigDefault=require(a1_0x23b962(0xc4));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'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';function a2_0x4413(){const _0x3d748e=['MD5','../service/CacheService','167KErhuW','2626mfuqDN','REQUEST_OBJ_CTX_KEY','3770493oLRwth','getApplicationContext','Method::Decorator','getAsync','@midwayjs/core','4287252BpFvKK','28352835VCBvOT','apply','set','get','toString','use','1635aiQjKP','Cache','3412RlNkwR','stringify','923104lHoySO','parse','crypto-js','value','9392728GguGKu','__esModule'];a2_0x4413=function(){return _0x3d748e;};return a2_0x4413();}const a2_0x281478=a2_0x2882;(function(_0x3870a9,_0x4e11b8){const _0x14c36c=a2_0x2882,_0x3e398c=_0x3870a9();while(!![]){try{const _0x461edd=parseInt(_0x14c36c(0x108))/0x1*(parseInt(_0x14c36c(0x109))/0x2)+-parseInt(_0x14c36c(0x10b))/0x3+parseInt(_0x14c36c(0xfe))/0x4*(parseInt(_0x14c36c(0x117))/0x5)+-parseInt(_0x14c36c(0x110))/0x6+parseInt(_0x14c36c(0x100))/0x7+-parseInt(_0x14c36c(0x104))/0x8+parseInt(_0x14c36c(0x111))/0x9;if(_0x461edd===_0x4e11b8)break;else _0x3e398c['push'](_0x3e398c['shift']());}catch(_0x141600){_0x3e398c['push'](_0x3e398c['shift']());}}}(a2_0x4413,0x9b02d));function a2_0x2882(_0x52d7b8,_0x203fdb){const _0x44138c=a2_0x4413();return a2_0x2882=function(_0x28825a,_0x13b63a){_0x28825a=_0x28825a-0xfe;let _0x47bd19=_0x44138c[_0x28825a];return _0x47bd19;},a2_0x2882(_0x52d7b8,_0x203fdb);}Object['defineProperty'](exports,a2_0x281478(0x105),{'value':!![]}),exports[a2_0x281478(0x118)]=void 0x0;const crypto_js_1=require(a2_0x281478(0x102)),CacheService_1=require(a2_0x281478(0x107)),core_1=require(a2_0x281478(0x10f));function Cache(_0x59c104,_0xdf5baf){return(_0x1cb5da,_0x8b1870,_0x39a873)=>{const _0x93581b=a2_0x2882,_0x1969b3=_0x39a873[_0x93581b(0x103)];return _0x39a873[_0x93581b(0x103)]=async function(..._0x113e35){const _0x21360e=_0x93581b;!_0x59c104&&(_0x59c104=(0x0,crypto_js_1[_0x21360e(0x106)])(JSON[_0x21360e(0xff)](_0x113e35))[_0x21360e(0x115)]());let _0x2ef9ec=await this[core_1[_0x21360e(0x10a)]]['app'][_0x21360e(0x10c)]()[_0x21360e(0x10e)](CacheService_1['CacheService']),_0x31d5aa=await _0x2ef9ec['use'](_0x21360e(0x10d))[_0x21360e(0x114)](_0x59c104);if(_0x31d5aa)return JSON[_0x21360e(0x101)](_0x31d5aa);else _0x31d5aa=await _0x1969b3[_0x21360e(0x112)](this,[..._0x113e35]),await _0x2ef9ec[_0x21360e(0x116)](_0x21360e(0x10d))[_0x21360e(0x113)](_0x59c104,JSON[_0x21360e(0xff)](_0x31d5aa),_0xdf5baf);return _0x31d5aa;},_0x39a873;};}exports[a2_0x281478(0x118)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x2e321b=a3_0x4e51;(function(_0x32649f,_0x4b74ee){var _0x119d6e=a3_0x4e51,_0x403ab0=_0x32649f();while(!![]){try{var _0x156bdc=-parseInt(_0x119d6e(0x74))/0x1+parseInt(_0x119d6e(0x71))/0x2+-parseInt(_0x119d6e(0x79))/0x3*(-parseInt(_0x119d6e(0x6d))/0x4)+-parseInt(_0x119d6e(0x6b))/0x5+parseInt(_0x119d6e(0x76))/0x6+-parseInt(_0x119d6e(0x7c))/0x7+-parseInt(_0x119d6e(0x6f))/0x8*(-parseInt(_0x119d6e(0x75))/0x9);if(_0x156bdc===_0x4b74ee)break;else _0x403ab0['push'](_0x403ab0['shift']());}catch(_0x183598){_0x403ab0['push'](_0x403ab0['shift']());}}}(a3_0x3ab3,0x3571f));function a3_0x3ab3(){var _0x132ded=['Cache','56176uFekOr','CustomConfiguration','171256XcoJww','__esModule','./service/CacheService','234507LvCrIh','738CWLMDr','14274PFFgPK','Configuration','CacheService','49137VrkWxt','./configuration','./decorator/Cache','381437qqoWvp','2007935rvBBcA','defineProperty','60Vprwko'];a3_0x3ab3=function(){return _0x132ded;};return a3_0x3ab3();}Object[a3_0x2e321b(0x6c)](exports,a3_0x2e321b(0x72),{'value':!![]}),exports['CacheService']=exports[a3_0x2e321b(0x6e)]=exports[a3_0x2e321b(0x77)]=void 0x0;var configuration_1=require(a3_0x2e321b(0x7a));Object[a3_0x2e321b(0x6c)](exports,a3_0x2e321b(0x77),{'enumerable':!![],'get':function(){var _0x48835c=a3_0x2e321b;return configuration_1[_0x48835c(0x70)];}});function a3_0x4e51(_0x4b856d,_0x40aadd){var _0x3ab37c=a3_0x3ab3();return a3_0x4e51=function(_0x4e5152,_0x2bf475){_0x4e5152=_0x4e5152-0x6b;var _0x26b11d=_0x3ab37c[_0x4e5152];return _0x26b11d;},a3_0x4e51(_0x4b856d,_0x40aadd);}var Cache_1=require(a3_0x2e321b(0x7b));Object[a3_0x2e321b(0x6c)](exports,'Cache',{'enumerable':!![],'get':function(){var _0xeec323=a3_0x2e321b;return Cache_1[_0xeec323(0x6e)];}});var CacheService_1=require(a3_0x2e321b(0x73));Object[a3_0x2e321b(0x6c)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x217ad4=a3_0x2e321b;return CacheService_1[_0x217ad4(0x78)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a4_0x4279(_0x456260,_0x5ec569){var _0x15bff0=a4_0x15bf();return a4_0x4279=function(_0x427981,_0x177c07){_0x427981=_0x427981-0x1d8;var _0x15e839=_0x15bff0[_0x427981];return _0x15e839;},a4_0x4279(_0x456260,_0x5ec569);}var a4_0x2b4d48=a4_0x4279;(function(_0x56d9b4,_0x59c791){var _0x1184c4=a4_0x4279,_0x2f9726=_0x56d9b4();while(!![]){try{var _0x14ac50=parseInt(_0x1184c4(0x1ec))/0x1*(-parseInt(_0x1184c4(0x1e1))/0x2)+-parseInt(_0x1184c4(0x1dc))/0x3*(-parseInt(_0x1184c4(0x1e9))/0x4)+parseInt(_0x1184c4(0x1d8))/0x5*(-parseInt(_0x1184c4(0x203))/0x6)+parseInt(_0x1184c4(0x202))/0x7+parseInt(_0x1184c4(0x1df))/0x8+parseInt(_0x1184c4(0x1e3))/0x9+-parseInt(_0x1184c4(0x1f8))/0xa*(parseInt(_0x1184c4(0x1f4))/0xb);if(_0x14ac50===_0x59c791)break;else _0x2f9726['push'](_0x2f9726['shift']());}catch(_0x5e7ecf){_0x2f9726['push'](_0x2f9726['shift']());}}}(a4_0x15bf,0x2947d));var __decorate=this&&this['__decorate']||function(_0x4a6649,_0x4c22ed,_0x33fa9f,_0x45913d){var _0x1acb25=a4_0x4279,_0x184630=arguments[_0x1acb25(0x200)],_0x3e2866=_0x184630<0x3?_0x4c22ed:_0x45913d===null?_0x45913d=Object[_0x1acb25(0x1db)](_0x4c22ed,_0x33fa9f):_0x45913d,_0x436bb2;if(typeof Reflect===_0x1acb25(0x1fe)&&typeof Reflect[_0x1acb25(0x204)]==='function')_0x3e2866=Reflect[_0x1acb25(0x204)](_0x4a6649,_0x4c22ed,_0x33fa9f,_0x45913d);else{for(var _0xff9351=_0x4a6649['length']-0x1;_0xff9351>=0x0;_0xff9351--)if(_0x436bb2=_0x4a6649[_0xff9351])_0x3e2866=(_0x184630<0x3?_0x436bb2(_0x3e2866):_0x184630>0x3?_0x436bb2(_0x4c22ed,_0x33fa9f,_0x3e2866):_0x436bb2(_0x4c22ed,_0x33fa9f))||_0x3e2866;}return _0x184630>0x3&&_0x3e2866&&Object[_0x1acb25(0x1f1)](_0x4c22ed,_0x33fa9f,_0x3e2866),_0x3e2866;},__metadata=this&&this[a4_0x2b4d48(0x1e6)]||function(_0x56e186,_0x8561b){var _0x162cd8=a4_0x2b4d48;if(typeof Reflect===_0x162cd8(0x1fe)&&typeof Reflect[_0x162cd8(0x1dd)]==='function')return Reflect[_0x162cd8(0x1dd)](_0x56e186,_0x8561b);};Object['defineProperty'](exports,a4_0x2b4d48(0x1e5),{'value':!![]}),exports[a4_0x2b4d48(0x1f0)]=void 0x0;function a4_0x15bf(){var _0x321cfc=['set','1695190YRLBfZ','store','design:type','reset','get','has','object','cache','length','clients','175175GRxOAa','54aoQfdJ','decorate','caching','93395epsaLr','prototype','hdel','getOwnPropertyDescriptor','99XkeNgR','metadata','default','2453912oruoOY','Provide','6jOoAdS','ScopeEnum','357021WQHnoP','del','__esModule','__metadata','stores','Config','28148qhodZZ','Scope','prefix','32313XMOjFx','options','hset','config','CacheService','defineProperty','@midwayjs/core','use','11GfMlMT','hget','Singleton'];a4_0x15bf=function(){return _0x321cfc;};return a4_0x15bf();}const cacheManager=require('cache-manager'),core_1=require(a4_0x2b4d48(0x1f2));let CacheService=class CacheService{constructor(){var _0x2f0d4c=a4_0x2b4d48;this['cache']=undefined,this[_0x2f0d4c(0x201)]=new Map();}[a4_0x2b4d48(0x1f3)](_0x6a6442){var _0x21fbbc=a4_0x2b4d48,_0x26b6ea,_0x39328c;if(!this['cache']){const _0x248a90=((_0x26b6ea=this[_0x21fbbc(0x1ef)][_0x21fbbc(0x1e7)])===null||_0x26b6ea===void 0x0?void 0x0:_0x26b6ea[(_0x39328c=this['config'][_0x21fbbc(0x1ff)])===null||_0x39328c===void 0x0?void 0x0:_0x39328c[_0x21fbbc(0x1de)]])||this[_0x21fbbc(0x1ef)][_0x21fbbc(0x1e7)]['file'];this[_0x21fbbc(0x1ff)]=cacheManager[_0x21fbbc(0x205)]({..._0x248a90[_0x21fbbc(0x1ed)],'store':_0x248a90[_0x21fbbc(0x1f9)]});}return!this['clients'][_0x21fbbc(0x1fd)](_0x6a6442)&&this[_0x21fbbc(0x201)][_0x21fbbc(0x1f7)](_0x6a6442,new CacheHandler(_0x6a6442,this['cache'])),this['clients'][_0x21fbbc(0x1fc)](_0x6a6442);}async[a4_0x2b4d48(0x1fb)](){var _0x54eecb=a4_0x2b4d48;return await this[_0x54eecb(0x1ff)][_0x54eecb(0x1fb)]();}};__decorate([(0x0,core_1[a4_0x2b4d48(0x1e8)])(a4_0x2b4d48(0x1ff)),__metadata(a4_0x2b4d48(0x1fa),Object)],CacheService[a4_0x2b4d48(0x1d9)],a4_0x2b4d48(0x1ef),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x2b4d48(0x1e0)])(),(0x0,core_1[a4_0x2b4d48(0x1ea)])(core_1[a4_0x2b4d48(0x1e2)][a4_0x2b4d48(0x1f6)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x2a14a9,_0x27b088){var _0xc08ac2=a4_0x2b4d48;this['cache']=_0x27b088,this[_0xc08ac2(0x1eb)]=_0x2a14a9;}async[a4_0x2b4d48(0x1e4)](_0x31ca51){var _0x38b9c4=a4_0x2b4d48;return await this['cache'][_0x38b9c4(0x1e4)](this[_0x38b9c4(0x1eb)]+':'+_0x31ca51);}async[a4_0x2b4d48(0x1f7)](_0x5890cc,_0x4a77e8,_0x4bc3b0){var _0xddcaeb=a4_0x2b4d48;return await this[_0xddcaeb(0x1ff)][_0xddcaeb(0x1f7)](this[_0xddcaeb(0x1eb)]+':'+_0x5890cc,_0x4a77e8,_0x4bc3b0);}async[a4_0x2b4d48(0x1fc)](_0x10c9c1,_0x1ae4cd){return new Promise((_0x1f41bd,_0x3dbff0)=>{var _0xbeace6=a4_0x4279;this[_0xbeace6(0x1ff)][_0xbeace6(0x1fc)](this[_0xbeace6(0x1eb)]+':'+_0x10c9c1,(_0x1dc856,_0x213ad4)=>{_0x1dc856?_0x3dbff0(_0x1dc856):_0x1f41bd(_0x213ad4||_0x1ae4cd);});});}async[a4_0x2b4d48(0x1da)](_0x1f86d0,_0x207c5c){return await this['del'](_0x1f86d0+'#'+_0x207c5c);}async[a4_0x2b4d48(0x1ee)](_0x291166,_0x532c96,_0x1df7a3,_0x2d8ded){var _0x2084da=a4_0x2b4d48;return await this[_0x2084da(0x1f7)](_0x291166+'#'+_0x532c96,_0x1df7a3,_0x2d8ded);}async[a4_0x2b4d48(0x1f5)](_0x4c96cf,_0x44b503,_0x33e37d){var _0xf5ee5e=a4_0x2b4d48;return await this[_0xf5ee5e(0x1fc)](_0x4c96cf+'#'+_0x44b503,_0x33e37d);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.19",
|
|
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": "c0b0be9c50a3dd338d1bf16e12776821a0887505"
|
|
27
27
|
}
|