@anncic-api/cache 1.1.41 → 1.1.43
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_0x1a9f6a=a0_0x55ee;(function(_0x37bdcd,_0x5c37a8){const _0x329779=a0_0x55ee,_0x517062=_0x37bdcd();while(!![]){try{const _0x5a24dd=parseInt(_0x329779(0x13d))/0x1+parseInt(_0x329779(0x13b))/0x2+-parseInt(_0x329779(0x132))/0x3*(-parseInt(_0x329779(0x134))/0x4)+-parseInt(_0x329779(0x136))/0x5+parseInt(_0x329779(0x139))/0x6+parseInt(_0x329779(0x133))/0x7+-parseInt(_0x329779(0x140))/0x8;if(_0x5a24dd===_0x5c37a8)break;else _0x517062['push'](_0x517062['shift']());}catch(_0x5bd674){_0x517062['push'](_0x517062['shift']());}}}(a0_0x14a6,0xaf278));function a0_0x14a6(){const _0x23b78a=['204OrzcUx','cache-manager-ioredis','7148230OzwJCf','memory','/runtime/.cache','4702158XiuRDC','default','2331724RaGbNg','name','1310443vMtXHj','defineProperty','appDir','14642016oXvfih','file','25239rfMRHy','2017883LfsxXd'];a0_0x14a6=function(){return _0x23b78a;};return a0_0x14a6();}function a0_0x55ee(_0x3d0eab,_0xe9a1a2){const _0x14a652=a0_0x14a6();return a0_0x55ee=function(_0x55ee02,_0x573792){_0x55ee02=_0x55ee02-0x132;let _0x3eb69d=_0x14a652[_0x55ee02];return _0x3eb69d;},a0_0x55ee(_0x3d0eab,_0xe9a1a2);}Object[a0_0x1a9f6a(0x13e)](exports,'__esModule',{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x1a9f6a(0x135));exports[a0_0x1a9f6a(0x13a)]=_0xc9ae2b=>{const _0x3eca0e=a0_0x1a9f6a;return{'cache':{'default':_0x3eca0e(0x141),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xc9ae2b[_0x3eca0e(0x13f)]+_0x3eca0e(0x138)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0xc9ae2b[_0x3eca0e(0x13c)]+':'}},'memory':{'store':_0x3eca0e(0x137),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x5bbdc9=a1_0x335d;(function(_0x24ea36,_0x7987b){var _0x248aef=a1_0x335d,_0x4e532f=_0x24ea36();while(!![]){try{var _0x5387be=-parseInt(_0x248aef(0x1d6))/0x1*(parseInt(_0x248aef(0x1e1))/0x2)+-parseInt(_0x248aef(0x1dd))/0x3+-parseInt(_0x248aef(0x1e4))/0x4*(parseInt(_0x248aef(0x1e3))/0x5)+-parseInt(_0x248aef(0x1de))/0x6*(parseInt(_0x248aef(0x1e2))/0x7)+parseInt(_0x248aef(0x1d8))/0x8*(parseInt(_0x248aef(0x1e7))/0x9)+-parseInt(_0x248aef(0x1d4))/0xa+parseInt(_0x248aef(0x1d9))/0xb;if(_0x5387be===_0x7987b)break;else _0x4e532f['push'](_0x4e532f['shift']());}catch(_0x847773){_0x4e532f['push'](_0x4e532f['shift']());}}}(a1_0x1d1c,0x7f5f7));function a1_0x335d(_0x24327b,_0xd1bf7){var _0x1d1cc1=a1_0x1d1c();return a1_0x335d=function(_0x335d84,_0xaee997){_0x335d84=_0x335d84-0x1d4;var _0xc04eac=_0x1d1cc1[_0x335d84];return _0xc04eac;},a1_0x335d(_0x24327b,_0xd1bf7);}var __decorate=this&&this[a1_0x5bbdc9(0x1e5)]||function(_0x174a72,_0x47c006,_0xd3cf0e,_0x449bc8){var _0x451f01=a1_0x5bbdc9,_0x992ba1=arguments[_0x451f01(0x1db)],_0x27db2a=_0x992ba1<0x3?_0x47c006:_0x449bc8===null?_0x449bc8=Object['getOwnPropertyDescriptor'](_0x47c006,_0xd3cf0e):_0x449bc8,_0x5ce5a5;if(typeof Reflect===_0x451f01(0x1e8)&&typeof Reflect[_0x451f01(0x1df)]===_0x451f01(0x1e6))_0x27db2a=Reflect[_0x451f01(0x1df)](_0x174a72,_0x47c006,_0xd3cf0e,_0x449bc8);else{for(var _0x29f94f=_0x174a72[_0x451f01(0x1db)]-0x1;_0x29f94f>=0x0;_0x29f94f--)if(_0x5ce5a5=_0x174a72[_0x29f94f])_0x27db2a=(_0x992ba1<0x3?_0x5ce5a5(_0x27db2a):_0x992ba1>0x3?_0x5ce5a5(_0x47c006,_0xd3cf0e,_0x27db2a):_0x5ce5a5(_0x47c006,_0xd3cf0e))||_0x27db2a;}return _0x992ba1>0x3&&_0x27db2a&&Object[_0x451f01(0x1da)](_0x47c006,_0xd3cf0e,_0x27db2a),_0x27db2a;};Object['defineProperty'](exports,a1_0x5bbdc9(0x1e0),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a1_0x5bbdc9(0x1d5)),ConfigDefault=require(a1_0x5bbdc9(0x1dc));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5bbdc9(0x1d7)]=CustomConfiguration;function a1_0x1d1c(){var _0x29b187=['17282078JkCPry','defineProperty','length','./config/config.default','405615QgbUUn','6EdfbWm','decorate','__esModule','201406PkRFyd','2043181UEtoCo','29785kqgAXC','344yatrjN','__decorate','function','1341MkAPme','object','4522630RrJFBK','@midwayjs/decorator','1RdDKIV','CustomConfiguration','23784vCsNAt'];a1_0x1d1c=function(){return _0x29b187;};return a1_0x1d1c();}
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x51ca89=a2_0x5e17;(function(_0x831fa9,_0x39955e){const _0x49bf8b=a2_0x5e17,_0x58c52a=_0x831fa9();while(!![]){try{const _0x34760d=-parseInt(_0x49bf8b(0xa8))/0x1+parseInt(_0x49bf8b(0x91))/0x2*(-parseInt(_0x49bf8b(0xa3))/0x3)+parseInt(_0x49bf8b(0x9b))/0x4+parseInt(_0x49bf8b(0xa5))/0x5+-parseInt(_0x49bf8b(0x9e))/0x6*(-parseInt(_0x49bf8b(0xa4))/0x7)+parseInt(_0x49bf8b(0x99))/0x8*(-parseInt(_0x49bf8b(0x8e))/0x9)+parseInt(_0x49bf8b(0x94))/0xa;if(_0x34760d===_0x39955e)break;else _0x58c52a['push'](_0x58c52a['shift']());}catch(_0x33d1bf){_0x58c52a['push'](_0x58c52a['shift']());}}}(a2_0x5519,0x1fe2f));function a2_0x5e17(_0x1c1459,_0x1e9b55){const _0x55190e=a2_0x5519();return a2_0x5e17=function(_0x5e174f,_0x1e996e){_0x5e174f=_0x5e174f-0x8e;let _0x270268=_0x55190e[_0x5e174f];return _0x270268;},a2_0x5e17(_0x1c1459,_0x1e9b55);}Object[a2_0x51ca89(0x90)](exports,a2_0x51ca89(0xa6),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x51ca89(0x98)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x51ca89(0x92));function a2_0x5519(){const _0x481c28=['stringify','MethodDecorator','196527scrBBB','3003enEtzY','318560TVIZKR','__esModule','getAsync','120960GdLBmG','4923wHAkDu','Cache','defineProperty','2zUnaHu','@midwayjs/core','MD5','2825590xhUyOl','REQUEST_OBJ_CTX_KEY','value','use','crypto-js','3608LFbeKg','toString','374084iswQnX','get','getApplicationContext','1734LSPEyK','set','CacheService'];a2_0x5519=function(){return _0x481c28;};return a2_0x5519();}function Cache(_0x4dabde,_0x7f6a48){return(_0x105a45,_0x279aba,_0x4d989b)=>{const _0x304d43=a2_0x5e17,_0x59dfea=_0x4d989b[_0x304d43(0x96)];return _0x4d989b[_0x304d43(0x96)]=async function(..._0x3e40d3){const _0x239e14=_0x304d43;!_0x4dabde&&(_0x4dabde=(0x0,crypto_js_1[_0x239e14(0x93)])(JSON[_0x239e14(0xa1)](_0x3e40d3))[_0x239e14(0x9a)]());let _0x564f1d=await this[core_1[_0x239e14(0x95)]]['app'][_0x239e14(0x9d)]()[_0x239e14(0xa7)](CacheService_1[_0x239e14(0xa0)]),_0x226b3a=await _0x564f1d[_0x239e14(0x97)]('MethodDecorator')[_0x239e14(0x9c)](_0x4dabde);if(_0x226b3a)return JSON['parse'](_0x226b3a);else _0x226b3a=await _0x59dfea['apply'](this,[..._0x3e40d3]),await _0x564f1d[_0x239e14(0x97)](_0x239e14(0xa2))[_0x239e14(0x9f)](_0x4dabde,JSON['stringify'](_0x226b3a),_0x7f6a48);return _0x226b3a;},_0x4d989b;};}exports[a2_0x51ca89(0x8f)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0x560b0b=a3_0xcf8f;(function(_0x2031be,_0x48e0c2){var _0x27e6d4=a3_0xcf8f,_0x3ea8d2=_0x2031be();while(!![]){try{var _0x1261f9=parseInt(_0x27e6d4(0x91))/0x1*(parseInt(_0x27e6d4(0x8d))/0x2)+parseInt(_0x27e6d4(0x90))/0x3+-parseInt(_0x27e6d4(0x98))/0x4+-parseInt(_0x27e6d4(0x92))/0x5+parseInt(_0x27e6d4(0x8e))/0x6+-parseInt(_0x27e6d4(0x9d))/0x7*(-parseInt(_0x27e6d4(0x95))/0x8)+-parseInt(_0x27e6d4(0x9b))/0x9;if(_0x1261f9===_0x48e0c2)break;else _0x3ea8d2['push'](_0x3ea8d2['shift']());}catch(_0x42e91f){_0x3ea8d2['push'](_0x3ea8d2['shift']());}}}(a3_0x160e,0x1c621));Object['defineProperty'](exports,a3_0x560b0b(0x96),{'value':!![]}),exports[a3_0x560b0b(0x8f)]=exports['Cache']=exports[a3_0x560b0b(0x9a)]=void 0x0;function a3_0xcf8f(_0x35026b,_0x3cc835){var _0x160e86=a3_0x160e();return a3_0xcf8f=function(_0xcf8f04,_0x56a7a1){_0xcf8f04=_0xcf8f04-0x8d;var _0x5e0bf2=_0x160e86[_0xcf8f04];return _0x5e0bf2;},a3_0xcf8f(_0x35026b,_0x3cc835);}var configuration_1=require(a3_0x560b0b(0x9c));Object[a3_0x560b0b(0x97)](exports,a3_0x560b0b(0x9a),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x560b0b(0x94));Object[a3_0x560b0b(0x97)](exports,a3_0x560b0b(0x93),{'enumerable':!![],'get':function(){var _0x5463c8=a3_0x560b0b;return Cache_1[_0x5463c8(0x93)];}});var CacheService_1=require(a3_0x560b0b(0x99));function a3_0x160e(){var _0x2f5f53=['Cache','./decorator/Cache','3616eTlkRA','__esModule','defineProperty','719012zVGjyX','./service/CacheService','Configuration','989262PhQviS','./configuration','2702YCKmoW','40txxRUY','772176zFYQTW','CacheService','579360ErACca','615QrWMoU','513300mxbGRr'];a3_0x160e=function(){return _0x2f5f53;};return a3_0x160e();}Object['defineProperty'](exports,a3_0x560b0b(0x8f),{'enumerable':!![],'get':function(){var _0x4dd421=a3_0x560b0b;return CacheService_1[_0x4dd421(0x8f)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x583597=a4_0x3060;(function(_0x69bb9f,_0xf1c5a9){var _0x3c6f4a=a4_0x3060,_0x205b1d=_0x69bb9f();while(!![]){try{var _0x37a105=parseInt(_0x3c6f4a(0x176))/0x1*(-parseInt(_0x3c6f4a(0x171))/0x2)+parseInt(_0x3c6f4a(0x177))/0x3*(-parseInt(_0x3c6f4a(0x161))/0x4)+-parseInt(_0x3c6f4a(0x157))/0x5+-parseInt(_0x3c6f4a(0x175))/0x6+parseInt(_0x3c6f4a(0x17a))/0x7*(parseInt(_0x3c6f4a(0x159))/0x8)+parseInt(_0x3c6f4a(0x165))/0x9*(parseInt(_0x3c6f4a(0x158))/0xa)+-parseInt(_0x3c6f4a(0x17c))/0xb*(-parseInt(_0x3c6f4a(0x168))/0xc);if(_0x37a105===_0xf1c5a9)break;else _0x205b1d['push'](_0x205b1d['shift']());}catch(_0x3b6138){_0x205b1d['push'](_0x205b1d['shift']());}}}(a4_0x39ef,0x77445));var __decorate=this&&this['__decorate']||function(_0x184744,_0x2309ab,_0x4f5610,_0x27f55c){var _0x48ecdd=a4_0x3060,_0x394258=arguments['length'],_0x286c9b=_0x394258<0x3?_0x2309ab:_0x27f55c===null?_0x27f55c=Object[_0x48ecdd(0x15a)](_0x2309ab,_0x4f5610):_0x27f55c,_0x5580c2;if(typeof Reflect===_0x48ecdd(0x156)&&typeof Reflect[_0x48ecdd(0x163)]==='function')_0x286c9b=Reflect[_0x48ecdd(0x163)](_0x184744,_0x2309ab,_0x4f5610,_0x27f55c);else{for(var _0x1420b7=_0x184744[_0x48ecdd(0x16c)]-0x1;_0x1420b7>=0x0;_0x1420b7--)if(_0x5580c2=_0x184744[_0x1420b7])_0x286c9b=(_0x394258<0x3?_0x5580c2(_0x286c9b):_0x394258>0x3?_0x5580c2(_0x2309ab,_0x4f5610,_0x286c9b):_0x5580c2(_0x2309ab,_0x4f5610))||_0x286c9b;}return _0x394258>0x3&&_0x286c9b&&Object['defineProperty'](_0x2309ab,_0x4f5610,_0x286c9b),_0x286c9b;},__metadata=this&&this[a4_0x583597(0x16a)]||function(_0x168df0,_0x528079){var _0xd146fe=a4_0x583597;if(typeof Reflect===_0xd146fe(0x156)&&typeof Reflect[_0xd146fe(0x15e)]==='function')return Reflect[_0xd146fe(0x15e)](_0x168df0,_0x528079);};Object[a4_0x583597(0x164)](exports,a4_0x583597(0x16b),{'value':!![]}),exports[a4_0x583597(0x160)]=void 0x0;const cacheManager=require(a4_0x583597(0x162)),decorator_1=require(a4_0x583597(0x16f));function a4_0x3060(_0x39feec,_0x481ca7){var _0x39efb8=a4_0x39ef();return a4_0x3060=function(_0x3060e0,_0x4b1152){_0x3060e0=_0x3060e0-0x156;var _0x5b9ad1=_0x39efb8[_0x3060e0];return _0x5b9ad1;},a4_0x3060(_0x39feec,_0x481ca7);}let CacheService=class CacheService{constructor(){var _0x448e84=a4_0x583597;this[_0x448e84(0x17e)]=undefined,this[_0x448e84(0x179)]=new Map();}['use'](_0x57defc){var _0x2e5623=a4_0x583597,_0x812de7,_0x5f1ca9;if(!this['cache']){const _0x5908d6=((_0x812de7=this[_0x2e5623(0x15d)][_0x2e5623(0x169)])===null||_0x812de7===void 0x0?void 0x0:_0x812de7[(_0x5f1ca9=this[_0x2e5623(0x15d)]['cache'])===null||_0x5f1ca9===void 0x0?void 0x0:_0x5f1ca9[_0x2e5623(0x16e)]])||this[_0x2e5623(0x15d)][_0x2e5623(0x169)][_0x2e5623(0x17b)];this[_0x2e5623(0x17e)]=cacheManager[_0x2e5623(0x17f)]({..._0x5908d6['options'],'store':_0x5908d6[_0x2e5623(0x180)]});}return!this[_0x2e5623(0x179)][_0x2e5623(0x166)](_0x57defc)&&this['clients'][_0x2e5623(0x178)](_0x57defc,new CacheHandler(_0x57defc,this['cache'])),this['clients'][_0x2e5623(0x15c)](_0x57defc);}async['reset'](){var _0x216c0e=a4_0x583597;return await this[_0x216c0e(0x17e)][_0x216c0e(0x181)]();}};__decorate([(0x0,decorator_1[a4_0x583597(0x170)])(a4_0x583597(0x17e)),__metadata(a4_0x583597(0x167),Object)],CacheService[a4_0x583597(0x174)],a4_0x583597(0x15d),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x583597(0x15f)])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum'][a4_0x583597(0x173)])],CacheService),exports[a4_0x583597(0x160)]=CacheService;function a4_0x39ef(){var _0x4103fb=['design:type','9436092vSkzAv','stores','__metadata','__esModule','length','del','default','@midwayjs/decorator','Config','65628qnOWLU','hdel','Singleton','prototype','524406LolOzF','1zEooRb','852183aDGyOt','set','clients','102424QfNznC','file','11JuMRZs','prefix','cache','caching','store','reset','object','9555JcjSPa','2521570dLOvPv','232kMYfuH','getOwnPropertyDescriptor','hset','get','config','metadata','Provide','CacheService','12ajpOkF','cache-manager','decorate','defineProperty','9EmjkbA','has'];a4_0x39ef=function(){return _0x4103fb;};return a4_0x39ef();}class CacheHandler{constructor(_0x4ed871,_0xcfd1c1){var _0x2815da=a4_0x583597;this[_0x2815da(0x17e)]=_0xcfd1c1,this[_0x2815da(0x17d)]=_0x4ed871;}async[a4_0x583597(0x16d)](_0x3a3953){var _0x4e5464=a4_0x583597;return await this[_0x4e5464(0x17e)]['del'](this[_0x4e5464(0x17d)]+':'+_0x3a3953);}async[a4_0x583597(0x178)](_0x45f59a,_0x93687e,_0x5d0679){var _0x385552=a4_0x583597;return await this['cache'][_0x385552(0x178)](this['prefix']+':'+_0x45f59a,_0x93687e,_0x5d0679);}async[a4_0x583597(0x15c)](_0x1c45b4,_0x581024){return new Promise((_0x5c450f,_0x5d72f4)=>{var _0x5c9543=a4_0x3060;this[_0x5c9543(0x17e)][_0x5c9543(0x15c)](this['prefix']+':'+_0x1c45b4,(_0x49d591,_0x14bb65)=>{_0x49d591?_0x5d72f4(_0x49d591):_0x5c450f(_0x14bb65||_0x581024);});});}async[a4_0x583597(0x172)](_0x54d7b7,_0x5c27cb){return await this['del'](_0x54d7b7+'-'+_0x5c27cb);}async[a4_0x583597(0x15b)](_0x302a47,_0x425fa6,_0x2577e5,_0xd9f2ea){return await this['set'](_0x302a47+'-'+_0x425fa6,_0x2577e5,_0xd9f2ea);}async['hget'](_0x175dee,_0x20f2c3,_0x1ce4e9){return await this['get'](_0x175dee+'-'+_0x20f2c3,_0x1ce4e9);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
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": "18fc430ef2bd116eaa2f16cda9ef729473a65146"
|
|
27
27
|
}
|