UNPKG

trakk-js

Version:

Automatic Documentation Generation - Real-Time Code Execution Flow - Testing / Debugging - Onboarding - for Front-End Applications

1 lines 2.9 kB
const _0x275c76=_0x3484;(function(_0x5cbf21,_0x4ece12){const _0x350462=_0x3484,_0x13051c=_0x5cbf21();while(!![]){try{const _0x578f5b=-parseInt(_0x350462(0x95))/0x1*(-parseInt(_0x350462(0x9d))/0x2)+parseInt(_0x350462(0x89))/0x3+-parseInt(_0x350462(0x98))/0x4*(-parseInt(_0x350462(0x8d))/0x5)+parseInt(_0x350462(0x9b))/0x6+-parseInt(_0x350462(0x96))/0x7+parseInt(_0x350462(0x93))/0x8+-parseInt(_0x350462(0x9a))/0x9;if(_0x578f5b===_0x4ece12)break;else _0x13051c['push'](_0x13051c['shift']());}catch(_0x557f5b){_0x13051c['push'](_0x13051c['shift']());}}}(_0x14e4,0x5d771));function _0x14e4(){const _0xfd2614=['oapXB','74HtNcZp','code','410436SXizBI','readFileSync','/local-trakk-js-api','writeFileSync','362545YZuBpr','path','utf8','sSVsq','trakk-js-all-trakks-2a89adad-892e-466b-b121-01b9154b2fab','content','4695864zyhKgC','join','1667CHrClg','1599087hopAFO','replace','20xeRWWm','http://localhost:','8630046ItOzgk','2532894hgnJvA'];_0x14e4=function(){return _0xfd2614;};return _0x14e4();}import _0x5609c1 from'fs';import _0x49247a from'./trkf.js';import _0x50bb9f from'./get-code.js';function _0x3484(_0x1b610c,_0xe07d71){const _0x14e4a1=_0x14e4();return _0x3484=function(_0x348434,_0x49554d){_0x348434=_0x348434-0x88;let _0x5d456=_0x14e4a1[_0x348434];return _0x5d456;},_0x3484(_0x1b610c,_0xe07d71);}import{v4 as _0x3685fb}from'uuid';import{minify}from'terser';import _0x23c7b3 from'path';const trakkListArrayName=_0x275c76(0x91),trakkLineFunctionName=_0x3685fb();export default function ({pathToClonedAppRootFolder,pathToAppRootFolder,trakkUiAppJsFileSrc,localFileServerPort,clonedFiles,config}){const _0xbede06=_0x275c76,hUmwVO={'sSVsq':_0xbede06(0x8f),'oapXB':function(callee,param1){return callee(param1);}};console['log']('\x0a[trakk.js]\x20Almost\x20there...\x0a\x0a');const localFilerServerEndpoint=_0xbede06(0x99)+localFileServerPort+_0xbede06(0x8b);clonedFiles['forEach'](async clonedFile=>{const _0x4125af=_0xbede06,pathToOriginalFile=_0x23c7b3[_0x4125af(0x94)](pathToAppRootFolder,clonedFile[_0x4125af(0x8e)][_0x4125af(0x97)](pathToClonedAppRootFolder,'')),serverPathToOriginalFile=_0x4125af(0x99)+localFileServerPort+'/local-trakk-js-api/view/code?path='+pathToOriginalFile,originalCode=_0x5609c1[_0x4125af(0x8a)](pathToOriginalFile,hUmwVO[_0x4125af(0x90)]),orginalCodeWithTrakkedFunctions=_0x49247a(originalCode,serverPathToOriginalFile,trakkLineFunctionName,clonedFile[_0x4125af(0x92)]),extraTrakkCode=hUmwVO[_0x4125af(0x9c)](_0x50bb9f,{'trakkUiAppJsFileSrc':trakkUiAppJsFileSrc,'trakkListArrayName':trakkListArrayName,'trakkLineFunctionName':trakkLineFunctionName,'localFilerServerEndpoint':localFilerServerEndpoint,'config':config}),minifiedExtraTrakkCode=(await minify(extraTrakkCode))[_0x4125af(0x88)],completeModifiedFileContent=minifiedExtraTrakkCode+'\x0a\x0a'+orginalCodeWithTrakkedFunctions;_0x5609c1[_0x4125af(0x8c)](clonedFile[_0x4125af(0x8e)],completeModifiedFileContent);});}