@profoundlogic/codermake 1.4.2 → 1.4.3
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/bin/index.js +1 -1
- package/dist/bin/preprocess-rpg-copy.js +1 -1
- package/dist/bin/rdf-to-dds.js +1 -1
- package/dist/lib/discovery.js +1 -1
- package/dist/lib/executor.js +1 -1
- package/dist/lib/generate-rdf-dds.js +1 -1
- package/dist/lib/license.js +1 -1
- package/dist/lib/makefile-generator.js +1 -1
- package/dist/lib/platform.js +1 -1
- package/dist/lib/preprocessor.js +1 -1
- package/dist/lib/rdf-to-post-data.js +1 -1
- package/dist/lib/rpg-copy-preprocessor.js +1 -1
- package/dist/lib/ssh.js +1 -1
- package/dist/lib/writer.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x478c13,_0x42faee){const _0x4687e0=_0x2761,_0x44e976=_0x478c13();while(!![]){try{const _0x5d748c=-parseInt(_0x4687e0(0x190))/0x1+parseInt(_0x4687e0(0x1b9))/0x2*(parseInt(_0x4687e0(0x181))/0x3)+-parseInt(_0x4687e0(0x1a8))/0x4+-parseInt(_0x4687e0(0x198))/0x5*(-parseInt(_0x4687e0(0x17f))/0x6)+parseInt(_0x4687e0(0x18c))/0x7+-parseInt(_0x4687e0(0x1ac))/0x8+parseInt(_0x4687e0(0x195))/0x9;if(_0x5d748c===_0x42faee)break;else _0x44e976['push'](_0x44e976['shift']());}catch(_0x4ccdfb){_0x44e976['push'](_0x44e976['shift']());}}}(_0x5464,0xa061e));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x4bf4ac){const _0x1fef13=_0x2761,_0xa75df0={};_0xa75df0[_0x1fef13(0x18a)]=_0x1fef13(0x18e),_0xa75df0[_0x1fef13(0x1b1)]=_0x1fef13(0x1a1);const _0x31a32a=_0xa75df0;if(/^\*\*free$/i['test'](_0x4bf4ac['trimEnd']()))return _0x31a32a[_0x1fef13(0x18a)];return _0x31a32a[_0x1fef13(0x1b1)];}function _0x2761(_0x2e0f90,_0x4a65ca){_0x2e0f90=_0x2e0f90-0x171;const _0x5464bd=_0x5464();let _0x27616d=_0x5464bd[_0x2e0f90];if(_0x2761['shmFUy']===undefined){var _0x37bf75=function(_0x2958b3){const _0x3bbf97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e042e='',_0x6f259a='';for(let _0x4a999a=0x0,_0x16259d,_0xecb6f1,_0x1cf436=0x0;_0xecb6f1=_0x2958b3['charAt'](_0x1cf436++);~_0xecb6f1&&(_0x16259d=_0x4a999a%0x4?_0x16259d*0x40+_0xecb6f1:_0xecb6f1,_0x4a999a++%0x4)?_0x1e042e+=String['fromCharCode'](0xff&_0x16259d>>(-0x2*_0x4a999a&0x6)):0x0){_0xecb6f1=_0x3bbf97['indexOf'](_0xecb6f1);}for(let _0xe7e43b=0x0,_0x123b39=_0x1e042e['length'];_0xe7e43b<_0x123b39;_0xe7e43b++){_0x6f259a+='%'+('00'+_0x1e042e['charCodeAt'](_0xe7e43b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6f259a);};_0x2761['msuCDT']=_0x37bf75,_0x2761['SPxuAC']={},_0x2761['shmFUy']=!![];}const _0x4e4f3f=_0x5464bd[0x0],_0x47a7d9=_0x2e0f90+_0x4e4f3f,_0x421ae7=_0x2761['SPxuAC'][_0x47a7d9];return!_0x421ae7?(_0x27616d=_0x2761['msuCDT'](_0x27616d),_0x2761['SPxuAC'][_0x47a7d9]=_0x27616d):_0x27616d=_0x421ae7,_0x27616d;}export function extractDirective(_0x5a96e2,_0x56b719){const _0xbe3354=_0x2761,_0x1dfd46={};_0x1dfd46[_0xbe3354(0x173)]=_0xbe3354(0x18e),_0x1dfd46['qvdiS']=function(_0x146ef7,_0x9da5b2){return _0x146ef7+_0x9da5b2;},_0x1dfd46[_0xbe3354(0x182)]=function(_0x221ef1,_0x39d85d){return _0x221ef1<_0x39d85d;},_0x1dfd46[_0xbe3354(0x1a7)]=function(_0x39a855,_0xe32158){return _0x39a855-_0xe32158;},_0x1dfd46[_0xbe3354(0x1af)]=function(_0x48efa6,_0x551b40){return _0x48efa6===_0x551b40;};const _0x5d02ff=_0x1dfd46;let _0x7f35e0,_0x147d96;if(_0x56b719===_0x5d02ff[_0xbe3354(0x173)]){const _0x14f02d=_0x5a96e2[_0xbe3354(0x179)](/^\s*\/(copy|include) (\S)/i);if(!_0x14f02d)return null;const _0xa79d6a=_0x5a96e2['trimStart']();if(_0xa79d6a[_0xbe3354(0x180)]('//'))return null;_0x7f35e0=_0x14f02d[0x1][_0xbe3354(0x18d)](),_0x147d96=_0x5a96e2[_0xbe3354(0x1b7)](_0x5d02ff['qvdiS'](_0x14f02d[_0xbe3354(0x175)],_0x14f02d[0x0][_0xbe3354(0x199)])-0x1);}else{if(_0x5d02ff['wCjKJ'](_0x5a96e2[_0xbe3354(0x199)],0x7))return null;if(_0x5a96e2[0x6]!=='/')return null;const _0x44f7a4=_0x5a96e2[_0xbe3354(0x1b7)](0x7),_0x266ed8=_0x44f7a4[_0xbe3354(0x179)](/^(copy|include) (\S)/i);if(!_0x266ed8)return null;_0x7f35e0=_0x266ed8[0x1][_0xbe3354(0x18d)](),_0x147d96=_0x44f7a4[_0xbe3354(0x1b7)](_0x5d02ff['bEgKF'](_0x266ed8[0x0][_0xbe3354(0x199)],0x1));}let _0x54ee77;if(_0x147d96[_0xbe3354(0x180)]('\x27')){const _0x3a5da0=_0x147d96['indexOf']('\x27',0x1);_0x54ee77=_0x5d02ff['vedza'](_0x3a5da0,-0x1)?_0x147d96[_0xbe3354(0x17e)]():_0x147d96[_0xbe3354(0x1b7)](0x0,_0x3a5da0+0x1);}else{if(_0x147d96[_0xbe3354(0x180)]('\x22')){const _0x1863eb=_0x147d96[_0xbe3354(0x1b0)]('\x22',0x1);_0x54ee77=_0x1863eb===-0x1?_0x147d96[_0xbe3354(0x17e)]():_0x147d96['substring'](0x0,_0x5d02ff[_0xbe3354(0x1ba)](_0x1863eb,0x1));}else _0x54ee77=_0x147d96[_0xbe3354(0x174)](/\s/)[0x0];}const _0x1cc77b={};return _0x1cc77b['keyword']=_0x7f35e0,_0x1cc77b[_0xbe3354(0x1b5)]=_0x54ee77,_0x1cc77b;}export function classifyDirectiveOperand(_0x1102a7){const _0x4ec0dc=_0x2761,_0x472497={};_0x472497[_0x4ec0dc(0x1b2)]=_0x4ec0dc(0x185),_0x472497[_0x4ec0dc(0x1ab)]=function(_0x24f27a,_0x2d22d2){return _0x24f27a+_0x2d22d2;},_0x472497[_0x4ec0dc(0x194)]=function(_0x31469d,_0x5579c4){return _0x31469d+_0x5579c4;},_0x472497[_0x4ec0dc(0x1a2)]='member';const _0x405cb0=_0x472497;if(_0x1102a7['startsWith']('\x27')||_0x1102a7[_0x4ec0dc(0x180)]('\x22')){const _0x36872a={};return _0x36872a['type']=_0x405cb0[_0x4ec0dc(0x1b2)],_0x36872a;}if(_0x1102a7['includes'](',')){const _0x4b0c13=_0x1102a7[_0x4ec0dc(0x1b0)](','),_0x185d27=_0x1102a7[_0x4ec0dc(0x1b7)](0x0,_0x4b0c13),_0x52f091=_0x1102a7['substring'](_0x405cb0[_0x4ec0dc(0x1ab)](_0x4b0c13,0x1)),_0xfb8e26=_0x185d27[_0x4ec0dc(0x1b0)]('/');if(_0xfb8e26!==-0x1){const _0x40b849=_0x185d27[_0x4ec0dc(0x1b7)](0x0,_0xfb8e26),_0x2bea31=/^\*libl$/i[_0x4ec0dc(0x187)](_0x40b849)?null:_0x40b849;return{'type':_0x4ec0dc(0x188),'library':_0x2bea31,'fileName':_0x185d27[_0x4ec0dc(0x1b7)](_0x405cb0[_0x4ec0dc(0x194)](_0xfb8e26,0x1)),'memberName':_0x52f091};}const _0x452798={};return _0x452798['type']=_0x405cb0['MDibz'],_0x452798[_0x4ec0dc(0x192)]=null,_0x452798[_0x4ec0dc(0x19c)]=_0x185d27,_0x452798['memberName']=_0x52f091,_0x452798;}if(_0x1102a7[_0x4ec0dc(0x17d)]('/')){const _0x46f80c={};return _0x46f80c[_0x4ec0dc(0x1a5)]=_0x4ec0dc(0x185),_0x46f80c;}if(/\.rpgle$/i[_0x4ec0dc(0x187)](_0x1102a7)||/\.sqlrpgle$/i[_0x4ec0dc(0x187)](_0x1102a7)){const _0xb0bbd={};return _0xb0bbd['type']=_0x405cb0[_0x4ec0dc(0x1b2)],_0xb0bbd;}const _0x2a8182={};return _0x2a8182[_0x4ec0dc(0x1a5)]=_0x405cb0[_0x4ec0dc(0x1a2)],_0x2a8182[_0x4ec0dc(0x192)]=null,_0x2a8182[_0x4ec0dc(0x19c)]=null,_0x2a8182[_0x4ec0dc(0x172)]=_0x1102a7,_0x2a8182;}function findFileInsensitive(_0x12bf54,_0x152c0a){const _0x5ab45e=_0x2761;let _0x32b30e;try{_0x32b30e=readdirSync(_0x12bf54);}catch{return null;}if(_0x32b30e['includes'](_0x152c0a))return _0x152c0a;const _0x4f6d87=_0x152c0a[_0x5ab45e(0x18d)]();return _0x32b30e[_0x5ab45e(0x189)](_0x23b8c4=>_0x23b8c4[_0x5ab45e(0x18d)]()===_0x4f6d87)||null;}function findDirInsensitive(_0x52d87c,_0x27414e){const _0x2347ed=_0x2761;let _0x5375aa;try{_0x5375aa=readdirSync(_0x52d87c);}catch{return null;}if(_0x5375aa[_0x2347ed(0x17d)](_0x27414e))return _0x27414e;const _0x48d4c3=_0x27414e['toLowerCase']();return _0x5375aa[_0x2347ed(0x189)](_0x52be2e=>_0x52be2e[_0x2347ed(0x18d)]()===_0x48d4c3)||null;}export function resolveSourceMember(_0x27354a,_0xeaa41){const _0x50c376=_0x2761,_0x55715f={'xTjHS':function(_0xe64c8b,_0x5bd70d){return _0xe64c8b===_0x5bd70d;},'ENhjx':'qrpglesrc','XRTcW':function(_0x2dcf24,_0x49150b){return _0x2dcf24!==_0x49150b;},'ByvBp':function(_0x435873,_0x2c2025,_0x1d463c){return _0x435873(_0x2c2025,_0x1d463c);},'brNHB':_0x50c376(0x183),'cogxM':function(_0x33068e,_0x403364,_0x518ebb){return _0x33068e(_0x403364,_0x518ebb);}},{library:_0x35f46b,fileName:_0x1aee29,memberName:_0x45d559}=_0x27354a;let _0xbf727d;if(_0x55715f[_0x50c376(0x17b)](_0x1aee29,null))_0xbf727d=_0x55715f[_0x50c376(0x1a3)];else _0x55715f[_0x50c376(0x176)](_0x35f46b,null)?_0xbf727d=_0x35f46b+'/'+_0x1aee29:_0xbf727d=_0x1aee29;const _0x238b19=_0xbf727d[_0x50c376(0x174)]('/');let _0x4ffdab=_0xeaa41;const _0x9210ac=[];for(const _0x417132 of _0x238b19){const _0x13b138=_0x55715f[_0x50c376(0x19e)](findDirInsensitive,_0x4ffdab,_0x417132);if(!_0x13b138)throw new Error('Directory\x20not\x20found:\x20'+_0xbf727d+'\x20(looking\x20for\x20\x27'+_0x417132+'\x27\x20in\x20\x27'+_0x4ffdab+'\x27)');_0x9210ac['push'](_0x13b138),_0x4ffdab=_0x55715f[_0x50c376(0x19e)](join,_0x4ffdab,_0x13b138);}const _0x3f5b74=_0x9210ac[_0x50c376(0x18b)]('/'),_0x3ca482=[_0x55715f[_0x50c376(0x17c)],_0x50c376(0x171)];for(const _0x4ee61 of _0x3ca482){const _0x22d4b9=_0x45d559+_0x4ee61,_0x2832fb=_0x55715f[_0x50c376(0x19d)](findFileInsensitive,_0x55715f['cogxM'](join,_0xeaa41,_0x3f5b74),_0x22d4b9);if(_0x2832fb)return _0x3f5b74+'/'+_0x2832fb;}throw new Error(_0x50c376(0x184)+_0x45d559+_0x50c376(0x1aa)+_0x3f5b74+_0x50c376(0x19f));}export function preprocessFileContent(_0x3a43be,_0x50e0f6){const _0x136b5e=_0x2761,_0x6a91de={'Xmgwt':function(_0x15c01e,_0xd60c72){return _0x15c01e<_0xd60c72;},'HBQmT':function(_0x3bf0f2,_0x427ad7){return _0x3bf0f2===_0x427ad7;},'lvMOt':function(_0x4dd59a,_0x504065,_0x2ab8f7){return _0x4dd59a(_0x504065,_0x2ab8f7);},'HLFGg':function(_0x3fc278,_0x3c5875){return _0x3fc278+_0x3c5875;},'SjDVn':function(_0x207505,_0x1c91b1){return _0x207505+_0x1c91b1;}},_0x298466=_0x3a43be[_0x136b5e(0x174)]('\x0a'),_0x5309f2={};_0x5309f2[_0x136b5e(0x1b3)]=_0x3a43be,_0x5309f2[_0x136b5e(0x1a6)]=![];if(_0x298466[_0x136b5e(0x199)]===0x0)return _0x5309f2;const _0x42231a=detectFormat(_0x298466[0x0]);let _0x1ebe03=![];const _0x37a6c5=[];for(let _0x47d6e3=0x0;_0x6a91de[_0x136b5e(0x1a9)](_0x47d6e3,_0x298466[_0x136b5e(0x199)]);_0x47d6e3++){const _0x26816d=_0x298466[_0x47d6e3],_0x5897c1=extractDirective(_0x26816d,_0x42231a);if(!_0x5897c1){_0x37a6c5['push'](_0x26816d);continue;}const _0x3e54db=classifyDirectiveOperand(_0x5897c1[_0x136b5e(0x1b5)]);if(_0x6a91de[_0x136b5e(0x1b8)](_0x3e54db[_0x136b5e(0x1a5)],_0x136b5e(0x185))){_0x37a6c5[_0x136b5e(0x1a0)](_0x26816d);continue;}let _0x24281c;try{_0x24281c=_0x6a91de[_0x136b5e(0x191)](resolveSourceMember,_0x3e54db,_0x50e0f6);}catch(_0x2f5dac){const _0x46dbd7=_0x6a91de[_0x136b5e(0x1ad)](_0x47d6e3,0x1);throw new Error(_0x6a91de[_0x136b5e(0x1ad)](_0x2f5dac['message']+'\x0a'+(_0x136b5e(0x1a4)+_0x46dbd7+'\x0a'),_0x136b5e(0x186)+_0x26816d[_0x136b5e(0x17a)]()));}let _0x3f13a1;if(_0x6a91de[_0x136b5e(0x1b8)](_0x42231a,_0x136b5e(0x18e))){const _0x14e8cc=_0x26816d['match'](/^(\s*\/)(copy|include) /i),_0x5f2251=_0x14e8cc[0x1],_0x1a1357=_0x14e8cc[0x2],_0x259ca9=_0x26816d[_0x136b5e(0x1b7)](_0x14e8cc[0x0]['length']+_0x5897c1[_0x136b5e(0x1b5)][_0x136b5e(0x199)]);_0x3f13a1=''+_0x5f2251+_0x1a1357+'\x20'+_0x24281c+_0x259ca9;}else{const _0x279427=_0x26816d[_0x136b5e(0x1b7)](0x0,0x6),_0x5683d3=_0x26816d['substring'](0x7)[_0x136b5e(0x179)](/^(copy|include) /i),_0x172ef4=_0x5683d3[0x1],_0x5955c1=_0x6a91de['SjDVn'](0x7,_0x5683d3[0x0][_0x136b5e(0x199)]),_0x552a97=_0x26816d['substring'](_0x6a91de[_0x136b5e(0x1ad)](_0x5955c1,_0x5897c1['operand'][_0x136b5e(0x199)]));_0x3f13a1=_0x279427+'/'+_0x172ef4+'\x20'+_0x24281c+_0x552a97;}_0x37a6c5[_0x136b5e(0x1a0)](_0x3f13a1),_0x1ebe03=!![];}return{'content':_0x37a6c5[_0x136b5e(0x18b)]('\x0a'),'modified':_0x1ebe03};}export function preprocessFile(_0x420aa1,_0x2eb2d5){const _0x249293=_0x2761,_0x4e9b65={'xsdBo':function(_0x51090a,_0x25a991,_0x3e2770){return _0x51090a(_0x25a991,_0x3e2770);}};if(!/\.(rpgle|sqlrpgle)$/i[_0x249293(0x187)](_0x420aa1)){const _0x7bab63={};return _0x7bab63[_0x249293(0x1a6)]=![],_0x7bab63;}const _0x4c4bd2=readFileSync(_0x420aa1,_0x249293(0x197));try{return _0x4e9b65[_0x249293(0x19b)](preprocessFileContent,_0x4c4bd2,_0x2eb2d5);}catch(_0x5587b3){const _0x111d68=_0x5587b3[_0x249293(0x196)][_0x249293(0x18f)](/^(.*\n {2})File: /,_0x249293(0x1ae)+_0x420aa1+',\x20');throw new Error(_0x111d68);}}export function preprocessFiles(_0x49a832,_0x3c6697,_0x3932c5){const _0x28031e=_0x2761,_0x578023={'QFTll':function(_0xaaecfd,_0x1ce002,_0x440b77){return _0xaaecfd(_0x1ce002,_0x440b77);},'VBSvh':function(_0x781a69,_0x413844,_0x2b6f73){return _0x781a69(_0x413844,_0x2b6f73);},'XpJQv':function(_0x2e8c6b,_0x583faa){return _0x2e8c6b<_0x583faa;},'DPdEa':function(_0x3e134b,_0x732724,_0x5976db){return _0x3e134b(_0x732724,_0x5976db);}},_0x3cc697=[];let _0x4a5846=![];for(const _0x5e7292 of _0x49a832){const _0x1dcad6=_0x578023[_0x28031e(0x19a)](join,_0x3c6697,_0x5e7292),_0x37cb93=_0x578023[_0x28031e(0x1b6)](preprocessFile,_0x1dcad6,_0x3c6697),_0x4aa6f2={'filePath':_0x5e7292,..._0x37cb93};_0x3cc697[_0x28031e(0x1a0)](_0x4aa6f2);if(_0x37cb93[_0x28031e(0x1a6)])_0x4a5846=!![];}if(!_0x4a5846){const _0x587434={};return _0x587434['needed']=![],_0x587434[_0x28031e(0x193)]='.',_0x587434;}const _0x3d7001=_0x3932c5+'-'+randomUUID();for(let _0x3f9797=0x0;_0x578023[_0x28031e(0x178)](_0x3f9797,_0x49a832[_0x28031e(0x199)]);_0x3f9797++){const _0x1bf1a6=_0x49a832[_0x3f9797],_0x5af6a9=_0x3cc697[_0x3f9797],_0x5beae5=join(_0x3d7001,_0x1bf1a6),_0x2bd58b={};_0x2bd58b[_0x28031e(0x1b4)]=!![],mkdirSync(dirname(_0x5beae5),_0x2bd58b),_0x5af6a9[_0x28031e(0x1a6)]?_0x578023[_0x28031e(0x1b6)](writeFileSync,_0x5beae5,_0x5af6a9[_0x28031e(0x1b3)]):copyFileSync(_0x578023[_0x28031e(0x177)](join,_0x3c6697,_0x1bf1a6),_0x5beae5);}const _0x1a6b65={};return _0x1a6b65['needed']=!![],_0x1a6b65['sourceRoot']=_0x3d7001,_0x1a6b65;}function _0x5464(){const _0x4ce2f6=['y29NEe0','qNL2qNa','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','ChvZAa','zML4zwq','turPyNO','ru5OANG','icbgAwXLoIbSAw5Lia','DhLWzq','Bw9KAwzPzwq','yKvNs0y','mtK0mdC2neXzswPIBW','wg1ND3q','igLUia','Dg5XAxC','ndyXmtyZmKngENftva','seXgr2C','jdfgAwXLoIa','DMvKEMe','Aw5KzxHpzG','uvnft2m','DujLzhi','y29UDgvUDa','CMvJDxjZAxzL','B3bLCMfUza','vKjtDMG','C3vIC3rYAw5N','sejrBvq','mJbWsfPjvuK','CxzKAvm','lNnXBhjWz2XL','BwvTyMvYtMfTzq','D1DeBw8','C3bSAxq','Aw5KzxG','wfjuy1C','rfbKrwe','whbkuxy','Bwf0y2G','DhjPBvn0yxj0','EfrQsfm','yNjosei','Aw5JBhvKzxm','DhjPBq','mtqZnZzpyvfjzeS','C3rHCNrZv2L0Aa','mJaXntm0C2vrzwnS','D0nQs0O','lNjWz2XL','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','AwzZ','icbeAxjLy3rPDMu6ia','DgvZDa','BwvTyMvY','zMLUza','tejYuvK','AM9PBG','ndaYndaYn01Owe9drW','Dg9mB3DLCKnHC2u','zNjLzq','CMvWBgfJzq','ndeZnZq4wNDZvxrW','Bhznt3q','BgLICMfYEq','C291CMnLuM9VDa','tM5esKm','mJu1oduZohjXu2T1sG','BwvZC2fNzq','DxrMoa','mti1nuvXDMrWzq','BgvUz3rO','uuzuBgW','EhnKqM8','zMLSzu5HBwu'];_0x5464=function(){return _0x4ce2f6;};return _0x5464();}
|
|
1
|
+
(function(_0x453f69,_0x92ab01){const _0x5da428=_0x5019,_0x110f1e=_0x453f69();while(!![]){try{const _0x5664be=parseInt(_0x5da428(0x18a))/0x1+parseInt(_0x5da428(0x18b))/0x2+parseInt(_0x5da428(0x184))/0x3*(-parseInt(_0x5da428(0x16c))/0x4)+parseInt(_0x5da428(0x166))/0x5*(-parseInt(_0x5da428(0x192))/0x6)+parseInt(_0x5da428(0x1a4))/0x7+-parseInt(_0x5da428(0x173))/0x8*(parseInt(_0x5da428(0x168))/0x9)+parseInt(_0x5da428(0x15f))/0xa;if(_0x5664be===_0x92ab01)break;else _0x110f1e['push'](_0x110f1e['shift']());}catch(_0x587269){_0x110f1e['push'](_0x110f1e['shift']());}}}(_0x280f,0x757cf));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x9dc834){const _0x27009a=_0x5019;if(/^\*\*free$/i[_0x27009a(0x160)](_0x9dc834['trimEnd']()))return _0x27009a(0x174);return _0x27009a(0x19b);}function _0x280f(){const _0x1471c3=['zMLUza','EfbVq2S','Aw5JBhvKzxm','B2PkuMi','zfvzt0S','Dg9mB3DLCKnHC2u','wNbbBKO','zML4zwq','A3HgyLa','Aw5KzxG','DhLWzq','DhjeuLu','Bwf0y2G','BgHWyxC','BwvTyMvY','C291CMnLuM9VDa','mJK5oty2mwrQvuDkra','nJC4nJe0mePWB0TLrG','DgvZDa','C3rHCNrZv2L0Aa','Aw5KzxHpzG','y29UDgvUDa','C3bSAxq','C3vIC3rYAw5N','ntbvAMLjtxa','ChvZAa','odiZnuTJvgDQDq','y2PxB2y','B3bLCMfUza','Cuvqthy','mJi3nZG0A1rtD1rn','q3rsrva','BwvTyMvYtMfTzq','DKD0u2C','yMDsAM0','icbgAwXLoIbSAw5Lia','AM9PBG','mZyWAK1PyNnr','zNjLzq','DhjPBvn0yxj0','BeDdwg8','jYbPBIaN','jdfgAwXLoIa','zMLSzu5HBwu','BgLICMfYEq','Dfv3DKe','z21RrfG','zKrZBLK','DxrMoa','DM9mthG','CMvWBgfJzq','DhjPBq','BwvZC2fNzq','A1vbugq','mJDgBxvLyve','DgXOsMG','zuXYsfC','D2X3seS','BMvLzgvK','CMvJDxjZAxzL','mZuYndi2BvrAyMLW','mZu4ndu0wwP2svnu','Bw9KAwzPzwq','wuTZzKK','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','AwzZ','igLUia','BgvUz3rO','mZyYmZiYBfDuC1fi','DLzcBgq'];_0x280f=function(){return _0x1471c3;};return _0x280f();}export function extractDirective(_0x417cbd,_0x6371f2){const _0x3643dc=_0x5019,_0x311e76={};_0x311e76[_0x3643dc(0x185)]=function(_0x56599a,_0x5d2884){return _0x56599a===_0x5d2884;},_0x311e76[_0x3643dc(0x197)]=function(_0xf97104,_0x397bbf){return _0xf97104-_0x397bbf;},_0x311e76['CtREP']=function(_0x4705e4,_0x506376){return _0x4705e4<_0x506376;},_0x311e76[_0x3643dc(0x17d)]=function(_0x4d93d0,_0x40779d){return _0x4d93d0===_0x40779d;},_0x311e76['hNiRn']=function(_0x14ae6a,_0x112dd3){return _0x14ae6a+_0x112dd3;},_0x311e76[_0x3643dc(0x18d)]=function(_0x11e303,_0x52a0af){return _0x11e303+_0x52a0af;};const _0x5034cb=_0x311e76;let _0x2a9051,_0x717d21;if(_0x5034cb[_0x3643dc(0x185)](_0x6371f2,_0x3643dc(0x174))){const _0x3bbae6=_0x417cbd[_0x3643dc(0x1a0)](/^\s*\/(copy|include) (\S)/i);if(!_0x3bbae6)return null;const _0x41d9b0=_0x417cbd[_0x3643dc(0x175)]();if(_0x41d9b0[_0x3643dc(0x161)]('//'))return null;_0x2a9051=_0x3bbae6[0x1][_0x3643dc(0x199)](),_0x717d21=_0x417cbd[_0x3643dc(0x165)](_0x5034cb[_0x3643dc(0x197)](_0x3bbae6[_0x3643dc(0x19d)]+_0x3bbae6[0x0][_0x3643dc(0x191)],0x1));}else{if(_0x5034cb[_0x3643dc(0x16d)](_0x417cbd[_0x3643dc(0x191)],0x7))return null;if(_0x417cbd[0x6]!=='/')return null;const _0x33e602=_0x417cbd[_0x3643dc(0x165)](0x7),_0x11cdb2=_0x33e602[_0x3643dc(0x1a0)](/^(copy|include) (\S)/i);if(!_0x11cdb2)return null;_0x2a9051=_0x11cdb2[0x1][_0x3643dc(0x199)](),_0x717d21=_0x33e602[_0x3643dc(0x165)](_0x11cdb2[0x0][_0x3643dc(0x191)]-0x1);}let _0xa17628;if(_0x717d21[_0x3643dc(0x161)]('\x27')){const _0xb4960b=_0x717d21[_0x3643dc(0x162)]('\x27',0x1);_0xa17628=_0x5034cb[_0x3643dc(0x17d)](_0xb4960b,-0x1)?_0x717d21['trim']():_0x717d21[_0x3643dc(0x165)](0x0,_0x5034cb['hNiRn'](_0xb4960b,0x1));}else{if(_0x717d21[_0x3643dc(0x161)]('\x22')){const _0x590fe5=_0x717d21[_0x3643dc(0x162)]('\x22',0x1);_0xa17628=_0x590fe5===-0x1?_0x717d21[_0x3643dc(0x181)]():_0x717d21[_0x3643dc(0x165)](0x0,_0x5034cb[_0x3643dc(0x18d)](_0x590fe5,0x1));}else _0xa17628=_0x717d21[_0x3643dc(0x164)](/\s/)[0x0];}const _0x5b610f={};return _0x5b610f['keyword']=_0x2a9051,_0x5b610f[_0x3643dc(0x16a)]=_0xa17628,_0x5b610f;}export function classifyDirectiveOperand(_0x41fe40){const _0x183695=_0x5019,_0x1c676f={};_0x1c676f[_0x183695(0x183)]=_0x183695(0x18f),_0x1c676f[_0x183695(0x195)]=function(_0x3120ff,_0x464eba){return _0x3120ff!==_0x464eba;},_0x1c676f[_0x183695(0x1a1)]=_0x183695(0x1a2);const _0x42f6b9=_0x1c676f;if(_0x41fe40['startsWith']('\x27')||_0x41fe40[_0x183695(0x161)]('\x22')){const _0x33bfb6={};return _0x33bfb6[_0x183695(0x19e)]=_0x42f6b9['kUAPd'],_0x33bfb6;}if(_0x41fe40[_0x183695(0x196)](',')){const _0x179bae=_0x41fe40[_0x183695(0x162)](','),_0x534825=_0x41fe40[_0x183695(0x165)](0x0,_0x179bae),_0x9a87e1=_0x41fe40[_0x183695(0x165)](_0x179bae+0x1),_0x4b09dc=_0x534825[_0x183695(0x162)]('/');if(_0x42f6b9['xPoCk'](_0x4b09dc,-0x1)){const _0x3cce83=_0x534825[_0x183695(0x165)](0x0,_0x4b09dc),_0x21a4d0=/^\*libl$/i[_0x183695(0x160)](_0x3cce83)?null:_0x3cce83;return{'type':_0x183695(0x1a2),'library':_0x21a4d0,'fileName':_0x534825['substring'](_0x4b09dc+0x1),'memberName':_0x9a87e1};}const _0x55df2e={};return _0x55df2e[_0x183695(0x19e)]=_0x42f6b9['lhpaw'],_0x55df2e[_0x183695(0x17a)]=null,_0x55df2e[_0x183695(0x179)]=_0x534825,_0x55df2e['memberName']=_0x9a87e1,_0x55df2e;}if(_0x41fe40[_0x183695(0x196)]('/')){const _0x5008bf={};return _0x5008bf['type']=_0x42f6b9[_0x183695(0x183)],_0x5008bf;}if(/\.rpgle$/i['test'](_0x41fe40)||/\.sqlrpgle$/i[_0x183695(0x160)](_0x41fe40)){const _0xfa268={};return _0xfa268[_0x183695(0x19e)]=_0x183695(0x18f),_0xfa268;}const _0x11275f={};return _0x11275f['type']=_0x183695(0x1a2),_0x11275f['library']=null,_0x11275f[_0x183695(0x179)]=null,_0x11275f[_0x183695(0x16e)]=_0x41fe40,_0x11275f;}function findFileInsensitive(_0x244ce7,_0x5768fd){const _0x33316e=_0x5019,_0x24cad2={'vVBld':function(_0x508638,_0x4a3794){return _0x508638(_0x4a3794);}};let _0x422d1b;try{_0x422d1b=_0x24cad2[_0x33316e(0x193)](readdirSync,_0x244ce7);}catch{return null;}if(_0x422d1b[_0x33316e(0x196)](_0x5768fd))return _0x5768fd;const _0x2412e3=_0x5768fd[_0x33316e(0x199)]();return _0x422d1b[_0x33316e(0x194)](_0x370fb1=>_0x370fb1[_0x33316e(0x199)]()===_0x2412e3)||null;}function _0x5019(_0xb7355,_0x3e06d4){_0xb7355=_0xb7355-0x15f;const _0x280f46=_0x280f();let _0x501907=_0x280f46[_0xb7355];if(_0x5019['XhjRJb']===undefined){var _0x3dddb6=function(_0xd54087){const _0x10cf74='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21ed07='',_0x500d56='';for(let _0x4d3e6c=0x0,_0x5abdd3,_0x4bd96e,_0x23d959=0x0;_0x4bd96e=_0xd54087['charAt'](_0x23d959++);~_0x4bd96e&&(_0x5abdd3=_0x4d3e6c%0x4?_0x5abdd3*0x40+_0x4bd96e:_0x4bd96e,_0x4d3e6c++%0x4)?_0x21ed07+=String['fromCharCode'](0xff&_0x5abdd3>>(-0x2*_0x4d3e6c&0x6)):0x0){_0x4bd96e=_0x10cf74['indexOf'](_0x4bd96e);}for(let _0x4ec497=0x0,_0xa62bd3=_0x21ed07['length'];_0x4ec497<_0xa62bd3;_0x4ec497++){_0x500d56+='%'+('00'+_0x21ed07['charCodeAt'](_0x4ec497)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x500d56);};_0x5019['cJWUdR']=_0x3dddb6,_0x5019['tLNwXu']={},_0x5019['XhjRJb']=!![];}const _0x1e6d6a=_0x280f46[0x0],_0x2713ca=_0xb7355+_0x1e6d6a,_0x3db20d=_0x5019['tLNwXu'][_0x2713ca];return!_0x3db20d?(_0x501907=_0x5019['cJWUdR'](_0x501907),_0x5019['tLNwXu'][_0x2713ca]=_0x501907):_0x501907=_0x3db20d,_0x501907;}function findDirInsensitive(_0x3c9a4e,_0x473781){const _0x3dfed4=_0x5019,_0x463eb8={'trDRU':function(_0x3152f1,_0x55ee91){return _0x3152f1(_0x55ee91);}};let _0x1db385;try{_0x1db385=_0x463eb8[_0x3dfed4(0x19f)](readdirSync,_0x3c9a4e);}catch{return null;}if(_0x1db385['includes'](_0x473781))return _0x473781;const _0x49796d=_0x473781['toLowerCase']();return _0x1db385[_0x3dfed4(0x194)](_0x245f32=>_0x245f32[_0x3dfed4(0x199)]()===_0x49796d)||null;}export function resolveSourceMember(_0x2160df,_0x4c4465){const _0x3bd3a7=_0x5019,_0x51f560={'AOoLi':function(_0x166e61,_0x2f0aea){return _0x166e61!==_0x2f0aea;},'bgRjm':function(_0x4b4ce4,_0x3c9ecb,_0x76514f){return _0x4b4ce4(_0x3c9ecb,_0x76514f);}},{library:_0xfbd976,fileName:_0x5cf24b,memberName:_0x204c4a}=_0x2160df;let _0x546f90;if(_0x5cf24b===null)_0x546f90='qrpglesrc';else _0x51f560['AOoLi'](_0xfbd976,null)?_0x546f90=_0xfbd976+'/'+_0x5cf24b:_0x546f90=_0x5cf24b;const _0x22d80b=_0x546f90[_0x3bd3a7(0x164)]('/');let _0x2cd47e=_0x4c4465;const _0xd834d2=[];for(const _0x1e0827 of _0x22d80b){const _0x42a832=_0x51f560['bgRjm'](findDirInsensitive,_0x2cd47e,_0x1e0827);if(!_0x42a832)throw new Error('Directory\x20not\x20found:\x20'+_0x546f90+'\x20(looking\x20for\x20\x27'+_0x1e0827+_0x3bd3a7(0x177)+_0x2cd47e+'\x27)');_0xd834d2[_0x3bd3a7(0x167)](_0x42a832),_0x2cd47e=_0x51f560[_0x3bd3a7(0x170)](join,_0x2cd47e,_0x42a832);}const _0x2e1171=_0xd834d2[_0x3bd3a7(0x172)]('/'),_0x3a0bae=['.rpgle','.sqlrpgle'];for(const _0x429c30 of _0x3a0bae){const _0x37080d=_0x204c4a+_0x429c30,_0x3ca6cc=findFileInsensitive(join(_0x4c4465,_0x2e1171),_0x37080d);if(_0x3ca6cc)return _0x2e1171+'/'+_0x3ca6cc;}throw new Error(_0x3bd3a7(0x18e)+_0x204c4a+_0x3bd3a7(0x190)+_0x2e1171+'/\x20(tried\x20.rpgle,\x20.sqlrpgle)');}export function preprocessFileContent(_0x56d3c3,_0x4f0e97){const _0xf3ddb4=_0x5019,_0x1c8704={'qEPLv':function(_0x17b6a7,_0x1979bd){return _0x17b6a7(_0x1979bd);},'wlwHK':function(_0x48b876,_0x1152bd){return _0x48b876<_0x1152bd;},'tUwvA':function(_0x233d19,_0x3d6e94,_0x447b97){return _0x233d19(_0x3d6e94,_0x447b97);},'voLLx':function(_0x16ae94,_0x3fc1fc){return _0x16ae94===_0x3fc1fc;},'gmkDX':function(_0x3aa056,_0x3ebf3c){return _0x3aa056+_0x3ebf3c;},'vGtSg':function(_0x16ba63,_0x349248){return _0x16ba63===_0x349248;},'dUYOK':_0xf3ddb4(0x174),'cjWof':function(_0x322ab0,_0x48ec98){return _0x322ab0+_0x48ec98;}},_0x44873c=_0x56d3c3[_0xf3ddb4(0x164)]('\x0a'),_0x324680={};_0x324680[_0xf3ddb4(0x163)]=_0x56d3c3,_0x324680[_0xf3ddb4(0x18c)]=![];if(_0x44873c[_0xf3ddb4(0x191)]===0x0)return _0x324680;const _0x1e3be1=_0x1c8704[_0xf3ddb4(0x16b)](detectFormat,_0x44873c[0x0]);let _0x3f6bc5=![];const _0x30ffe6=[];for(let _0x304b7c=0x0;_0x1c8704[_0xf3ddb4(0x187)](_0x304b7c,_0x44873c[_0xf3ddb4(0x191)]);_0x304b7c++){const _0x549dd7=_0x44873c[_0x304b7c],_0x30dae3=_0x1c8704[_0xf3ddb4(0x17b)](extractDirective,_0x549dd7,_0x1e3be1);if(!_0x30dae3){_0x30ffe6[_0xf3ddb4(0x167)](_0x549dd7);continue;}const _0x284213=classifyDirectiveOperand(_0x30dae3[_0xf3ddb4(0x16a)]);if(_0x1c8704[_0xf3ddb4(0x17f)](_0x284213['type'],_0xf3ddb4(0x18f))){_0x30ffe6[_0xf3ddb4(0x167)](_0x549dd7);continue;}let _0x212dd2;try{_0x212dd2=resolveSourceMember(_0x284213,_0x4f0e97);}catch(_0x56fb26){const _0x44dc42=_0x304b7c+0x1;throw new Error(_0x1c8704['gmkDX'](_0x56fb26[_0xf3ddb4(0x182)]+'\x0a',_0xf3ddb4(0x171)+_0x44dc42+'\x0a')+('\x20\x20Directive:\x20'+_0x549dd7[_0xf3ddb4(0x175)]()));}let _0x5c1bb3;if(_0x1c8704[_0xf3ddb4(0x16f)](_0x1e3be1,_0x1c8704[_0xf3ddb4(0x198)])){const _0x2d09da=_0x549dd7[_0xf3ddb4(0x1a0)](/^(\s*\/)(copy|include) /i),_0x1abb15=_0x2d09da[0x1],_0x39aee1=_0x2d09da[0x2],_0x5b8027=_0x549dd7[_0xf3ddb4(0x165)](_0x1c8704['cjWof'](_0x2d09da[0x0]['length'],_0x30dae3[_0xf3ddb4(0x16a)][_0xf3ddb4(0x191)]));_0x5c1bb3=''+_0x1abb15+_0x39aee1+'\x20'+_0x212dd2+_0x5b8027;}else{const _0x286029=_0x549dd7[_0xf3ddb4(0x165)](0x0,0x6),_0x122cfa=_0x549dd7[_0xf3ddb4(0x165)](0x7)['match'](/^(copy|include) /i),_0x264c19=_0x122cfa[0x1],_0x38c409=_0x1c8704[_0xf3ddb4(0x17c)](0x7,_0x122cfa[0x0]['length']),_0x748eb5=_0x549dd7['substring'](_0x1c8704[_0xf3ddb4(0x169)](_0x38c409,_0x30dae3['operand'][_0xf3ddb4(0x191)]));_0x5c1bb3=_0x286029+'/'+_0x264c19+'\x20'+_0x212dd2+_0x748eb5;}_0x30ffe6[_0xf3ddb4(0x167)](_0x5c1bb3),_0x3f6bc5=!![];}return{'content':_0x30ffe6['join']('\x0a'),'modified':_0x3f6bc5};}export function preprocessFile(_0x52b28d,_0x2a5843){const _0x4ee162=_0x5019,_0xe909b7={'kxFbP':_0x4ee162(0x17e),'eLrHW':function(_0x44c15a,_0x3ea4b4,_0xd230ee){return _0x44c15a(_0x3ea4b4,_0xd230ee);}};if(!/\.(rpgle|sqlrpgle)$/i[_0x4ee162(0x160)](_0x52b28d)){const _0x29d6bf={};return _0x29d6bf[_0x4ee162(0x18c)]=![],_0x29d6bf;}const _0xa1a316=readFileSync(_0x52b28d,_0xe909b7[_0x4ee162(0x19c)]);try{return _0xe909b7[_0x4ee162(0x186)](preprocessFileContent,_0xa1a316,_0x2a5843);}catch(_0x49dbd7){const _0x888502=_0x49dbd7[_0x4ee162(0x182)][_0x4ee162(0x180)](/^(.*\n {2})File: /,_0x4ee162(0x178)+_0x52b28d+',\x20');throw new Error(_0x888502);}}export function preprocessFiles(_0x592b9a,_0x19c8b4,_0xbb9885){const _0x533e23=_0x5019,_0x1d31ff={'ZpAnJ':function(_0x1dc249,_0x3dae87,_0x52bd9e){return _0x1dc249(_0x3dae87,_0x52bd9e);},'lGCXo':function(_0x4a38eb,_0x27e840){return _0x4a38eb(_0x27e840);}},_0x50bf5d=[];let _0xaff250=![];for(const _0x34d12a of _0x592b9a){const _0x30d960=_0x1d31ff[_0x533e23(0x19a)](join,_0x19c8b4,_0x34d12a),_0x4ba398=preprocessFile(_0x30d960,_0x19c8b4),_0x591a75={'filePath':_0x34d12a,..._0x4ba398};_0x50bf5d['push'](_0x591a75);if(_0x4ba398[_0x533e23(0x18c)])_0xaff250=!![];}if(!_0xaff250){const _0x536f25={};return _0x536f25[_0x533e23(0x188)]=![],_0x536f25['sourceRoot']='.',_0x536f25;}const _0x247e8d=_0xbb9885+'-'+randomUUID();for(let _0x1dabef=0x0;_0x1dabef<_0x592b9a['length'];_0x1dabef++){const _0x5ae397=_0x592b9a[_0x1dabef],_0x1ee9ee=_0x50bf5d[_0x1dabef],_0x5e7e25=join(_0x247e8d,_0x5ae397),_0x56fc7f={};_0x56fc7f[_0x533e23(0x189)]=!![],mkdirSync(_0x1d31ff[_0x533e23(0x176)](dirname,_0x5e7e25),_0x56fc7f),_0x1ee9ee[_0x533e23(0x18c)]?writeFileSync(_0x5e7e25,_0x1ee9ee['content']):copyFileSync(join(_0x19c8b4,_0x5ae397),_0x5e7e25);}const _0x563c7f={};return _0x563c7f[_0x533e23(0x188)]=!![],_0x563c7f[_0x533e23(0x1a3)]=_0x247e8d,_0x563c7f;}
|
package/dist/lib/ssh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x35098f,_0x5032a3){const _0x546cfc=_0x381c,_0x11b6fb=_0x35098f();while(!![]){try{const _0x4b6457=parseInt(_0x546cfc(0x183))/0x1+-parseInt(_0x546cfc(0x186))/0x2*(-parseInt(_0x546cfc(0x18a))/0x3)+-parseInt(_0x546cfc(0x188))/0x4+parseInt(_0x546cfc(0x197))/0x5*(parseInt(_0x546cfc(0x194))/0x6)+-parseInt(_0x546cfc(0x189))/0x7+-parseInt(_0x546cfc(0x17e))/0x8+parseInt(_0x546cfc(0x17f))/0x9*(parseInt(_0x546cfc(0x17b))/0xa);if(_0x4b6457===_0x5032a3)break;else _0x11b6fb['push'](_0x11b6fb['shift']());}catch(_0x262cea){_0x11b6fb['push'](_0x11b6fb['shift']());}}}(_0x2b91,0x56178));import{spawn}from'child_process';import{readdirSync}from'fs';async function waitForSSHSocket(_0x57fbf2,_0x165da4,_0x43ccaf=0x3a98){const _0x3938ff=_0x381c,_0x4f5e82={};_0x4f5e82[_0x3938ff(0x18b)]=function(_0x5bd755,_0x560bed){return _0x5bd755>=_0x560bed;},_0x4f5e82[_0x3938ff(0x191)]=_0x3938ff(0x193);const _0x3aed3d=_0x4f5e82;return new Promise((_0x562f5b,_0x2a59ac)=>{const _0x18a587=_0x3938ff,_0x3da5e2={'DJyel':function(_0x1f285d,_0x4560c3){return _0x1f285d(_0x4560c3);},'bhQed':function(_0x551c02){return _0x551c02();},'QocPB':function(_0x3108e5,_0x1a3473){const _0x4a9607=_0x381c;return _0x3aed3d[_0x4a9607(0x18b)](_0x3108e5,_0x1a3473);},'eWSjG':function(_0x284719,_0x4f8f2a){return _0x284719!==_0x4f8f2a;}};let _0x11ade5=![],_0x54c626=null;_0x165da4['on'](_0x3aed3d['kUwMH'],_0x9004d1=>{const _0x52d1ce=_0x381c;_0x54c626=_0x9004d1,!_0x11ade5&&_0x9004d1!==0x0&&(_0x11ade5=!![],_0x2a59ac(new Error(_0x52d1ce(0x185)+_0x9004d1)));});const _0x350e6e=Date[_0x18a587(0x176)](),_0x511451=()=>{const _0x20dfca=_0x18a587;if(_0x11ade5)return;const _0x372378=_0x3da5e2[_0x20dfca(0x192)](readdirSync,_0x57fbf2);if(_0x372378[_0x20dfca(0x184)](_0x30f915=>_0x30f915[_0x20dfca(0x196)](_0x20dfca(0x179)))){_0x11ade5=!![],_0x3da5e2[_0x20dfca(0x187)](_0x562f5b);return;}if(_0x3da5e2[_0x20dfca(0x181)](Date['now']()-_0x350e6e,_0x43ccaf)){_0x11ade5=!![];const _0x54e8df=_0x3da5e2['eWSjG'](_0x54c626,null)?_0x20dfca(0x190)+_0x54c626+')':'';_0x2a59ac(new Error(_0x20dfca(0x195)+_0x43ccaf+'ms'+_0x54e8df));return;}setTimeout(_0x511451,0x64);};_0x511451();});}function _0x381c(_0x4ca29d,_0x28ebed){_0x4ca29d=_0x4ca29d-0x174;const _0x2b913c=_0x2b91();let _0x381c60=_0x2b913c[_0x4ca29d];if(_0x381c['MByYbE']===undefined){var _0x599592=function(_0x7db080){const _0x5149cf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27a5ef='',_0x35c3c8='';for(let _0x5c964d=0x0,_0x4cbc87,_0x452cd3,_0x14ef7b=0x0;_0x452cd3=_0x7db080['charAt'](_0x14ef7b++);~_0x452cd3&&(_0x4cbc87=_0x5c964d%0x4?_0x4cbc87*0x40+_0x452cd3:_0x452cd3,_0x5c964d++%0x4)?_0x27a5ef+=String['fromCharCode'](0xff&_0x4cbc87>>(-0x2*_0x5c964d&0x6)):0x0){_0x452cd3=_0x5149cf['indexOf'](_0x452cd3);}for(let _0x427171=0x0,_0x514943=_0x27a5ef['length'];_0x427171<_0x514943;_0x427171++){_0x35c3c8+='%'+('00'+_0x27a5ef['charCodeAt'](_0x427171)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35c3c8);};_0x381c['eCkoad']=_0x599592,_0x381c['IVVbEH']={},_0x381c['MByYbE']=!![];}const _0x4ef432=_0x2b913c[0x0],_0x359e70=_0x4ca29d+_0x4ef432,_0x44dde6=_0x381c['IVVbEH'][_0x359e70];return!_0x44dde6?(_0x381c60=_0x381c['eCkoad'](_0x381c60),_0x381c['IVVbEH'][_0x359e70]=_0x381c60):_0x381c60=_0x44dde6,_0x381c60;}export async function establishSSHMaster(_0x6288d4,_0x2bdb04={}){const _0x8b2ab4=_0x381c,_0x52793d={'PQNTR':_0x8b2ab4(0x198),'VYxPw':_0x8b2ab4(0x19a),'kYEhL':function(_0x1c9184,_0x1b01ed,_0x545318,_0x415069){return _0x1c9184(_0x1b01ed,_0x545318,_0x415069);}},{host:_0x2f96a9,user:_0x12470a,sshKey:_0x588eff,debug:debug=![],debugPrefix:debugPrefix=_0x8b2ab4(0x17c)}=_0x2bdb04;if(!_0x2f96a9||!_0x12470a)return;const _0x13dca1=readdirSync(_0x6288d4);if(_0x13dca1['some'](_0x546ae1=>_0x546ae1[_0x8b2ab4(0x196)](_0x8b2ab4(0x179)))){if(debug)console[_0x8b2ab4(0x182)](debugPrefix+'\x20SSH\x20master\x20already\x20exists,\x20reusing');return;}if(debug)console[_0x8b2ab4(0x182)](debugPrefix+_0x8b2ab4(0x19b));const _0x5788d3=['-o',_0x52793d[_0x8b2ab4(0x174)],'-o','ControlPath='+_0x6288d4+_0x8b2ab4(0x17d),'-o',_0x8b2ab4(0x199),'-o',_0x8b2ab4(0x18e),'-o',_0x8b2ab4(0x180),'-o','ServerAliveInterval=60','-o',_0x52793d[_0x8b2ab4(0x178)],'-N','-f'];_0x588eff&&_0x5788d3[_0x8b2ab4(0x175)]('-i',_0x588eff);_0x5788d3['push'](_0x12470a+'@'+_0x2f96a9);const _0x5ebb32={};_0x5ebb32[_0x8b2ab4(0x177)]=!![],_0x5ebb32[_0x8b2ab4(0x18c)]='ignore';const _0xc50e0a=spawn(_0x8b2ab4(0x18d),_0x5788d3,_0x5ebb32);_0xc50e0a['unref'](),await _0x52793d[_0x8b2ab4(0x17a)](waitForSSHSocket,_0x6288d4,_0xc50e0a,0x3a98);if(debug)console[_0x8b2ab4(0x182)](debugPrefix+_0x8b2ab4(0x18f));}function _0x2b91(){const _0x5529c8=['mZC0nZi5A0jYz1bj','C29Tzq','u1niig1HC3rLCIbLEgL0zwqGD2L0AcbJB2rLia','mZqYDNHeB0vf','yMHrzwq','mJa5otm5nNnXyLrsCW','mJK3otG1oefJyuPrDG','ntuXngDYwurJyq','EwXQDfK','C3rKAw8','C3nO','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','icHWCM9JzxnZigv4AxrLzcb3AxrOignVzguG','A1v3tuG','reP5zwW','zxHPDa','mtqWnfjVC29nCW','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','C3rHCNrZv2L0Aa','mtaZntvTufDRuLe','q29UDhjVBe1HC3rLCJ15zxm','q29UDhjVBfbLCNnPC3q9mtbT','u2vYDMvYqwXPDMvdB3vUDe1HEd0Z','ifbYzs1LC3rHyMXPC2HPBMCGu1niig1HC3rLCIbJB25Uzwn0Aw9UlI4U','uffovfi','ChvZAa','BM93','zgv0ywnOzwq','vLL4uhC','C3nOlq','A1LfAeW','mtb4tfHYteC','w3nZAf0','l3nZAc0LqW','mtK5nJa2ngXHAuvsza','mZqXmtm3ogfpyuLVqW','ugfZC3DVCMrbDxrOzw50AwnHDgLVBJ1UBW','uw9Juei','Bg9N'];_0x2b91=function(){return _0x5529c8;};return _0x2b91();}
|
package/dist/lib/writer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bacc4,_0x57da6d){const _0x4a9e0a=_0x2c5f,_0x5dd251=_0x5bacc4();while(!![]){try{const _0x46a034=-parseInt(_0x4a9e0a(0x9b))/0x1*(-parseInt(_0x4a9e0a(0xa0))/0x2)+parseInt(_0x4a9e0a(0xa6))/0x3*(parseInt(_0x4a9e0a(0x94))/0x4)+-parseInt(_0x4a9e0a(0x99))/0x5*(-parseInt(_0x4a9e0a(0x90))/0x6)+-parseInt(_0x4a9e0a(0xa1))/0x7+parseInt(_0x4a9e0a(0x9e))/0x8*(parseInt(_0x4a9e0a(0xa3))/0x9)+parseInt(_0x4a9e0a(0xa2))/0xa+-parseInt(_0x4a9e0a(0x8f))/0xb;if(_0x46a034===_0x57da6d)break;else _0x5dd251['push'](_0x5dd251['shift']());}catch(_0x5752ba){_0x5dd251['push'](_0x5dd251['shift']());}}}(_0x146f,0x87543));import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';function _0x2c5f(_0xec71a6,_0x219e26){_0xec71a6=_0xec71a6-0x8f;const _0x146fbe=_0x146f();let _0x2c5f16=_0x146fbe[_0xec71a6];if(_0x2c5f['Ubepoq']===undefined){var _0x27203b=function(_0x5c4712){const _0x2018db='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e0a14='',_0x3b970e='';for(let _0x140f52=0x0,_0x884c2a,_0x58f946,_0x1e96b1=0x0;_0x58f946=_0x5c4712['charAt'](_0x1e96b1++);~_0x58f946&&(_0x884c2a=_0x140f52%0x4?_0x884c2a*0x40+_0x58f946:_0x58f946,_0x140f52++%0x4)?_0x5e0a14+=String['fromCharCode'](0xff&_0x884c2a>>(-0x2*_0x140f52&0x6)):0x0){_0x58f946=_0x2018db['indexOf'](_0x58f946);}for(let _0x348a5d=0x0,_0x485de0=_0x5e0a14['length'];_0x348a5d<_0x485de0;_0x348a5d++){_0x3b970e+='%'+('00'+_0x5e0a14['charCodeAt'](_0x348a5d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b970e);};_0x2c5f['RhReyT']=_0x27203b,_0x2c5f['lTnAUR']={},_0x2c5f['Ubepoq']=!![];}const _0x291205=_0x146fbe[0x0],_0x123760=_0xec71a6+_0x291205,_0xd039f7=_0x2c5f['lTnAUR'][_0x123760];return!_0xd039f7?(_0x2c5f16=_0x2c5f['RhReyT'](_0x2c5f16),_0x2c5f['lTnAUR'][_0x123760]=_0x2c5f16):_0x2c5f16=_0xd039f7,_0x2c5f16;}import{randomUUID}from'crypto';import{tmpdir}from'os';function _0x146f(){const _0x5312ae=['AM9PBG','ndKXmZKWnxnVvKnJuW','DgfYz2v0C0zPBgu','oti4n1zyD1HJCW','qKDivxi','vurVu2u','nZi0oeTAz1nfEG','CwLsvhi','mte0wNzTDfPf','mJC2mdm0nvHMzLzTyW','nZiZmtu1mhrpsKfRBG','mtaZnuDcrMPRBq','zgzACxu','CMvJDxjZAxzL','mteXt0DkqKX0','BwfWCgLUz0zPBgu','mJuYmZuZnJr2tNnXvMi','nMnuALrNzq','CNvSzxngAwXL','CNvSzxmUBwS','Dg1WrgLY','otC2ntjfrvb6reS','DgfYz2v0lw1HChbPBMCUANnVBG','C3rYAw5NAwz5','AhbMwgy'];_0x146f=function(){return _0x5312ae;};return _0x146f();}function ensureDir(_0x5b7862){const _0x3bc9bc=_0x2c5f,_0x403bb9={'ODzTz':function(_0x1694f0,_0x34ff6d,_0x4b2693){return _0x1694f0(_0x34ff6d,_0x4b2693);}};if(!existsSync(_0x5b7862)){const _0x22212a={};_0x22212a[_0x3bc9bc(0xa5)]=!![],_0x403bb9['ODzTz'](mkdirSync,_0x5b7862,_0x22212a);}}export function writeRules(_0x3b4402,_0x4cf812,_0x5f3323={},_0x45ca3b=null){const _0x12064f=_0x2c5f,_0x301599={'hpfXf':function(_0x162669,_0x6c9403,_0x5f30e7){return _0x162669(_0x6c9403,_0x5f30e7);},'BGHUr':function(_0xcc3b3d,_0x3940ec){return _0xcc3b3d(_0x3940ec);},'dfZqu':function(_0x5f2cfd,_0x53871e,_0x275f55){return _0x5f2cfd(_0x53871e,_0x275f55);},'NApsU':function(_0x53930b,_0x39a27b){return _0x53930b+_0x39a27b;},'qiRTr':'utf8','UDoSe':function(_0xe29a61,_0x2963c6,_0x2864e9,_0xf8154d){return _0xe29a61(_0x2963c6,_0x2864e9,_0xf8154d);}};if(!_0x45ca3b){const _0x5df692=randomUUID()['replace'](/-/g,'');_0x45ca3b=_0x301599[_0x12064f(0x97)](join,tmpdir(),'cm-'+_0x5df692);}_0x301599[_0x12064f(0x9c)](ensureDir,_0x45ca3b);const _0x401f2d=_0x301599['hpfXf'](join,_0x45ca3b,_0x12064f(0x92)),_0x3f7098=_0x301599[_0x12064f(0xa4)](join,_0x45ca3b,'targets.mk'),_0x33391e=join(_0x45ca3b,_0x12064f(0x95)),_0x4bf688=_0x301599['NApsU'](_0x3b4402[_0x12064f(0x98)]('\x0a'),'\x0a');writeFileSync(_0x401f2d,_0x4bf688,'utf8');const _0x1f08db='TARGETS\x20:=\x20'+_0x4cf812[_0x12064f(0x98)]('\x20')+'\x0a';writeFileSync(_0x3f7098,_0x1f08db,_0x301599['qiRTr']);const _0x47921c=JSON[_0x12064f(0x96)](_0x5f3323,null,0x2);_0x301599[_0x12064f(0x9d)](writeFileSync,_0x33391e,_0x47921c,_0x301599[_0x12064f(0x9f)]);const _0x27dbb5={};return _0x27dbb5[_0x12064f(0x91)]=_0x401f2d,_0x27dbb5[_0x12064f(0x9a)]=_0x3f7098,_0x27dbb5[_0x12064f(0xa7)]=_0x33391e,_0x27dbb5[_0x12064f(0x93)]=_0x45ca3b,_0x27dbb5;}
|