@profoundlogic/codermake 1.4.3 → 1.4.4
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/dist/makefiles/ibmi.mk +2 -2
- package/dist/makefiles/unix.mk +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
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;}
|
|
1
|
+
(function(_0x174677,_0x3b1576){const _0x2d38db=_0x5302,_0x3ab451=_0x174677();while(!![]){try{const _0x6767f5=parseInt(_0x2d38db(0x184))/0x1*(-parseInt(_0x2d38db(0x193))/0x2)+parseInt(_0x2d38db(0x1b3))/0x3*(parseInt(_0x2d38db(0x1b2))/0x4)+-parseInt(_0x2d38db(0x1c0))/0x5+-parseInt(_0x2d38db(0x1c5))/0x6*(parseInt(_0x2d38db(0x198))/0x7)+parseInt(_0x2d38db(0x18f))/0x8+parseInt(_0x2d38db(0x19c))/0x9*(parseInt(_0x2d38db(0x196))/0xa)+-parseInt(_0x2d38db(0x1c1))/0xb;if(_0x6767f5===_0x3b1576)break;else _0x3ab451['push'](_0x3ab451['shift']());}catch(_0x37bcc3){_0x3ab451['push'](_0x3ab451['shift']());}}}(_0xf540,0xa9016));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x12f966){const _0xe6fab=_0x5302,_0x300f81={};_0x300f81[_0xe6fab(0x1bb)]=_0xe6fab(0x1a4);const _0xd46eaf=_0x300f81;if(/^\*\*free$/i[_0xe6fab(0x18a)](_0x12f966[_0xe6fab(0x1a3)]()))return _0xd46eaf[_0xe6fab(0x1bb)];return _0xe6fab(0x1b1);}export function extractDirective(_0x47e764,_0x53af7d){const _0x450e35=_0x5302,_0x56fb21={};_0x56fb21['JuKVT']=function(_0x29da50,_0x392239){return _0x29da50-_0x392239;},_0x56fb21[_0x450e35(0x186)]=function(_0x283794,_0xfd4d40){return _0x283794+_0xfd4d40;},_0x56fb21[_0x450e35(0x188)]=function(_0x1a09e3,_0xaa326e){return _0x1a09e3<_0xaa326e;},_0x56fb21[_0x450e35(0x1b4)]=function(_0x4d4b9a,_0x3487f2){return _0x4d4b9a!==_0x3487f2;},_0x56fb21[_0x450e35(0x19b)]=function(_0x30a62a,_0x2cc3c1){return _0x30a62a-_0x2cc3c1;},_0x56fb21[_0x450e35(0x1b8)]=function(_0x55d7be,_0x34064e){return _0x55d7be===_0x34064e;},_0x56fb21[_0x450e35(0x1c7)]=function(_0xbd2c33,_0x38482d){return _0xbd2c33+_0x38482d;};const _0x2ad242=_0x56fb21;let _0x521e3e,_0x2ff6af;if(_0x53af7d===_0x450e35(0x1a4)){const _0xb0a55d=_0x47e764[_0x450e35(0x1bf)](/^\s*\/(copy|include) (\S)/i);if(!_0xb0a55d)return null;const _0x5647cf=_0x47e764[_0x450e35(0x1c3)]();if(_0x5647cf[_0x450e35(0x1ae)]('//'))return null;_0x521e3e=_0xb0a55d[0x1][_0x450e35(0x1c6)](),_0x2ff6af=_0x47e764[_0x450e35(0x1a2)](_0x2ad242[_0x450e35(0x1b0)](_0x2ad242['YXwpZ'](_0xb0a55d[_0x450e35(0x1be)],_0xb0a55d[0x0][_0x450e35(0x194)]),0x1));}else{if(_0x2ad242[_0x450e35(0x188)](_0x47e764[_0x450e35(0x194)],0x7))return null;if(_0x2ad242[_0x450e35(0x1b4)](_0x47e764[0x6],'/'))return null;const _0x33e973=_0x47e764[_0x450e35(0x1a2)](0x7),_0x5ec86a=_0x33e973[_0x450e35(0x1bf)](/^(copy|include) (\S)/i);if(!_0x5ec86a)return null;_0x521e3e=_0x5ec86a[0x1][_0x450e35(0x1c6)](),_0x2ff6af=_0x33e973[_0x450e35(0x1a2)](_0x2ad242[_0x450e35(0x19b)](_0x5ec86a[0x0][_0x450e35(0x194)],0x1));}let _0x53d295;if(_0x2ff6af[_0x450e35(0x1ae)]('\x27')){const _0xaf4244=_0x2ff6af[_0x450e35(0x19f)]('\x27',0x1);_0x53d295=_0xaf4244===-0x1?_0x2ff6af['trim']():_0x2ff6af[_0x450e35(0x1a2)](0x0,_0x2ad242['YXwpZ'](_0xaf4244,0x1));}else{if(_0x2ff6af['startsWith']('\x22')){const _0x1693e2=_0x2ff6af['indexOf']('\x22',0x1);_0x53d295=_0x2ad242[_0x450e35(0x1b8)](_0x1693e2,-0x1)?_0x2ff6af[_0x450e35(0x1ad)]():_0x2ff6af[_0x450e35(0x1a2)](0x0,_0x2ad242['FiZiU'](_0x1693e2,0x1));}else _0x53d295=_0x2ff6af[_0x450e35(0x18e)](/\s/)[0x0];}const _0x405d33={};return _0x405d33['keyword']=_0x521e3e,_0x405d33[_0x450e35(0x195)]=_0x53d295,_0x405d33;}export function classifyDirectiveOperand(_0x135c7c){const _0x203d02=_0x5302,_0x51830b={};_0x51830b['QqLHJ']=_0x203d02(0x1a0),_0x51830b[_0x203d02(0x18d)]=function(_0x30af9b,_0x57b5f5){return _0x30af9b+_0x57b5f5;},_0x51830b['WHHOE']=function(_0x1120e4,_0x39c188){return _0x1120e4+_0x39c188;},_0x51830b['kkejI']=_0x203d02(0x18c);const _0x37d0c3=_0x51830b;if(_0x135c7c[_0x203d02(0x1ae)]('\x27')||_0x135c7c['startsWith']('\x22')){const _0x2ef101={};return _0x2ef101[_0x203d02(0x1aa)]=_0x37d0c3['QqLHJ'],_0x2ef101;}if(_0x135c7c[_0x203d02(0x192)](',')){const _0x3ed8c1=_0x135c7c[_0x203d02(0x19f)](','),_0xa4bb01=_0x135c7c[_0x203d02(0x1a2)](0x0,_0x3ed8c1),_0x1f191e=_0x135c7c[_0x203d02(0x1a2)](_0x37d0c3[_0x203d02(0x18d)](_0x3ed8c1,0x1)),_0x17e41f=_0xa4bb01['indexOf']('/');if(_0x17e41f!==-0x1){const _0xaa801=_0xa4bb01[_0x203d02(0x1a2)](0x0,_0x17e41f),_0x222998=/^\*libl$/i[_0x203d02(0x18a)](_0xaa801)?null:_0xaa801;return{'type':_0x203d02(0x18c),'library':_0x222998,'fileName':_0xa4bb01['substring'](_0x37d0c3[_0x203d02(0x1a6)](_0x17e41f,0x1)),'memberName':_0x1f191e};}const _0x3c7193={};return _0x3c7193['type']=_0x37d0c3[_0x203d02(0x1a5)],_0x3c7193[_0x203d02(0x1bc)]=null,_0x3c7193[_0x203d02(0x19d)]=_0xa4bb01,_0x3c7193[_0x203d02(0x1a9)]=_0x1f191e,_0x3c7193;}if(_0x135c7c['includes']('/')){const _0x54df14={};return _0x54df14[_0x203d02(0x1aa)]=_0x203d02(0x1a0),_0x54df14;}if(/\.rpgle$/i[_0x203d02(0x18a)](_0x135c7c)||/\.sqlrpgle$/i[_0x203d02(0x18a)](_0x135c7c)){const _0x3f423e={};return _0x3f423e[_0x203d02(0x1aa)]=_0x203d02(0x1a0),_0x3f423e;}const _0xce06b9={};return _0xce06b9['type']=_0x37d0c3[_0x203d02(0x1a5)],_0xce06b9[_0x203d02(0x1bc)]=null,_0xce06b9['fileName']=null,_0xce06b9[_0x203d02(0x1a9)]=_0x135c7c,_0xce06b9;}function _0x5302(_0x3fb527,_0x39e364){_0x3fb527=_0x3fb527-0x17e;const _0xf54092=_0xf540();let _0x53028e=_0xf54092[_0x3fb527];if(_0x5302['uVKzUG']===undefined){var _0x4c7c44=function(_0x162c81){const _0x38e91b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a539='',_0x5c2951='';for(let _0x14f2b8=0x0,_0x3b579b,_0x5ed353,_0x580726=0x0;_0x5ed353=_0x162c81['charAt'](_0x580726++);~_0x5ed353&&(_0x3b579b=_0x14f2b8%0x4?_0x3b579b*0x40+_0x5ed353:_0x5ed353,_0x14f2b8++%0x4)?_0x3a539+=String['fromCharCode'](0xff&_0x3b579b>>(-0x2*_0x14f2b8&0x6)):0x0){_0x5ed353=_0x38e91b['indexOf'](_0x5ed353);}for(let _0x46d213=0x0,_0x367972=_0x3a539['length'];_0x46d213<_0x367972;_0x46d213++){_0x5c2951+='%'+('00'+_0x3a539['charCodeAt'](_0x46d213)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c2951);};_0x5302['FEeYAR']=_0x4c7c44,_0x5302['hgnGFr']={},_0x5302['uVKzUG']=!![];}const _0x4cfda5=_0xf54092[0x0],_0x7eaf44=_0x3fb527+_0x4cfda5,_0x26a933=_0x5302['hgnGFr'][_0x7eaf44];return!_0x26a933?(_0x53028e=_0x5302['FEeYAR'](_0x53028e),_0x5302['hgnGFr'][_0x7eaf44]=_0x53028e):_0x53028e=_0x26a933,_0x53028e;}function findFileInsensitive(_0x51e183,_0x2d512f){const _0x2444a3=_0x5302;let _0x394291;try{_0x394291=readdirSync(_0x51e183);}catch{return null;}if(_0x394291['includes'](_0x2d512f))return _0x2d512f;const _0x1593a1=_0x2d512f[_0x2444a3(0x1c6)]();return _0x394291[_0x2444a3(0x190)](_0x2debe2=>_0x2debe2[_0x2444a3(0x1c6)]()===_0x1593a1)||null;}function findDirInsensitive(_0xe5a700,_0x213434){const _0x446351=_0x5302,_0x4fa131={'alQVx':function(_0x22de25,_0xf9c07b){return _0x22de25(_0xf9c07b);}};let _0x3ea9f4;try{_0x3ea9f4=_0x4fa131['alQVx'](readdirSync,_0xe5a700);}catch{return null;}if(_0x3ea9f4[_0x446351(0x192)](_0x213434))return _0x213434;const _0x158d14=_0x213434[_0x446351(0x1c6)]();return _0x3ea9f4[_0x446351(0x190)](_0x4949a1=>_0x4949a1[_0x446351(0x1c6)]()===_0x158d14)||null;}function _0xf540(){const _0x42f815=['DhDKuha','B1nQwgG','DgvZDa','BwvZC2fNzq','BwvTyMvY','r011uhi','C3bSAxq','nJC1nJyXnNreAuzQua','zMLUza','lNnXBhjWz2XL','Aw5JBhvKzxm','mtm0mtaYBK9uzwHJ','BgvUz3rO','B3bLCMfUza','mZq3nZGXmfP2yuPjuW','tNbjtwe','nZboBfj6r00','ENftzeu','igLUia','B29ZqKK','mtHgwxr6EKe','zMLSzu5HBwu','BMvLzgvK','Aw5KzxHpzG','AwzZ','Bw9KAwzPzwq','C3vIC3rYAw5N','DhjPBuvUza','zNjLzq','A2TLAKK','v0Hit0u','DxrMoa','BM1gEu4','BwvTyMvYtMfTzq','DhLWzq','AM9PBG','y29UDgvUDa','DhjPBq','C3rHCNrZv2L0Aa','icbgAwXLoIbSAw5Lia','sNvlvLq','zML4zwq','neDLB3nzCa','mJG1otqWmNjQqKr4wq','wgvcBem','C291CMnLuM9VDa','CxjWz2XLC3jJ','vfDTvw0','y05Sy1O','CMvJDxjZAxzL','rxvuBLa','qMHvB0q','BgLICMfYEq','tMXRswO','Aw5KzxG','Bwf0y2G','mtC2mdu1nufQrgLJAa','ndaWmJaYmfbjsKz1yW','DhbIqwK','DhjPBvn0yxj0','jdfgAwXLoIa','nZm2ofnbAMvsEG','Dg9mB3DLCKnHC2u','rMLAAvu','icbeAxjLy3rPDMu6ia','CMvWBgfJzq','icHSB29RAw5NigzVCIaN','ChvZAa','uxnZq1G','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','mtzpD21qz04','jYbPBIaN','wvH3CfO','EejfzfO'];_0xf540=function(){return _0x42f815;};return _0xf540();}export function resolveSourceMember(_0x1ea099,_0x9de4b7){const _0x5d471e=_0x5302,_0x16e444={'RrPNl':function(_0x340d39,_0xcfc248,_0x1a728c){return _0x340d39(_0xcfc248,_0x1a728c);},'NlkIj':function(_0x3e771e,_0x1bda35){return _0x3e771e+_0x1bda35;},'TWmUm':function(_0x100e0a,_0x48445e,_0x1b7d5d){return _0x100e0a(_0x48445e,_0x1b7d5d);}},{library:_0x2baa25,fileName:_0x23dbfe,memberName:_0x3566c1}=_0x1ea099;let _0x2840c6;if(_0x23dbfe===null)_0x2840c6=_0x5d471e(0x1b6);else _0x2baa25!==null?_0x2840c6=_0x2baa25+'/'+_0x23dbfe:_0x2840c6=_0x23dbfe;const _0x321492=_0x2840c6[_0x5d471e(0x18e)]('/');let _0x3dad5e=_0x9de4b7;const _0x3c642a=[];for(const _0xc763e9 of _0x321492){const _0x17f797=_0x16e444['RrPNl'](findDirInsensitive,_0x3dad5e,_0xc763e9);if(!_0x17f797)throw new Error('Directory\x20not\x20found:\x20'+_0x2840c6+_0x5d471e(0x180)+_0xc763e9+_0x5d471e(0x185)+_0x3dad5e+'\x27)');_0x3c642a['push'](_0x17f797),_0x3dad5e=join(_0x3dad5e,_0x17f797);}const _0x99eb53=_0x3c642a['join']('/'),_0x204cf2=['.rpgle',_0x5d471e(0x191)];for(const _0x1d3e01 of _0x204cf2){const _0x4191a1=_0x16e444[_0x5d471e(0x1bd)](_0x3566c1,_0x1d3e01),_0x1892ed=_0x16e444['RrPNl'](findFileInsensitive,_0x16e444[_0x5d471e(0x1b7)](join,_0x9de4b7,_0x99eb53),_0x4191a1);if(_0x1892ed)return _0x99eb53+'/'+_0x1892ed;}throw new Error(_0x5d471e(0x183)+_0x3566c1+_0x5d471e(0x19a)+_0x99eb53+'/\x20(tried\x20.rpgle,\x20.sqlrpgle)');}export function preprocessFileContent(_0x4935ad,_0x1abf46){const _0x5264d4=_0x5302,_0x519fac={'nmFyN':function(_0x14d3a3,_0xb84acf){return _0x14d3a3<_0xb84acf;},'zqSdE':function(_0x85fdd5,_0xe406de){return _0x85fdd5(_0xe406de);},'EuTnP':function(_0x1be550,_0x38b407){return _0x1be550+_0x38b407;},'tpbAi':function(_0x366991,_0x55eb00){return _0x366991+_0x55eb00;},'oSjXh':function(_0x549894,_0x4918e4){return _0x549894===_0x4918e4;},'YyCAo':_0x5264d4(0x1a4),'QssCX':function(_0x1b6fd4,_0x1b5e62){return _0x1b6fd4+_0x1b5e62;}},_0x480876=_0x4935ad[_0x5264d4(0x18e)]('\x0a'),_0x3bd886={};_0x3bd886[_0x5264d4(0x1ac)]=_0x4935ad,_0x3bd886[_0x5264d4(0x1a1)]=![];if(_0x480876['length']===0x0)return _0x3bd886;const _0x44219b=detectFormat(_0x480876[0x0]);let _0x3aa3c3=![];const _0x1fe046=[];for(let _0x5c025e=0x0;_0x519fac[_0x5264d4(0x1a8)](_0x5c025e,_0x480876[_0x5264d4(0x194)]);_0x5c025e++){const _0x401707=_0x480876[_0x5c025e],_0x481209=extractDirective(_0x401707,_0x44219b);if(!_0x481209){_0x1fe046[_0x5264d4(0x181)](_0x401707);continue;}const _0x3cea58=_0x519fac[_0x5264d4(0x199)](classifyDirectiveOperand,_0x481209['operand']);if(_0x3cea58[_0x5264d4(0x1aa)]==='ifs'){_0x1fe046[_0x5264d4(0x181)](_0x401707);continue;}let _0x144242;try{_0x144242=resolveSourceMember(_0x3cea58,_0x1abf46);}catch(_0x91cb5a){const _0x4dff0b=_0x519fac[_0x5264d4(0x1ba)](_0x5c025e,0x1);throw new Error(_0x519fac[_0x5264d4(0x1ba)](_0x519fac[_0x5264d4(0x1c2)](_0x91cb5a['message']+'\x0a',_0x5264d4(0x1af)+_0x4dff0b+'\x0a'),_0x5264d4(0x17e)+_0x401707[_0x5264d4(0x1c3)]()));}let _0x56354d;if(_0x519fac[_0x5264d4(0x189)](_0x44219b,_0x519fac['YyCAo'])){const _0x295cd3=_0x401707[_0x5264d4(0x1bf)](/^(\s*\/)(copy|include) /i),_0x155ff2=_0x295cd3[0x1],_0x3e5e57=_0x295cd3[0x2],_0x12c8cc=_0x401707[_0x5264d4(0x1a2)](_0x519fac[_0x5264d4(0x182)](_0x295cd3[0x0][_0x5264d4(0x194)],_0x481209[_0x5264d4(0x195)][_0x5264d4(0x194)]));_0x56354d=''+_0x155ff2+_0x3e5e57+'\x20'+_0x144242+_0x12c8cc;}else{const _0x46a5e8=_0x401707[_0x5264d4(0x1a2)](0x0,0x6),_0x39f097=_0x401707[_0x5264d4(0x1a2)](0x7)['match'](/^(copy|include) /i),_0x398c8e=_0x39f097[0x1],_0x3d839a=0x7+_0x39f097[0x0][_0x5264d4(0x194)],_0x12e0eb=_0x401707[_0x5264d4(0x1a2)](_0x519fac['QssCX'](_0x3d839a,_0x481209[_0x5264d4(0x195)][_0x5264d4(0x194)]));_0x56354d=_0x46a5e8+'/'+_0x398c8e+'\x20'+_0x144242+_0x12e0eb;}_0x1fe046[_0x5264d4(0x181)](_0x56354d),_0x3aa3c3=!![];}return{'content':_0x1fe046[_0x5264d4(0x1ab)]('\x0a'),'modified':_0x3aa3c3};}export function preprocessFile(_0x589bf5,_0x2b6b1d){const _0x1694bf=_0x5302,_0xc24d6c={};_0xc24d6c[_0x1694bf(0x197)]=_0x1694bf(0x1a7);const _0xd21661=_0xc24d6c;if(!/\.(rpgle|sqlrpgle)$/i[_0x1694bf(0x18a)](_0x589bf5)){const _0x578ed2={};return _0x578ed2['modified']=![],_0x578ed2;}const _0x3abd7e=readFileSync(_0x589bf5,_0xd21661[_0x1694bf(0x197)]);try{return preprocessFileContent(_0x3abd7e,_0x2b6b1d);}catch(_0x3c76af){const _0x1e5f2f=_0x3c76af[_0x1694bf(0x18b)][_0x1694bf(0x17f)](/^(.*\n {2})File: /,_0x1694bf(0x1c4)+_0x589bf5+',\x20');throw new Error(_0x1e5f2f);}}export function preprocessFiles(_0x341ccf,_0x48d893,_0x513a74){const _0x4ac37c=_0x5302,_0x466f7b={'xBEdZ':function(_0x51d777,_0x3a13f5,_0x1de270){return _0x51d777(_0x3a13f5,_0x1de270);}},_0x58bf27=[];let _0x27bfe1=![];for(const _0x3b1446 of _0x341ccf){const _0x42ac92=join(_0x48d893,_0x3b1446),_0x5c87d1=_0x466f7b[_0x4ac37c(0x187)](preprocessFile,_0x42ac92,_0x48d893),_0x41c03d={'filePath':_0x3b1446,..._0x5c87d1};_0x58bf27[_0x4ac37c(0x181)](_0x41c03d);if(_0x5c87d1[_0x4ac37c(0x1a1)])_0x27bfe1=!![];}if(!_0x27bfe1){const _0x41c2b0={};return _0x41c2b0[_0x4ac37c(0x19e)]=![],_0x41c2b0[_0x4ac37c(0x1b5)]='.',_0x41c2b0;}const _0xf4f199=_0x513a74+'-'+randomUUID();for(let _0x24ed8d=0x0;_0x24ed8d<_0x341ccf[_0x4ac37c(0x194)];_0x24ed8d++){const _0x230eae=_0x341ccf[_0x24ed8d],_0x49dec3=_0x58bf27[_0x24ed8d],_0x107309=_0x466f7b[_0x4ac37c(0x187)](join,_0xf4f199,_0x230eae),_0x2eb30b={};_0x2eb30b[_0x4ac37c(0x1b9)]=!![],_0x466f7b[_0x4ac37c(0x187)](mkdirSync,dirname(_0x107309),_0x2eb30b),_0x49dec3[_0x4ac37c(0x1a1)]?writeFileSync(_0x107309,_0x49dec3[_0x4ac37c(0x1ac)]):copyFileSync(_0x466f7b[_0x4ac37c(0x187)](join,_0x48d893,_0x230eae),_0x107309);}const _0x3062b1={};return _0x3062b1[_0x4ac37c(0x19e)]=!![],_0x3062b1[_0x4ac37c(0x1b5)]=_0xf4f199,_0x3062b1;}
|
package/dist/lib/ssh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x118189,_0x5772b2){const _0x1b3234=_0x1d28,_0x2be611=_0x118189();while(!![]){try{const _0xd6f187=parseInt(_0x1b3234(0x199))/0x1+-parseInt(_0x1b3234(0x1a2))/0x2+parseInt(_0x1b3234(0x18c))/0x3+-parseInt(_0x1b3234(0x18f))/0x4+parseInt(_0x1b3234(0x19d))/0x5+-parseInt(_0x1b3234(0x189))/0x6+parseInt(_0x1b3234(0x18b))/0x7*(parseInt(_0x1b3234(0x19a))/0x8);if(_0xd6f187===_0x5772b2)break;else _0x2be611['push'](_0x2be611['shift']());}catch(_0x403d0a){_0x2be611['push'](_0x2be611['shift']());}}}(_0x11b3,0x4a104));function _0x11b3(){const _0x13b86f=['C3nOlq','mJf0tgrtAgy','odiXotGYEgrtB3rL','q29UDhjVBfbLCNnPC3q9mtbT','w3nZAf0','mta1ndG2neLPAM15Aq','C29Tzq','Dw5Yzwy','BM93','wMPNAMS','u2vYDMvYqwXPDMvjBNrLCNzHBd02ma','q2LOAfi','l3nZAc0LqW','Bg9N','ifbYzs1LC3rHyMXPC2HPBMCGu1niig1HC3rLCIbJB25Uzwn0Aw9UlI4U','mZi3ntq4Ce1hBxrw','nJeXotq0rKDUEezq','Cgvszvy','ChvZAa','mtm3odqWnwLqtNbysa','DwzdCgu','AwDUB3jL','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','whfLDvy','ndi3nZq2zfDKq05H','txPWEvm','zxHPDa','q29UDhjVBe1HC3rLCJ15zxm','u1niig1HC3rLCIbLEgL0zwqGD2L0AcbJB2rLia','icHWCM9JzxnZigv4AxrLzcb3AxrOignVzguG','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','mtK1ndq5nfzgvgHtwa'];_0x11b3=function(){return _0x13b86f;};return _0x11b3();}import{spawn}from'child_process';import{readdirSync}from'fs';async function waitForSSHSocket(_0x473d65,_0xfbbe22,_0x98695e=0x3a98){const _0x158ffe={'dQCEW':function(_0x4bf91e){return _0x4bf91e();},'CihhR':function(_0x45cf3d,_0x513070){return _0x45cf3d>=_0x513070;},'ofxDq':function(_0xea27fd,_0x171420){return _0xea27fd(_0x171420);}};return new Promise((_0x1fc359,_0x2940f8)=>{const _0x473988=_0x1d28,_0x24b777={'ZPnTF':function(_0x368d8b){return _0x158ffe['dQCEW'](_0x368d8b);},'XqeuV':function(_0x537415,_0x1dcfe3){const _0x39c1e8=_0x1d28;return _0x158ffe[_0x39c1e8(0x195)](_0x537415,_0x1dcfe3);},'BmCAQ':function(_0x436efb,_0x506286){return _0x436efb-_0x506286;},'HQxHa':function(_0x5e57b7,_0x134c87){return _0x5e57b7!==_0x134c87;},'fmlEs':function(_0x8aba97,_0x163f74){return _0x158ffe['ofxDq'](_0x8aba97,_0x163f74);}};let _0x35af49=![],_0x2072d0=null;_0xfbbe22['on'](_0x473988(0x184),_0x286e01=>{const _0x24f8e1=_0x473988;_0x2072d0=_0x286e01,!_0x35af49&&_0x286e01!==0x0&&(_0x35af49=!![],_0x2940f8(new Error(_0x24f8e1(0x186)+_0x286e01)));});const _0x39d55e=Date[_0x473988(0x192)](),_0x53b3cc=()=>{const _0x26ac40=_0x473988;if(_0x35af49)return;const _0x34e1d2=readdirSync(_0x473d65);if(_0x34e1d2[_0x26ac40(0x190)](_0x197723=>_0x197723['startsWith'](_0x26ac40(0x18a)))){_0x35af49=!![],_0x24b777['ZPnTF'](_0x1fc359);return;}if(_0x24b777[_0x26ac40(0x1a1)](_0x24b777['BmCAQ'](Date[_0x26ac40(0x192)](),_0x39d55e),_0x98695e)){_0x35af49=!![];const _0x482d06=_0x24b777['HQxHa'](_0x2072d0,null)?_0x26ac40(0x187)+_0x2072d0+')':'';_0x24b777['fmlEs'](_0x2940f8,new Error(_0x26ac40(0x1a0)+_0x98695e+'ms'+_0x482d06));return;}setTimeout(_0x53b3cc,0x64);};_0x53b3cc();});}function _0x1d28(_0x4206b9,_0x4b0f4c){_0x4206b9=_0x4206b9-0x183;const _0x11b331=_0x11b3();let _0x1d28e0=_0x11b331[_0x4206b9];if(_0x1d28['yKymEH']===undefined){var _0x16e243=function(_0x1f0218){const _0x288872='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e2475='',_0x1e3696='';for(let _0x114d22=0x0,_0x4631cd,_0x4fff31,_0x594492=0x0;_0x4fff31=_0x1f0218['charAt'](_0x594492++);~_0x4fff31&&(_0x4631cd=_0x114d22%0x4?_0x4631cd*0x40+_0x4fff31:_0x4fff31,_0x114d22++%0x4)?_0x3e2475+=String['fromCharCode'](0xff&_0x4631cd>>(-0x2*_0x114d22&0x6)):0x0){_0x4fff31=_0x288872['indexOf'](_0x4fff31);}for(let _0x4a3f9f=0x0,_0x59cd24=_0x3e2475['length'];_0x4a3f9f<_0x59cd24;_0x4a3f9f++){_0x1e3696+='%'+('00'+_0x3e2475['charCodeAt'](_0x4a3f9f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e3696);};_0x1d28['XmDwmK']=_0x16e243,_0x1d28['dhurQQ']={},_0x1d28['yKymEH']=!![];}const _0x36e269=_0x11b331[0x0],_0x13139d=_0x4206b9+_0x36e269,_0xa1f10=_0x1d28['dhurQQ'][_0x13139d];return!_0xa1f10?(_0x1d28e0=_0x1d28['XmDwmK'](_0x1d28e0),_0x1d28['dhurQQ'][_0x13139d]=_0x1d28e0):_0x1d28e0=_0xa1f10,_0x1d28e0;}export async function establishSSHMaster(_0x10ef03,_0x3a2a08={}){const _0x402886=_0x1d28,_0x516528={'peReV':_0x402886(0x185),'VBaKA':'PasswordAuthentication=no','vjPgA':'ServerAliveCountMax=3','MzpyS':function(_0xd0aa8a,_0x3f78b0,_0x1d07c8,_0x3d381c){return _0xd0aa8a(_0x3f78b0,_0x1d07c8,_0x3d381c);},'ufCpe':'ssh','Zjgjk':_0x402886(0x19f)},{host:_0xb4bc05,user:_0x4b3a67,sshKey:_0x25dc89,debug:debug=![],debugPrefix:debugPrefix=_0x402886(0x18e)}=_0x3a2a08;if(!_0xb4bc05||!_0x4b3a67)return;const _0x537fad=readdirSync(_0x10ef03);if(_0x537fad[_0x402886(0x190)](_0x42c188=>_0x42c188['startsWith'](_0x402886(0x18a)))){if(debug)console[_0x402886(0x197)](debugPrefix+'\x20SSH\x20master\x20already\x20exists,\x20reusing');return;}if(debug)console[_0x402886(0x197)](debugPrefix+_0x402886(0x198));const _0x14c557=['-o',_0x516528[_0x402886(0x19b)],'-o','ControlPath='+_0x10ef03+_0x402886(0x196),'-o',_0x402886(0x18d),'-o','StrictHostKeyChecking=no','-o',_0x516528['VBaKA'],'-o',_0x402886(0x194),'-o',_0x516528['vjPgA'],'-N','-f'];_0x25dc89&&_0x14c557[_0x402886(0x19c)]('-i',_0x25dc89);_0x14c557['push'](_0x4b3a67+'@'+_0xb4bc05);const _0x15f7ad=_0x516528[_0x402886(0x183)](spawn,_0x516528[_0x402886(0x19e)],_0x14c557,{'detached':!![],'stdio':_0x516528[_0x402886(0x193)]});_0x15f7ad[_0x402886(0x191)](),await waitForSSHSocket(_0x10ef03,_0x15f7ad,0x3a98);if(debug)console['log'](debugPrefix+_0x402886(0x188));}
|
package/dist/lib/writer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e2711,_0x2c12c5){const _0x270a69=_0x43ca,_0x15d5b1=_0x2e2711();while(!![]){try{const _0x328069=parseInt(_0x270a69(0xc8))/0x1+-parseInt(_0x270a69(0xd3))/0x2*(parseInt(_0x270a69(0xcb))/0x3)+-parseInt(_0x270a69(0xd7))/0x4*(-parseInt(_0x270a69(0xe1))/0x5)+parseInt(_0x270a69(0xd6))/0x6+-parseInt(_0x270a69(0xdc))/0x7+parseInt(_0x270a69(0xca))/0x8+parseInt(_0x270a69(0xd8))/0x9*(parseInt(_0x270a69(0xe2))/0xa);if(_0x328069===_0x2c12c5)break;else _0x15d5b1['push'](_0x15d5b1['shift']());}catch(_0x2609d5){_0x15d5b1['push'](_0x15d5b1['shift']());}}}(_0x34a0,0x3df7d));import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';function _0x43ca(_0x18357d,_0x3bf7ab){_0x18357d=_0x18357d-0xc7;const _0x34a0ee=_0x34a0();let _0x43ca70=_0x34a0ee[_0x18357d];if(_0x43ca['TBmaoo']===undefined){var _0x4bb4d9=function(_0x2971e5){const _0x2b54e6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e3935='',_0x3f850d='';for(let _0x12394d=0x0,_0x568a29,_0x5ec6,_0x30b649=0x0;_0x5ec6=_0x2971e5['charAt'](_0x30b649++);~_0x5ec6&&(_0x568a29=_0x12394d%0x4?_0x568a29*0x40+_0x5ec6:_0x5ec6,_0x12394d++%0x4)?_0x1e3935+=String['fromCharCode'](0xff&_0x568a29>>(-0x2*_0x12394d&0x6)):0x0){_0x5ec6=_0x2b54e6['indexOf'](_0x5ec6);}for(let _0x1c31f9=0x0,_0x4557e4=_0x1e3935['length'];_0x1c31f9<_0x4557e4;_0x1c31f9++){_0x3f850d+='%'+('00'+_0x1e3935['charCodeAt'](_0x1c31f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f850d);};_0x43ca['RwjIKB']=_0x4bb4d9,_0x43ca['WiRXGF']={},_0x43ca['TBmaoo']=!![];}const _0x50ea5b=_0x34a0ee[0x0],_0x37cf29=_0x18357d+_0x50ea5b,_0x54817b=_0x43ca['WiRXGF'][_0x37cf29];return!_0x54817b?(_0x43ca70=_0x43ca['RwjIKB'](_0x43ca70),_0x43ca['WiRXGF'][_0x37cf29]=_0x43ca70):_0x43ca70=_0x54817b,_0x43ca70;}import{randomUUID}from'crypto';import{tmpdir}from'os';function ensureDir(_0x2c86f5){const _0x494f81=_0x43ca,_0x31a5f3={'SpQNI':function(_0x237614,_0x514138){return _0x237614(_0x514138);},'TbdWW':function(_0xa16181,_0x17ba89,_0x1ab2cc){return _0xa16181(_0x17ba89,_0x1ab2cc);}};if(!_0x31a5f3[_0x494f81(0xdf)](existsSync,_0x2c86f5)){const _0x7b1e52={};_0x7b1e52['recursive']=!![],_0x31a5f3[_0x494f81(0xde)](mkdirSync,_0x2c86f5,_0x7b1e52);}}function _0x34a0(){const _0x1c2233=['AM9PBG','CNvSzxmUBwS','DgfYz2v0lw1HChbPBMCUANnVBG','uvblD0i','v1fNu3K','C3rYAw5NAwz5','y20T','ndqXogr6vxfNrq','BNnhA1a','rLvls2q','nJaYody4EKr1t1nQ','oteZmZjHAvz0we4','ovbbEMvPua','ue5OCKC','wNrzExm','CMvWBgfJzq','mJe1mZG3ovLAB01Tyq','BwfWCgLUz0zPBgu','vgjKv1C','u3brtKK','DxrMoa','mZvrqMzuExG','mZy2nZi3meLKsM1jwG','DgfYz2v0C0zPBgu','mZu0nZfrBej0EwG','Dg1WrgLY','nZy0odK2BNjstuD2','mJy3AMndtMHv'];_0x34a0=function(){return _0x1c2233;};return _0x34a0();}export function writeRules(_0x1c0dcf,_0x27ecd6,_0x4b00b8={},_0x337230=null){const _0x31e39e=_0x43ca,_0x46324c={'nBXTK':function(_0x231593,_0xf9c6f5){return _0x231593(_0xf9c6f5);},'KALhs':function(_0x41267e,_0x5c8b6a,_0x3f5d5d){return _0x41267e(_0x5c8b6a,_0x3f5d5d);},'WQgSy':_0x31e39e(0xcd),'FUKKd':function(_0x361ac5,_0x15e312,_0x30971c){return _0x361ac5(_0x15e312,_0x30971c);},'PNhrG':function(_0x111a4e,_0x3e4843,_0x161df6){return _0x111a4e(_0x3e4843,_0x161df6);},'QPKwB':function(_0x54ff28,_0x204314,_0x3c80b0,_0x27335e){return _0x54ff28(_0x204314,_0x3c80b0,_0x27335e);},'nsGkP':_0x31e39e(0xe0),'ZtYys':function(_0x8dd816,_0x20d40c,_0x46163b,_0x3e4fbd){return _0x8dd816(_0x20d40c,_0x46163b,_0x3e4fbd);}};if(!_0x337230){const _0x231ec6=randomUUID()[_0x31e39e(0xdb)](/-/g,'');_0x337230=join(tmpdir(),_0x31e39e(0xd2)+_0x231ec6);}_0x46324c['nBXTK'](ensureDir,_0x337230);const _0x4a5de2=_0x46324c['KALhs'](join,_0x337230,_0x46324c[_0x31e39e(0xd0)]),_0x3cfa77=_0x46324c[_0x31e39e(0xd5)](join,_0x337230,'targets.mk'),_0x5cc101=_0x46324c[_0x31e39e(0xd9)](join,_0x337230,_0x31e39e(0xce)),_0x207e09=_0x1c0dcf[_0x31e39e(0xcc)]('\x0a')+'\x0a';_0x46324c[_0x31e39e(0xcf)](writeFileSync,_0x4a5de2,_0x207e09,_0x31e39e(0xe0));const _0x5622fb='TARGETS\x20:=\x20'+_0x27ecd6[_0x31e39e(0xcc)]('\x20')+'\x0a';_0x46324c[_0x31e39e(0xcf)](writeFileSync,_0x3cfa77,_0x5622fb,_0x46324c[_0x31e39e(0xd4)]);const _0x45bf37=JSON[_0x31e39e(0xd1)](_0x4b00b8,null,0x2);_0x46324c[_0x31e39e(0xda)](writeFileSync,_0x5cc101,_0x45bf37,_0x46324c['nsGkP']);const _0x5c709f={};return _0x5c709f['rulesFile']=_0x4a5de2,_0x5c709f[_0x31e39e(0xc7)]=_0x3cfa77,_0x5c709f[_0x31e39e(0xdd)]=_0x5cc101,_0x5c709f[_0x31e39e(0xc9)]=_0x337230,_0x5c709f;}
|
package/dist/makefiles/ibmi.mk
CHANGED
|
@@ -95,7 +95,7 @@ define BUILD_SQLRPGLE_PGM
|
|
|
95
95
|
$(call SETUP_LOG,$(notdir $@))
|
|
96
96
|
$(call RPG_PREPROCESS_SOURCES,$< $(filter-out $(LIBRARY_PATH)/%,$^))
|
|
97
97
|
$(SET_LIBL)
|
|
98
|
-
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$$RPG_SRC_ROOT/$<') cvtccsid(*job) output(*print) rpgppopt(*
|
|
98
|
+
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$$RPG_SRC_ROOT/$<') cvtccsid(*job) output(*print) rpgppopt(*lvl2) compileopt('incdir(''$$RPG_SRC_ROOT'') tgtccsid(*job) output(*print)') dbgview(*source)"
|
|
99
99
|
$(call RPG_CLEANUP_SOURCES)
|
|
100
100
|
endef
|
|
101
101
|
|
|
@@ -113,7 +113,7 @@ define BUILD_SQLRPGLE_MODULE
|
|
|
113
113
|
$(call SETUP_LOG,$(notdir $@))
|
|
114
114
|
$(call RPG_PREPROCESS_SOURCES,$< $(filter-out $(LIBRARY_PATH)/%,$^))
|
|
115
115
|
$(SET_LIBL)
|
|
116
|
-
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$$RPG_SRC_ROOT/$<') cvtccsid(*job) output(*print) rpgppopt(*
|
|
116
|
+
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$$RPG_SRC_ROOT/$<') cvtccsid(*job) output(*print) rpgppopt(*lvl2) compileopt('incdir(''$$RPG_SRC_ROOT'') tgtccsid(*job) output(*print)') dbgview(*source)"
|
|
117
117
|
$(call RPG_CLEANUP_SOURCES)
|
|
118
118
|
endef
|
|
119
119
|
|
package/dist/makefiles/unix.mk
CHANGED
|
@@ -182,7 +182,7 @@ endef
|
|
|
182
182
|
define BUILD_SQLRPGLE_PGM
|
|
183
183
|
$(call SETUP_LOG,$(notdir $@))
|
|
184
184
|
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
185
|
-
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*
|
|
185
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl2) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)")
|
|
186
186
|
$(call RPG_CLEANUP_SOURCES)
|
|
187
187
|
touch '$@'
|
|
188
188
|
endef
|
|
@@ -200,7 +200,7 @@ endef
|
|
|
200
200
|
define BUILD_SQLRPGLE_MODULE
|
|
201
201
|
$(call SETUP_LOG,$(notdir $@))
|
|
202
202
|
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
203
|
-
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*
|
|
203
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl2) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)")
|
|
204
204
|
$(call RPG_CLEANUP_SOURCES)
|
|
205
205
|
touch '$@'
|
|
206
206
|
endef
|