system-tracker 0.0.0-stage → 3.0.11
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/README.md +1151 -2
- package/SKILL.md +376 -0
- package/dist/auto/capture.d.ts +9 -0
- package/dist/auto/capture.js +1 -0
- package/dist/auto/classify.d.ts +16 -0
- package/dist/auto/classify.js +1 -0
- package/dist/auto/http.d.ts +3 -0
- package/dist/auto/http.js +1 -0
- package/dist/auto/naming.d.ts +18 -0
- package/dist/auto/naming.js +1 -0
- package/dist/auto/outbound.d.ts +1 -0
- package/dist/auto/outbound.js +1 -0
- package/dist/auto/patch.d.ts +3 -0
- package/dist/auto/patch.js +1 -0
- package/dist/auto/record.d.ts +4 -0
- package/dist/auto/record.js +1 -0
- package/dist/auto/samples.d.ts +28 -0
- package/dist/auto/samples.js +1 -0
- package/dist/auto/sites.d.ts +7 -0
- package/dist/auto/sites.js +1 -0
- package/dist/auto/views.d.ts +3 -0
- package/dist/auto/views.js +1 -0
- package/dist/auto/ws.d.ts +1 -0
- package/dist/auto/ws.js +1 -0
- package/dist/buckets.d.ts +4 -0
- package/dist/buckets.js +1 -0
- package/dist/dashboard/announce.d.ts +5 -0
- package/dist/dashboard/announce.js +1 -0
- package/dist/dashboard/auth.d.ts +7 -0
- package/dist/dashboard/auth.js +1 -0
- package/dist/dashboard/boards.d.ts +22 -0
- package/dist/dashboard/boards.js +1 -0
- package/dist/dashboard/config.d.ts +49 -0
- package/dist/dashboard/config.js +1 -0
- package/dist/dashboard/data.d.ts +135 -0
- package/dist/dashboard/data.js +1 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.js +1 -0
- package/dist/dashboard/insights.d.ts +98 -0
- package/dist/dashboard/insights.js +1 -0
- package/dist/dashboard/page-html.js +2 -0
- package/dist/dashboard/page.d.ts +1 -0
- package/dist/dashboard/page.js +1 -0
- package/dist/dashboard/periods.d.ts +36 -0
- package/dist/dashboard/periods.js +1 -0
- package/dist/dashboard/query.d.ts +45 -0
- package/dist/dashboard/query.js +1 -0
- package/dist/dashboard/report.d.ts +181 -0
- package/dist/dashboard/report.js +1 -0
- package/dist/dashboard/reset.d.ts +5 -0
- package/dist/dashboard/reset.js +1 -0
- package/dist/dashboard/storage.d.ts +37 -0
- package/dist/dashboard/storage.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/init.d.ts +5 -0
- package/dist/init.js +1 -0
- package/dist/logger.d.ts +2 -0
- package/dist/logger.js +1 -0
- package/dist/lua.d.ts +3 -0
- package/dist/lua.js +1 -0
- package/dist/redis.d.ts +11 -0
- package/dist/redis.js +1 -0
- package/dist/search.d.ts +1 -0
- package/dist/search.js +1 -0
- package/dist/state.d.ts +24 -0
- package/dist/state.js +1 -0
- package/dist/types.d.ts +107 -0
- package/dist/types.js +1 -0
- package/package.json +53 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x13b927=_0x27de;(function(_0xf38fdc,_0x3a694e){var _0x39f4b7={_0x195154:0x159,_0x520955:0x157,_0x24a760:0x15d,_0x18a3c5:0x162,_0x458306:0x158,_0x570156:0x161,_0x29fc76:0x165,_0x335b18:0x164,_0x4b099b:0x166,_0x621cce:0x15a,_0x3a9a94:0x167},_0x33575f=_0x27de,_0x3b9cec=_0xf38fdc();while(!![]){try{var _0x5db68a=parseInt(_0x33575f(_0x39f4b7._0x195154))/(-0x107f+-0x1*0x6df+-0x1f*-0xc1)*(parseInt(_0x33575f(_0x39f4b7._0x520955))/(-0x2543+0x46*0x5+0x23e7*0x1))+-parseInt(_0x33575f(_0x39f4b7._0x24a760))/(-0x1*-0x2b0+-0x1b68*0x1+-0x1e7*-0xd)+-parseInt(_0x33575f(_0x39f4b7._0x18a3c5))/(0xbfb+0x119d+-0x1d94)*(-parseInt(_0x33575f(_0x39f4b7._0x458306))/(-0x411+-0x144d*0x1+0x1863))+parseInt(_0x33575f(_0x39f4b7._0x570156))/(0x960+0x2283+-0x2bdd)*(parseInt(_0x33575f(_0x39f4b7._0x29fc76))/(0xc*0x115+-0x1*0xf4d+0x258))+-parseInt(_0x33575f(_0x39f4b7._0x335b18))/(-0x1*-0x21d3+-0x6a3*0x2+-0x1485)+-parseInt(_0x33575f(_0x39f4b7._0x4b099b))/(-0xca0+-0x3d*-0x39+-0xec)*(parseInt(_0x33575f(_0x39f4b7._0x621cce))/(-0xb*0x2e5+0x1*0x469+0x1b78))+-parseInt(_0x33575f(_0x39f4b7._0x3a9a94))/(0xa03+-0x1*0xc8f+0x297);if(_0x5db68a===_0x3a694e)break;else _0x3b9cec['push'](_0x3b9cec['shift']());}catch(_0x3d8816){_0x3b9cec['push'](_0x3b9cec['shift']());}}}(_0x3e41,-0xb46+0x1*0x3b935+0x6ff33));function _0x3e41(){var _0x3a12c3=['C3rHDgLZ','mJGWntGWmhr3zK5Ova','odrNAxHmALG','otm1mZDmy05vuM0','mteZnJa2ntDNrLrnr0u','nZu4rhHJrgLj','mJe1nZe5mgL3rNf3Aa','mZm5muvpz295va','mteWsevtq3zK','C3rHDfjLzgK','zgvMAw5Luhi','mZK3mtGYteTyEhnW','C2vHCMnOs2u','B3bLCNr5','x19LC01Vzhu','mZa2nJqYCMH2zvnn','ng5vtg9nBW'];_0x3e41=function(){return _0x3a12c3;};return _0x3e41();}Object[_0x13b927(0x15c)+_0x13b927(0x15f)](exports,_0x13b927(0x160)+'le',{'value':!![]}),exports[_0x13b927(0x15e)+'ys']=exports[_0x13b927(0x15b)+'s']=exports[_0x13b927(0x163)]=void(0xbb+0xa5d+-0x2c6*0x4);function _0x27de(_0xe72c16,_0x269f7c){_0xe72c16=_0xe72c16-(-0x1*-0x941+-0x30*-0x80+-0x1fea);var _0x820738=_0x3e41();var _0x518bf4=_0x820738[_0xe72c16];if(_0x27de['BvHhGK']===undefined){var _0x45e0be=function(_0x2a8853){var _0x44b3fe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x121b5d='',_0x5ad0d2='';for(var _0x24a33d=0x1d0e+0x53*0x2e+0x54*-0x86,_0x29d175,_0x97254b,_0x4794fd=0x7b7+0x1ec4+-0x267b;_0x97254b=_0x2a8853['charAt'](_0x4794fd++);~_0x97254b&&(_0x29d175=_0x24a33d%(-0x1*-0xa40+-0x68f+-0x3ad*0x1)?_0x29d175*(0x7fd+0x11fc+-0x19b9)+_0x97254b:_0x97254b,_0x24a33d++%(0xbb+0xa5d+-0xb14*0x1))?_0x121b5d+=String['fromCharCode'](0xcfe+0x37*0xa7+-0x2fe0&_0x29d175>>(-(-0x2b*0x13+-0x2*-0x19a+0x1*-0x1)*_0x24a33d&-0x22dc+0x15e2+0x40*0x34)):-0x1d59+0x4*-0x478+0x2f39){_0x97254b=_0x44b3fe['indexOf'](_0x97254b);}for(var _0xd92c46=-0x22fc+0x2*0x2e3+0x1d36*0x1,_0x540c33=_0x121b5d['length'];_0xd92c46<_0x540c33;_0xd92c46++){_0x5ad0d2+='%'+('00'+_0x121b5d['charCodeAt'](_0xd92c46)['toString'](-0x395+-0xab8+0x1*0xe5d))['slice'](-(-0x11ec+0x1293+-0xa5));}return decodeURIComponent(_0x5ad0d2);};_0x27de['tavgAm']=_0x45e0be,_0x27de['EkmIYt']={},_0x27de['BvHhGK']=!![];}var _0xcb517e=_0x820738[0x824+-0xe07+0x5e3];_0x27de['WIiYvz']!==_0xcb517e&&(_0x27de['EkmIYt']={},_0x27de['WIiYvz']=_0xcb517e);var _0x106a11=_0x27de['EkmIYt'][_0xe72c16];return _0x106a11===undefined?(_0x518bf4=_0x27de['tavgAm'](_0x518bf4),_0x27de['EkmIYt'][_0xe72c16]=_0x518bf4):_0x518bf4=_0x106a11,_0x518bf4;}var redis_1=require('./redis');Object[_0x13b927(0x15c)+_0x13b927(0x15f)](exports,_0x13b927(0x163),{'enumerable':!![],'get':function(){var _0x889743={_0x1766cf:0x163},_0x3ab7c1=_0x13b927;return redis_1[_0x3ab7c1(_0x889743._0x1766cf)];}}),Object[_0x13b927(0x15c)+_0x13b927(0x15f)](exports,_0x13b927(0x15b)+'s',{'enumerable':!![],'get':function(){var _0xad7e20={_0x2dc69e:0x15b},_0x1d3adf=_0x13b927;return redis_1[_0x1d3adf(_0xad7e20._0x2dc69e)+'s'];}});var search_1=require('./search');Object[_0x13b927(0x15c)+_0x13b927(0x15f)](exports,_0x13b927(0x15e)+'ys',{'enumerable':!![],'get':function(){var _0xca0226={_0x39b26b:0x15e},_0x25503d=_0x13b927;return search_1[_0x25503d(_0xca0226._0x39b26b)+'ys'];}});
|
package/dist/init.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AutoConfig, BuiltInType, InitOptions } from "./types";
|
|
2
|
+
export declare const BUILT_IN_TYPES: BuiltInType[];
|
|
3
|
+
export declare const OFF_BY_DEFAULT: BuiltInType[];
|
|
4
|
+
export declare function resolveConfig(options: InitOptions): AutoConfig;
|
|
5
|
+
export declare function init(options: InitOptions): void;
|
package/dist/init.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x1e8a(_0x2064b6,_0x3f2830){_0x2064b6=_0x2064b6-(-0xa*-0x2fe+0xd*-0x164+0x73*-0x17);const _0x26812e=_0x3d03();let _0x206383=_0x26812e[_0x2064b6];if(_0x1e8a['MHXTuL']===undefined){var _0x11d996=function(_0x88b2c6){const _0x41d6b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x156d9a='',_0x4f8832='';for(let _0x51fb77=-0x86*0x11+-0x7*-0x245+-0x6fd,_0x45d053,_0x2f6386,_0x286991=-0x1d9f*0x1+0x5*0x60d+-0xa2;_0x2f6386=_0x88b2c6['charAt'](_0x286991++);~_0x2f6386&&(_0x45d053=_0x51fb77%(-0xf4+-0x17*-0x17+-0x119*0x1)?_0x45d053*(-0x52c+-0x173b*0x1+-0x1ca7*-0x1)+_0x2f6386:_0x2f6386,_0x51fb77++%(0xa12+0x62e+-0x1*0x103c))?_0x156d9a+=String['fromCharCode'](0x1377*0x1+-0x146+-0x1132&_0x45d053>>(-(0x3*-0x4db+0xbf8+0x29b)*_0x51fb77&-0x2411+0x1*-0x1edf+0x2*0x217b)):0x2c9*0x3+-0x9*0x2c3+-0xc0*-0x16){_0x2f6386=_0x41d6b7['indexOf'](_0x2f6386);}for(let _0xa78bad=0x25b*-0x8+0x1a5f+-0x2f*0x29,_0x478e27=_0x156d9a['length'];_0xa78bad<_0x478e27;_0xa78bad++){_0x4f8832+='%'+('00'+_0x156d9a['charCodeAt'](_0xa78bad)['toString'](-0x2*-0x43f+-0x1*0x20b1+-0x1*-0x1843))['slice'](-(0xe*0x6d+0x417+-0x1*0xa0b));}return decodeURIComponent(_0x4f8832);};_0x1e8a['YAkfwP']=_0x11d996,_0x1e8a['npfrAU']={},_0x1e8a['MHXTuL']=!![];}const _0x3129fb=_0x26812e[-0x1f87+0x293+0x1b4*0x11];_0x1e8a['YNrSfd']!==_0x3129fb&&(_0x1e8a['npfrAU']={},_0x1e8a['YNrSfd']=_0x3129fb);const _0x52053f=_0x1e8a['npfrAU'][_0x2064b6];return _0x52053f===undefined?(_0x206383=_0x1e8a['YAkfwP'](_0x206383),_0x1e8a['npfrAU'][_0x2064b6]=_0x206383):_0x206383=_0x52053f,_0x206383;}const _0x20fe50=_0x1e8a;(function(_0x4d91b2,_0x34ddfa){const _0xf4737c={_0x49233c:0x1e4,_0x51f388:0x1c2,_0x313342:0x1cd,_0x4444d9:0x1d3,_0x2c9d3a:0x1d2,_0x5be1f5:0x1e9,_0x75ca7a:0x1cb,_0xedc96c:0x189,_0x55468a:0x202,_0x942a43:0x1cc,_0x395efe:0x1aa},_0x5b3226=_0x1e8a,_0x3c7081=_0x4d91b2();while(!![]){try{const _0x114ccb=parseInt(_0x5b3226(_0xf4737c._0x49233c))/(-0x11*-0xdd+-0x9a3+-0x509)*(-parseInt(_0x5b3226(_0xf4737c._0x51f388))/(0x51*-0x3+-0x122+0x217))+-parseInt(_0x5b3226(_0xf4737c._0x313342))/(0x122a+0x18e2+-0x2b09)*(parseInt(_0x5b3226(_0xf4737c._0x4444d9))/(-0x39*0x26+0x387+0x4f3))+-parseInt(_0x5b3226(_0xf4737c._0x2c9d3a))/(0x13*0x17+0x253a+-0x1375*0x2)+parseInt(_0x5b3226(_0xf4737c._0x5be1f5))/(0x239*-0x11+0x1fa9*-0x1+0x4578)*(parseInt(_0x5b3226(_0xf4737c._0x75ca7a))/(-0x2*-0xd4f+0x1e*0xd6+-0x1139*0x3))+-parseInt(_0x5b3226(_0xf4737c._0xedc96c))/(0x3a5*0x5+0x745+-0x1976)+parseInt(_0x5b3226(_0xf4737c._0x55468a))/(-0x1*0x1691+0x8e7*-0x1+0x1f81)+-parseInt(_0x5b3226(_0xf4737c._0x942a43))/(0x2c5+0x183b+-0x1af6)*(-parseInt(_0x5b3226(_0xf4737c._0x395efe))/(-0x1c53+-0x1*-0x18fe+0x360));if(_0x114ccb===_0x34ddfa)break;else _0x3c7081['push'](_0x3c7081['shift']());}catch(_0x160a2a){_0x3c7081['push'](_0x3c7081['shift']());}}}(_0x3d03,0x799e5+-0x5ef99+0x2*0x3311b));Object[_0x20fe50(0x195)+_0x20fe50(0x21a)](exports,_0x20fe50(0x21f)+'le',{'value':!![]}),exports[_0x20fe50(0x215)+_0x20fe50(0x200)]=exports[_0x20fe50(0x208)+_0x20fe50(0x21d)]=void(0xe27*-0x2+0x1*-0xd86+-0x29d4*-0x1),exports[_0x20fe50(0x228)+_0x20fe50(0x216)]=resolveConfig,exports[_0x20fe50(0x224)]=init;const redis_1=require('./redis'),state_1=require('./state'),logger_1=require('./logger'),http_1=require('./auto/http'),ws_1=require('./auto/ws'),capture_1=require('./auto/capture'),outbound_1=require('./auto/outbound');exports[_0x20fe50(0x208)+_0x20fe50(0x21d)]=[_0x20fe50(0x20f),_0x20fe50(0x1c7),_0x20fe50(0x211),_0x20fe50(0x225),_0x20fe50(0x192),_0x20fe50(0x1b7),_0x20fe50(0x1d9),_0x20fe50(0x1b0),_0x20fe50(0x222),_0x20fe50(0x18e)],exports[_0x20fe50(0x215)+_0x20fe50(0x200)]=[_0x20fe50(0x222),_0x20fe50(0x18e)];function _0x3d03(){const _0x4f8c70=['BM9Kzxm','AgjVyxjKige','CgfZC3DVCMq','ChrPB25Z','t1rirvi','AxnbCNjHEq','C3qGyMuGysa','zwfKEsbJywW','CxvLC3rZigK','ywnRzxiI','y29UBMvJDfu','u1nf','ihrOzsbKyxm','Bwv0Ag9KCW','t1busu9ouW','C3LZDgvTlxq','z2v0qxv0B0m','AxntDgfYDgu','AcbHCYbBiMu','yxnL','DxnLCM5HBwu','CMfMzMLJige','nti0nJmWCwjzD1nb','C2v0qxv0B0m','zw5HyMXL','C2v0vgLTzum','BMqGzgfZAgi','v0vc','B20Ixq','C2v0sw5PDe8','B3jKlG','ndG3mdiWmwj4CKT1uq','ndG3mhzzEeX1ra','mtqZmde5qMzuqxjz','B3jPBMC','Bg9NAw4Sihm','DcbVzIbKB20','DwrLzc4Gu2u','mJK3ntm0nwvWrNLZAW','ntjfA1D6A2m','igHHCYbUBYa','DxrIB3vUzeG','zwnLBNqGCMu','ChjLzML4ig0','BhvZDgvY','r1jqqW','ihjLywnOigK','C3rHDgLZlMK','ugvYvhLWzq','BwfYA1n0yxi','D2vytxm','AwDUB3jL','ChjLzML4','BMqGDgHLihi','DxjS','DhrWsg9VA3m','mKXfuuzABq','CMqUCgfZC3C','y29UBMvJDe8','igHLywrLCNm','y29UBMvJDem','nK5AAfHeqq','Aw5PDcbHBhi','zgfZAgjVyxi','EgfTCgXLlMm','y2XPzw50','yMuGysbSAxm','B29RCW','BML0','t0vnrMG','AwvZigLUy2W','yKDfD2O','z2XVyMfS','DhLWzxm','ywLUCYbZDwm','z2v0AgvY','Aw5ZDgfSBe8','DcbKyxnOyM8','z2vfCNjVCG','DgLTzunVBMy','B3bLCMf0Aw8','zxjUyw1Lige','C0HVB2TZ','DhLWzq','ruzbvuXu','zuPZqNm','ntC3nJjlt3DVEMC','CMvWBgfJzq','DhjHy2S','vKvlrey','Aw5ZDgfSBfC','DgvZDa','qLvjtfrFsu4','DhjPBq','Aw5ZDgfSBeu','C29Tzq','y29SBgfWC2u','zsb5B3vYihq','C3rYAw5N','qvbj','AcbHCYaIl3m','r1jbueHrta','Dg9mB3DLCKm','B2fYzc5Wyxm','zw5HyMXLza','t0zgx0jzx0q','B25MAwC','zc51CMWGBxu','DcbJyw4GC2u','ruXmDuW','B3bLCNr5','zMfPBhvYzxm','CNjVCKHVB2S','x1rzuevt','Dg9vChbLCKm','x19LC01Vzhu','BYbHBNLVBMu','DcaNoIC','u1rbveLd','Bg9NugfJA2e','Aw5PDa','uLbd','Cgf0AcbZDwm','Exn0zw0TDhi','CMvZB2X2zum','CgvYvhLWzq','C3DVCMqGDg8','Dxn0igjLige','DhKGC3rYAw4','igfUzcbIB2q','ig5VBI1LBxa','sevbra','yMPLy3q','Cgf0Ahm','nZi2mtC3nNrsufDYtG','Dg90ywW','DhjHy2TLCL0','D2fYBG','BMfTzsbHBMq','t1vu','CMfJA2vY','yxjKlNvZzxi','igrHC2HIB2e','v1nt','CMvKAxm','Bwf4tMfTzxm','zgvMAw5Luhi','BgvKoYbPz24','yM90CW','DcbRzwvWCYW','BMfTzq','uLzuA0u','qwz0zxi','y29UBMvJDfm','C2v0igrHC2G','DgvK','ihDOBYbJyw4','BwfW','Aw5ZDgfSBeG','w3n5C3rLBs0','zYb3AxrOB3u','BgLTAxrZ','yM9HCMqUDxm','Aw5JBhvKzxm','DgfUzgfSB24','BNmGBxvZDca','B3DUrg9TywK','ntu4ndDsELjIBKi','Cgf0Aa'];_0x3d03=function(){return _0x4f8c70;};return _0x3d03();}function typeName(_0x6c9bc0){const _0x3fcc9f={_0x438774:0x21e,_0x3d9376:0x1bf,_0x26a23c:0x203},_0x24606a=_0x20fe50;return _0x6c9bc0[_0x24606a(_0x3fcc9f._0x438774)+_0x24606a(_0x3fcc9f._0x3d9376)]()[_0x24606a(_0x3fcc9f._0x26a23c)](/:/g,'/');}function resolveOwnDomains(_0x4d671c){const _0x24d651={_0x2fed2e:0x1b1,_0x59bda7:0x20b,_0x5761e1:0x1f3,_0x4742c8:0x1a9,_0x8944a4:0x1a8,_0x3de94d:0x1ee,_0x31b41d:0x1d0,_0x3c8e88:0x1f6,_0x1333fb:0x1be,_0xef7a06:0x1ec,_0x407de4:0x1c8,_0x3d17ca:0x1a0},_0x24c227=_0x20fe50,_0x26d565={'bGEwj':function(_0x524096,_0x5731ce){return _0x524096(_0x5731ce);}};if(_0x4d671c===undefined)return[];if(!Array[_0x24c227(_0x24d651._0x2fed2e)](_0x4d671c)||_0x4d671c[_0x24c227(_0x24d651._0x59bda7)](_0x1377f3=>typeof _0x1377f3!==_0x24c227(0x20e)||!_0x1377f3[_0x24c227(0x209)]()))throw _0x26d565[_0x24c227(_0x24d651._0x5761e1)](Error,_0x24c227(_0x24d651._0x4742c8)+_0x24c227(_0x24d651._0x8944a4)+_0x24c227(_0x24d651._0x3de94d)+_0x24c227(_0x24d651._0x31b41d)+_0x24c227(_0x24d651._0x3c8e88)+_0x24c227(_0x24d651._0x1333fb)+_0x24c227(_0x24d651._0xef7a06)+_0x24c227(_0x24d651._0x407de4));return _0x4d671c[_0x24c227(_0x24d651._0x3d17ca)](_0x3deb0d=>_0x3deb0d[_0x24c227(0x209)]()[_0x24c227(0x212)+_0x24c227(0x1bf)]()[_0x24c227(0x203)](/^[a-z]+:\/\//,'')[_0x24c227(0x203)](/[/:].*$/,'')[_0x24c227(0x203)](/^\*?\.+/,''));}function resolveDashboard(_0x1e0423){const _0x3dc475={_0x10111c:0x1bb,_0x3d6f26:0x18f,_0x27ba2d:0x1eb,_0x4b93f1:0x217,_0x162172:0x1b2,_0x5c1215:0x226,_0x27997e:0x210,_0x189133:0x227,_0x3b63fa:0x1b5,_0x588fd7:0x1c4,_0x2bd55d:0x1e2,_0x1353ba:0x205,_0x1e70fa:0x209,_0x258b6e:0x203,_0x2e17fc:0x207,_0x168976:0x19a,_0x42f48c:0x201,_0x88c5d5:0x1c0,_0x15ee76:0x1ae,_0x1b911e:0x19d,_0x2a5c63:0x1a5,_0x231eab:0x1fd,_0x5ee5af:0x1c6,_0x166ed1:0x213,_0x3e50da:0x22a,_0x188564:0x1f7,_0x2a4b95:0x1c0},_0x2fb9db=_0x20fe50,_0x3f268e={'VEKDF':_0x2fb9db(_0x3dc475._0x10111c)+_0x2fb9db(_0x3dc475._0x3d6f26),'RVTkE':_0x2fb9db(_0x3dc475._0x27ba2d)+_0x2fb9db(_0x3dc475._0x4b93f1)+_0x2fb9db(_0x3dc475._0x162172)+_0x2fb9db(_0x3dc475._0x5c1215)+_0x2fb9db(_0x3dc475._0x27997e)+_0x2fb9db(_0x3dc475._0x189133)+_0x2fb9db(_0x3dc475._0x3b63fa),'eJsBs':function(_0x3cfb74,_0x572f84){return _0x3cfb74!==_0x572f84;}};if(!_0x1e0423?.[_0x2fb9db(_0x3dc475._0x588fd7)])return null;const _0x30ae0f=(_0x1e0423[_0x2fb9db(_0x3dc475._0x2bd55d)]??_0x3f268e[_0x2fb9db(_0x3dc475._0x1353ba)])[_0x2fb9db(_0x3dc475._0x1e70fa)]()[_0x2fb9db(_0x3dc475._0x258b6e)](/^\/+|\/+$/g,'');if(!_0x30ae0f||/[?#\s]/[_0x2fb9db(_0x3dc475._0x2e17fc)](_0x30ae0f))throw Error(_0x3f268e[_0x2fb9db(_0x3dc475._0x168976)]);if(_0x3f268e[_0x2fb9db(_0x3dc475._0x42f48c)](!_0x1e0423[_0x2fb9db(_0x3dc475._0x88c5d5)],!_0x1e0423[_0x2fb9db(_0x3dc475._0x15ee76)]))throw Error(_0x2fb9db(_0x3dc475._0x1b911e)+_0x2fb9db(_0x3dc475._0x2a5c63)+_0x2fb9db(_0x3dc475._0x231eab)+_0x2fb9db(_0x3dc475._0x5ee5af)+_0x2fb9db(_0x3dc475._0x166ed1)+_0x2fb9db(_0x3dc475._0x3e50da)+_0x2fb9db(_0x3dc475._0x188564));return{'path':'/'+_0x30ae0f,'username':_0x1e0423[_0x2fb9db(_0x3dc475._0x2a4b95)],'password':_0x1e0423[_0x2fb9db(_0x3dc475._0x15ee76)]};}function resolveConfig(_0x411e16){const _0x7da16a={_0x495140:0x208,_0x9e1d02:0x21d,_0x1fde05:0x204,_0x22f8be:0x215,_0x9061d5:0x200,_0x5082b9:0x1a6,_0x386ee8:0x1e0,_0x107548:0x1df,_0x345348:0x188,_0x111d5c:0x1df,_0x189eac:0x1b9,_0x1478cd:0x1ba,_0x3acf66:0x186,_0x23684f:0x1a0,_0x7a8464:0x1df,_0x3e3318:0x197,_0x285f7a:0x1f4,_0x295f41:0x18a,_0x4943ef:0x1f4,_0x1fa6a4:0x229,_0x4ae3f3:0x21b,_0x322bd5:0x1f5,_0x43abf5:0x1fc,_0x36ed74:0x1a4,_0x16776e:0x194,_0x1cdbe8:0x1dc,_0x10a712:0x20c,_0x5398d1:0x19b,_0x18a06f:0x219,_0x39df36:0x1a9,_0x1956aa:0x199,_0x3581a4:0x1eb},_0x40fb0c=_0x20fe50,_0x38d47e={'ELLuL':function(_0x535b78,_0x4914a9){return _0x535b78(_0x4914a9);}},_0x2bd5b2={};for(const _0x107cab of exports[_0x40fb0c(_0x7da16a._0x495140)+_0x40fb0c(_0x7da16a._0x9e1d02)]){_0x2bd5b2[_0x107cab]=_0x411e16[_0x40fb0c(_0x7da16a._0x1fde05)]?.[_0x107cab]??!exports[_0x40fb0c(_0x7da16a._0x22f8be)+_0x40fb0c(_0x7da16a._0x9061d5)][_0x40fb0c(_0x7da16a._0x5082b9)](_0x107cab);}return{'prefix':_0x411e16[_0x40fb0c(_0x7da16a._0x386ee8)],'ignore':{'paths':_0x411e16[_0x40fb0c(_0x7da16a._0x107548)]?.[_0x40fb0c(_0x7da16a._0x345348)]??[],'methods':(_0x411e16[_0x40fb0c(_0x7da16a._0x111d5c)]?.[_0x40fb0c(_0x7da16a._0x189eac)]??[_0x40fb0c(_0x7da16a._0x1478cd),_0x40fb0c(_0x7da16a._0x3acf66)])[_0x40fb0c(_0x7da16a._0x23684f)](_0x20485f=>_0x20485f[_0x40fb0c(0x21e)+_0x40fb0c(0x1bf)]()),'bots':_0x411e16[_0x40fb0c(_0x7da16a._0x7a8464)]?.[_0x40fb0c(_0x7da16a._0x3e3318)]??![]},'track':_0x2bd5b2,'global':{'total':_0x411e16[_0x40fb0c(_0x7da16a._0x285f7a)]?.[_0x40fb0c(_0x7da16a._0x295f41)]??!![],'perType':_0x411e16[_0x40fb0c(_0x7da16a._0x4943ef)]?.[_0x40fb0c(_0x7da16a._0x1fa6a4)]??!![]},'failures':_0x411e16[_0x40fb0c(_0x7da16a._0x4ae3f3)]??![],'types':(_0x411e16[_0x40fb0c(_0x7da16a._0x322bd5)]??[])[_0x40fb0c(_0x7da16a._0x23684f)](_0x445ca8=>({'path':_0x445ca8[_0x40fb0c(0x1ab)],'type':typeName(_0x445ca8[_0x40fb0c(0x1ff)])})),'operations':(_0x411e16[_0x40fb0c(_0x7da16a._0x43abf5)+'ns']??[])[_0x40fb0c(_0x7da16a._0x23684f)](_0x1f6cd9=>({..._0x1f6cd9,'type':typeName(_0x1f6cd9[_0x40fb0c(0x1ff)])})),'limits':{'maxNamesPerType':_0x411e16[_0x40fb0c(_0x7da16a._0x36ed74)]?.[_0x40fb0c(_0x7da16a._0x16776e)+_0x40fb0c(_0x7da16a._0x1cdbe8)]??0x5*-0x1+-0x111d+-0x2*-0x8f5,'collapseAfter':_0x411e16[_0x40fb0c(_0x7da16a._0x36ed74)]?.[_0x40fb0c(_0x7da16a._0x10a712)+_0x40fb0c(_0x7da16a._0x5398d1)]??-0x1b7d+0xbd5+0xfda},'ownDomains':_0x38d47e[_0x40fb0c(_0x7da16a._0x18a06f)](resolveOwnDomains,_0x411e16[_0x40fb0c(_0x7da16a._0x39df36)+'ns']),'name':_0x411e16[_0x40fb0c(_0x7da16a._0x1956aa)],'dashboard':resolveDashboard(_0x411e16[_0x40fb0c(_0x7da16a._0x3581a4)+'d'])};}function connect(_0x3463e4){const _0x11405a={_0x159546:0x20e,_0x4325a8:0x1b6,_0xc6bc41:0x1ed,_0x14ee44:0x1e6,_0x2ccb25:0x187,_0x4b16f6:0x1ff,_0x69d903:0x1f1,_0x3ca8c3:0x1ac,_0x100b78:0x1e8,_0x4ad1d7:0x1d8,_0x27b1d1:0x19c,_0x29175d:0x1a7},_0x1ef6bd=_0x20fe50,_0x4e7cd8={'OEMFh':function(_0x4d17eb,_0x44c5d7){return _0x4d17eb in _0x44c5d7;}};if(typeof _0x3463e4===_0x1ef6bd(_0x11405a._0x159546))return(-0xf54+0xa7c+0x4d8,redis_1[_0x1ef6bd(_0x11405a._0x4325a8)+'rl'])(_0x3463e4);if(_0x1ef6bd(_0x11405a._0xc6bc41)in _0x3463e4)return(0x77c+0x10c5*-0x1+0x1*0x949,redis_1[_0x1ef6bd(_0x11405a._0x14ee44)+_0x1ef6bd(_0x11405a._0x2ccb25)])(_0x3463e4[_0x1ef6bd(_0x11405a._0xc6bc41)],_0x3463e4[_0x1ef6bd(_0x11405a._0x4b16f6)]);if(_0x4e7cd8[_0x1ef6bd(_0x11405a._0x69d903)](_0x1ef6bd(_0x11405a._0x3ca8c3),_0x3463e4))return(-0x2020+-0x361*0x1+-0x3d*-0x95,redis_1[_0x1ef6bd(_0x11405a._0x100b78)+_0x1ef6bd(_0x11405a._0x4ad1d7)])(_0x3463e4);return(0x2085+-0x1d2+-0x1eb3,redis_1[_0x1ef6bd(_0x11405a._0x27b1d1)+_0x1ef6bd(_0x11405a._0x29175d)+'e'])(_0x3463e4);}function init(_0x1166e4){const _0x2478e8={_0x54e446:0x1de,_0x1ad17d:0x214,_0x84464d:0x1bd,_0x3c79b4:0x223,_0x28992e:0x1fa,_0x489614:0x1db,_0x43d773:0x1f0,_0x469b93:0x1ea,_0xf66752:0x1b3,_0x1f097c:0x196,_0x1010d0:0x1ce,_0x590678:0x1e0,_0x18ca29:0x20e,_0x1ee50f:0x1a6,_0x3ec4eb:0x1d7,_0x4f9087:0x22b,_0x2ca3a5:0x185,_0x413be2:0x183,_0x1087e8:0x1a3,_0x439f98:0x221,_0x586c34:0x1fb,_0x1c219f:0x1c5,_0x4e15f8:0x216,_0x5ecd8b:0x1fb,_0x24845f:0x193,_0x4cf46c:0x1c3,_0x325729:0x216,_0x2c23bc:0x1c9,_0x2f043e:0x1af,_0x4c98e1:0x1eb,_0x6d3178:0x1c0,_0x39ee44:0x18c,_0x2cb220:0x1a2,_0xc42cac:0x18b,_0x2d87da:0x1b8,_0x435323:0x1ad,_0x490b4e:0x1eb,_0x4e533d:0x1ab,_0x2e8856:0x1d4,_0x5e1a21:0x1cf,_0x24a2ad:0x220,_0x3278e9:0x19f,_0x56e9ba:0x1da,_0xe6289f:0x218,_0x316949:0x20d,_0x44b7a6:0x1c1,_0x27915f:0x1e1,_0x5dc606:0x1d6,_0x46a287:0x1b4,_0x272817:0x198,_0xa14287:0x1e7,_0x464085:0x184,_0x82f98f:0x1f2,_0x24e54e:0x1d1,_0x284d16:0x1f9,_0x4f6994:0x190,_0x514993:0x18d,_0x4d6674:0x191,_0x40abfc:0x1e5,_0x2eb694:0x1ca,_0x4b1026:0x1a1,_0x5bcf68:0x1e3,_0x48086f:0x206,_0x1ac9db:0x1fe,_0x5174fd:0x1eb,_0x20fc49:0x20a,_0x3cdda0:0x21c,_0x2e4df1:0x1bc,_0x1b8e48:0x204,_0x271ee5:0x18e,_0x822fa6:0x1f8,_0x2a68b8:0x1d5,_0x4878da:0x1ef,_0x171912:0x1dd,_0x29cfd2:0x19e},_0x26ab28=_0x20fe50,_0x516e15={'weXMs':function(_0x2bfdea,_0x452a98){return _0x2bfdea===_0x452a98;}};if(_0x516e15[_0x26ab28(_0x2478e8._0x54e446)](_0x1166e4[_0x26ab28(_0x2478e8._0x1ad17d)],![]))return;if((-0x1174+0x21f6+0x841*-0x2,state_1[_0x26ab28(_0x2478e8._0x84464d)+'d'])()){(0x7e6+0x10dd+-0x18c3,logger_1[_0x26ab28(_0x2478e8._0x3c79b4)+_0x26ab28(_0x2478e8._0x28992e)])(_0x26ab28(_0x2478e8._0x489614)+_0x26ab28(_0x2478e8._0x43d773),new Error(_0x26ab28(_0x2478e8._0x469b93)+_0x26ab28(_0x2478e8._0xf66752)+_0x26ab28(_0x2478e8._0x1f097c)+_0x26ab28(_0x2478e8._0x1010d0)));return;}const _0x1fd280=_0x1166e4[_0x26ab28(_0x2478e8._0x590678)];if(typeof _0x1fd280!==_0x26ab28(_0x2478e8._0x18ca29)||!_0x1fd280||_0x1fd280[_0x26ab28(_0x2478e8._0x1ee50f)](':'))throw Error(_0x26ab28(_0x2478e8._0x3ec4eb)+_0x26ab28(_0x2478e8._0x4f9087)+_0x26ab28(_0x2478e8._0x2ca3a5)+_0x26ab28(_0x2478e8._0x413be2)+_0x26ab28(_0x2478e8._0x1087e8)+_0x26ab28(_0x2478e8._0x439f98));if(_0x1166e4[_0x26ab28(_0x2478e8._0x586c34)+'ig'])(-0x1*0x1501+-0x228b+-0x2c7*-0x14,state_1[_0x26ab28(_0x2478e8._0x1c219f)+_0x26ab28(_0x2478e8._0x4e15f8)])(_0x1166e4[_0x26ab28(_0x2478e8._0x5ecd8b)+'ig']);const _0x38155a=resolveConfig(_0x1166e4);connect(_0x1166e4[_0x26ab28(_0x2478e8._0x24845f)]),(-0x4*-0x8c9+0x33b*-0x4+-0x1638,state_1[_0x26ab28(_0x2478e8._0x4cf46c)+_0x26ab28(_0x2478e8._0x325729)])(_0x38155a),(0x6*-0x125+0x2043+-0x1965,state_1[_0x26ab28(_0x2478e8._0x2c23bc)+_0x26ab28(_0x2478e8._0x2f043e)])(_0x1166e4);_0x38155a[_0x26ab28(_0x2478e8._0x4c98e1)+'d']&&!_0x38155a[_0x26ab28(_0x2478e8._0x4c98e1)+'d'][_0x26ab28(_0x2478e8._0x6d3178)]&&console[_0x26ab28(_0x2478e8._0x39ee44)](_0x26ab28(_0x2478e8._0x2cb220)+_0x26ab28(_0x2478e8._0xc42cac)+_0x26ab28(_0x2478e8._0x2d87da)+_0x26ab28(_0x2478e8._0x435323)+'t\x20'+_0x38155a[_0x26ab28(_0x2478e8._0x490b4e)+'d'][_0x26ab28(_0x2478e8._0x4e533d)]+(_0x26ab28(_0x2478e8._0x2e8856)+_0x26ab28(_0x2478e8._0x5e1a21)+_0x26ab28(_0x2478e8._0x24a2ad)+_0x26ab28(_0x2478e8._0x3278e9)+_0x26ab28(_0x2478e8._0x56e9ba)+_0x26ab28(_0x2478e8._0xe6289f)+_0x26ab28(_0x2478e8._0x316949)+_0x26ab28(_0x2478e8._0x44b7a6)+_0x26ab28(_0x2478e8._0x27915f)+_0x26ab28(_0x2478e8._0x5dc606)+_0x26ab28(_0x2478e8._0x46a287)+_0x26ab28(_0x2478e8._0x272817)+_0x26ab28(_0x2478e8._0xa14287)+_0x26ab28(_0x2478e8._0x464085)+_0x26ab28(_0x2478e8._0x82f98f)+_0x26ab28(_0x2478e8._0x24e54e)+_0x26ab28(_0x2478e8._0x284d16)+_0x26ab28(_0x2478e8._0x4f6994)+_0x26ab28(_0x2478e8._0x514993)+_0x26ab28(_0x2478e8._0x4d6674)+_0x26ab28(_0x2478e8._0x40abfc)+_0x26ab28(_0x2478e8._0x2eb694)));(0x1eee+0x2214*0x1+-0x4102,http_1[_0x26ab28(_0x2478e8._0x4b1026)+_0x26ab28(_0x2478e8._0x5bcf68)])(),(-0x65a+-0x1f9d+0x25f7,ws_1[_0x26ab28(_0x2478e8._0x48086f)+_0x26ab28(_0x2478e8._0x1ac9db)])();if(_0x38155a[_0x26ab28(_0x2478e8._0x5174fd)+'d'])(-0x1b61+0x1758+-0x1*-0x409,capture_1[_0x26ab28(_0x2478e8._0x20fc49)+_0x26ab28(_0x2478e8._0x3cdda0)+'s'])();if((0x1aee+-0x356+0x2*-0xbcc,state_1[_0x26ab28(_0x2478e8._0x2e4df1)+_0x26ab28(_0x2478e8._0x325729)])()?.[_0x26ab28(_0x2478e8._0x1b8e48)][_0x26ab28(_0x2478e8._0x271ee5)])(0xa1+-0x1*0xa9f+-0x1*-0x9fe,outbound_1[_0x26ab28(_0x2478e8._0x822fa6)+_0x26ab28(_0x2478e8._0x2a68b8)+_0x26ab28(_0x2478e8._0x4878da)])();(-0x8a*-0x22+0x52*-0x3a+0x2*0x20,state_1[_0x26ab28(_0x2478e8._0x171912)+_0x26ab28(_0x2478e8._0x29cfd2)])();}
|
package/dist/logger.d.ts
ADDED
package/dist/logger.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x276f91=_0x1e79;(function(_0x284a9a,_0x6357cb){const _0x426d9d={_0x1bbffd:0x1f8,_0x21241b:0x20c,_0x5de74c:0x1fc,_0x3649d2:0x203,_0x36407a:0x20d,_0x137f17:0x1f1,_0x1141b0:0x1fe,_0x1530f3:0x1ee,_0x2796cb:0x204,_0x1dbed9:0x201,_0x51cd1d:0x1ef,_0x3be6a9:0x1fd},_0x4978e3=_0x1e79,_0x5c8ddd=_0x284a9a();while(!![]){try{const _0x57894c=-parseInt(_0x4978e3(_0x426d9d._0x1bbffd))/(-0xea7+-0x536*0x1+0x13de*0x1)*(parseInt(_0x4978e3(_0x426d9d._0x21241b))/(-0x1*0x471+0x277*0xb+0x16aa*-0x1))+-parseInt(_0x4978e3(_0x426d9d._0x5de74c))/(-0x101*0xd+-0x1*0x1fc7+0x2cd7)*(-parseInt(_0x4978e3(_0x426d9d._0x3649d2))/(-0x8f*0x3f+-0x265d+0x4992))+parseInt(_0x4978e3(_0x426d9d._0x36407a))/(-0x383*-0x1+-0x4f*-0xb+-0x6e3)*(-parseInt(_0x4978e3(_0x426d9d._0x137f17))/(-0x1*-0x1ab1+0x3*0x5bb+0x2bdc*-0x1))+-parseInt(_0x4978e3(_0x426d9d._0x1141b0))/(0x17c0+-0x5f*-0x29+0xb2*-0x38)*(-parseInt(_0x4978e3(_0x426d9d._0x1530f3))/(0x1*-0x6d3+-0x49e+0xb79))+-parseInt(_0x4978e3(_0x426d9d._0x2796cb))/(-0xa4*0x7+-0x7ca+-0x17*-0x89)+-parseInt(_0x4978e3(_0x426d9d._0x1dbed9))/(0x4e8+-0x8f5*-0x4+-0x28b2)+-parseInt(_0x4978e3(_0x426d9d._0x51cd1d))/(-0xfa0+-0x25*-0xe9+-0x1202)*(-parseInt(_0x4978e3(_0x426d9d._0x3be6a9))/(0x199*-0xa+-0x1189+0x218f));if(_0x57894c===_0x6357cb)break;else _0x5c8ddd['push'](_0x5c8ddd['shift']());}catch(_0x3eb01c){_0x5c8ddd['push'](_0x5c8ddd['shift']());}}}(_0xff0d,0x4*-0x1510d+-0x2e*0xcbb+0xe4ff3));function _0x1e79(_0x36e4b9,_0x3be730){_0x36e4b9=_0x36e4b9-(0x246c+-0x20db+0x1*-0x1a3);const _0x367c25=_0xff0d();let _0x2e916f=_0x367c25[_0x36e4b9];if(_0x1e79['PZzYPD']===undefined){var _0x1e8830=function(_0x5dbbbb){const _0x19bc58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b51f8='',_0x4c1e34='';for(let _0x538cf5=-0x157a+-0x1*0xdb6+-0x8cc*-0x4,_0x22bfeb,_0x26b556,_0x121a27=0x1ce3+-0x5*0x2cc+-0x7*0x221;_0x26b556=_0x5dbbbb['charAt'](_0x121a27++);~_0x26b556&&(_0x22bfeb=_0x538cf5%(0xa09+-0x1*-0x6c4+-0x1*0x10c9)?_0x22bfeb*(0x2441+-0x49d*-0x5+-0x3b12)+_0x26b556:_0x26b556,_0x538cf5++%(0x3*0xbfb+0x9b*-0x3+-0x221c))?_0x3b51f8+=String['fromCharCode'](-0x1221+-0x2*0x1cd+0x16ba&_0x22bfeb>>(-(-0x49d+0x1bec+-0x174d)*_0x538cf5&0xfd9*0x1+-0x1a*0xe8+0x7bd)):-0x102a+0x3bb*-0x1+0x1cf*0xb){_0x26b556=_0x19bc58['indexOf'](_0x26b556);}for(let _0x3eeb34=-0x23bc+-0x10b*0x19+0x3dcf,_0x164e99=_0x3b51f8['length'];_0x3eeb34<_0x164e99;_0x3eeb34++){_0x4c1e34+='%'+('00'+_0x3b51f8['charCodeAt'](_0x3eeb34)['toString'](-0x25c2+-0x25c9+0x4b9b))['slice'](-(0x41a*0x9+0x1af*0xf+-0x3e29));}return decodeURIComponent(_0x4c1e34);};_0x1e79['bMGlRt']=_0x1e8830,_0x1e79['wleWFp']={},_0x1e79['PZzYPD']=!![];}const _0x33ec69=_0x367c25[-0x2344+0xdef+0x1555];_0x1e79['EgVaBv']!==_0x33ec69&&(_0x1e79['wleWFp']={},_0x1e79['EgVaBv']=_0x33ec69);const _0x16bcfc=_0x1e79['wleWFp'][_0x36e4b9];return _0x16bcfc===undefined?(_0x2e916f=_0x1e79['bMGlRt'](_0x2e916f),_0x1e79['wleWFp'][_0x36e4b9]=_0x2e916f):_0x2e916f=_0x16bcfc,_0x2e916f;}Object[_0x276f91(0x1f9)+_0x276f91(0x209)](exports,_0x276f91(0x1f6)+'le',{'value':!![]}),exports[_0x276f91(0x205)+_0x276f91(0x20b)]=logPackageError,exports[_0x276f91(0x205)+_0x276f91(0x202)+_0x276f91(0x1fb)]=logPackageErrorLimited;const PACKAGE_NAME=_0x276f91(0x1f4)+_0x276f91(0x1f7);function errorMeta(_0x4266d6){const _0x178dd5={_0x2bd6e1:0x1f0,_0x4aeed7:0x208,_0x38f6a5:0x206},_0xa9f339=_0x276f91;if(_0x4266d6 instanceof Error)return{'error_name':_0x4266d6[_0xa9f339(_0x178dd5._0x2bd6e1)],'error_message':_0x4266d6[_0xa9f339(_0x178dd5._0x4aeed7)],'error_stack':_0x4266d6[_0xa9f339(_0x178dd5._0x38f6a5)]};return{'error_message':String(_0x4266d6)};}function logPackageError(_0x127b3a,_0x17ac74,_0x19aca1={}){const _0x360990={_0x1a0ca9:0x1f5,_0x216028:0x200},_0x479e15=_0x276f91;console[_0x479e15(_0x360990._0x1a0ca9)]('['+PACKAGE_NAME+']\x20'+_0x127b3a+_0x479e15(_0x360990._0x216028),{'package':PACKAGE_NAME,'method':_0x127b3a,..._0x19aca1,...errorMeta(_0x17ac74)});}function _0xff0d(){const _0x2fee87=['mtq3thDkA0rN','C3vWChjLC3m','igzHAwXLza','mZe4nZuZmhzTt0DmDa','z2vfCNjVCKW','mJy3nZi0uxnSzg9A','mtG3mZq0Dxr5BwDr','Bg9NugfJA2e','C3rHy2S','z2v0','BwvZC2fNzq','B3bLCNr5','C2v0','z2vfCNjVCG','mJaYrxfYCNfe','ndq4nJbUBwL0vhi','ndGXmdrJBKvdAeO','mJq4nZfgwLzTrve','BMfTzq','ntq2yxfuueLR','ChP3u3e','A01As3i','C3LZDgvTlxq','zxjYB3i','x19LC01Vzhu','CMfJA2vY','mJC3m1boAxfirG','zgvMAw5Luhi','BM93','Aw1PDgvK','nMLlsgvUwa','odu5mLbbCuHxsa'];_0xff0d=function(){return _0x2fee87;};return _0xff0d();}const lastLogged=new Map();function logPackageErrorLimited(_0x191d39,_0x1ef496,_0x14f9e2={},_0x28f2d5=-0x1241+-0x2054+0x59a5*0x1,_0x5cbea7=Date[_0x276f91(0x1fa)]()){const _0x50ae06={_0x990697:0x207,_0x5a816d:0x20a,_0xe61be1:0x1f2,_0xe7632e:0x1ff,_0x16d256:0x1f3},_0x2313d1=_0x276f91,_0x4e834a={'pzwSq':function(_0x5bb684,_0x481a17){return _0x5bb684-_0x481a17;},'kMZKr':function(_0x2cc4f2,_0x4a4e7c,_0x40b22d,_0x9e32fd){return _0x2cc4f2(_0x4a4e7c,_0x40b22d,_0x9e32fd);}},_0x470e89=lastLogged[_0x2313d1(_0x50ae06._0x990697)](_0x191d39)??{'at':-Infinity,'suppressed':0x0};lastLogged[_0x2313d1(_0x50ae06._0x5a816d)](_0x191d39,_0x470e89);if(_0x4e834a[_0x2313d1(_0x50ae06._0xe61be1)](_0x5cbea7,_0x470e89['at'])<_0x28f2d5){_0x470e89[_0x2313d1(_0x50ae06._0xe7632e)+'ed']++;return;}const _0x58cf38=_0x470e89[_0x2313d1(_0x50ae06._0xe7632e)+'ed'];_0x470e89['at']=_0x5cbea7,_0x470e89[_0x2313d1(_0x50ae06._0xe7632e)+'ed']=0x1b4+0x1878+-0x1a2c,_0x4e834a[_0x2313d1(_0x50ae06._0x16d256)](logPackageError,_0x191d39,_0x1ef496,_0x58cf38?{..._0x14f9e2,'suppressed':_0x58cf38}:_0x14f9e2);}
|
package/dist/lua.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const INCRBY_WITH_EXPIRE = "\nlocal v = redis.call(\"INCRBY\", KEYS[1], ARGV[1])\nif v == tonumber(ARGV[1]) then\n redis.call(\"EXPIRE\", KEYS[1], tonumber(ARGV[2]))\nend\nreturn v\n";
|
|
2
|
+
export declare const DECRBY_OR_DELETE = "\nif redis.call(\"EXISTS\", KEYS[1]) == 0 then return 0 end\nlocal v = redis.call(\"DECRBY\", KEYS[1], ARGV[1])\nif v <= 0 then redis.call(\"DEL\", KEYS[1]) end\nreturn v\n";
|
|
3
|
+
export declare const PUSH_UNIQUE = "\nlocal repeats = 1\nfor _, v in ipairs(redis.call(\"LRANGE\", KEYS[1], 0, -1)) do\n local ok, d = pcall(cjson.decode, v)\n if ok and type(d) == \"table\" and d.sig == ARGV[2] then\n repeats = repeats + (tonumber(d.repeats) or 1)\n redis.call(\"LREM\", KEYS[1], 0, v)\n end\nend\nlocal item = ARGV[1]\nif repeats > 1 then item = '{\"repeats\":' .. repeats .. ',' .. string.sub(ARGV[1], 2) end\nredis.call(\"LPUSH\", KEYS[1], item)\nredis.call(\"LTRIM\", KEYS[1], 0, tonumber(ARGV[3]) - 1)\nredis.call(\"EXPIRE\", KEYS[1], tonumber(ARGV[4]))\nreturn repeats\n";
|
package/dist/lua.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x32c8eb=_0x352a;function _0x3bf2(){var _0x5ee72d=['ksKkCMv0Dxi','ksa9psaWihq','mcWGDg9UDw0','cMXVy2fSihy','Dg9UDw1Izxi','ieTfwvnBmv0','idekzM9Yif8','ihrVBNvTyMu','psb0B251Bwi','mteXmtaXmZrmAhHgzfO','kqPPzIb2idW','icbLBMqkzw4','iefsr1zBmv0','zsWGDIKkica','kqPPzIb2id0','uL9eruXfveu','BsKkCMvKAxm','lMnHBgWOiKW','zgvMAw5Luhi','CgfPCNmOCMu','Aw5NlNn1yIG','zcb0ExbLkgq','cMXVy2fSihi','psbbuKDwwZi','ota0oty4mfHVwwrjBG','zgLZlMnHBgW','lI4GCMvWzwe','ufvtsf9vtKK','zwf0CYaRicG','mZCXmdaWrwzPDw1S','mv0PihrOzw4','zxiOqvjhvLS','ueLsrsiSieS','mZq4mZe4nefVC0zIuq','AxrLBsa9iee','xsb0AgvUcIa','idiPigvUzaO','kqPYzwrPCY4','B24UzgvJB2q','yMXLiIbHBMq','y2fSBcHJANm','CYa+ideGDgG','CY5JywXSkci','igqUC2LNid0','icaGCMvWzwe','lMnHBgWOiKK','DhmGlI4GjYW','ndGWndu2m3nYwg9Hsa','tKnsqLKIlca','runsqLKIlca','sciSieTfwvm','revduKjzx08','CMvKAxmUy2e','wfbjuKuIlca','ihjLzgLZlMm','s0vzu1SXxsW','zIbYzxbLyxq','AwyGB2SGyw4','xsKPcMvUzaO','lcaWlcb2kqO','AYWGzca9iha','id0GCMvKAxm','CMv0DxjUihy','kgqUCMvWzwe','rvLtwZfDlca','x19LC01Vzhu','cIaGCMvKAxm','kcjmuKvniIW','ndK5me5JsLjrrW','kqOGicaGCMu','svrix0vyueK','psaWihrOzw4','zw4GAxrLBsa','BIbYzxbLyxq','CM4GmcbLBMq','rvHju1rtiIW','kefsr1zBnf0','vfjjtsiSieS','mv0PigvUzaO','AgvUihjLDhu','msKPigrVcIa','CIHbuKDwwZi','igXVy2fSig8','mtbZsNLgEvq','DhmGpsbYzxa','uKDwwZfDcMK','kcjmuKfor0u','psaNEYjYzxa','mte3mJC3m2vZDxbAzW','qvjhvLSXxsW','zxbLyxrZid0','ksa9psaIDge','mv0SidaSic0','su5duKjzx1C','y2fSBcGIrvG','BgWOiKXqvvm','wZnDksaTide','DhmPig9Yide','lcb2igLUigK','lMnHBgWOiKu','uvvf','cMLMihjLzgK','ywXSkcjeruW','zwf0CYi6jYa','ndyZodzKAhnUtKe','yMvYkefsr1y','mNzXt2HsDW','lMnHBgWOiKq','B3bLCNr5','wZfDlcbPDgu','zaPSB2nHBca','iIWGs0vzu1S','jYaUlIbZDhi'];_0x3bf2=function(){return _0x5ee72d;};return _0x3bf2();}(function(_0x4915bb,_0x3d7ab7){var _0x24ccaa={_0x35cf18:0x25c,_0x1cc453:0x1fd,_0x535087:0x233,_0x773ee6:0x225,_0x21fc56:0x257,_0xf7deaa:0x20d,_0x2de318:0x221,_0x35aa5e:0x21c,_0x7b568f:0x1fb,_0x18ea31:0x248},_0x1e47ec=_0x352a,_0x3afae8=_0x4915bb();while(!![]){try{var _0x2cc7f5=-parseInt(_0x1e47ec(_0x24ccaa._0x35cf18))/(0xf16+0x6cd+0x2*-0xaf1)+-parseInt(_0x1e47ec(_0x24ccaa._0x1cc453))/(0x5cb+-0x2b*0x3b+0x108*0x4)*(parseInt(_0x1e47ec(_0x24ccaa._0x535087))/(0x22b7+0xd4a+-0x2ffe))+parseInt(_0x1e47ec(_0x24ccaa._0x773ee6))/(0xb*-0xa3+-0x23f5+0x1*0x2afa)*(-parseInt(_0x1e47ec(_0x24ccaa._0x21fc56))/(0x2540+0xb58+-0x3093))+parseInt(_0x1e47ec(_0x24ccaa._0xf7deaa))/(0x26b9+-0x569*0x5+-0xba6)+-parseInt(_0x1e47ec(_0x24ccaa._0x2de318))/(-0x5*-0x541+-0x4b0*0x1+-0x158e)+parseInt(_0x1e47ec(_0x24ccaa._0x35aa5e))/(0xadf+-0x1235+0x75e)+parseInt(_0x1e47ec(_0x24ccaa._0x7b568f))/(0x9*0x377+0x1*-0x1279+0xb*-0x127)*(parseInt(_0x1e47ec(_0x24ccaa._0x18ea31))/(0x4c2+-0x1ae*-0x1+-0x666*0x1));if(_0x2cc7f5===_0x3d7ab7)break;else _0x3afae8['push'](_0x3afae8['shift']());}catch(_0x12dca7){_0x3afae8['push'](_0x3afae8['shift']());}}}(_0x3bf2,0x2664d*-0x9+-0x3e239*-0x7+0x1*0x97429));function _0x352a(_0x1833eb,_0x48d8bc){_0x1833eb=_0x1833eb-(0x1*0x1867+-0x6cc+-0xfa8);var _0x2fbaff=_0x3bf2();var _0x484136=_0x2fbaff[_0x1833eb];if(_0x352a['jYzynV']===undefined){var _0x3b1598=function(_0x4df111){var _0x3bbcab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4219b5='',_0x37fd6c='';for(var _0x18413c=0x3*0xb3+0xd60+-0x11*0xe9,_0x144e0b,_0x3f42c1,_0x3d1a8b=-0x14+-0x8f*-0x13+-0xa89;_0x3f42c1=_0x4df111['charAt'](_0x3d1a8b++);~_0x3f42c1&&(_0x144e0b=_0x18413c%(-0x2281+-0x92c*-0x4+-0x5*0x6f)?_0x144e0b*(0xb31+0x2453+-0x2f44)+_0x3f42c1:_0x3f42c1,_0x18413c++%(0x1e82+0x1bf8+-0x3a76))?_0x4219b5+=String['fromCharCode'](-0x1029+0x264d+-0x1525&_0x144e0b>>(-(-0x4*-0x58b+-0x1bfb+0x5d1)*_0x18413c&0x23be+0x1*-0x108a+-0x132e)):-0xad7+-0x2*-0x472+-0x1*-0x1f3){_0x3f42c1=_0x3bbcab['indexOf'](_0x3f42c1);}for(var _0x36c2c4=0x15*0x6d+-0x21f+-0x6d2,_0x2397c1=_0x4219b5['length'];_0x36c2c4<_0x2397c1;_0x36c2c4++){_0x37fd6c+='%'+('00'+_0x4219b5['charCodeAt'](_0x36c2c4)['toString'](0x1*0x7c1+-0x2255+0x1aa4))['slice'](-(-0x89c+-0xc*0x1af+-0x41e*-0x7));}return decodeURIComponent(_0x37fd6c);};_0x352a['WodSOf']=_0x3b1598,_0x352a['VmzgXk']={},_0x352a['jYzynV']=!![];}var _0x404382=_0x2fbaff[0xc49+-0x1236+0x5ed];_0x352a['BpuIyd']!==_0x404382&&(_0x352a['VmzgXk']={},_0x352a['BpuIyd']=_0x404382);var _0x4f58d1=_0x352a['VmzgXk'][_0x1833eb];return _0x4f58d1===undefined?(_0x484136=_0x352a['WodSOf'](_0x484136),_0x352a['VmzgXk'][_0x1833eb]=_0x484136):_0x484136=_0x4f58d1,_0x484136;}Object[_0x32c8eb(0x216)+_0x32c8eb(0x1ff)](exports,_0x32c8eb(0x245)+'le',{'value':!![]}),exports[_0x32c8eb(0x21f)+_0x32c8eb(0x1f7)]=exports[_0x32c8eb(0x237)+_0x32c8eb(0x213)]=exports[_0x32c8eb(0x261)+_0x32c8eb(0x24a)+'RE']=void(-0x1ff1+0x36f+-0x59*-0x52),exports[_0x32c8eb(0x261)+_0x32c8eb(0x24a)+'RE']=_0x32c8eb(0x207)+_0x32c8eb(0x241)+_0x32c8eb(0x231)+_0x32c8eb(0x234)+_0x32c8eb(0x23b)+_0x32c8eb(0x210)+_0x32c8eb(0x212)+_0x32c8eb(0x20c)+_0x32c8eb(0x223)+_0x32c8eb(0x222)+_0x32c8eb(0x246)+_0x32c8eb(0x1f6)+_0x32c8eb(0x239)+_0x32c8eb(0x23b)+_0x32c8eb(0x20b)+_0x32c8eb(0x255)+_0x32c8eb(0x23e)+_0x32c8eb(0x242)+'\x0a',exports[_0x32c8eb(0x237)+_0x32c8eb(0x213)]=_0x32c8eb(0x1f8)+_0x32c8eb(0x22e)+_0x32c8eb(0x24f)+_0x32c8eb(0x209)+_0x32c8eb(0x205)+_0x32c8eb(0x253)+_0x32c8eb(0x24e)+_0x32c8eb(0x207)+_0x32c8eb(0x241)+_0x32c8eb(0x1fe)+_0x32c8eb(0x235)+_0x32c8eb(0x23b)+_0x32c8eb(0x210)+_0x32c8eb(0x20e)+_0x32c8eb(0x24b)+_0x32c8eb(0x23a)+_0x32c8eb(0x1f9)+_0x32c8eb(0x202)+_0x32c8eb(0x252)+_0x32c8eb(0x242)+'\x0a',exports[_0x32c8eb(0x21f)+_0x32c8eb(0x1f7)]=_0x32c8eb(0x21a)+_0x32c8eb(0x25e)+_0x32c8eb(0x20a)+_0x32c8eb(0x1f5)+_0x32c8eb(0x217)+_0x32c8eb(0x21d)+_0x32c8eb(0x25a)+_0x32c8eb(0x202)+_0x32c8eb(0x260)+_0x32c8eb(0x254)+_0x32c8eb(0x256)+_0x32c8eb(0x240)+_0x32c8eb(0x22c)+_0x32c8eb(0x22a)+_0x32c8eb(0x211)+_0x32c8eb(0x23d)+_0x32c8eb(0x219)+_0x32c8eb(0x25f)+_0x32c8eb(0x22b)+_0x32c8eb(0x22f)+_0x32c8eb(0x21b)+_0x32c8eb(0x227)+_0x32c8eb(0x230)+_0x32c8eb(0x258)+_0x32c8eb(0x220)+_0x32c8eb(0x208)+_0x32c8eb(0x243)+_0x32c8eb(0x1f4)+_0x32c8eb(0x249)+_0x32c8eb(0x21d)+_0x32c8eb(0x247)+_0x32c8eb(0x209)+_0x32c8eb(0x23f)+_0x32c8eb(0x20f)+_0x32c8eb(0x201)+_0x32c8eb(0x226)+_0x32c8eb(0x259)+_0x32c8eb(0x23c)+_0x32c8eb(0x22d)+_0x32c8eb(0x24c)+_0x32c8eb(0x25b)+_0x32c8eb(0x1fa)+_0x32c8eb(0x21e)+_0x32c8eb(0x232)+_0x32c8eb(0x203)+_0x32c8eb(0x218)+_0x32c8eb(0x25d)+_0x32c8eb(0x228)+_0x32c8eb(0x238)+_0x32c8eb(0x263)+_0x32c8eb(0x236)+_0x32c8eb(0x200)+_0x32c8eb(0x214)+_0x32c8eb(0x215)+_0x32c8eb(0x251)+_0x32c8eb(0x244)+_0x32c8eb(0x206)+_0x32c8eb(0x1fc)+_0x32c8eb(0x1f3)+_0x32c8eb(0x229)+_0x32c8eb(0x262)+_0x32c8eb(0x224)+_0x32c8eb(0x244)+_0x32c8eb(0x208)+_0x32c8eb(0x250)+_0x32c8eb(0x204)+_0x32c8eb(0x24d)+'s\x0a';
|
package/dist/redis.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Redis, { Cluster } from "ioredis";
|
|
2
|
+
import { InitOptions, RedisStandalone, RedisCluster } from "./types";
|
|
3
|
+
export type RedisClient = Redis | Cluster;
|
|
4
|
+
export declare const statRedis: RedisClient;
|
|
5
|
+
export declare function connectStandalone(cfg: RedisStandalone): RedisClient;
|
|
6
|
+
export declare function connectUrl(url: string): RedisClient;
|
|
7
|
+
export declare function connectCluster(cfg: RedisCluster): RedisClient;
|
|
8
|
+
export declare function connectObject(redisObject: RedisClient, redisType: "standalone" | "cluster"): RedisClient;
|
|
9
|
+
export declare const statis: {
|
|
10
|
+
init(options: InitOptions): void;
|
|
11
|
+
};
|
package/dist/redis.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x5d1f92=_0x4e3f;(function(_0x410564,_0x580fee){const _0x238dba={_0x3b2815:0x20f,_0xe3d679:0x1fc,_0x585de4:0x1ff,_0x5ed6f3:0x204,_0x3e3f29:0x202,_0x164633:0x211,_0x21b885:0x21c,_0xdb68d3:0x1fd},_0x58f925=_0x4e3f,_0x12d5fb=_0x410564();while(!![]){try{const _0x2664df=-parseInt(_0x58f925(_0x238dba._0x3b2815))/(0x24e8+0x1549+-0x3a30)+-parseInt(_0x58f925(_0x238dba._0xe3d679))/(0xd34*-0x1+-0x1335+0xc1*0x2b)+parseInt(_0x58f925(_0x238dba._0x585de4))/(-0xb*-0x13a+0x22*0x100+-0x2f7b)+parseInt(_0x58f925(_0x238dba._0x5ed6f3))/(-0x623+0x2fe+0x329*0x1)+-parseInt(_0x58f925(_0x238dba._0x3e3f29))/(-0x4*-0x54a+-0x3*0xb06+-0x1*-0xbef)+-parseInt(_0x58f925(_0x238dba._0x164633))/(0xd*-0x2c7+-0xaa9*0x1+0x2eca)*(-parseInt(_0x58f925(_0x238dba._0x21b885))/(0x101b+0x20*-0x49+-0x14*0x59))+-parseInt(_0x58f925(_0x238dba._0xdb68d3))/(0x6*-0x1bd+0x162f+-0x1*0xbb9);if(_0x2664df===_0x580fee)break;else _0x12d5fb['push'](_0x12d5fb['shift']());}catch(_0x50a086){_0x12d5fb['push'](_0x12d5fb['shift']());}}}(_0x1a59,-0x6e26*-0xc+0x138ada+-0xb0636));var __importDefault=this&&this[_0x5d1f92(0x20c)+_0x5d1f92(0x203)]||function(_0x254ce3){const _0x321195={_0x188353:0x20d},_0x58f832=_0x5d1f92;return _0x254ce3&&_0x254ce3[_0x58f832(_0x321195._0x188353)+'le']?_0x254ce3:{'default':_0x254ce3};};Object[_0x5d1f92(0x21f)+_0x5d1f92(0x1f9)](exports,_0x5d1f92(0x20d)+'le',{'value':!![]}),exports[_0x5d1f92(0x22c)]=exports[_0x5d1f92(0x228)+'s']=void(0x2659+-0xf87+0xb69*-0x2),exports[_0x5d1f92(0x20b)+_0x5d1f92(0x233)+'e']=connectStandalone,exports[_0x5d1f92(0x20a)+'rl']=connectUrl,exports[_0x5d1f92(0x218)+_0x5d1f92(0x217)]=connectCluster,exports[_0x5d1f92(0x1ee)+_0x5d1f92(0x1f5)]=connectObject;function _0x4e3f(_0x51fdc8,_0x46486d){_0x51fdc8=_0x51fdc8-(0x86f+0x2*-0xffb+0x1971*0x1);const _0x5223c7=_0x1a59();let _0x24f82e=_0x5223c7[_0x51fdc8];if(_0x4e3f['VVNAhC']===undefined){var _0x12870d=function(_0x46858a){const _0x1b0c4d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe32e16='',_0x2f528c='';for(let _0x4fe67e=0x1*-0xcfb+-0x6c2+0x1f*0xa3,_0x38d265,_0x4a29bf,_0x10f0f3=-0x137b*0x1+-0x1093+0x1a*0x163;_0x4a29bf=_0x46858a['charAt'](_0x10f0f3++);~_0x4a29bf&&(_0x38d265=_0x4fe67e%(0xdc3+-0x2632+0x1873*0x1)?_0x38d265*(0x133*-0x10+-0x247+0x15b7)+_0x4a29bf:_0x4a29bf,_0x4fe67e++%(-0x3b*0x26+-0x1c3d+0x1*0x2503))?_0xe32e16+=String['fromCharCode'](0x281+-0x243f+0x22bd&_0x38d265>>(-(-0x1405+-0x23f8+0x37ff)*_0x4fe67e&0x705+0x94e*-0x1+0x24f)):0x25c*-0x8+0x2*-0x995+-0xcae*-0x3){_0x4a29bf=_0x1b0c4d['indexOf'](_0x4a29bf);}for(let _0x5cf8c8=-0x1*-0x7a5+0x185*-0xd+-0x14*-0x9b,_0x261b6e=_0xe32e16['length'];_0x5cf8c8<_0x261b6e;_0x5cf8c8++){_0x2f528c+='%'+('00'+_0xe32e16['charCodeAt'](_0x5cf8c8)['toString'](0x1dc6*0x1+0x2*0x1091+-0x3ed8))['slice'](-(-0xfd*-0x7+0x11b3+-0x189c));}return decodeURIComponent(_0x2f528c);};_0x4e3f['DCBpKJ']=_0x12870d,_0x4e3f['LBQEHT']={},_0x4e3f['VVNAhC']=!![];}const _0x1a50da=_0x5223c7[0x1*-0x17af+0x1*-0xf75+-0xf*-0x29c];_0x4e3f['NOjfzF']!==_0x1a50da&&(_0x4e3f['LBQEHT']={},_0x4e3f['NOjfzF']=_0x1a50da);const _0x4091bc=_0x4e3f['LBQEHT'][_0x51fdc8];return _0x4091bc===undefined?(_0x24f82e=_0x4e3f['DCBpKJ'](_0x24f82e),_0x4e3f['LBQEHT'][_0x51fdc8]=_0x24f82e):_0x24f82e=_0x4091bc,_0x24f82e;}const ioredis_1=__importDefault(require('ioredis')),state_1=require('./state'),logger_1=require('./logger'),init_1=require('./init');function _0x1a59(){const _0x49a4c0=['AxndBhvZDgu','zgvMyxvSDa','zw5K','z2v0uMvKAxm','lY8GB3iGCMu','yMLUza','DgfUzgfSB24','qMDQzfe','C3rHBMrHBg8','BgL6zwq','DcbPBML0Awe','y29UBMvJDe8','z2v0','DgvZDa','C3rHDhvZ','BwfW','y2f0y2G','EgLTy3q','yMPLy3q','svnQsgC','zNvUy3rPB24','y2G6igv4Cgu','B3bLCNr5','DgHLBG','C3rLCG','mtC5otqWmLbyC2Lssq','mZCXmtuYteLAthjw','Bg9NugfJA2e','mZm0mZq3m0r3BgHsvq','CMvKAxnFB2i','C2v0','odeZodK1vffcwujL','rgvMyxvSDa','mtq3ndy1nLDhvwrbuG','BM9Kzxm','vuf5AfO','q2X1C3rLCG','sK1VAhO','tcbTDxn0ihm','y29UBMvJDfu','y29UBMvJDfm','x19PBxbVCNq','x19LC01Vzhu','y3rLzcbZDge','mtiYndqWnwD5zgLKDG','Cg9YDa','mtC1mKzHz1LrBa','yxbWBhK','CgfZC3DVCMq','Ag9ZDa','CMvKAxmGvvi','y2X1C3rLCG','BhvZDgvY','y29UBMvJDem','y3rLzcbJBhu','te1MB2i','C2v0uMvKAxm','nde4nZrVrNzcDe4','AMvJDcb0Exa','BuP1v04','zgvMAw5Luhi','AcbYzwrPCZO','DgfYDcb3Axq','DxnLCM5HBwu','Aw5PDa','EKHzEue','CMvKAxmGBM8','zgLZCZOVlW','BMrHBg9Uzq','C3rHDfjLzgK','zsbTAxnTyxq','z2vfCNjVCG','BgvUz3rO','C3rHDgLZ'];_0x1a59=function(){return _0x49a4c0;};return _0x1a59();}function getAuth(_0x27cde7){const _0x11f2de={_0x22e2f2:0x222,_0x3463eb:0x213},_0x4aa1d6=_0x5d1f92,_0x311318={};if(_0x27cde7[_0x4aa1d6(_0x11f2de._0x22e2f2)]!==undefined)_0x311318[_0x4aa1d6(_0x11f2de._0x22e2f2)]=_0x27cde7[_0x4aa1d6(_0x11f2de._0x22e2f2)];if(_0x27cde7[_0x4aa1d6(_0x11f2de._0x3463eb)]!==undefined)_0x311318[_0x4aa1d6(_0x11f2de._0x3463eb)]=_0x27cde7[_0x4aa1d6(_0x11f2de._0x3463eb)];return _0x311318;}function assertRedisType(_0x57538b,_0x3e5c3c){const _0x2ff7ad={_0x2b65f7:0x200,_0x1b55ca:0x21d,_0x485a84:0x229,_0x358489:0x1f8,_0x2661b0:0x219,_0x1c07a0:0x1fb,_0xf702f1:0x22d,_0x38fe74:0x216,_0x4c0a6a:0x1f4,_0x2dde38:0x1eb,_0x176833:0x200,_0x158783:0x21d,_0x31d5e0:0x229,_0x2471ec:0x20e,_0x7a1797:0x227},_0x4f9a21=_0x5d1f92,_0x44c0e8={'ximct':_0x4f9a21(_0x2ff7ad._0x2b65f7)+_0x4f9a21(_0x2ff7ad._0x1b55ca)+_0x4f9a21(_0x2ff7ad._0x485a84)+_0x4f9a21(_0x2ff7ad._0x358489)+_0x4f9a21(_0x2ff7ad._0x2661b0)+_0x4f9a21(_0x2ff7ad._0x1c07a0)},_0x2732dd=_0x57538b[_0x4f9a21(_0x2ff7ad._0xf702f1)+'r'];if(_0x3e5c3c===_0x4f9a21(_0x2ff7ad._0x38fe74)&&!_0x2732dd)throw Error(_0x44c0e8[_0x4f9a21(_0x2ff7ad._0x4c0a6a)]);if(_0x3e5c3c===_0x4f9a21(_0x2ff7ad._0x2dde38)+'ne'&&_0x2732dd)throw Error(_0x4f9a21(_0x2ff7ad._0x176833)+_0x4f9a21(_0x2ff7ad._0x158783)+_0x4f9a21(_0x2ff7ad._0x31d5e0)+_0x4f9a21(_0x2ff7ad._0x358489)+_0x4f9a21(_0x2ff7ad._0x2471ec)+_0x4f9a21(_0x2ff7ad._0x7a1797));}function fallbackRedisValue(_0x2221e7){const _0x174e1b={_0xdc1ff2:0x22d,_0x201ae6:0x1f1,_0x2bf2dc:0x22f,_0x28f113:0x21a},_0x4adf20={_0x22898f:0x1fe,_0x5bf165:0x22a,_0x410d6b:0x228,_0x1d613d:0x21e,_0x3a5f5a:0x225,_0x1a9be1:0x1ed,_0x2f2381:0x1ec},_0x3b5a92=_0x5d1f92,_0x359937={'mJuWN':function(_0x16b79f,_0x4ed446){return _0x16b79f(_0x4ed446);},'LMfob':_0x3b5a92(_0x174e1b._0xdc1ff2)+'r'};if(_0x2221e7===_0x3b5a92(_0x174e1b._0x201ae6))return _0x3b5a92(_0x174e1b._0x2bf2dc);if(_0x2221e7===_0x359937[_0x3b5a92(_0x174e1b._0x28f113)])return![];return(..._0x42362d)=>{const _0x5ed3c9=_0x3b5a92;return(-0xbc3*-0x1+-0x1c*-0x1e+-0xf0b,logger_1[_0x5ed3c9(_0x4adf20._0x22898f)+_0x5ed3c9(_0x4adf20._0x5bf165)])(_0x5ed3c9(_0x4adf20._0x410d6b)+'s.'+_0x359937[_0x5ed3c9(_0x4adf20._0x1d613d)](String,_0x2221e7),new Error(_0x5ed3c9(_0x4adf20._0x3a5f5a)+_0x5ed3c9(_0x4adf20._0x1a9be1)+_0x5ed3c9(_0x4adf20._0x2f2381)),{'property':String(_0x2221e7)}),null;};}function wrapRedisMethod(_0x101b64,_0x331f7,_0x69c432){const _0x3296e8={_0x3229ad:0x212,_0x24c5c4:0x1fa,_0x5201e7:0x1f7,_0x20f76f:0x1f3,_0x44095a:0x1fe,_0x35ef0b:0x22a,_0x7942de:0x228,_0x31cb25:0x22b},_0x38318c={_0x50252c:0x1fe,_0x4e8afd:0x22a,_0xcafb09:0x228,_0x41ceb4:0x208,_0x1dfbdc:0x22b},_0x587cab={'JMohz':function(_0x4d762a,_0x4edf9f){return _0x4d762a(_0x4edf9f);}};return(..._0x27d79e)=>{const _0x5bfe55=_0x4e3f;try{const _0x284daf=_0x69c432[_0x5bfe55(_0x3296e8._0x3229ad)](_0x101b64,_0x27d79e);if(_0x284daf&&typeof _0x284daf[_0x5bfe55(_0x3296e8._0x24c5c4)]===_0x5bfe55(_0x3296e8._0x5201e7))return _0x284daf[_0x5bfe55(_0x3296e8._0x20f76f)](_0x111309=>{const _0x459aaa=_0x5bfe55;return(-0x13cb+-0x2525+-0x2*-0x1c78,logger_1[_0x459aaa(_0x38318c._0x50252c)+_0x459aaa(_0x38318c._0x4e8afd)])(_0x459aaa(_0x38318c._0xcafb09)+'s.'+String(_0x331f7),_0x111309,{'property':_0x587cab[_0x459aaa(_0x38318c._0x41ceb4)](String,_0x331f7),'arg_count':_0x27d79e[_0x459aaa(_0x38318c._0x1dfbdc)]}),null;});return _0x284daf;}catch(_0x2f6640){return(-0x1*-0x227+-0x1d87+0x1b60,logger_1[_0x5bfe55(_0x3296e8._0x44095a)+_0x5bfe55(_0x3296e8._0x35ef0b)])(_0x5bfe55(_0x3296e8._0x7942de)+'s.'+String(_0x331f7),_0x2f6640,{'property':String(_0x331f7),'arg_count':_0x27d79e[_0x5bfe55(_0x3296e8._0x31cb25)]}),null;}};}exports[_0x5d1f92(0x228)+'s']=new Proxy({},{'get'(_0x11913e,_0x140677){const _0x400bb9={_0x4d1e28:0x1f7,_0x221378:0x230,_0x444bfe:0x1f6,_0x3817dc:0x1ef,_0x5c50c3:0x206,_0x1809e3:0x232,_0x1a48e7:0x1fe,_0x59ec17:0x22a,_0x5eb3a4:0x228},_0x50117a=_0x5d1f92,_0x498d6a={'ISjHg':function(_0x5138e1,_0x481afd){return _0x5138e1(_0x481afd);},'UAyhZ':_0x50117a(_0x400bb9._0x4d1e28)},_0x401f9c=(0x169d+-0x6*0x261+-0x857,state_1[_0x50117a(_0x400bb9._0x221378)])();if(!_0x401f9c)return _0x498d6a[_0x50117a(_0x400bb9._0x444bfe)](fallbackRedisValue,_0x140677);try{const _0x3e70ed=Reflect[_0x50117a(_0x400bb9._0x3817dc)](_0x401f9c,_0x140677);return typeof _0x3e70ed===_0x498d6a[_0x50117a(_0x400bb9._0x5c50c3)]?wrapRedisMethod(_0x401f9c,_0x140677,_0x3e70ed[_0x50117a(_0x400bb9._0x1809e3)](_0x401f9c)):_0x3e70ed;}catch(_0x33c237){return(0x5*-0x4cd+0x5f0+0x1211,logger_1[_0x50117a(_0x400bb9._0x1a48e7)+_0x50117a(_0x400bb9._0x59ec17)])(_0x50117a(_0x400bb9._0x5eb3a4)+'s.'+String(_0x140677),_0x33c237,{'property':String(_0x140677)}),fallbackRedisValue(_0x140677);}},'set'(_0xdcf442,_0xcc8761,_0x122fa4){const _0x356f82={_0x9570af:0x230,_0x4582d1:0x1fe,_0x91ad48:0x22a,_0x3d013d:0x228,_0x5b86f6:0x225,_0x424541:0x1ed,_0x5b8a7d:0x1ec,_0x5c5eb5:0x201,_0x1bb8b1:0x22a,_0x49187c:0x228,_0xb97673:0x224},_0x53fe8a=_0x5d1f92,_0x42ea0d={'zHYyA':function(_0x49dc9a,_0x5b3649){return _0x49dc9a(_0x5b3649);}},_0xadde74=(-0x13e9+0x1a0c+0x1*-0x623,state_1[_0x53fe8a(_0x356f82._0x9570af)])();if(!_0xadde74)return(-0x1cdc+-0x1840+-0x4*-0xd47,logger_1[_0x53fe8a(_0x356f82._0x4582d1)+_0x53fe8a(_0x356f82._0x91ad48)])(_0x53fe8a(_0x356f82._0x3d013d)+'s.'+String(_0xcc8761),new Error(_0x53fe8a(_0x356f82._0x5b86f6)+_0x53fe8a(_0x356f82._0x424541)+_0x53fe8a(_0x356f82._0x5b8a7d)),{'property':String(_0xcc8761)}),!![];try{return Reflect[_0x53fe8a(_0x356f82._0x5c5eb5)](_0xadde74,_0xcc8761,_0x122fa4);}catch(_0x2e4ca3){return(0x1920+-0x1*0x1885+-0x9b*0x1,logger_1[_0x53fe8a(_0x356f82._0x4582d1)+_0x53fe8a(_0x356f82._0x1bb8b1)])(_0x53fe8a(_0x356f82._0x49187c)+'s.'+_0x42ea0d[_0x53fe8a(_0x356f82._0xb97673)](String,_0xcc8761),_0x2e4ca3,{'property':_0x42ea0d[_0x53fe8a(_0x356f82._0xb97673)](String,_0xcc8761)}),!![];}}});function connectStandalone(_0x2d1d03){const _0x56aae7={_0x4931f2:0x21b,_0x192023:0x22e,_0x2b300a:0x214,_0x1bc674:0x210,_0x28bf41:0x1ea},_0x3e5758=_0x5d1f92,_0x488335={'BgjdQ':function(_0x25bc02,_0x871c3d){return _0x25bc02(_0x871c3d);}};return(-0x1*0x2ab+-0x7*-0x9d+-0x1a0,state_1[_0x3e5758(_0x56aae7._0x4931f2)])(new ioredis_1[(_0x3e5758(_0x56aae7._0x192023))]({'host':_0x2d1d03[_0x3e5758(_0x56aae7._0x2b300a)],'port':_0x2d1d03[_0x3e5758(_0x56aae7._0x1bc674)],..._0x488335[_0x3e5758(_0x56aae7._0x28bf41)](getAuth,_0x2d1d03)}));}function connectUrl(_0x526138){const _0x588814={_0x3049be:0x1f0,_0x1c8ded:0x215,_0x2e3a18:0x209,_0x272489:0x221,_0x34d9d1:0x220,_0x4f80df:0x231,_0x807baa:0x226,_0x2b3433:0x21b,_0xc8be4e:0x22e},_0x45188a=_0x5d1f92;if(!/^rediss?:\/\//[_0x45188a(_0x588814._0x3049be)](_0x526138))throw Error(_0x45188a(_0x588814._0x1c8ded)+_0x45188a(_0x588814._0x2e3a18)+_0x45188a(_0x588814._0x272489)+_0x45188a(_0x588814._0x34d9d1)+_0x45188a(_0x588814._0x4f80df)+_0x45188a(_0x588814._0x807baa));return(-0x1be3+-0x12+0x1bf5,state_1[_0x45188a(_0x588814._0x2b3433)])(new ioredis_1[(_0x45188a(_0x588814._0xc8be4e))](_0x526138));}function connectCluster(_0x223a32){const _0x5293ef={_0x5f538f:0x21b,_0x14b84b:0x22e,_0xfff51f:0x207,_0x473d12:0x205,_0x3ed270:0x1f2},_0x5437f1=_0x5d1f92;return(0x13d0+-0xc2d*0x1+-0x7a3,state_1[_0x5437f1(_0x5293ef._0x5f538f)])(new ioredis_1[(_0x5437f1(_0x5293ef._0x14b84b))][(_0x5437f1(_0x5293ef._0xfff51f))](_0x223a32[_0x5437f1(_0x5293ef._0x473d12)][_0x5437f1(_0x5293ef._0x3ed270)](_0x395c53=>({'host':_0x395c53[_0x5437f1(0x214)],'port':_0x395c53[_0x5437f1(0x210)]})),{'redisOptions':getAuth(_0x223a32)}));}function connectObject(_0x351104,_0x5beda6){const _0x1e8ee6={_0x1d7066:0x21b},_0xf92d73=_0x5d1f92;return assertRedisType(_0x351104,_0x5beda6),(-0x46d+-0x15cb+0x347*0x8,state_1[_0xf92d73(_0x1e8ee6._0x1d7066)])(_0x351104);}exports[_0x5d1f92(0x22c)]={'init'(_0x49bcc8){const _0x3a2f5b={_0x3d8aef:0x223},_0x34460c=_0x5d1f92;(0x17fb+0xd3*-0x7+0x7*-0x29a,init_1[_0x34460c(_0x3a2f5b._0x3d8aef)])(_0x49bcc8);}};
|
package/dist/search.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function searchKeys(pattern: string): Promise<string[]>;
|
package/dist/search.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x5096f5=_0x5df0;function _0x24a9(){const _0x24c400=['nty3mde2ngPyBMPeza','Bg9NugfJA2e','zgvMAw5Luhi','ndK3odaWA29mv2nv','ndm0mZK0m3fWBK9bva','mJeWodK0C0nkvuTx','otq4ntrVvhPZwKG','tufuq0G','mtndueHHChu','x19LC01Vzhu','BwfW','C2nHBG','BwfZDgvY','z2v0uMvHzhK','q09vtLq','C2vHCMnOs2u','uMvKAxm','nteWmJK2nxjYyNftuG','ntm5CvD5runY','mtCYodC5mfvuvxvlza','z2vfCNjVCG','zMXHDa','B3bLCNr5','ChvZAa','AxndBhvZDgu','BM9Kzxm','mtyYqwvzuxLe','ywXS','C2zLsuO'];_0x24a9=function(){return _0x24c400;};return _0x24a9();}(function(_0x21b9cf,_0x176470){const _0x75d93b={_0x1a1334:0x181,_0x2c6351:0x17e,_0x2b137c:0x17d,_0x1dffac:0x179,_0x1ea03e:0x18a,_0xa44004:0x17f,_0x5f246f:0x18b,_0x5d46ff:0x17c,_0x4bba70:0x193,_0x5a5cad:0x18c},_0x4e0687=_0x5df0,_0x3c23e0=_0x21b9cf();while(!![]){try{const _0x30560d=-parseInt(_0x4e0687(_0x75d93b._0x1a1334))/(0x5df*-0x3+0xc1c*-0x2+0x12*0x253)*(parseInt(_0x4e0687(_0x75d93b._0x2c6351))/(0x1e17*0x1+0x20ce+-0x3ee3))+parseInt(_0x4e0687(_0x75d93b._0x2b137c))/(0x2352+0xc59*-0x1+0x2*-0xb7b)+parseInt(_0x4e0687(_0x75d93b._0x1dffac))/(-0x69a+-0xc1*0x7+0x15*0x91)+-parseInt(_0x4e0687(_0x75d93b._0x1ea03e))/(-0x368+-0x1a91+0x1dfe)+-parseInt(_0x4e0687(_0x75d93b._0xa44004))/(0xb4b+0x1*0x15b9+0x107f*-0x2)*(-parseInt(_0x4e0687(_0x75d93b._0x5f246f))/(0x6*-0x353+0xea3+0x556))+parseInt(_0x4e0687(_0x75d93b._0x5d46ff))/(-0x16d4+-0x211a+0x37f6)*(-parseInt(_0x4e0687(_0x75d93b._0x4bba70))/(-0xcb9*0x3+0x7a0+0x4c*0x67))+parseInt(_0x4e0687(_0x75d93b._0x5a5cad))/(0x762+-0x1995+-0xa1*-0x1d);if(_0x30560d===_0x176470)break;else _0x3c23e0['push'](_0x3c23e0['shift']());}catch(_0x3bdbc5){_0x3c23e0['push'](_0x3c23e0['shift']());}}}(_0x24a9,-0x3*-0x3217d+-0x5dc13*0x3+0x138af2));Object[_0x5096f5(0x17b)+_0x5096f5(0x18f)](exports,_0x5096f5(0x182)+'le',{'value':!![]}),exports[_0x5096f5(0x188)+'ys']=searchKeys;const state_1=require('./state'),logger_1=require('./logger');function isClusterClient(_0xc9e8b7){const _0x442c89={_0x201dd0:0x191},_0x9f9e36=_0x5096f5;return _0xc9e8b7[_0x9f9e36(_0x442c89._0x201dd0)+'r'];}function _0x5df0(_0x4b2049,_0x3af6f1){_0x4b2049=_0x4b2049-(0x601+0x1*0x431+-0x7*0x13f);const _0x39bffd=_0x24a9();let _0x4513c1=_0x39bffd[_0x4b2049];if(_0x5df0['ALeINZ']===undefined){var _0x2c55a8=function(_0x2d297e){const _0x562386='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4444ce='',_0x3c75a3='';for(let _0x5e11f5=-0x142e+0x12ba+0x174,_0x5d1859,_0xeff339,_0x56ae45=-0x1d97+-0x2*-0xea+0x1*0x1bc3;_0xeff339=_0x2d297e['charAt'](_0x56ae45++);~_0xeff339&&(_0x5d1859=_0x5e11f5%(0x132f*0x1+0x1991+-0x664*0x7)?_0x5d1859*(-0x2437+0xae*0x1b+-0x121d*-0x1)+_0xeff339:_0xeff339,_0x5e11f5++%(-0x1*0x6f5+-0x9bd+0x10b6))?_0x4444ce+=String['fromCharCode'](0x1ae5+-0xb88+0x2*-0x72f&_0x5d1859>>(-(-0x8ea+-0x1812+0x20fe)*_0x5e11f5&-0x1*0x203d+0xc2f+0x1414)):0x404*0x3+-0x28*0x6+0xed*-0xc){_0xeff339=_0x562386['indexOf'](_0xeff339);}for(let _0xbcfa2c=-0x205c+-0x1ce5+-0x3*-0x146b,_0x4e1400=_0x4444ce['length'];_0xbcfa2c<_0x4e1400;_0xbcfa2c++){_0x3c75a3+='%'+('00'+_0x4444ce['charCodeAt'](_0xbcfa2c)['toString'](0x15*0x146+-0x16*-0x17f+-0x3b98))['slice'](-(0x1117+-0x1289+0x174));}return decodeURIComponent(_0x3c75a3);};_0x5df0['txuMwu']=_0x2c55a8,_0x5df0['gOHMeR']={},_0x5df0['ALeINZ']=!![];}const _0x1b2caf=_0x39bffd[-0x23f7+0x14fa+0xefd];_0x5df0['DHmDqK']!==_0x1b2caf&&(_0x5df0['gOHMeR']={},_0x5df0['DHmDqK']=_0x1b2caf);const _0x7a362f=_0x5df0['gOHMeR'][_0x4b2049];return _0x7a362f===undefined?(_0x4513c1=_0x5df0['txuMwu'](_0x4513c1),_0x5df0['gOHMeR'][_0x4b2049]=_0x4513c1):_0x4513c1=_0x7a362f,_0x4513c1;}async function scanKeys(_0x216069,_0x3cb5d6){const _0x5b8ae5={_0x3d2870:0x184,_0x5aa32a:0x180,_0x31c798:0x187,_0x5b5086:0x190},_0x4c06a4=_0x5096f5;let _0x494a60='0';const _0x2ddc12=[];do{const [_0xe38c47,_0xfddec3]=await _0x216069[_0x4c06a4(_0x5b8ae5._0x3d2870)](_0x494a60,_0x4c06a4(_0x5b8ae5._0x5aa32a),_0x3cb5d6,_0x4c06a4(_0x5b8ae5._0x31c798),-0x1be7*0x1+0xc47+0x1068);_0x494a60=_0xe38c47,_0x2ddc12[_0x4c06a4(_0x5b8ae5._0x5b5086)](..._0xfddec3);}while(_0x494a60!=='0');return _0x2ddc12;}async function searchKeys(_0x4b2049){const _0x2d34ba={_0x2a65df:0x186,_0x965d3d:0x189,_0x42c365:0x195,_0x3aee3a:0x194,_0x2b0c3a:0x192,_0x1c5096:0x185,_0x5b4ec5:0x183,_0x14d54e:0x18e,_0x109ef9:0x17a,_0x32b466:0x18d,_0x50fed3:0x188},_0x54cee3=_0x5096f5,_0x3af6f1={'sfeIJ':function(_0x39bffd,_0x4513c1,_0x2c55a8){return _0x39bffd(_0x4513c1,_0x2c55a8);}};try{const _0x1b2caf=await(-0x1e66+0x574*0x2+0xa*0x1f3,state_1[_0x54cee3(_0x2d34ba._0x2a65df)+_0x54cee3(_0x2d34ba._0x965d3d)])();if(!isClusterClient(_0x1b2caf))return await _0x3af6f1[_0x54cee3(_0x2d34ba._0x42c365)](scanKeys,_0x1b2caf,_0x4b2049);const _0x7a362f=await Promise[_0x54cee3(_0x2d34ba._0x3aee3a)](_0x1b2caf[_0x54cee3(_0x2d34ba._0x2b0c3a)](_0x54cee3(_0x2d34ba._0x1c5096))[_0x54cee3(_0x2d34ba._0x5b4ec5)](_0x2d297e=>scanKeys(_0x2d297e,_0x4b2049)));return[...new Set(_0x7a362f[_0x54cee3(_0x2d34ba._0x14d54e)]())];}catch(_0x562386){return(0x1493+-0x1e*0x83+-0x539,logger_1[_0x54cee3(_0x2d34ba._0x109ef9)+_0x54cee3(_0x2d34ba._0x32b466)])(_0x54cee3(_0x2d34ba._0x50fed3)+'ys',_0x562386,{'pattern':_0x4b2049}),[];}}
|
package/dist/state.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RedisClient } from "./redis";
|
|
2
|
+
import type { AutoConfig, InitOptions, TimeBucket, TimeConfig } from "./types";
|
|
3
|
+
export declare const DEFAULT_TIME_CONFIG: Record<TimeBucket, {
|
|
4
|
+
enable: boolean;
|
|
5
|
+
expiry_in_sec: number;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function setRedis(client: RedisClient): RedisClient;
|
|
8
|
+
export declare function getRedis(): RedisClient | null;
|
|
9
|
+
export declare function getRedisOrThrow(): RedisClient;
|
|
10
|
+
export declare function getReadyRedis(): Promise<RedisClient>;
|
|
11
|
+
export declare function setTimeConfig(cfg: TimeConfig): Record<TimeBucket, {
|
|
12
|
+
enable: boolean;
|
|
13
|
+
expiry_in_sec: number;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function getTimeConfig(): Record<TimeBucket, {
|
|
16
|
+
enable: boolean;
|
|
17
|
+
expiry_in_sec: number;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function setAutoConfig(cfg: AutoConfig | null): void;
|
|
20
|
+
export declare function getAutoConfig(): AutoConfig | null;
|
|
21
|
+
export declare function setInitOptions(options: InitOptions | null): void;
|
|
22
|
+
export declare function getInitOptions(): InitOptions | null;
|
|
23
|
+
export declare function isStarted(): boolean;
|
|
24
|
+
export declare function markStarted(): void;
|
package/dist/state.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x5eda10=_0x46d7;(function(_0xcb1427,_0x5adb9b){const _0x3ff054={_0x1af94d:0xa3,_0x19fb82:0xc4,_0x10bdb2:0x93,_0x4736dc:0xb6,_0x472a27:0xc3,_0x130aff:0x82,_0x5d1815:0xa9,_0x6f8219:0x9c,_0x302b1b:0x95,_0xd3ce77:0x9a,_0x8723b6:0x83,_0x5724f1:0x90},_0x4fdd16=_0x46d7,_0x1309b6=_0xcb1427();while(!![]){try{const _0x3cb662=parseInt(_0x4fdd16(_0x3ff054._0x1af94d))/(0x19db+-0xb*-0x2f6+-0x3a6c)*(-parseInt(_0x4fdd16(_0x3ff054._0x19fb82))/(0x1448+-0x94a*-0x2+-0x26da))+parseInt(_0x4fdd16(_0x3ff054._0x10bdb2))/(-0x857+-0x19a6+0x440*0x8)*(-parseInt(_0x4fdd16(_0x3ff054._0x4736dc))/(-0x4f*0x1f+-0x117f+0x1b14))+parseInt(_0x4fdd16(_0x3ff054._0x472a27))/(-0xf3+-0x9*0x419+0x25d9)+parseInt(_0x4fdd16(_0x3ff054._0x130aff))/(-0x1*0xa8b+-0x4b6+0xf47)+parseInt(_0x4fdd16(_0x3ff054._0x5d1815))/(0x99b*0x3+-0x65c*0x2+-0x1012)*(parseInt(_0x4fdd16(_0x3ff054._0x6f8219))/(0x11fb*-0x2+0xe44+0x15ba))+-parseInt(_0x4fdd16(_0x3ff054._0x302b1b))/(0xc2a*0x2+-0x4cd+-0x137e)*(-parseInt(_0x4fdd16(_0x3ff054._0xd3ce77))/(0x17d*0x1a+-0x112c+-0x157c))+parseInt(_0x4fdd16(_0x3ff054._0x8723b6))/(0xb*0xf3+0x1*-0x1941+0xedb)*(-parseInt(_0x4fdd16(_0x3ff054._0x5724f1))/(0x592+-0x1116+0xb90));if(_0x3cb662===_0x5adb9b)break;else _0x1309b6['push'](_0x1309b6['shift']());}catch(_0x26944c){_0x1309b6['push'](_0x1309b6['shift']());}}}(_0x390a,-0x11e25d+-0xbeb0+0x20c5*0xfd));var _a,_b;Object[_0x5eda10(0xaf)+_0x5eda10(0xa6)](exports,_0x5eda10(0xaa)+'le',{'value':!![]}),exports[_0x5eda10(0x8a)+_0x5eda10(0xa8)+_0x5eda10(0x85)]=void(0x1766+-0x1375*0x1+0x1*-0x3f1),exports[_0x5eda10(0xba)]=setRedis,exports[_0x5eda10(0x9e)]=getRedis,exports[_0x5eda10(0x9e)+_0x5eda10(0x9d)]=getRedisOrThrow,exports[_0x5eda10(0xa0)+_0x5eda10(0xa7)]=getReadyRedis,exports[_0x5eda10(0xa2)+_0x5eda10(0xab)]=setTimeConfig,exports[_0x5eda10(0x94)+_0x5eda10(0xab)]=getTimeConfig,exports[_0x5eda10(0x8b)+_0x5eda10(0xab)]=setAutoConfig,exports[_0x5eda10(0x87)+_0x5eda10(0xab)]=getAutoConfig,exports[_0x5eda10(0xb0)+_0x5eda10(0xac)]=setInitOptions,exports[_0x5eda10(0xb8)+_0x5eda10(0xac)]=getInitOptions,exports[_0x5eda10(0x84)+'d']=isStarted,exports[_0x5eda10(0xbc)+_0x5eda10(0xb9)]=markStarted;const node_events_1=require('node:events');exports[_0x5eda10(0x8a)+_0x5eda10(0xa8)+_0x5eda10(0x85)]={'sec':{'enable':!![],'expiry_in_sec':(-0x233c+-0x5ec*0x4+0x277*0x18)*(-0x1a1*-0x13+0x3*0x49d+-0x2c8e)},'min':{'enable':!![],'expiry_in_sec':(0x51*0x63+-0x2e*0xc4+-0x1*-0x3fd)*(-0x1*-0x1c31+-0x16ec+0x509*-0x1)*(-0x13e+0x4e3+-0x369)},'hour':{'enable':!![],'expiry_in_sec':(-0x359*0x1+-0xbf*-0xa+-0x405*0x1)*(-0xa9*0x1e+0x1a2e+-0xc*0x83)*(0x183+0x1c9a+-0x1de1)},'day':{'enable':!![],'expiry_in_sec':(-0x2*-0x931+0x701+-0x1945)*(-0x2265+0x1*0x533+-0x146*-0x17)*(0x1bba+-0x1635+-0x549)*(0xf4a*0x2+-0x1935+-0x523)},'month':{'enable':!![],'expiry_in_sec':(0x21be+-0x1be8+-0x522)*(0x6b*-0xc+0x556*-0x4+-0x1*-0x1a74)*(0x1553*-0x1+0x8d*0x2+0x1475)*(-0x5f*0xd+0x2080+-0x1b71)},'year':{'enable':!![],'expiry_in_sec':(0x2419+-0xe3a+-0x15d5)*(0x193e+0x225a+-0x3a2b)*(0x138e*0x1+0x19b5+0x1*-0x2d2b)*(-0x1b7d*0x1+-0xbe8+-0x7ed*-0x5)*(-0x1a0b+0x32*0x40+-0xdc7*-0x1)}};const store=(_a=globalThis)[_b=Symbol[_0x5eda10(0x8f)](_0x5eda10(0xb4)+_0x5eda10(0xbf)+_0x5eda10(0xa1))]??(_a[_b]={'redis':null,'autoConfig':null,'initOptions':null,'timeConfig':exports[_0x5eda10(0x8a)+_0x5eda10(0xa8)+_0x5eda10(0x85)],'started':![]}),TIME_BUCKETS=[_0x5eda10(0xb3),_0x5eda10(0xb2),_0x5eda10(0x9f),_0x5eda10(0xa4),_0x5eda10(0x8e),_0x5eda10(0x89)];function setRedis(_0x1a5f67){const _0x1c2476={_0x4b6d53:0x97},_0x2e8b34=_0x5eda10;return store[_0x2e8b34(_0x1c2476._0x4b6d53)]=_0x1a5f67,_0x1a5f67;}function getRedis(){const _0x34c766={_0x327e21:0x97},_0x187654=_0x5eda10;return store[_0x187654(_0x34c766._0x327e21)];}function getRedisOrThrow(){const _0x2e9ab6={_0x1d185c:0x97,_0x46ab0a:0xbd,_0x49ec54:0xc2,_0x3baccb:0x9b},_0x24f904=_0x5eda10;if(!store[_0x24f904(_0x2e9ab6._0x1d185c)])throw Error(_0x24f904(_0x2e9ab6._0x46ab0a)+_0x24f904(_0x2e9ab6._0x49ec54)+_0x24f904(_0x2e9ab6._0x3baccb));return store[_0x24f904(_0x2e9ab6._0x1d185c)];}async function getReadyRedis(){const _0x342e7a={_0x3730e5:0x99,_0x1abedd:0xbe,_0x5c75e3:0x88,_0x22b10a:0x8c},_0x58d19a=_0x5eda10,_0x2b3d93={'qcSan':_0x58d19a(_0x342e7a._0x3730e5)},_0x4e0f22=getRedisOrThrow();if(_0x4e0f22[_0x58d19a(_0x342e7a._0x1abedd)]===_0x58d19a(_0x342e7a._0x3730e5))return _0x4e0f22;return await(0xca2+0x1*0xb06+-0x17a8,node_events_1[_0x58d19a(_0x342e7a._0x5c75e3)])(_0x4e0f22,_0x2b3d93[_0x58d19a(_0x342e7a._0x22b10a)]),_0x4e0f22;}function setTimeConfig(_0x523367){const _0x42f1c1={_0x17d89c:0xad,_0x531849:0xb5,_0x137fad:0x92,_0x26e5b5:0x96,_0x8a60d7:0xc0,_0x316e40:0x91,_0x658ada:0x86,_0x42d7f7:0xa5,_0x2db675:0x8d,_0x478756:0xb7,_0xd1059e:0xc1,_0x2f568b:0x8a,_0x38597a:0xa8,_0x3ce341:0x85,_0x1f27e6:0xb3,_0x427037:0x85,_0x2c6137:0xb2,_0x2aa2c8:0x85,_0x59bd67:0x9f,_0x78b1f5:0x9f,_0x19164a:0xa4,_0x168d59:0xa4,_0x34648b:0x8a,_0x2ec7a0:0xa8,_0x20ade7:0x8e,_0x47d1eb:0x8e,_0x53e9e5:0xa8,_0x271e8e:0x85,_0x53a149:0x89,_0x186425:0x89},_0x329d32=_0x5eda10;for(const _0x3eef3e of TIME_BUCKETS){const _0xd856b8=_0x523367[_0x3eef3e]?.[_0x329d32(_0x42f1c1._0x17d89c)+_0x329d32(_0x42f1c1._0x531849)];if(_0xd856b8!==undefined&&(!Number[_0x329d32(_0x42f1c1._0x137fad)+'r'](_0xd856b8)||_0xd856b8<0x1*-0x18f1+-0x2*-0x110f+-0x1*0x92d))throw Error(_0x3eef3e+(_0x329d32(_0x42f1c1._0x26e5b5)+_0x329d32(_0x42f1c1._0x8a60d7)+_0x329d32(_0x42f1c1._0x316e40)+_0x329d32(_0x42f1c1._0x658ada)+_0x329d32(_0x42f1c1._0x42d7f7)+_0x329d32(_0x42f1c1._0x2db675)+_0x329d32(_0x42f1c1._0x478756)));}return store[_0x329d32(_0x42f1c1._0xd1059e)+'ig']={'sec':{...exports[_0x329d32(_0x42f1c1._0x2f568b)+_0x329d32(_0x42f1c1._0x38597a)+_0x329d32(_0x42f1c1._0x3ce341)][_0x329d32(_0x42f1c1._0x1f27e6)],..._0x523367[_0x329d32(_0x42f1c1._0x1f27e6)]},'min':{...exports[_0x329d32(_0x42f1c1._0x2f568b)+_0x329d32(_0x42f1c1._0x38597a)+_0x329d32(_0x42f1c1._0x427037)][_0x329d32(_0x42f1c1._0x2c6137)],..._0x523367[_0x329d32(_0x42f1c1._0x2c6137)]},'hour':{...exports[_0x329d32(_0x42f1c1._0x2f568b)+_0x329d32(_0x42f1c1._0x38597a)+_0x329d32(_0x42f1c1._0x2aa2c8)][_0x329d32(_0x42f1c1._0x59bd67)],..._0x523367[_0x329d32(_0x42f1c1._0x78b1f5)]},'day':{...exports[_0x329d32(_0x42f1c1._0x2f568b)+_0x329d32(_0x42f1c1._0x38597a)+_0x329d32(_0x42f1c1._0x2aa2c8)][_0x329d32(_0x42f1c1._0x19164a)],..._0x523367[_0x329d32(_0x42f1c1._0x168d59)]},'month':{...exports[_0x329d32(_0x42f1c1._0x34648b)+_0x329d32(_0x42f1c1._0x2ec7a0)+_0x329d32(_0x42f1c1._0x3ce341)][_0x329d32(_0x42f1c1._0x20ade7)],..._0x523367[_0x329d32(_0x42f1c1._0x47d1eb)]},'year':{...exports[_0x329d32(_0x42f1c1._0x34648b)+_0x329d32(_0x42f1c1._0x53e9e5)+_0x329d32(_0x42f1c1._0x271e8e)][_0x329d32(_0x42f1c1._0x53a149)],..._0x523367[_0x329d32(_0x42f1c1._0x186425)]}},store[_0x329d32(_0x42f1c1._0xd1059e)+'ig'];}function getTimeConfig(){const _0x18f8f3={_0x1c062b:0xc1},_0x5d5517=_0x5eda10;return store[_0x5d5517(_0x18f8f3._0x1c062b)+'ig'];}function setAutoConfig(_0x35b507){const _0x4fe919={_0x44b595:0xbb},_0xb1d247=_0x5eda10;store[_0xb1d247(_0x4fe919._0x44b595)+'ig']=_0x35b507;}function getAutoConfig(){const _0x4378f3={_0x440b39:0xbb},_0x1f9c71=_0x5eda10;return store[_0x1f9c71(_0x4378f3._0x440b39)+'ig'];}function setInitOptions(_0xa04146){const _0xd4e0e0={_0x5d403a:0x98,_0x566e58:0xae},_0x1ce72f=_0x5eda10;store[_0x1ce72f(_0xd4e0e0._0x5d403a)+_0x1ce72f(_0xd4e0e0._0x566e58)]=_0xa04146;}function _0x46d7(_0x25049f,_0x5b0664){_0x25049f=_0x25049f-(0x4f*-0x6b+0x40d+0x1d7a);const _0x49a3d2=_0x390a();let _0x771fd2=_0x49a3d2[_0x25049f];if(_0x46d7['YCbgym']===undefined){var _0x28068e=function(_0x1fdad4){const _0x21f503='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x312db8='',_0x26afbe='';for(let _0x30fab6=0x39*0x4b+0x2*-0x573+0x2d*-0x21,_0xd341a2,_0x26abc9,_0x17a356=0x11*-0x119+0x30*-0x89+0x2c59*0x1;_0x26abc9=_0x1fdad4['charAt'](_0x17a356++);~_0x26abc9&&(_0xd341a2=_0x30fab6%(-0x19f7+-0x1*0xae1+0x24dc)?_0xd341a2*(-0x9a+0x1198+0x1*-0x10be)+_0x26abc9:_0x26abc9,_0x30fab6++%(0x1ff9+-0x1b48+-0x7*0xab))?_0x312db8+=String['fromCharCode'](-0x5*0xd+-0xdb*-0x1+0x65&_0xd341a2>>(-(-0xee7*0x1+-0x2393+0x327c)*_0x30fab6&-0xd39+0x2284+-0x1545)):-0x2609+0x2*0xd7f+0xb0b){_0x26abc9=_0x21f503['indexOf'](_0x26abc9);}for(let _0x7d1b88=0x7ca*-0x4+0x1fc*0x7+0x1*0x1144,_0x30604c=_0x312db8['length'];_0x7d1b88<_0x30604c;_0x7d1b88++){_0x26afbe+='%'+('00'+_0x312db8['charCodeAt'](_0x7d1b88)['toString'](-0x2f9+-0x1830+0x1b39))['slice'](-(-0x101*-0x19+0xd*0xd3+-0x23ce));}return decodeURIComponent(_0x26afbe);};_0x46d7['mhMzfp']=_0x28068e,_0x46d7['xOPoTM']={},_0x46d7['YCbgym']=!![];}const _0x3664fa=_0x49a3d2[0x5c9+0x24*-0x59+0x6bb*0x1];_0x46d7['FLRraW']!==_0x3664fa&&(_0x46d7['xOPoTM']={},_0x46d7['FLRraW']=_0x3664fa);const _0x5651f6=_0x46d7['xOPoTM'][_0x25049f];return _0x5651f6===undefined?(_0x771fd2=_0x46d7['mhMzfp'](_0x771fd2),_0x46d7['xOPoTM'][_0x25049f]=_0x771fd2):_0x771fd2=_0x5651f6,_0x771fd2;}function _0x390a(){const _0x29a73c=['C2v0sw5PDe8','C3rHCNrLza','BwLU','C2vJ','C3LZDgvTlxq','BL9Zzwm','ngruzvfPsG','ihnLy29Uzhm','z2v0sw5PDe8','DgvK','C2v0uMvKAxm','yxv0B0nVBMy','BwfYA1n0yxi','CMvKAxmGBM8','C3rHDhvZ','CMfJA2vYlNm','Aw5FC2vJig0','DgLTzunVBMy','DcbPBML0Awe','odaXnty1mfzzy3nSAW','mM1pAxrkwq','nJm1mJeYoe5RAgzwBW','mJjgAvrXs1q','AxntDgfYDgu','rKLh','ig5VBI1UzwC','z2v0qxv0B0m','B25Jzq','EwvHCG','revgqvvmvf8','C2v0qxv0B0m','Cwntyw4','DgvNzxiGAw4','Bw9UDgG','zM9Y','mJmWodGZnLzdDwzosW','Dxn0igjLige','AxnjBNrLz2u','ntm1nte3n0fNwxLXqq','z2v0vgLTzum','mty3mJjgy2zSzeu','lMv4CgLYEv8','CMvKAxm','Aw5PDe9WDgK','CMvHzhK','mtbRt09UrLa','BgL6zwq','mtmXndy2mdHdsfrnufO','t3juAhjVDW','z2v0uMvKAxm','Ag91CG','z2v0uMvHzhK','Dgf0zq','C2v0vgLTzum','mtiZntu5n25YCxHuvq','zgf5','yxrPDMuGAw4','B3bLCNr5','uMvKAxm','veLnrv9dt04','n3vkB29fuq','x19LC01Vzhu','B25MAwC','ChrPB25Z','zxHWAxj5x2K','B25Z','zgvMAw5Luhi'];_0x390a=function(){return _0x29a73c;};return _0x390a();}function getInitOptions(){const _0x2edbec={_0x4a0900:0x98,_0x31ab60:0xae},_0x226839=_0x5eda10;return store[_0x226839(_0x2edbec._0x4a0900)+_0x226839(_0x2edbec._0x31ab60)];}function isStarted(){const _0x158af2={_0x4376f0:0xb1},_0x370104=_0x5eda10;return store[_0x370104(_0x158af2._0x4376f0)];}function markStarted(){const _0x167e1b={_0x2f2a83:0xb1},_0x1c52dc=_0x5eda10;store[_0x1c52dc(_0x167e1b._0x2f2a83)]=!![];}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { IncomingMessage } from "node:http";
|
|
2
|
+
import type Redis from "ioredis";
|
|
3
|
+
import type { Cluster } from "ioredis";
|
|
4
|
+
export type TimeBucket = "sec" | "min" | "hour" | "day" | "month" | "year";
|
|
5
|
+
export type TimeBucketConfig = {
|
|
6
|
+
enable?: boolean;
|
|
7
|
+
expiry_in_sec?: number;
|
|
8
|
+
};
|
|
9
|
+
export type TimeConfig = Partial<Record<TimeBucket, TimeBucketConfig>>;
|
|
10
|
+
export type RedisAuth = {
|
|
11
|
+
username?: string;
|
|
12
|
+
password?: string;
|
|
13
|
+
};
|
|
14
|
+
export type RedisStandalone = RedisAuth & {
|
|
15
|
+
host: string;
|
|
16
|
+
port: number;
|
|
17
|
+
};
|
|
18
|
+
export type RedisCluster = RedisAuth & {
|
|
19
|
+
nodes: {
|
|
20
|
+
host: string;
|
|
21
|
+
port: number;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
export type BuiltInType = "API" | "WEB" | "GRAPHQL" | "RPC" | "WSS" | "SSE" | "GRPC" | "OTHER" | "STATIC" | "OUT";
|
|
25
|
+
export type Hit = {
|
|
26
|
+
type: string;
|
|
27
|
+
action: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
export type RedisOption = string | RedisStandalone | RedisCluster | {
|
|
31
|
+
client: Redis | Cluster;
|
|
32
|
+
type: "standalone" | "cluster";
|
|
33
|
+
};
|
|
34
|
+
export type InitOptions = {
|
|
35
|
+
redis: RedisOption;
|
|
36
|
+
prefix: string;
|
|
37
|
+
timeConfig?: TimeConfig;
|
|
38
|
+
ignore?: {
|
|
39
|
+
paths?: string[];
|
|
40
|
+
methods?: string[];
|
|
41
|
+
bots?: boolean;
|
|
42
|
+
};
|
|
43
|
+
track?: Partial<Record<BuiltInType, boolean>>;
|
|
44
|
+
global?: {
|
|
45
|
+
total?: boolean;
|
|
46
|
+
perType?: boolean;
|
|
47
|
+
};
|
|
48
|
+
failures?: boolean;
|
|
49
|
+
types?: {
|
|
50
|
+
path: string;
|
|
51
|
+
type: string;
|
|
52
|
+
}[];
|
|
53
|
+
operations?: {
|
|
54
|
+
path: string;
|
|
55
|
+
type: string;
|
|
56
|
+
read: (body: any) => unknown;
|
|
57
|
+
}[];
|
|
58
|
+
limits?: {
|
|
59
|
+
maxNamesPerType?: number;
|
|
60
|
+
collapseAfter?: number;
|
|
61
|
+
};
|
|
62
|
+
ownDomains?: string[];
|
|
63
|
+
name?: (req: IncomingMessage) => Hit | undefined;
|
|
64
|
+
enabled?: boolean;
|
|
65
|
+
dashboard?: DashboardOptions;
|
|
66
|
+
};
|
|
67
|
+
export type DashboardOptions = {
|
|
68
|
+
enable?: boolean;
|
|
69
|
+
url?: string;
|
|
70
|
+
username?: string;
|
|
71
|
+
password?: string;
|
|
72
|
+
};
|
|
73
|
+
export type DashboardConfig = {
|
|
74
|
+
path: string;
|
|
75
|
+
username?: string;
|
|
76
|
+
password?: string;
|
|
77
|
+
};
|
|
78
|
+
export type AutoConfig = {
|
|
79
|
+
prefix: string;
|
|
80
|
+
ignore: {
|
|
81
|
+
paths: string[];
|
|
82
|
+
methods: string[];
|
|
83
|
+
bots: boolean;
|
|
84
|
+
};
|
|
85
|
+
track: Record<BuiltInType, boolean>;
|
|
86
|
+
global: {
|
|
87
|
+
total: boolean;
|
|
88
|
+
perType: boolean;
|
|
89
|
+
};
|
|
90
|
+
failures: boolean;
|
|
91
|
+
types: {
|
|
92
|
+
path: string;
|
|
93
|
+
type: string;
|
|
94
|
+
}[];
|
|
95
|
+
operations: {
|
|
96
|
+
path: string;
|
|
97
|
+
type: string;
|
|
98
|
+
read: (body: any) => unknown;
|
|
99
|
+
}[];
|
|
100
|
+
limits: {
|
|
101
|
+
maxNamesPerType: number;
|
|
102
|
+
collapseAfter: number;
|
|
103
|
+
};
|
|
104
|
+
ownDomains: string[];
|
|
105
|
+
name?: (req: IncomingMessage) => Hit | undefined;
|
|
106
|
+
dashboard: DashboardConfig | null;
|
|
107
|
+
};
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x163123=_0x16da;(function(_0x5ea2b9,_0x4a81c1){var _0x1f9069={_0x87ac97:0x130,_0x62d8a7:0x12b,_0x1ef6ca:0x131,_0x43c83c:0x12c,_0x3e9a98:0x12f,_0x150a23:0x127,_0x34131c:0x132,_0x1e5e63:0x128,_0x4b5a1b:0x126,_0x1a818f:0x129},_0x756733=_0x16da,_0x871524=_0x5ea2b9();while(!![]){try{var _0x910711=parseInt(_0x756733(_0x1f9069._0x87ac97))/(0x1*0xd1c+0x3b7*0x9+-0x2e8a)*(-parseInt(_0x756733(_0x1f9069._0x62d8a7))/(-0x84d+-0x1905+0x2154))+parseInt(_0x756733(_0x1f9069._0x1ef6ca))/(-0x1573+0xf11+0x1*0x665)+-parseInt(_0x756733(_0x1f9069._0x43c83c))/(0x2665+0x2*0xe26+-0x42ad*0x1)+-parseInt(_0x756733(_0x1f9069._0x3e9a98))/(0xdd6+0x1*-0x265a+0x23b*0xb)+-parseInt(_0x756733(_0x1f9069._0x150a23))/(-0x23a8+-0x1807+0x3bb5)*(parseInt(_0x756733(_0x1f9069._0x34131c))/(0x8*0x2b8+-0x189a+0x2e1))+-parseInt(_0x756733(_0x1f9069._0x1e5e63))/(-0x13d0*0x1+0xd41+-0x7*-0xf1)+parseInt(_0x756733(_0x1f9069._0x4b5a1b))/(0x247a+0xb0c+0x1*-0x2f7d)*(parseInt(_0x756733(_0x1f9069._0x1a818f))/(-0x1245+0x669+0xbe6));if(_0x910711===_0x4a81c1)break;else _0x871524['push'](_0x871524['shift']());}catch(_0x5533ca){_0x871524['push'](_0x871524['shift']());}}}(_0x24b9,0x14*-0x273f+0xb1*0x1c1+0x54239));function _0x16da(_0x580af7,_0x3fb01a){_0x580af7=_0x580af7-(0x10ec+-0xd59+0x1*-0x26d);var _0x587eb7=_0x24b9();var _0x388edb=_0x587eb7[_0x580af7];if(_0x16da['pmJSdN']===undefined){var _0x36a43e=function(_0x3576ea){var _0x258f17='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x112767='',_0x210b42='';for(var _0x150998=-0x1c25+-0x9f*0x1d+0x2e28,_0x16001c,_0x1581f0,_0x42136e=0x16f3+-0x17c0+0xcd;_0x1581f0=_0x3576ea['charAt'](_0x42136e++);~_0x1581f0&&(_0x16001c=_0x150998%(0xf4e+0xe2a+-0x1d74)?_0x16001c*(0x869+0x11*-0x1cf+0x1696)+_0x1581f0:_0x1581f0,_0x150998++%(0x4c4+0x262a+-0x2aea))?_0x112767+=String['fromCharCode'](0x38*0x56+0x1d*0x121+-0x328e&_0x16001c>>(-(0x43*0x5b+-0x508+0x12c7*-0x1)*_0x150998&0xb6+-0x2*0x202+0x354)):0x21dd+0x51*0x4d+-0x3a3a){_0x1581f0=_0x258f17['indexOf'](_0x1581f0);}for(var _0xe99891=0x1e24+-0x2566+0x742,_0xe96ec7=_0x112767['length'];_0xe99891<_0xe96ec7;_0xe99891++){_0x210b42+='%'+('00'+_0x112767['charCodeAt'](_0xe99891)['toString'](0x23*-0xd5+-0x1e2*0xe+0x1*0x378b))['slice'](-(0x6d*0x20+-0xa4c+0x2*-0x1a9));}return decodeURIComponent(_0x210b42);};_0x16da['yJZyEn']=_0x36a43e,_0x16da['DBiymX']={},_0x16da['pmJSdN']=!![];}var _0x32c952=_0x587eb7[-0x1e83+-0x1*-0x185c+-0x19*-0x3f];_0x16da['BtjNWU']!==_0x32c952&&(_0x16da['DBiymX']={},_0x16da['BtjNWU']=_0x32c952);var _0x4eb75c=_0x16da['DBiymX'][_0x580af7];return _0x4eb75c===undefined?(_0x388edb=_0x16da['yJZyEn'](_0x388edb),_0x16da['DBiymX'][_0x580af7]=_0x388edb):_0x388edb=_0x4eb75c,_0x388edb;}function _0x24b9(){var _0x729ad6=['mtq2mdy4ogTtruP0ua','mtmZmdmWEej3rg9x','B3bLCNr5','mJyYnK1wt01csG','mta4ntq5mLPyqxHWuG','x19LC01Vzhu','zgvMAw5Luhi','mti2odq3mhvWv1fIta','otDHrfPVAge','nZG2nJe1ELb3tu1Y','mtr0z2Lts1e','nty3uhzjrgzr','mti2mZqYtNHvyMPK'];_0x24b9=function(){return _0x729ad6;};return _0x24b9();}Object[_0x163123(0x12e)+_0x163123(0x12a)](exports,_0x163123(0x12d)+'le',{'value':!![]});
|
package/package.json
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "system-tracker",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "3.0.11",
|
|
4
|
+
"description": "Redis based RPC tracking counters",
|
|
5
|
+
"author": "codezeros",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/NPM-public-repo-Jaykumar/system-tracker.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/NPM-public-repo-Jaykumar/system-tracker#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/NPM-public-repo-Jaykumar/system-tracker/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"redis",
|
|
16
|
+
"tracker",
|
|
17
|
+
"metrics",
|
|
18
|
+
"analytics",
|
|
19
|
+
"rpc",
|
|
20
|
+
"typescript",
|
|
21
|
+
"jkg",
|
|
22
|
+
"jaykumar-gohil"
|
|
23
|
+
],
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"SKILL.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rm -rf dist && tsc && node scripts/copy-assets.js dist && node scripts/obfuscate-dist.js",
|
|
32
|
+
"build:plain": "tsc && node scripts/copy-assets.js dist",
|
|
33
|
+
"test": "tsc -p tsconfig.test.json && node scripts/copy-assets.js .test-build/src && node --test --test-concurrency=1 \".test-build/test/*.test.js\"",
|
|
34
|
+
"prepublishOnly": "npm run release:check && npm run release:bump && npm run build && npm run prepublish-release",
|
|
35
|
+
"postpublish": "npm run postpublish-release && npm run public-postpublish-release",
|
|
36
|
+
"prepublish-release": "node scripts/prepublish-release.js",
|
|
37
|
+
"postpublish-release": "node scripts/postpublish-release.js",
|
|
38
|
+
"public-postpublish-release": "node scripts/public-postpublish-release.js",
|
|
39
|
+
"release:bump": "node scripts/bump-version.js",
|
|
40
|
+
"release:check": "test \"$(git rev-parse --abbrev-ref HEAD)\" = main || { echo \"Release from the main branch\"; exit 1; }; npm whoami >/dev/null 2>&1 || { echo \"Log in to npm (npm login) first\"; exit 1; }; ! npm view \"$npm_package_name\" name >/dev/null 2>&1 || npm owner ls \"$npm_package_name\" 2>/dev/null | grep -q \"^$(npm whoami 2>/dev/null) \" || { echo \"Log in to npm (npm login) as an owner of $npm_package_name first\"; exit 1; }"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"ioredis": "^5.11.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/express": "^5.0.6",
|
|
47
|
+
"@types/node": "^22.20.5",
|
|
48
|
+
"@types/ws": "^8.18.2",
|
|
49
|
+
"express": "^5.3.0",
|
|
50
|
+
"javascript-obfuscator": "^5.9.0",
|
|
51
|
+
"socket.io": "^4.8.4",
|
|
52
|
+
"typescript": "^5.9.3",
|
|
53
|
+
"ws": "^8.22.0"
|
|
54
|
+
}
|
|
55
|
+
}
|