nucleus-core-ts 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +1 -1
- package/dist/dist/index.d.ts +475 -12
- package/dist/fe/index.js +157 -110
- package/dist/index.js +1 -1
- package/dist/nucleus.config.d.ts +3 -0
- package/dist/src/Client/Proxy/index.js +1 -1
- package/package.json +1 -1
- package/scripts/build.ts +62 -8
- package/dist/dist/index-0yyw12k6.d.ts +0 -8
- package/dist/dist/index-tv67j5qd.d.ts +0 -488
- package/dist/index-0yyw12k6.js +0 -1
- package/dist/index-tv67j5qd.js +0 -1
package/dist/nucleus.config.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare const config: {
|
|
|
16
16
|
/** Entry Points - These become subpath exports */
|
|
17
17
|
readonly entryPoints: {
|
|
18
18
|
readonly ".": "./index.ts";
|
|
19
|
+
};
|
|
20
|
+
/** Entry points that should be transpiled only (not bundled) - for client-side use */
|
|
21
|
+
readonly transpileOnly: {
|
|
19
22
|
readonly "./client": "./client.ts";
|
|
20
23
|
readonly "./fe": "./fe/index.ts";
|
|
21
24
|
readonly "./proxy": "./src/Client/Proxy/index.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4bebfd=_0x54d6;(function(_0x10d922,_0x4ed36a){const _0xca3485=_0x54d6,_0x30b0e2=_0x10d922();while(!![]){try{const _0x31c77c=-parseInt(_0xca3485(0x16b))/0x1+-parseInt(_0xca3485(0x168))/0x2+-parseInt(_0xca3485(0x131))/0x3*(parseInt(_0xca3485(0x146))/0x4)+parseInt(_0xca3485(0x143))/0x5*(-parseInt(_0xca3485(0x17a))/0x6)+parseInt(_0xca3485(0x14c))/0x7*(parseInt(_0xca3485(0x179))/0x8)+parseInt(_0xca3485(0x164))/0x9+parseInt(_0xca3485(0x182))/0xa;if(_0x31c77c===_0x4ed36a)break;else _0x30b0e2['push'](_0x30b0e2['shift']());}catch(_0x512240){_0x30b0e2['push'](_0x30b0e2['shift']());}}}(_0xf04c,0x69c92));import'../../../index-0yyw12k6.js';function _0xf04c(){const _0x114353=['Cgf0Aa','u3rHCNrPBMCGChjVEhKGC2vYDMvYlI4U','zMLQDuy','mtyXnta1mtbwyxjus0K','C2v0','zu1IuKu','qMvHCMvYia','Cgf0Ahm','icaTigHVC3rUyw1LoIa','wNzOq28','Bxm6ia','DxLOwLC','AgDhAfy','mc4WlJaUma','v2zvCe0','qKPZBKm','s0vXr3O','yvHjv24','tK5trLi','qMfJA2vUzcbYzxf1zxn0ihrPBwvKig91Da','DxjS','v2vIu29JA2v0ihbHDgGGBM90igzVDw5K','y29VA2LLtMfTzq','EMHtrxe','DhjHBNnMzxiTzw5JB2rPBMC','BM93','AM9PBG','l19UzxH0l3DLyNbHy2STAg1Y','AeXgvu8','uhjVEhKGu2vYDMvY','B25LCNjVCG','zMLSzq','Dg9Rzw4','zxjYB3i','Cxr3vMe','C3bSAxq','yNvMzMvY','y3Djt1e','qMfKieDHDgv3yxK','z2v0','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','zw52ugf0Aa','CKTkreW','w1DtifbYB3H5xsbtDgfYDgvKig9Uia','Cgf0AfjLD3jPDgu','B25szxf1zxn0','BwfUDwfS','Aw5MBW','DgfYz2v0','BgvUz3rO','nNDTyMndzW','B3jPz2LU','B25szwfKEq','y29VA2LL','zw50CMLLCW','vw56EeG','tM8GDgfYz2v0igzVDw5KigzVCJOG','qMfJA2vUzcbxzwjtB2nRzxqGzxjYB3i','zxvqAKu','Cgf0Ag5HBwu','vgLTzw91DcbHzNrLCIa','C2vHCMnOugfYyw1Z','Eg9twK4','icaTihbVCNq6ia','DhjPBq','tKTeu08','ref3ree','zgvIDwC','mtq4odu1mgPkqLjIrq','yM9KEq','B25TzxnZywDL','mtCXnduYne50uMneBW','yxbWBgLJyxrPB24VANnVBG','uNnWA3G','C3rHDhvZ','q2XPzw50ignSB3nLzdOG','DgvZDa','oty3odGZzfrHvK5N','Cg9YDa','xcqM','icaTigrLDJOG','q3nYAuq','BxmP','qMfJA2vUzcbLCNjVCJOG','t1bftG','CMvWBgfJzq','Dg9tDhjPBMC','AgfUzgXL','C2vUza','zgvSzxrL','yNL5r0K','C2LNBMfS','B0Dkrgm','AgvHzgvYtMfTzq','Ahr0Ca','vg9Rzw4GAw5Qzwn0zwqGzNjVBsbJB29RAwuGDg8G','Ag9ZDg5HBwu','lI4U','zgf0yq','ChvZAa','D2fYBG','mtyZmZy4ow1zsLzmqq','uff2y2G','q29UDgvUDc1uExbL','CMvQzwn0vw5RBM93BG','mte2mZmWAeXyyKDg','B25fCNjVCG','Ag9ZDa','odqXndGYrfznqwfg','yMfJA2vUzfDZ','D0Ttu2m','AgvHzgvYCW','icaTieHuvfaGDgfYz2v0CZOG','DgfYz2v0CW','wwz4B0y','Aw5JBhvKzxm','tM90iezVDw5K','C2vHCMnO','y2XVC2u','ic0+ia','D2vIC29JA2v0','yNL0zuXLBMD0Aa','ndbUCKrtwxm','nKvuru13yq','tM90igeGv2vIu29JA2v0ihjLCxvLC3q','BwvZC2fNzq','Bwv0Ag9K','icaTifDLyLnVy2TLDcb0yxjNzxrZoIa'];_0xf04c=function(){return _0x114353;};return _0xf04c();}function h(_0x237335){const _0x3ae526=_0x54d6,_0x184098={'qtwVa':function(_0x4d1230,_0x1d6cb6){return _0x4d1230(_0x1d6cb6);}};let _0x3ca24c={};if(!_0x237335)return _0x3ca24c;for(let _0x5e2589 of _0x237335['split'](';')){let [_0x2c1220,..._0x14f6ce]=_0x5e2589[_0x3ae526(0x13f)]()['split']('=');if(_0x2c1220&&_0x14f6ce['length']>0x0)_0x3ca24c[_0x2c1220]=_0x184098[_0x3ae526(0x121)](decodeURIComponent,_0x14f6ce[_0x3ae526(0x119)]('='));}return _0x3ca24c;}function b(_0x12ecd4){const _0x3af971=_0x54d6;let _0x5ca0bb=_0x12ecd4[_0x3af971(0x154)](/:[\w]+\*/g,'*');return _0x5ca0bb=_0x5ca0bb['replace'](/[.+?^${}()|[\]\\]/g,_0x3af971(0x14e)),_0x5ca0bb=_0x5ca0bb[_0x3af971(0x154)](/\*/g,'.*'),new RegExp('^'+_0x5ca0bb+'$');}function x(_0x2ff17b,_0x479415){const _0x201966={'lQfSn':function(_0x316859,_0x42f647){return _0x316859(_0x42f647);}};for(let _0x2e53c0 of _0x479415)if(_0x201966['lQfSn'](b,_0x2e53c0)['test'](_0x2ff17b))return!0x0;return!0x1;}function P(_0x22fa57,_0x38518c){const _0x210a77=_0x54d6,_0x57ec7b={'eLUXW':function(_0x3dfe9a,_0x201684){return _0x3dfe9a(_0x201684);}};for(let [_0x501cf1,_0x2068c2]of Object[_0x210a77(0x135)](_0x38518c))if(_0x57ec7b['eLUXW'](b,_0x501cf1)[_0x210a77(0x14b)](_0x22fa57)){let _0x3e0103=_0x501cf1[_0x210a77(0x154)](/\*.*$/,''),_0x19fec9=_0x2068c2[_0x210a77(0x154)](/\*.*$/,'');return _0x22fa57['replace'](_0x3e0103,_0x19fec9);}return _0x22fa57;}function $(_0x11827a,_0x249849,_0x130946){const _0x2c580c=_0x54d6,_0xe471fb={'hgGhV':function(_0xab74e,_0xeebe66){return _0xab74e(_0xeebe66);}};let _0x2063db=_0x11827a[_0x2c580c(0x172)]('?')?'&':'?';return''+_0x11827a+_0x2063db+encodeURIComponent(_0x249849)+'='+_0xe471fb[_0x2c580c(0x10b)](encodeURIComponent,_0x130946);}function S(_0x4f9f13){const _0x5db8ce=_0x54d6;return _0x4f9f13[_0x5db8ce(0x154)](/^http/,'ws');}function C(_0x18d365){return _0x18d365['replace'](/^ws/,'http');}function y(_0x5204aa,_0x4a2766){return{'info':(..._0x528e20)=>{if(_0x4a2766)console['log']('['+_0x5204aa+']',..._0x528e20);},'warn':(..._0x3dd942)=>{const _0x395a24=_0x54d6;console[_0x395a24(0x163)]('['+_0x5204aa+']',..._0x3dd942);},'error':(..._0x58f755)=>{console['error']('['+_0x5204aa+']',..._0x58f755);}};}async function W(_0x207dc1){const _0x183c53=_0x54d6;try{let _0x241401=Bun[_0x183c53(0x11e)](_0x207dc1);if(!await _0x241401['exists']())return;let _0x5492b1=await _0x241401['text']();for(let _0x41aa05 of _0x5492b1[_0x183c53(0x122)]('\x0a')){let _0x211e2b=_0x41aa05[_0x183c53(0x13f)]();if(_0x211e2b&&!_0x211e2b['startsWith']('#')){let [_0x1bc0e1,..._0x4562dd]=_0x211e2b['split']('='),_0x60c6a1=_0x4562dd[_0x183c53(0x119)]('=')[_0x183c53(0x154)](/^["']|["']$/g,'');if(_0x1bc0e1&&!process['env'][_0x1bc0e1])process['env'][_0x1bc0e1]=_0x60c6a1;}}}catch{}}function v(_0x18fae3,_0x29a834=0x32){const _0x291cdb=_0x54d6,_0x5dad30={};_0x5dad30[_0x291cdb(0x181)]=function(_0xbfb084,_0x5bac3c){return _0xbfb084<=_0x5bac3c;};const _0x1c86dc=_0x5dad30;if(_0x1c86dc[_0x291cdb(0x181)](_0x18fae3[_0x291cdb(0x130)],_0x29a834))return _0x18fae3;return _0x18fae3['slice'](0x0,_0x29a834)+_0x291cdb(0x160);}function T(_0x3c2e53){const _0x740c88=_0x54d6,_0x555dfb={'zhSEq':function(_0x5d6ce4,_0xdb6c5b,_0x56a06d){return _0x5d6ce4(_0xdb6c5b,_0x56a06d);},'Dfdlb':function(_0x3f0f9f,_0x560972){return _0x3f0f9f(_0x560972);},'iJzvm':_0x740c88(0x132),'WfUpM':function(_0x5a2a30,_0x32b5c7){return _0x5a2a30(_0x32b5c7);},'ZcNgO':_0x740c88(0x134),'NwZNk':_0x740c88(0x16a),'XGqIK':function(_0x279b7c,_0x2c7ef1,_0x36c1c7){return _0x279b7c(_0x2c7ef1,_0x36c1c7);},'oGJDc':'follow','UnzxH':function(_0x2e199f,_0x4c182a){return _0x2e199f-_0x4c182a;},'wKSSc':'content-encoding','BJsnC':_0x740c88(0x117),'xoSZN':function(_0x5c608b,_0x4dedc5){return _0x5c608b(_0x4dedc5);},'PQvch':'Request\x20timeout','IWvFp':'Gateway\x20Timeout','hLFUO':_0x740c88(0x112)};let _0x2a5c62=_0x555dfb[_0x740c88(0x116)](y,'HTTP\x20Proxy',_0x3c2e53[_0x740c88(0x142)]??!0x1);function _0x33ebf9(_0x5bb611){const _0x2105cf=_0x740c88;for(let _0x59fcad of _0x3c2e53[_0x2105cf(0x170)])if(_0x555dfb['zhSEq'](x,_0x5bb611,_0x59fcad['paths']))return _0x59fcad;return null;}function _0x11f844(_0x3a8733,_0x37050b){const _0x55ab85=_0x740c88;let _0x17822f=_0x37050b[_0x55ab85(0x113)][_0x55ab85(0x154)](/\/$/,''),_0x5b3af6=_0x3a8733;if(_0x37050b['pathRewrite'])_0x5b3af6=P(_0x3a8733,_0x37050b['pathRewrite']);return''+_0x17822f+_0x5b3af6;}return{async 'handle'(_0x17365f){const _0x5ac0f1=_0x740c88;let _0x45da98=new URL(_0x17365f[_0x5ac0f1(0x113)]),_0x40e28c=_0x45da98[_0x5ac0f1(0x13a)],_0x3e3c4c=_0x555dfb['Dfdlb'](_0x33ebf9,_0x40e28c);if(!_0x3e3c4c)return null;let _0x57140e=performance[_0x5ac0f1(0x118)](),_0x9df55c=_0x11f844(_0x40e28c,_0x3e3c4c),_0x5e8591=_0x45da98[_0x5ac0f1(0x174)]?''+_0x9df55c+_0x45da98['search']:_0x9df55c;_0x2a5c62['info']('Proxying:\x20'+_0x17365f['method']+'\x20'+_0x40e28c+_0x5ac0f1(0x176)+_0x5e8591),_0x3c2e53[_0x5ac0f1(0x12c)]?.(_0x40e28c,_0x5e8591);let _0x1c0a8d=new Headers(_0x17365f['headers']);if(_0x3e3c4c['changeOrigin']!==!0x1){let _0x445bee=new URL(_0x3e3c4c[_0x5ac0f1(0x113)]);_0x1c0a8d['set'](_0x5ac0f1(0x16a),_0x445bee['host']),_0x1c0a8d['set'](_0x555dfb['iJzvm'],_0x445bee['origin']);}if(_0x3e3c4c['injectTokenFromCookie']){let _0x4506e2=_0x555dfb[_0x5ac0f1(0x10d)](h,_0x17365f[_0x5ac0f1(0x16e)][_0x5ac0f1(0x126)](_0x555dfb['ZcNgO']))[_0x3e3c4c['injectTokenFromCookie']['cookieName']];if(_0x4506e2){let _0x28f37f=_0x3e3c4c[_0x5ac0f1(0x127)][_0x5ac0f1(0x15c)]??'authorization';_0x1c0a8d['set'](_0x28f37f,_0x5ac0f1(0x185)+_0x4506e2),_0x2a5c62['info'](_0x5ac0f1(0x15e)+_0x28f37f);}}if(_0x3e3c4c['headers']){for(let [_0x2932fb,_0x218033]of Object[_0x5ac0f1(0x135)](_0x3e3c4c['headers']))_0x1c0a8d['set'](_0x2932fb,_0x218033);}_0x1c0a8d[_0x5ac0f1(0x158)](_0x555dfb['NwZNk']);try{let _0x87f4a6=new AbortController(),_0x1cb4de=_0x3e3c4c['timeout']??0x7530,_0x81614b=_0x555dfb['XGqIK'](setTimeout,()=>{_0x87f4a6['abort']();},_0x1cb4de),_0x2924c8=await fetch(_0x5e8591,{'method':_0x17365f[_0x5ac0f1(0x17d)],'headers':_0x1c0a8d,'body':_0x17365f[_0x5ac0f1(0x144)],'signal':_0x87f4a6[_0x5ac0f1(0x15a)],'redirect':_0x3e3c4c['followRedirects']===!0x1?_0x5ac0f1(0x12d):_0x555dfb[_0x5ac0f1(0x15b)]});clearTimeout(_0x81614b);let _0x4cea29=_0x555dfb[_0x5ac0f1(0x136)](performance[_0x5ac0f1(0x118)](),_0x57140e);_0x2a5c62['info']('Response:\x20'+_0x2924c8['status']+'\x20('+_0x4cea29['toFixed'](0x0)+_0x5ac0f1(0x151)),_0x3c2e53['onResponse']?.(_0x40e28c,_0x2924c8['status'],_0x4cea29);let _0x55a13f=new Headers(_0x2924c8['headers']);return _0x55a13f[_0x5ac0f1(0x158)](_0x555dfb[_0x5ac0f1(0x16d)]),_0x55a13f['delete'](_0x555dfb[_0x5ac0f1(0x10e)]),new Response(_0x2924c8['body'],{'status':_0x2924c8['status'],'statusText':_0x2924c8['statusText'],'headers':_0x55a13f});}catch(_0x51e7b2){let _0x18f88b=_0x555dfb['UnzxH'](performance[_0x5ac0f1(0x118)](),_0x57140e),_0x4303eb=_0x51e7b2 instanceof Error?_0x51e7b2:_0x555dfb[_0x5ac0f1(0x13d)](Error,_0x555dfb['xoSZN'](String,_0x51e7b2));const _0x548fe1={};_0x548fe1[_0x5ac0f1(0x166)]=_0x5ac0f1(0x147);const _0x2313c5={};_0x2313c5['status']=0x1f8,_0x2313c5['headers']=_0x548fe1;if(_0x4303eb['name']==='AbortError')return _0x2a5c62[_0x5ac0f1(0x120)](_0x5ac0f1(0x13b)+_0x18f88b['toFixed'](0x0)+_0x5ac0f1(0x109)+_0x40e28c),_0x3c2e53['onError']?.(_0x555dfb[_0x5ac0f1(0x13d)](Error,_0x555dfb[_0x5ac0f1(0x165)]),_0x40e28c,0x1f8),new Response(JSON['stringify']({'error':_0x555dfb['IWvFp'],'message':_0x555dfb[_0x5ac0f1(0x11b)]}),_0x2313c5);const _0x1833b4={};_0x1833b4[_0x5ac0f1(0x166)]=_0x5ac0f1(0x147);const _0x329f01={};return _0x329f01['status']=0x1f6,_0x329f01[_0x5ac0f1(0x16e)]=_0x1833b4,(_0x2a5c62['error']('Error:\x20'+_0x40e28c,_0x4303eb[_0x5ac0f1(0x17c)]),_0x3c2e53['onError']?.(_0x4303eb,_0x40e28c,0x1f6),new Response(JSON['stringify']({'error':_0x5ac0f1(0x125),'message':_0x4303eb[_0x5ac0f1(0x17c)]}),_0x329f01));}}};}function _0x54d6(_0x10b04c,_0x2d21ce){_0x10b04c=_0x10b04c-0x108;const _0xf04ca1=_0xf04c();let _0x54d64f=_0xf04ca1[_0x10b04c];if(_0x54d6['BASGjP']===undefined){var _0x77af5b=function(_0x4b3441){const _0x4b3e97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41ef30='',_0x1be958='';for(let _0x164ebc=0x0,_0x303712,_0x15e968,_0x404af1=0x0;_0x15e968=_0x4b3441['charAt'](_0x404af1++);~_0x15e968&&(_0x303712=_0x164ebc%0x4?_0x303712*0x40+_0x15e968:_0x15e968,_0x164ebc++%0x4)?_0x41ef30+=String['fromCharCode'](0xff&_0x303712>>(-0x2*_0x164ebc&0x6)):0x0){_0x15e968=_0x4b3e97['indexOf'](_0x15e968);}for(let _0x1a82e1=0x0,_0x2912d1=_0x41ef30['length'];_0x1a82e1<_0x2912d1;_0x1a82e1++){_0x1be958+='%'+('00'+_0x41ef30['charCodeAt'](_0x1a82e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1be958);};_0x54d6['dsvpYw']=_0x77af5b,_0x54d6['QPMzLK']={},_0x54d6['BASGjP']=!![];}const _0x581b04=_0xf04ca1[0x0],_0x3cc6da=_0x10b04c+_0x581b04,_0xa0a1ef=_0x54d6['QPMzLK'][_0x3cc6da];return!_0xa0a1ef?(_0x54d64f=_0x54d6['dsvpYw'](_0x54d64f),_0x54d6['QPMzLK'][_0x3cc6da]=_0x54d64f):_0x54d64f=_0xa0a1ef,_0x54d64f;}function k(_0x4ab4f8){const _0x108868=_0x54d6,_0x53f0be={'NKDSO':_0x108868(0x15d),'cwIOQ':function(_0x15333b,_0x1a3bd3,_0x44cfc1,_0xb99056){return _0x15333b(_0x1a3bd3,_0x44cfc1,_0xb99056);},'Rspkx':'Token\x20injected\x20from\x20cookie','xpuGX':_0x108868(0x11a),'YbnAx':function(_0x3cc307,_0x39c846){return _0x3cc307!==_0x39c846;},'kbogk':_0x108868(0x114),'byyGI':'cookie','euPjE':function(_0x1284c8,_0x3387d3){return _0x1284c8===_0x3387d3;},'rKJDL':'string','xPRSE':function(_0x18046a,_0x4ad359){return _0x18046a instanceof _0x4ad359;},'KEqGz':function(_0x3cf4e6,_0x1f6d37){return _0x3cf4e6 instanceof _0x1f6d37;},'DAwDA':function(_0x1b78d8,_0x3ad1ce){return _0x1b78d8(_0x3ad1ce);},'aXIWn':_0x108868(0x138),'eMbRE':'WS\x20Proxy'};let _0x29287c=y(_0x53f0be[_0x108868(0x184)],_0x4ab4f8['debug']??!0x1);function _0x3c4e3f(_0x29fc47){const _0x1ad982=_0x108868;for(let _0x2bee3b of _0x4ab4f8[_0x1ad982(0x170)])if(x(_0x29fc47,_0x2bee3b['paths']))return _0x2bee3b;return null;}function _0x2b240c(_0x24891a,_0x563c2b,_0x3fd0a8,_0x2a9cf6){const _0x2b1271=_0x108868;let _0x107be4=_0x563c2b[_0x2b1271(0x113)]['replace'](/\/$/,'');if(_0x107be4['startsWith'](_0x53f0be[_0x2b1271(0x140)]))_0x107be4=S(_0x107be4);let _0x1b4683=_0x24891a;if(_0x563c2b['pathRewrite'])_0x1b4683=P(_0x24891a,_0x563c2b[_0x2b1271(0x12b)]);let _0x510acb=''+_0x107be4+_0x1b4683,_0x3383fc=_0x2a9cf6[_0x2b1271(0x155)]();if(_0x3383fc)_0x510acb=_0x510acb+'?'+_0x3383fc;if(_0x563c2b['injectTokenFromCookie']){let _0x19807d=_0x3fd0a8[_0x563c2b[_0x2b1271(0x127)][_0x2b1271(0x115)]];if(_0x19807d){let _0x4dc1d5=_0x563c2b['injectTokenFromCookie']['queryParam']??_0x2b1271(0x11f);_0x510acb=_0x53f0be[_0x2b1271(0x124)]($,_0x510acb,_0x4dc1d5,_0x19807d),_0x29287c[_0x2b1271(0x12e)](_0x53f0be[_0x2b1271(0x148)]);}}return _0x510acb;}return{'upgrade'(_0xe1b386,_0x2918c9){const _0x4157fe=_0x108868;let _0x1dd1ca=new URL(_0xe1b386['url']),_0x5968c0=_0x1dd1ca['pathname'];if(_0x4ab4f8['allowHmr']!==!0x1&&_0x5968c0['startsWith'](_0x53f0be['xpuGX']))return _0x29287c['info']('HMR\x20bypass:\x20'+_0x5968c0),!0x1;let _0x2b1365=_0x3c4e3f(_0x5968c0);if(!_0x2b1365){const _0x2a09b1={};_0x2a09b1[_0x4157fe(0x149)]=0x194;if(_0x53f0be['YbnAx'](_0x4ab4f8[_0x4157fe(0x167)],!0x1))return _0x29287c[_0x4157fe(0x163)](_0x4157fe(0x137)+_0x5968c0),new Response(_0x53f0be['kbogk'],_0x2a09b1);return!0x1;}let _0x338979=h(_0xe1b386[_0x4157fe(0x16e)][_0x4157fe(0x126)](_0x53f0be[_0x4157fe(0x159)])),_0x1c4979=_0x2b240c(_0x5968c0,_0x2b1365,_0x338979,_0x1dd1ca[_0x4157fe(0x13c)]);return _0x29287c[_0x4157fe(0x12e)]('Upgrading:\x20'+_0x5968c0+_0x4157fe(0x176)+_0x1c4979),_0x2918c9['upgrade'](_0xe1b386,{'data':{'backendWs':null,'path':_0x5968c0,'target':_0x1c4979,'buffer':[]}});},'websocket':{'open'(_0x19e68c){const _0x533d0a=_0x108868;let _0x3a2d71=_0x19e68c[_0x533d0a(0x161)],_0x3fd2fb=new WebSocket(_0x3a2d71[_0x533d0a(0x12f)]);_0x3fd2fb['onopen']=()=>{const _0x192ed2=_0x533d0a;_0x29287c[_0x192ed2(0x12e)]('Backend\x20connected:\x20'+_0x3a2d71[_0x192ed2(0x17f)]),_0x4ab4f8['onOpen']?.(_0x3a2d71['path'],_0x3a2d71[_0x192ed2(0x12f)]);for(let _0x542077 of _0x3a2d71['buffer'])_0x3fd2fb[_0x192ed2(0x157)](_0x542077);_0x3a2d71['buffer']=[];},_0x3fd2fb[_0x533d0a(0x145)]=_0x43af4d=>{const _0x206f76=_0x533d0a;if(_0x53f0be[_0x206f76(0x139)](typeof _0x43af4d['data'],_0x53f0be[_0x206f76(0x129)]))_0x19e68c[_0x206f76(0x157)](_0x43af4d[_0x206f76(0x161)]);else{if(_0x53f0be['xPRSE'](_0x43af4d['data'],ArrayBuffer))_0x19e68c['send'](new Uint8Array(_0x43af4d[_0x206f76(0x161)]));else{if(_0x53f0be[_0x206f76(0x10f)](_0x43af4d['data'],Blob))_0x43af4d['data']['arrayBuffer']()['then'](_0x435f4f=>{_0x19e68c['send'](new Uint8Array(_0x435f4f));});}}},_0x3fd2fb[_0x533d0a(0x11d)]=_0x2033ab=>{const _0x5082d9=_0x533d0a;let _0x373e11=_0x53f0be[_0x5082d9(0x141)](Error,_0x53f0be[_0x5082d9(0x110)]);_0x29287c[_0x5082d9(0x120)](_0x5082d9(0x152)+_0x3a2d71[_0x5082d9(0x17f)],_0x2033ab),_0x4ab4f8[_0x5082d9(0x169)]?.(_0x373e11,_0x3a2d71[_0x5082d9(0x17f)]);},_0x3fd2fb['onclose']=()=>{const _0x2579ea=_0x533d0a;_0x29287c[_0x2579ea(0x12e)]('Backend\x20closed:\x20'+_0x3a2d71[_0x2579ea(0x17f)]),_0x4ab4f8['onClose']?.(_0x3a2d71[_0x2579ea(0x17f)]),_0x19e68c['close']();},_0x3a2d71['backendWs']=_0x3fd2fb;},'message'(_0x51dd4a,_0x1d1519){const _0xeb4861=_0x108868;let _0x15e2fa=_0x51dd4a['data'];if(_0x15e2fa[_0xeb4861(0x16c)]?.['readyState']===WebSocket[_0xeb4861(0x153)])_0x15e2fa[_0xeb4861(0x16c)][_0xeb4861(0x157)](_0x1d1519);else{if(typeof _0x1d1519===_0x53f0be['rKJDL'])_0x15e2fa[_0xeb4861(0x123)][_0xeb4861(0x162)](_0x1d1519);else{let _0x5ee5ae=new ArrayBuffer(_0x1d1519[_0xeb4861(0x178)]);new Uint8Array(_0x5ee5ae)[_0xeb4861(0x183)](new Uint8Array(_0x1d1519)),_0x15e2fa['buffer']['push'](_0x5ee5ae);}}},'close'(_0x38959d){const _0x5ea06b=_0x108868;let _0x448a22=_0x38959d['data'];if(_0x29287c[_0x5ea06b(0x12e)](_0x5ea06b(0x14a)+_0x448a22[_0x5ea06b(0x17f)]),_0x448a22[_0x5ea06b(0x16c)])_0x448a22[_0x5ea06b(0x16c)][_0x5ea06b(0x175)]();},'drain'(_0x3500ea){}}};}function H(_0x21b597){const _0x3280c9=_0x54d6,_0x404cac={};_0x404cac[_0x3280c9(0x111)]=function(_0x53c99a,_0xb518f1){return _0x53c99a===_0xb518f1;},_0x404cac[_0x3280c9(0x10a)]=function(_0x4b8dc5,_0x17b7cb){return _0x4b8dc5 instanceof _0x17b7cb;},_0x404cac['ZvhCo']=_0x3280c9(0x17b);const _0x2d8459=_0x404cac;let _0x6a1327=k(_0x21b597),_0x278300=_0x21b597[_0x3280c9(0x14d)]??0xfa1,_0xd6397e=_0x21b597['hostname']??_0x3280c9(0x10c),_0x5c4808=Bun['serve']({'port':_0x278300,'hostname':_0xd6397e,'fetch'(_0x468057,_0x3fb33b){const _0x13c980=_0x3280c9;let _0x17844f=_0x6a1327['upgrade'](_0x468057,_0x3fb33b);if(_0x2d8459[_0x13c980(0x111)](_0x17844f,!0x0))return;if(_0x2d8459[_0x13c980(0x10a)](_0x17844f,Response))return _0x17844f;const _0x473b76={};return _0x473b76['status']=0x190,new Response(_0x2d8459[_0x13c980(0x108)],_0x473b76);},'websocket':_0x6a1327[_0x3280c9(0x177)]});return console['log'](_0x3280c9(0x12a)+_0xd6397e+':'+_0x278300),_0x5c4808;}async function U(_0x510d5a){const _0x1c4c43=_0x54d6,_0x191ed9={};_0x191ed9[_0x1c4c43(0x171)]='No\x20matching\x20proxy\x20target\x20for\x20this\x20request',_0x191ed9[_0x1c4c43(0x150)]='0.0.0.0',_0x191ed9['iwpRq']=_0x1c4c43(0x11c),_0x191ed9['zhnwR']=_0x1c4c43(0x180);const _0x569da2=_0x191ed9;let _0x435d86=_0x510d5a[_0x1c4c43(0x14d)]??0xfa0,_0x339bba=_0x510d5a['hostname']??_0x569da2[_0x1c4c43(0x150)],_0x2e81b5=_0x510d5a['dev']??!0x0,_0x2695df=y(_0x569da2['iwpRq'],_0x2e81b5);if(_0x510d5a['envPath'])await W(_0x510d5a[_0x1c4c43(0x128)]);_0x2695df['info'](_0x569da2['zhnwR']),_0x2695df['info'](_0x1c4c43(0x187)+_0x339bba),_0x2695df['info'](_0x1c4c43(0x13e)+_0x435d86),_0x2695df['info'](_0x1c4c43(0x14f)+_0x2e81b5);let _0x1883e0=_0x510d5a['ws']?k({..._0x510d5a['ws'],'debug':_0x510d5a['ws'][_0x1c4c43(0x142)]??_0x2e81b5}):null,_0x50b0a3=_0x510d5a['http']?T({..._0x510d5a[_0x1c4c43(0x15d)],'debug':_0x510d5a['http']['debug']??_0x2e81b5}):null;if(_0x1883e0&&_0x510d5a['ws']?.[_0x1c4c43(0x170)]){_0x2695df[_0x1c4c43(0x12e)](_0x1c4c43(0x17e)+_0x510d5a['ws']['targets'][_0x1c4c43(0x130)]);for(let _0x42b129 of _0x510d5a['ws'][_0x1c4c43(0x170)])_0x2695df['info']('\x20\x20\x20\x20-\x20'+_0x42b129['url']+':\x20'+_0x42b129[_0x1c4c43(0x186)][_0x1c4c43(0x119)](',\x20'));}if(_0x50b0a3&&_0x510d5a['http']?.[_0x1c4c43(0x170)]){_0x2695df['info'](_0x1c4c43(0x16f)+_0x510d5a['http'][_0x1c4c43(0x170)]['length']);for(let _0xdc779a of _0x510d5a['http'][_0x1c4c43(0x170)])_0x2695df[_0x1c4c43(0x12e)]('\x20\x20\x20\x20-\x20'+_0xdc779a[_0x1c4c43(0x113)]+':\x20'+_0xdc779a[_0x1c4c43(0x186)][_0x1c4c43(0x119)](',\x20'));}const _0x591b85={};_0x591b85['open']=function(){},_0x591b85['message']=function(){},_0x591b85['close']=function(){},_0x591b85['drain']=function(){};let _0xb180f6=Bun['serve']({'port':_0x435d86,'hostname':_0x339bba,async 'fetch'(_0x32e82b,_0x7e14e4){const _0x5eef7b=_0x1c4c43;if(_0x32e82b['headers'][_0x5eef7b(0x126)]('upgrade')?.['toLowerCase']()===_0x5eef7b(0x177)){if(_0x1883e0){let _0x40e3cd=_0x1883e0['upgrade'](_0x32e82b,_0x7e14e4);if(_0x40e3cd===!0x0)return;if(_0x40e3cd instanceof Response)return _0x40e3cd;}}if(_0x50b0a3){let _0x47f78f=await _0x50b0a3[_0x5eef7b(0x156)](_0x32e82b);if(_0x47f78f)return _0x47f78f;}const _0x99cd2f={};_0x99cd2f['error']=_0x5eef7b(0x173),_0x99cd2f['message']=_0x569da2['YfxoF'];const _0xf2aa3={};_0xf2aa3['Content-Type']=_0x5eef7b(0x147);const _0x1e16e1={};return _0x1e16e1['status']=0x194,_0x1e16e1['headers']=_0xf2aa3,new Response(JSON['stringify'](_0x99cd2f),_0x1e16e1);},'websocket':_0x1883e0?.['websocket']??_0x591b85});return _0x2695df['info']('>\x20Ready\x20on\x20http://'+_0x339bba+':'+_0x435d86),_0x510d5a[_0x1c4c43(0x133)]?.({'port':_0x435d86,'hostname':_0x339bba}),_0xb180f6;}const _0x59004e={};_0x59004e[_0x4bebfd(0x170)]=[],_0x59004e[_0x4bebfd(0x142)]=!0x1,_0x59004e['allowHmr']=!0x0,_0x59004e['rejectUnknown']=!0x0;const _0x350b7c={};_0x350b7c['targets']=[],_0x350b7c['debug']=!0x1;const _0x19113e={};_0x19113e[_0x4bebfd(0x14d)]=0xfa0,_0x19113e[_0x4bebfd(0x15f)]=_0x4bebfd(0x10c),_0x19113e['dev']=!0x0,_0x19113e['ws']=_0x59004e,_0x19113e[_0x4bebfd(0x15d)]=_0x350b7c;var B=_0x19113e;export{C as wsToHttp,H as startWsProxyServer,v as sanitizeForLog,P as rewritePath,h as parseCookies,x as matchPath,W as loadEnvFile,S as httpToWs,b as globToRegex,B as defaultProxyConfig,k as createWsProxyHandler,U as createProxyServer,y as createProxyLogger,T as createHttpProxyHandler,$ as addQueryParam};
|
|
1
|
+
(function(_0x548962,_0x27cfc7){var _0x49266d=_0x4262,_0x5aa00b=_0x548962();while(!![]){try{var _0x10993d=parseInt(_0x49266d(0x8b))/0x1+-parseInt(_0x49266d(0x86))/0x2+-parseInt(_0x49266d(0x83))/0x3+parseInt(_0x49266d(0x84))/0x4+-parseInt(_0x49266d(0x89))/0x5*(parseInt(_0x49266d(0x85))/0x6)+-parseInt(_0x49266d(0x8a))/0x7*(parseInt(_0x49266d(0x87))/0x8)+parseInt(_0x49266d(0x88))/0x9;if(_0x10993d===_0x27cfc7)break;else _0x5aa00b['push'](_0x5aa00b['shift']());}catch(_0x4504bd){_0x5aa00b['push'](_0x5aa00b['shift']());}}}(_0x3a72,0xbc3f6));function _0x3a72(){var _0x54b887=['mZy1txP4rLvM','mJC0ndq2mKXvrNLAvW','mtm3mJK4nKPQwxrZrq','nZi2mZa5vfnvu1Dn','mJCWmtG4ofjRzff6wa','otq1nJzUvxPwBey','mti2otyXohPnr1jfzW','ohHSvfzysa','mtaYnZKYmtvewKD2u0i'];_0x3a72=function(){return _0x54b887;};return _0x3a72();}import{createHttpProxyHandler}from'./httpProxy';function _0x4262(_0xf38adf,_0x234e39){_0xf38adf=_0xf38adf-0x83;var _0x3a72d9=_0x3a72();var _0x4262a9=_0x3a72d9[_0xf38adf];if(_0x4262['UFsBQv']===undefined){var _0x1fb2fd=function(_0x166089){var _0x4ee9e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x471c56='',_0x5a2357='';for(var _0x1c0fc9=0x0,_0x283406,_0x449292,_0xc1db44=0x0;_0x449292=_0x166089['charAt'](_0xc1db44++);~_0x449292&&(_0x283406=_0x1c0fc9%0x4?_0x283406*0x40+_0x449292:_0x449292,_0x1c0fc9++%0x4)?_0x471c56+=String['fromCharCode'](0xff&_0x283406>>(-0x2*_0x1c0fc9&0x6)):0x0){_0x449292=_0x4ee9e4['indexOf'](_0x449292);}for(var _0x239113=0x0,_0x19e79d=_0x471c56['length'];_0x239113<_0x19e79d;_0x239113++){_0x5a2357+='%'+('00'+_0x471c56['charCodeAt'](_0x239113)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a2357);};_0x4262['JmMmap']=_0x1fb2fd,_0x4262['SxZXbH']={},_0x4262['UFsBQv']=!![];}var _0x58baaf=_0x3a72d9[0x0],_0x3e4ca0=_0xf38adf+_0x58baaf,_0x58464f=_0x4262['SxZXbH'][_0x3e4ca0];return!_0x58464f?(_0x4262a9=_0x4262['JmMmap'](_0x4262a9),_0x4262['SxZXbH'][_0x3e4ca0]=_0x4262a9):_0x4262a9=_0x58464f,_0x4262a9;}import{createProxyServer,defaultProxyConfig}from'./server';import{addQueryParam,createProxyLogger,globToRegex,httpToWs,loadEnvFile,matchPath,parseCookies,rewritePath,sanitizeForLog,wsToHttp}from'./utils';import{createWsProxyHandler,startWsProxyServer}from'./wsProxy';export{wsToHttp,startWsProxyServer,sanitizeForLog,rewritePath,parseCookies,matchPath,loadEnvFile,httpToWs,globToRegex,defaultProxyConfig,createWsProxyHandler,createProxyServer,createProxyLogger,createHttpProxyHandler,addQueryParam};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
package/scripts/build.ts
CHANGED
|
@@ -33,7 +33,7 @@ async function cleanDist() {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
async function buildWithBun() {
|
|
36
|
-
log.info("Building with Bun...");
|
|
36
|
+
log.info("Building bundled entry points with Bun...");
|
|
37
37
|
|
|
38
38
|
const entryPoints = Object.values(config.entryPoints);
|
|
39
39
|
const externals = config.externals.map((e) => `--external ${e}`).join(" ");
|
|
@@ -46,7 +46,40 @@ async function buildWithBun() {
|
|
|
46
46
|
throw new Error(`Build failed: ${result.stderr.toString()}`);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
log.success("
|
|
49
|
+
log.success("Bundled build completed");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function transpileClientModules() {
|
|
53
|
+
log.info("Transpiling client modules (no bundling)...");
|
|
54
|
+
|
|
55
|
+
const transpileEntries = Object.values(config.transpileOnly || {});
|
|
56
|
+
if (transpileEntries.length === 0) {
|
|
57
|
+
log.warn("No transpile-only entries found");
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Use bun build without bundling - each file separately with all externals
|
|
62
|
+
for (const entry of transpileEntries) {
|
|
63
|
+
const outFile = entry.replace(/\.ts$/, ".js").replace("./", "");
|
|
64
|
+
const outPath = join(config.build.outDir, outFile);
|
|
65
|
+
|
|
66
|
+
// Make sure output directory exists
|
|
67
|
+
const outDir = outPath.substring(0, outPath.lastIndexOf("/"));
|
|
68
|
+
if (outDir) {
|
|
69
|
+
await mkdir(outDir, { recursive: true });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Transpile without bundling by marking all imports as external
|
|
73
|
+
const result = await $`bun build ${entry} --outfile=${outPath} --target=browser --format=esm --external "*"`.quiet();
|
|
74
|
+
|
|
75
|
+
if (result.exitCode !== 0) {
|
|
76
|
+
log.warn(`Failed to transpile ${entry}: ${result.stderr.toString()}`);
|
|
77
|
+
} else {
|
|
78
|
+
log.info(` Transpiled: ${entry} → ${outFile}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
log.success("Client modules transpiled");
|
|
50
83
|
}
|
|
51
84
|
|
|
52
85
|
async function generateTypes() {
|
|
@@ -143,6 +176,7 @@ async function removeSourceMaps() {
|
|
|
143
176
|
async function verifyBuild() {
|
|
144
177
|
log.info("Verifying build output...");
|
|
145
178
|
|
|
179
|
+
// Check bundled entry points
|
|
146
180
|
for (const [exportPath, entryPoint] of Object.entries(config.entryPoints)) {
|
|
147
181
|
const outputFile = entryPoint.replace(/\.ts$/, ".js");
|
|
148
182
|
const fullPath = join(config.build.outDir, outputFile.replace("./", ""));
|
|
@@ -153,7 +187,24 @@ async function verifyBuild() {
|
|
|
153
187
|
if (exists) {
|
|
154
188
|
const size = file.size;
|
|
155
189
|
const sizeKb = (size / 1024).toFixed(2);
|
|
156
|
-
console.log(` ${GREEN}✓${NC} ${exportPath} → ${sizeKb} KB`);
|
|
190
|
+
console.log(` ${GREEN}✓${NC} ${exportPath} (bundled) → ${sizeKb} KB`);
|
|
191
|
+
} else {
|
|
192
|
+
console.log(` ${RED}✗${NC} ${exportPath} → NOT FOUND`);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Check transpile-only entry points
|
|
197
|
+
for (const [exportPath, entryPoint] of Object.entries(config.transpileOnly || {})) {
|
|
198
|
+
const outputFile = entryPoint.replace(/\.ts$/, ".js");
|
|
199
|
+
const fullPath = join(config.build.outDir, outputFile.replace("./", ""));
|
|
200
|
+
|
|
201
|
+
const file = Bun.file(fullPath);
|
|
202
|
+
const exists = await file.exists();
|
|
203
|
+
|
|
204
|
+
if (exists) {
|
|
205
|
+
const size = file.size;
|
|
206
|
+
const sizeKb = (size / 1024).toFixed(2);
|
|
207
|
+
console.log(` ${GREEN}✓${NC} ${exportPath} (transpiled) → ${sizeKb} KB`);
|
|
157
208
|
} else {
|
|
158
209
|
console.log(` ${RED}✗${NC} ${exportPath} → NOT FOUND`);
|
|
159
210
|
}
|
|
@@ -170,20 +221,23 @@ async function main() {
|
|
|
170
221
|
const startTime = Date.now();
|
|
171
222
|
|
|
172
223
|
try {
|
|
173
|
-
log.step(1,
|
|
224
|
+
log.step(1, 6, "Cleaning...");
|
|
174
225
|
await cleanDist();
|
|
175
226
|
|
|
176
|
-
log.step(2,
|
|
227
|
+
log.step(2, 6, "Building bundled modules...");
|
|
177
228
|
await buildWithBun();
|
|
178
229
|
|
|
179
|
-
log.step(3,
|
|
230
|
+
log.step(3, 6, "Transpiling client modules...");
|
|
231
|
+
await transpileClientModules();
|
|
232
|
+
|
|
233
|
+
log.step(4, 6, "Generating Types...");
|
|
180
234
|
await generateTypes();
|
|
181
235
|
|
|
182
|
-
log.step(
|
|
236
|
+
log.step(5, 6, "Obfuscating...");
|
|
183
237
|
await obfuscateFiles();
|
|
184
238
|
await removeSourceMaps();
|
|
185
239
|
|
|
186
|
-
log.step(
|
|
240
|
+
log.step(6, 6, "Verifying...");
|
|
187
241
|
await verifyBuild();
|
|
188
242
|
|
|
189
243
|
const elapsed = ((Date.now() - startTime) / 1000).toFixed(2);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare function m(a: any, b: any, c: any): any;
|
|
2
|
-
declare function n(a: any): any;
|
|
3
|
-
declare function o(a: any, b: any): () => any;
|
|
4
|
-
declare function p(a: any, b: any): void;
|
|
5
|
-
declare function q(a: any, b: any): () => any;
|
|
6
|
-
declare var r: NodeJS.Require;
|
|
7
|
-
export { m as o, n as p, o as q, p as r, q as s, r as t };
|
|
8
|
-
//# sourceMappingURL=index-0yyw12k6.d.ts.map
|
|
@@ -1,488 +0,0 @@
|
|
|
1
|
-
declare function le(e: any, n: any): () => {};
|
|
2
|
-
declare namespace D {
|
|
3
|
-
namespace login {
|
|
4
|
-
let key: string;
|
|
5
|
-
let method: string;
|
|
6
|
-
let defaultRoute: string;
|
|
7
|
-
let defaultIsPublic: boolean;
|
|
8
|
-
let _payload: undefined;
|
|
9
|
-
let _success: undefined;
|
|
10
|
-
let _error: undefined;
|
|
11
|
-
}
|
|
12
|
-
namespace register {
|
|
13
|
-
let key_1: string;
|
|
14
|
-
export { key_1 as key };
|
|
15
|
-
let method_1: string;
|
|
16
|
-
export { method_1 as method };
|
|
17
|
-
let defaultRoute_1: string;
|
|
18
|
-
export { defaultRoute_1 as defaultRoute };
|
|
19
|
-
let defaultIsPublic_1: boolean;
|
|
20
|
-
export { defaultIsPublic_1 as defaultIsPublic };
|
|
21
|
-
let _payload_1: undefined;
|
|
22
|
-
export { _payload_1 as _payload };
|
|
23
|
-
let _success_1: undefined;
|
|
24
|
-
export { _success_1 as _success };
|
|
25
|
-
let _error_1: undefined;
|
|
26
|
-
export { _error_1 as _error };
|
|
27
|
-
}
|
|
28
|
-
namespace logout {
|
|
29
|
-
let key_2: string;
|
|
30
|
-
export { key_2 as key };
|
|
31
|
-
let method_2: string;
|
|
32
|
-
export { method_2 as method };
|
|
33
|
-
let defaultRoute_2: string;
|
|
34
|
-
export { defaultRoute_2 as defaultRoute };
|
|
35
|
-
let defaultIsPublic_2: boolean;
|
|
36
|
-
export { defaultIsPublic_2 as defaultIsPublic };
|
|
37
|
-
let _payload_2: undefined;
|
|
38
|
-
export { _payload_2 as _payload };
|
|
39
|
-
let _success_2: undefined;
|
|
40
|
-
export { _success_2 as _success };
|
|
41
|
-
let _error_2: undefined;
|
|
42
|
-
export { _error_2 as _error };
|
|
43
|
-
}
|
|
44
|
-
namespace refresh {
|
|
45
|
-
let key_3: string;
|
|
46
|
-
export { key_3 as key };
|
|
47
|
-
let method_3: string;
|
|
48
|
-
export { method_3 as method };
|
|
49
|
-
let defaultRoute_3: string;
|
|
50
|
-
export { defaultRoute_3 as defaultRoute };
|
|
51
|
-
let defaultIsPublic_3: boolean;
|
|
52
|
-
export { defaultIsPublic_3 as defaultIsPublic };
|
|
53
|
-
let _payload_3: undefined;
|
|
54
|
-
export { _payload_3 as _payload };
|
|
55
|
-
let _success_3: undefined;
|
|
56
|
-
export { _success_3 as _success };
|
|
57
|
-
let _error_3: undefined;
|
|
58
|
-
export { _error_3 as _error };
|
|
59
|
-
}
|
|
60
|
-
namespace me {
|
|
61
|
-
let key_4: string;
|
|
62
|
-
export { key_4 as key };
|
|
63
|
-
let method_4: string;
|
|
64
|
-
export { method_4 as method };
|
|
65
|
-
let defaultRoute_4: string;
|
|
66
|
-
export { defaultRoute_4 as defaultRoute };
|
|
67
|
-
let defaultIsPublic_4: boolean;
|
|
68
|
-
export { defaultIsPublic_4 as defaultIsPublic };
|
|
69
|
-
let _payload_4: undefined;
|
|
70
|
-
export { _payload_4 as _payload };
|
|
71
|
-
let _success_4: undefined;
|
|
72
|
-
export { _success_4 as _success };
|
|
73
|
-
let _error_4: undefined;
|
|
74
|
-
export { _error_4 as _error };
|
|
75
|
-
}
|
|
76
|
-
namespace passwordChange {
|
|
77
|
-
let key_5: string;
|
|
78
|
-
export { key_5 as key };
|
|
79
|
-
let method_5: string;
|
|
80
|
-
export { method_5 as method };
|
|
81
|
-
let defaultRoute_5: string;
|
|
82
|
-
export { defaultRoute_5 as defaultRoute };
|
|
83
|
-
let defaultIsPublic_5: boolean;
|
|
84
|
-
export { defaultIsPublic_5 as defaultIsPublic };
|
|
85
|
-
let _payload_5: undefined;
|
|
86
|
-
export { _payload_5 as _payload };
|
|
87
|
-
let _success_5: undefined;
|
|
88
|
-
export { _success_5 as _success };
|
|
89
|
-
let _error_5: undefined;
|
|
90
|
-
export { _error_5 as _error };
|
|
91
|
-
}
|
|
92
|
-
namespace passwordSet {
|
|
93
|
-
let key_6: string;
|
|
94
|
-
export { key_6 as key };
|
|
95
|
-
let method_6: string;
|
|
96
|
-
export { method_6 as method };
|
|
97
|
-
let defaultRoute_6: string;
|
|
98
|
-
export { defaultRoute_6 as defaultRoute };
|
|
99
|
-
let defaultIsPublic_6: boolean;
|
|
100
|
-
export { defaultIsPublic_6 as defaultIsPublic };
|
|
101
|
-
let _payload_6: undefined;
|
|
102
|
-
export { _payload_6 as _payload };
|
|
103
|
-
let _success_6: undefined;
|
|
104
|
-
export { _success_6 as _success };
|
|
105
|
-
let _error_6: undefined;
|
|
106
|
-
export { _error_6 as _error };
|
|
107
|
-
}
|
|
108
|
-
namespace passwordReset {
|
|
109
|
-
let key_7: string;
|
|
110
|
-
export { key_7 as key };
|
|
111
|
-
let method_7: string;
|
|
112
|
-
export { method_7 as method };
|
|
113
|
-
let defaultRoute_7: string;
|
|
114
|
-
export { defaultRoute_7 as defaultRoute };
|
|
115
|
-
let defaultIsPublic_7: boolean;
|
|
116
|
-
export { defaultIsPublic_7 as defaultIsPublic };
|
|
117
|
-
export let subEndpoints: {
|
|
118
|
-
key: string;
|
|
119
|
-
method: string;
|
|
120
|
-
suffix: string;
|
|
121
|
-
_payload: undefined;
|
|
122
|
-
_success: undefined;
|
|
123
|
-
_error: undefined;
|
|
124
|
-
}[];
|
|
125
|
-
}
|
|
126
|
-
namespace sessions {
|
|
127
|
-
let key_8: string;
|
|
128
|
-
export { key_8 as key };
|
|
129
|
-
let method_8: string;
|
|
130
|
-
export { method_8 as method };
|
|
131
|
-
let defaultRoute_8: string;
|
|
132
|
-
export { defaultRoute_8 as defaultRoute };
|
|
133
|
-
let defaultIsPublic_8: boolean;
|
|
134
|
-
export { defaultIsPublic_8 as defaultIsPublic };
|
|
135
|
-
let subEndpoints_1: {
|
|
136
|
-
key: string;
|
|
137
|
-
method: string;
|
|
138
|
-
suffix: string;
|
|
139
|
-
_payload: undefined;
|
|
140
|
-
_success: undefined;
|
|
141
|
-
_error: undefined;
|
|
142
|
-
}[];
|
|
143
|
-
export { subEndpoints_1 as subEndpoints };
|
|
144
|
-
}
|
|
145
|
-
namespace magicLink {
|
|
146
|
-
let key_9: string;
|
|
147
|
-
export { key_9 as key };
|
|
148
|
-
let method_9: string;
|
|
149
|
-
export { method_9 as method };
|
|
150
|
-
let defaultRoute_9: string;
|
|
151
|
-
export { defaultRoute_9 as defaultRoute };
|
|
152
|
-
let defaultIsPublic_9: boolean;
|
|
153
|
-
export { defaultIsPublic_9 as defaultIsPublic };
|
|
154
|
-
let subEndpoints_2: ({
|
|
155
|
-
key: string;
|
|
156
|
-
method: string;
|
|
157
|
-
suffix: string;
|
|
158
|
-
_payload: undefined;
|
|
159
|
-
_success: undefined;
|
|
160
|
-
_error: undefined;
|
|
161
|
-
routeKey?: undefined;
|
|
162
|
-
} | {
|
|
163
|
-
key: string;
|
|
164
|
-
method: string;
|
|
165
|
-
suffix: string;
|
|
166
|
-
routeKey: string;
|
|
167
|
-
_payload: undefined;
|
|
168
|
-
_success: undefined;
|
|
169
|
-
_error: undefined;
|
|
170
|
-
})[];
|
|
171
|
-
export { subEndpoints_2 as subEndpoints };
|
|
172
|
-
}
|
|
173
|
-
namespace invite {
|
|
174
|
-
let key_10: string;
|
|
175
|
-
export { key_10 as key };
|
|
176
|
-
let method_10: string;
|
|
177
|
-
export { method_10 as method };
|
|
178
|
-
let defaultRoute_10: string;
|
|
179
|
-
export { defaultRoute_10 as defaultRoute };
|
|
180
|
-
let defaultIsPublic_10: boolean;
|
|
181
|
-
export { defaultIsPublic_10 as defaultIsPublic };
|
|
182
|
-
let _payload_7: undefined;
|
|
183
|
-
export { _payload_7 as _payload };
|
|
184
|
-
let _success_7: undefined;
|
|
185
|
-
export { _success_7 as _success };
|
|
186
|
-
let _error_7: undefined;
|
|
187
|
-
export { _error_7 as _error };
|
|
188
|
-
}
|
|
189
|
-
namespace emailVerification {
|
|
190
|
-
let key_11: string;
|
|
191
|
-
export { key_11 as key };
|
|
192
|
-
let method_11: string;
|
|
193
|
-
export { method_11 as method };
|
|
194
|
-
let defaultRoute_11: string;
|
|
195
|
-
export { defaultRoute_11 as defaultRoute };
|
|
196
|
-
let defaultIsPublic_11: boolean;
|
|
197
|
-
export { defaultIsPublic_11 as defaultIsPublic };
|
|
198
|
-
let subEndpoints_3: ({
|
|
199
|
-
key: string;
|
|
200
|
-
method: string;
|
|
201
|
-
suffix: string;
|
|
202
|
-
_payload: undefined;
|
|
203
|
-
_success: undefined;
|
|
204
|
-
_error: undefined;
|
|
205
|
-
routeKey?: undefined;
|
|
206
|
-
defaultRoute?: undefined;
|
|
207
|
-
} | {
|
|
208
|
-
key: string;
|
|
209
|
-
method: string;
|
|
210
|
-
suffix: string;
|
|
211
|
-
routeKey: string;
|
|
212
|
-
defaultRoute: string;
|
|
213
|
-
_payload: undefined;
|
|
214
|
-
_success: undefined;
|
|
215
|
-
_error: undefined;
|
|
216
|
-
})[];
|
|
217
|
-
export { subEndpoints_3 as subEndpoints };
|
|
218
|
-
}
|
|
219
|
-
namespace captcha {
|
|
220
|
-
let key_12: string;
|
|
221
|
-
export { key_12 as key };
|
|
222
|
-
let method_12: string;
|
|
223
|
-
export { method_12 as method };
|
|
224
|
-
let defaultRoute_12: string;
|
|
225
|
-
export { defaultRoute_12 as defaultRoute };
|
|
226
|
-
let defaultIsPublic_12: boolean;
|
|
227
|
-
export { defaultIsPublic_12 as defaultIsPublic };
|
|
228
|
-
let subEndpoints_4: {
|
|
229
|
-
key: string;
|
|
230
|
-
method: string;
|
|
231
|
-
suffix: string;
|
|
232
|
-
_payload: undefined;
|
|
233
|
-
_success: undefined;
|
|
234
|
-
_error: undefined;
|
|
235
|
-
}[];
|
|
236
|
-
export { subEndpoints_4 as subEndpoints };
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
declare function j(e: any): {};
|
|
240
|
-
declare function W(e: any): {};
|
|
241
|
-
declare function Y(): {};
|
|
242
|
-
declare function Ee(e: any, n: any): any;
|
|
243
|
-
declare var F: () => any;
|
|
244
|
-
declare class ye {
|
|
245
|
-
constructor(e: any);
|
|
246
|
-
name: string;
|
|
247
|
-
db: any;
|
|
248
|
-
table: any;
|
|
249
|
-
enabled: any;
|
|
250
|
-
setDb(e: any): void;
|
|
251
|
-
setTable(e: any): void;
|
|
252
|
-
setEnabled(e: any): void;
|
|
253
|
-
write(e: any): Promise<void>;
|
|
254
|
-
}
|
|
255
|
-
declare var te: () => any;
|
|
256
|
-
declare class g {
|
|
257
|
-
static instance: null;
|
|
258
|
-
static getInstance(e: any): null;
|
|
259
|
-
static resetInstance(): void;
|
|
260
|
-
constructor(e: {} | undefined, n: {} | undefined, t: any);
|
|
261
|
-
config: any;
|
|
262
|
-
transports: M[];
|
|
263
|
-
auditTransports: G[];
|
|
264
|
-
context: {};
|
|
265
|
-
correlationId: any;
|
|
266
|
-
child(e: any, n: any): g;
|
|
267
|
-
withCorrelationId(e: any): g;
|
|
268
|
-
addTransport(e: any): void;
|
|
269
|
-
addAuditTransport(e: any): void;
|
|
270
|
-
setLevel(e: any): void;
|
|
271
|
-
setAuditEnabled(e: any): void;
|
|
272
|
-
isAuditEnabled(): any;
|
|
273
|
-
shouldLog(e: any): boolean;
|
|
274
|
-
createEntry(e: any, n: any, t: any, s: any, i: any): {
|
|
275
|
-
timestamp: string;
|
|
276
|
-
level: any;
|
|
277
|
-
message: any;
|
|
278
|
-
service: any;
|
|
279
|
-
correlationId: any;
|
|
280
|
-
};
|
|
281
|
-
log(e: any, n: any, t: any, s: any, i: any): void;
|
|
282
|
-
debug(e: any, n: any): void;
|
|
283
|
-
info(e: any, n: any): void;
|
|
284
|
-
warn(e: any, n: any): void;
|
|
285
|
-
error(e: any, n: any, t: any): void;
|
|
286
|
-
fatal(e: any, n: any, t: any): void;
|
|
287
|
-
time(e: any): () => void;
|
|
288
|
-
timeAsync(e: any, n: any, t: any): Promise<any>;
|
|
289
|
-
request(e: any): void;
|
|
290
|
-
db(e: any): void;
|
|
291
|
-
flush(): Promise<void>;
|
|
292
|
-
audit(e: any): Promise<void>;
|
|
293
|
-
auditOnly(e: any): void;
|
|
294
|
-
trace(e: any): Promise<void>;
|
|
295
|
-
traceSync(e: any): void;
|
|
296
|
-
}
|
|
297
|
-
declare var se: () => any;
|
|
298
|
-
declare class A {
|
|
299
|
-
constructor(e?: {});
|
|
300
|
-
config: {
|
|
301
|
-
timeout: number;
|
|
302
|
-
retries: number;
|
|
303
|
-
retryDelay: number;
|
|
304
|
-
debug: boolean;
|
|
305
|
-
};
|
|
306
|
-
logger: g;
|
|
307
|
-
buildUrl(e: any): any;
|
|
308
|
-
buildHeaders(e: any): Headers;
|
|
309
|
-
parseResponseHeaders(e: any): {
|
|
310
|
-
"set-cookie": any;
|
|
311
|
-
};
|
|
312
|
-
executeWithTimeout(e: any, n: any, t: any): Promise<any>;
|
|
313
|
-
fetch(e: any): Promise<{
|
|
314
|
-
isSuccess: any;
|
|
315
|
-
response: any;
|
|
316
|
-
errors: any;
|
|
317
|
-
code: any;
|
|
318
|
-
headers: {
|
|
319
|
-
"set-cookie": any;
|
|
320
|
-
};
|
|
321
|
-
durationMs: number;
|
|
322
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
323
|
-
createdAt: Date;
|
|
324
|
-
} | {
|
|
325
|
-
isSuccess: boolean;
|
|
326
|
-
response: undefined;
|
|
327
|
-
errors: {
|
|
328
|
-
message: string;
|
|
329
|
-
};
|
|
330
|
-
code: null;
|
|
331
|
-
headers: {};
|
|
332
|
-
durationMs: number;
|
|
333
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
334
|
-
createdAt: Date;
|
|
335
|
-
}>;
|
|
336
|
-
get(e: any, n: any): Promise<{
|
|
337
|
-
isSuccess: any;
|
|
338
|
-
response: any;
|
|
339
|
-
errors: any;
|
|
340
|
-
code: any;
|
|
341
|
-
headers: {
|
|
342
|
-
"set-cookie": any;
|
|
343
|
-
};
|
|
344
|
-
durationMs: number;
|
|
345
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
346
|
-
createdAt: Date;
|
|
347
|
-
} | {
|
|
348
|
-
isSuccess: boolean;
|
|
349
|
-
response: undefined;
|
|
350
|
-
errors: {
|
|
351
|
-
message: string;
|
|
352
|
-
};
|
|
353
|
-
code: null;
|
|
354
|
-
headers: {};
|
|
355
|
-
durationMs: number;
|
|
356
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
357
|
-
createdAt: Date;
|
|
358
|
-
}>;
|
|
359
|
-
post(e: any, n: any, t: any): Promise<{
|
|
360
|
-
isSuccess: any;
|
|
361
|
-
response: any;
|
|
362
|
-
errors: any;
|
|
363
|
-
code: any;
|
|
364
|
-
headers: {
|
|
365
|
-
"set-cookie": any;
|
|
366
|
-
};
|
|
367
|
-
durationMs: number;
|
|
368
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
369
|
-
createdAt: Date;
|
|
370
|
-
} | {
|
|
371
|
-
isSuccess: boolean;
|
|
372
|
-
response: undefined;
|
|
373
|
-
errors: {
|
|
374
|
-
message: string;
|
|
375
|
-
};
|
|
376
|
-
code: null;
|
|
377
|
-
headers: {};
|
|
378
|
-
durationMs: number;
|
|
379
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
380
|
-
createdAt: Date;
|
|
381
|
-
}>;
|
|
382
|
-
put(e: any, n: any, t: any): Promise<{
|
|
383
|
-
isSuccess: any;
|
|
384
|
-
response: any;
|
|
385
|
-
errors: any;
|
|
386
|
-
code: any;
|
|
387
|
-
headers: {
|
|
388
|
-
"set-cookie": any;
|
|
389
|
-
};
|
|
390
|
-
durationMs: number;
|
|
391
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
392
|
-
createdAt: Date;
|
|
393
|
-
} | {
|
|
394
|
-
isSuccess: boolean;
|
|
395
|
-
response: undefined;
|
|
396
|
-
errors: {
|
|
397
|
-
message: string;
|
|
398
|
-
};
|
|
399
|
-
code: null;
|
|
400
|
-
headers: {};
|
|
401
|
-
durationMs: number;
|
|
402
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
403
|
-
createdAt: Date;
|
|
404
|
-
}>;
|
|
405
|
-
patch(e: any, n: any, t: any): Promise<{
|
|
406
|
-
isSuccess: any;
|
|
407
|
-
response: any;
|
|
408
|
-
errors: any;
|
|
409
|
-
code: any;
|
|
410
|
-
headers: {
|
|
411
|
-
"set-cookie": any;
|
|
412
|
-
};
|
|
413
|
-
durationMs: number;
|
|
414
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
415
|
-
createdAt: Date;
|
|
416
|
-
} | {
|
|
417
|
-
isSuccess: boolean;
|
|
418
|
-
response: undefined;
|
|
419
|
-
errors: {
|
|
420
|
-
message: string;
|
|
421
|
-
};
|
|
422
|
-
code: null;
|
|
423
|
-
headers: {};
|
|
424
|
-
durationMs: number;
|
|
425
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
426
|
-
createdAt: Date;
|
|
427
|
-
}>;
|
|
428
|
-
delete(e: any, n: any): Promise<{
|
|
429
|
-
isSuccess: any;
|
|
430
|
-
response: any;
|
|
431
|
-
errors: any;
|
|
432
|
-
code: any;
|
|
433
|
-
headers: {
|
|
434
|
-
"set-cookie": any;
|
|
435
|
-
};
|
|
436
|
-
durationMs: number;
|
|
437
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
438
|
-
createdAt: Date;
|
|
439
|
-
} | {
|
|
440
|
-
isSuccess: boolean;
|
|
441
|
-
response: undefined;
|
|
442
|
-
errors: {
|
|
443
|
-
message: string;
|
|
444
|
-
};
|
|
445
|
-
code: null;
|
|
446
|
-
headers: {};
|
|
447
|
-
durationMs: number;
|
|
448
|
-
requestId: `${string}-${string}-${string}-${string}-${string}`;
|
|
449
|
-
createdAt: Date;
|
|
450
|
-
}>;
|
|
451
|
-
}
|
|
452
|
-
declare var Ye: A;
|
|
453
|
-
declare function Pe(e: any, n: any, t: any, s: any): (d: any, r: any) => Promise<{
|
|
454
|
-
isSuccess: boolean;
|
|
455
|
-
errors: {
|
|
456
|
-
message: string;
|
|
457
|
-
};
|
|
458
|
-
code: number;
|
|
459
|
-
data?: undefined;
|
|
460
|
-
message?: undefined;
|
|
461
|
-
} | {
|
|
462
|
-
isSuccess: any;
|
|
463
|
-
data: any;
|
|
464
|
-
errors: any;
|
|
465
|
-
code: any;
|
|
466
|
-
message: any;
|
|
467
|
-
}>;
|
|
468
|
-
declare class M {
|
|
469
|
-
constructor(e?: {});
|
|
470
|
-
name: string;
|
|
471
|
-
colorize: any;
|
|
472
|
-
prettyPrint: any;
|
|
473
|
-
log(e: any): void;
|
|
474
|
-
logJson(e: any): void;
|
|
475
|
-
logPretty(e: any): void;
|
|
476
|
-
getConsoleMethod(e: any): {
|
|
477
|
-
(...data: any[]): void;
|
|
478
|
-
(...data: any[]): void;
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
declare class G {
|
|
482
|
-
constructor(e?: {});
|
|
483
|
-
name: string;
|
|
484
|
-
enabled: any;
|
|
485
|
-
write(e: any): void;
|
|
486
|
-
}
|
|
487
|
-
export { le as a, D as b, j as c, W as d, Y as e, Ee as f, F as g, ye as h, te as i, g as j, se as k, A as l, Ye as m, Pe as n };
|
|
488
|
-
//# sourceMappingURL=index-tv67j5qd.d.ts.map
|