@profoundlogic/codermake 1.4.1 → 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/dist/makefiles/ibmi.mk +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x586783,_0x527fec){const _0xa08ebe=_0x470a,_0x439ca0=_0x586783();while(!![]){try{const _0x18ca21=parseInt(_0xa08ebe(0xaf))/0x1*(parseInt(_0xa08ebe(0x9b))/0x2)+-parseInt(_0xa08ebe(0x97))/0x3*(-parseInt(_0xa08ebe(0x7d))/0x4)+parseInt(_0xa08ebe(0xb5))/0x5*(-parseInt(_0xa08ebe(0xb6))/0x6)+parseInt(_0xa08ebe(0xa3))/0x7+parseInt(_0xa08ebe(0x8a))/0x8+parseInt(_0xa08ebe(0x8c))/0x9+-parseInt(_0xa08ebe(0x77))/0xa*(parseInt(_0xa08ebe(0x81))/0xb);if(_0x18ca21===_0x527fec)break;else _0x439ca0['push'](_0x439ca0['shift']());}catch(_0x4db8c5){_0x439ca0['push'](_0x439ca0['shift']());}}}(_0xbd47,0x89a40));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x22b577){const _0x3a8a00=_0x470a;if(/^\*\*free$/i[_0x3a8a00(0x9f)](_0x22b577[_0x3a8a00(0x85)]()))return _0x3a8a00(0x99);return _0x3a8a00(0xb4);}export function extractDirective(_0x333324,_0x331196){const _0x1cdf73=_0x470a,_0x576a29={};_0x576a29['AwpWp']=function(_0xe1ffa,_0x52976a){return _0xe1ffa<_0x52976a;},_0x576a29[_0x1cdf73(0xab)]=function(_0x27221e,_0x54ff0b){return _0x27221e-_0x54ff0b;},_0x576a29[_0x1cdf73(0xa6)]=function(_0x23df91,_0x5394c2){return _0x23df91===_0x5394c2;},_0x576a29['jLKWX']=function(_0x1e2d52,_0x15c909){return _0x1e2d52===_0x15c909;};const _0xdb9175=_0x576a29;let _0x2a0bae,_0x3612cc;if(_0x331196===_0x1cdf73(0x99)){const _0x7225d4=_0x333324[_0x1cdf73(0xad)](/^\s*\/(copy|include) (\S)/i);if(!_0x7225d4)return null;const _0xd9d903=_0x333324[_0x1cdf73(0x87)]();if(_0xd9d903['startsWith']('//'))return null;_0x2a0bae=_0x7225d4[0x1]['toLowerCase'](),_0x3612cc=_0x333324[_0x1cdf73(0x91)](_0x7225d4[_0x1cdf73(0xa2)]+_0x7225d4[0x0][_0x1cdf73(0xb9)]-0x1);}else{if(_0xdb9175[_0x1cdf73(0xac)](_0x333324['length'],0x7))return null;if(_0x333324[0x6]!=='/')return null;const _0xd51e41=_0x333324[_0x1cdf73(0x91)](0x7),_0x44ed65=_0xd51e41[_0x1cdf73(0xad)](/^(copy|include) (\S)/i);if(!_0x44ed65)return null;_0x2a0bae=_0x44ed65[0x1][_0x1cdf73(0x98)](),_0x3612cc=_0xd51e41['substring'](_0xdb9175[_0x1cdf73(0xab)](_0x44ed65[0x0][_0x1cdf73(0xb9)],0x1));}let _0xe042a4;if(_0x3612cc['startsWith']('\x27')){const _0x455a95=_0x3612cc[_0x1cdf73(0x9a)]('\x27',0x1);_0xe042a4=_0xdb9175[_0x1cdf73(0xa6)](_0x455a95,-0x1)?_0x3612cc['trim']():_0x3612cc['substring'](0x0,_0x455a95+0x1);}else{if(_0x3612cc[_0x1cdf73(0x8d)]('\x22')){const _0x5d9451=_0x3612cc['indexOf']('\x22',0x1);_0xe042a4=_0xdb9175[_0x1cdf73(0x75)](_0x5d9451,-0x1)?_0x3612cc['trim']():_0x3612cc[_0x1cdf73(0x91)](0x0,_0x5d9451+0x1);}else _0xe042a4=_0x3612cc[_0x1cdf73(0xa9)](/\s/)[0x0];}const _0x72683e={};return _0x72683e['keyword']=_0x2a0bae,_0x72683e[_0x1cdf73(0x79)]=_0xe042a4,_0x72683e;}export function classifyDirectiveOperand(_0xb724e9){const _0x1c7991=_0x470a,_0x36c902={};_0x36c902['PBPJV']=function(_0x4fce4a,_0x3cacb0){return _0x4fce4a!==_0x3cacb0;},_0x36c902[_0x1c7991(0xa1)]=_0x1c7991(0x7f),_0x36c902[_0x1c7991(0xb8)]=_0x1c7991(0xae);const _0x529eb8=_0x36c902;if(_0xb724e9['startsWith']('\x27')||_0xb724e9[_0x1c7991(0x8d)]('\x22')){const _0x557edd={};return _0x557edd['type']='ifs',_0x557edd;}if(_0xb724e9['includes'](',')){const _0x50ba0c=_0xb724e9[_0x1c7991(0x9a)](','),_0x530e4a=_0xb724e9[_0x1c7991(0x91)](0x0,_0x50ba0c),_0x440e22=_0xb724e9[_0x1c7991(0x91)](_0x50ba0c+0x1),_0x3f3982=_0x530e4a[_0x1c7991(0x9a)]('/');if(_0x529eb8[_0x1c7991(0xa7)](_0x3f3982,-0x1)){const _0xb25685=_0x530e4a[_0x1c7991(0x91)](0x0,_0x3f3982),_0x1352a6=/^\*libl$/i['test'](_0xb25685)?null:_0xb25685;return{'type':_0x529eb8[_0x1c7991(0xa1)],'library':_0x1352a6,'fileName':_0x530e4a[_0x1c7991(0x91)](_0x3f3982+0x1),'memberName':_0x440e22};}const _0x23b4d4={};return _0x23b4d4['type']=_0x1c7991(0x7f),_0x23b4d4[_0x1c7991(0x92)]=null,_0x23b4d4[_0x1c7991(0x8f)]=_0x530e4a,_0x23b4d4[_0x1c7991(0x84)]=_0x440e22,_0x23b4d4;}if(_0xb724e9['includes']('/')){const _0x21e5ee={};return _0x21e5ee[_0x1c7991(0xa0)]=_0x529eb8[_0x1c7991(0xb8)],_0x21e5ee;}if(/\.rpgle$/i[_0x1c7991(0x9f)](_0xb724e9)||/\.sqlrpgle$/i['test'](_0xb724e9)){const _0x1f0083={};return _0x1f0083[_0x1c7991(0xa0)]=_0x1c7991(0xae),_0x1f0083;}const _0x30d509={};return _0x30d509[_0x1c7991(0xa0)]=_0x1c7991(0x7f),_0x30d509[_0x1c7991(0x92)]=null,_0x30d509[_0x1c7991(0x8f)]=null,_0x30d509['memberName']=_0xb724e9,_0x30d509;}function findFileInsensitive(_0x48c5ac,_0x5c70e1){const _0x4e4d01=_0x470a;let _0x10549b;try{_0x10549b=readdirSync(_0x48c5ac);}catch{return null;}if(_0x10549b['includes'](_0x5c70e1))return _0x5c70e1;const _0x4a36d4=_0x5c70e1[_0x4e4d01(0x98)]();return _0x10549b[_0x4e4d01(0x8e)](_0x5b4f87=>_0x5b4f87[_0x4e4d01(0x98)]()===_0x4a36d4)||null;}function findDirInsensitive(_0x273136,_0x1f46c9){const _0x49f4e9=_0x470a,_0x195127={'rhNoD':function(_0x2d1f04,_0x524dad){return _0x2d1f04(_0x524dad);}};let _0x2bf6cb;try{_0x2bf6cb=_0x195127[_0x49f4e9(0x7e)](readdirSync,_0x273136);}catch{return null;}if(_0x2bf6cb[_0x49f4e9(0x83)](_0x1f46c9))return _0x1f46c9;const _0x3718d2=_0x1f46c9[_0x49f4e9(0x98)]();return _0x2bf6cb[_0x49f4e9(0x8e)](_0x3f01c6=>_0x3f01c6[_0x49f4e9(0x98)]()===_0x3718d2)||null;}export function resolveSourceMember(_0x1fc3d9,_0x3feb2e){const _0x327a41=_0x470a,_0x213c75={'epSAb':_0x327a41(0x88),'UYxNh':function(_0x483341,_0x315417,_0x32cf4a){return _0x483341(_0x315417,_0x32cf4a);},'GGfSE':'.rpgle','PUEcK':_0x327a41(0x95),'VtZWu':function(_0x2c820c,_0x617cd2){return _0x2c820c+_0x617cd2;}},{library:_0x58d304,fileName:_0x554bda,memberName:_0x2f1336}=_0x1fc3d9;let _0x477048;if(_0x554bda===null)_0x477048=_0x213c75[_0x327a41(0xb1)];else _0x58d304!==null?_0x477048=_0x58d304+'/'+_0x554bda:_0x477048=_0x554bda;const _0x3447e3=_0x477048[_0x327a41(0xa9)]('/');let _0x484054=_0x3feb2e;const _0x3745a6=[];for(const _0x4d6a16 of _0x3447e3){const _0x2d349f=findDirInsensitive(_0x484054,_0x4d6a16);if(!_0x2d349f)throw new Error(_0x327a41(0xb0)+_0x477048+_0x327a41(0x93)+_0x4d6a16+_0x327a41(0x82)+_0x484054+'\x27)');_0x3745a6[_0x327a41(0x78)](_0x2d349f),_0x484054=_0x213c75[_0x327a41(0x80)](join,_0x484054,_0x2d349f);}const _0x27fb4e=_0x3745a6[_0x327a41(0x9e)]('/'),_0x4a643b=[_0x213c75['GGfSE'],_0x213c75[_0x327a41(0x9c)]];for(const _0xd1c272 of _0x4a643b){const _0x5acb8d=_0x213c75[_0x327a41(0x89)](_0x2f1336,_0xd1c272),_0x46260d=_0x213c75[_0x327a41(0x80)](findFileInsensitive,join(_0x3feb2e,_0x27fb4e),_0x5acb8d);if(_0x46260d)return _0x27fb4e+'/'+_0x46260d;}throw new Error(_0x327a41(0x7a)+_0x2f1336+_0x327a41(0x94)+_0x27fb4e+'/\x20(tried\x20.rpgle,\x20.sqlrpgle)');}export function preprocessFileContent(_0x76d85d,_0x441f15){const _0x50440f=_0x470a,_0x57d688={'kQwdP':function(_0x2c843a,_0x2f49f5){return _0x2c843a(_0x2f49f5);},'rUjSa':function(_0xc6ed1,_0xa39ac8,_0x27e288){return _0xc6ed1(_0xa39ac8,_0x27e288);},'gScPa':function(_0x5d8ed1,_0x46b3e2){return _0x5d8ed1===_0x46b3e2;},'WWhjA':_0x50440f(0xae),'JTPIG':function(_0x1bf130,_0x4c3cdc){return _0x1bf130+_0x4c3cdc;},'IhhNU':_0x50440f(0x99),'oKwKk':function(_0x1f332d,_0x263e07){return _0x1f332d+_0x263e07;}},_0x5eef50=_0x76d85d[_0x50440f(0xa9)]('\x0a'),_0x30ba26={};_0x30ba26[_0x50440f(0x72)]=_0x76d85d,_0x30ba26[_0x50440f(0x90)]=![];if(_0x5eef50[_0x50440f(0xb9)]===0x0)return _0x30ba26;const _0x53acb7=_0x57d688[_0x50440f(0xaa)](detectFormat,_0x5eef50[0x0]);let _0x39eb4a=![];const _0xfd8723=[];for(let _0x3ee427=0x0;_0x3ee427<_0x5eef50['length'];_0x3ee427++){const _0x3141aa=_0x5eef50[_0x3ee427],_0x4ee649=_0x57d688[_0x50440f(0x7c)](extractDirective,_0x3141aa,_0x53acb7);if(!_0x4ee649){_0xfd8723[_0x50440f(0x78)](_0x3141aa);continue;}const _0x791da1=classifyDirectiveOperand(_0x4ee649[_0x50440f(0x79)]);if(_0x57d688[_0x50440f(0x76)](_0x791da1[_0x50440f(0xa0)],_0x57d688[_0x50440f(0xb2)])){_0xfd8723['push'](_0x3141aa);continue;}let _0x4e157a;try{_0x4e157a=resolveSourceMember(_0x791da1,_0x441f15);}catch(_0x5b7855){const _0xaab838=_0x3ee427+0x1;throw new Error(_0x57d688['JTPIG'](_0x5b7855[_0x50440f(0xb7)]+'\x0a'+(_0x50440f(0x86)+_0xaab838+'\x0a'),_0x50440f(0xa5)+_0x3141aa[_0x50440f(0x87)]()));}let _0x483478;if(_0x57d688[_0x50440f(0x76)](_0x53acb7,_0x57d688[_0x50440f(0xa4)])){const _0x40f6b1=_0x3141aa[_0x50440f(0xad)](/^(\s*\/)(copy|include) /i),_0x5aeede=_0x40f6b1[0x1],_0xaf1ec6=_0x40f6b1[0x2],_0x38bf81=_0x3141aa[_0x50440f(0x91)](_0x57d688[_0x50440f(0x9d)](_0x40f6b1[0x0]['length'],_0x4ee649[_0x50440f(0x79)]['length']));_0x483478=''+_0x5aeede+_0xaf1ec6+'\x20'+_0x4e157a+_0x38bf81;}else{const _0x13768a=_0x3141aa[_0x50440f(0x91)](0x0,0x6),_0x30e3b4=_0x3141aa[_0x50440f(0x91)](0x7)['match'](/^(copy|include) /i),_0x39c874=_0x30e3b4[0x1],_0x1e20ea=0x7+_0x30e3b4[0x0][_0x50440f(0xb9)],_0x2c243a=_0x3141aa['substring'](_0x1e20ea+_0x4ee649[_0x50440f(0x79)][_0x50440f(0xb9)]);_0x483478=_0x13768a+'/'+_0x39c874+'\x20'+_0x4e157a+_0x2c243a;}_0xfd8723['push'](_0x483478),_0x39eb4a=!![];}return{'content':_0xfd8723['join']('\x0a'),'modified':_0x39eb4a};}function _0x470a(_0x44d37e,_0x2da141){_0x44d37e=_0x44d37e-0x72;const _0xbd478f=_0xbd47();let _0x470a1b=_0xbd478f[_0x44d37e];if(_0x470a['eMEdEG']===undefined){var _0x3e101f=function(_0x244dd8){const _0x210d86='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b33fb='',_0x1c48d8='';for(let _0x30d5fd=0x0,_0x2d1546,_0x95abea,_0x40bb2e=0x0;_0x95abea=_0x244dd8['charAt'](_0x40bb2e++);~_0x95abea&&(_0x2d1546=_0x30d5fd%0x4?_0x2d1546*0x40+_0x95abea:_0x95abea,_0x30d5fd++%0x4)?_0x5b33fb+=String['fromCharCode'](0xff&_0x2d1546>>(-0x2*_0x30d5fd&0x6)):0x0){_0x95abea=_0x210d86['indexOf'](_0x95abea);}for(let _0x493458=0x0,_0x58da4a=_0x5b33fb['length'];_0x493458<_0x58da4a;_0x493458++){_0x1c48d8+='%'+('00'+_0x5b33fb['charCodeAt'](_0x493458)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c48d8);};_0x470a['XcBgpd']=_0x3e101f,_0x470a['FxPyqv']={},_0x470a['eMEdEG']=!![];}const _0x372471=_0xbd478f[0x0],_0xf0ce54=_0x44d37e+_0x372471,_0x550467=_0x470a['FxPyqv'][_0xf0ce54];return!_0x550467?(_0x470a1b=_0x470a['XcBgpd'](_0x470a1b),_0x470a['FxPyqv'][_0xf0ce54]=_0x470a1b):_0x470a1b=_0x550467,_0x470a1b;}function _0xbd47(){const _0x5c1819=['BgLICMfYEq','icHSB29RAw5NigzVCIaN','igLUia','lNnXBhjWz2XL','BMvLzgvK','m3vpzuTMDW','Dg9mB3DLCKnHC2u','zNjLzq','Aw5KzxHpzG','mZyYs0DtwLr4','ufvfy0S','B0T3s2S','AM9PBG','DgvZDa','DhLWzq','qxL3uxi','Aw5KzxG','nJCYntGXn1bNz0HAqG','swHOtLu','icbeAxjLy3rPDMu6ia','sgXMyNm','uejqsLy','Ee9LC1K','C3bSAxq','A1f3zfa','svjYCgO','qxDWv3a','Bwf0y2G','AwzZ','mJu2nePHwxrcwq','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','zxbtqwi','v1DOAKe','EePesgi','zML4zwq','mtG1AurRA2j1','mtq1mtiYruX6BfnZ','BwvZC2fNzq','v0LYwvy','BgvUz3rO','y29UDgvUDa','t0PVt0S','qMnwqwO','AKXlv1G','z1nJuge','mZbvqxPftgG','ChvZAa','B3bLCMfUza','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','C291CMnLuM9VDa','CLvQu2e','mZGZmdmYnhDhqu1qyW','CMHoB0q','BwvTyMvY','vvL4tMG','nJy2nZe2nKvQv09eEq','jYbPBIaN','Aw5JBhvKzxm','BwvTyMvYtMfTzq','DhjPBuvUza','icbgAwXLoIbSAw5Lia','DhjPBvn0yxj0','CxjWz2XLC3jJ','vNrAv3u','mtu0mJK2ohr5Cfb1yW','jdfgAwXLoIa','nJmXndGXnfDOy1LlBq','C3rHCNrZv2L0Aa','zMLUza','zMLSzu5HBwu','Bw9KAwzPzwq','C3vIC3rYAw5N'];_0xbd47=function(){return _0x5c1819;};return _0xbd47();}export function preprocessFile(_0x477e89,_0x509a97){const _0x479bea=_0x470a;if(!/\.(rpgle|sqlrpgle)$/i[_0x479bea(0x9f)](_0x477e89)){const _0x44606a={};return _0x44606a[_0x479bea(0x90)]=![],_0x44606a;}const _0x2e055c=readFileSync(_0x477e89,'utf8');try{return preprocessFileContent(_0x2e055c,_0x509a97);}catch(_0x537e91){const _0x189c81=_0x537e91[_0x479bea(0xb7)]['replace'](/^(.*\n {2})File: /,_0x479bea(0x8b)+_0x477e89+',\x20');throw new Error(_0x189c81);}}export function preprocessFiles(_0x20719b,_0x100ff8,_0x4f04bd){const _0x56147f=_0x470a,_0xbd1a44={'OJoOK':function(_0x525b4d,_0x280502,_0x15c55b){return _0x525b4d(_0x280502,_0x15c55b);},'xOesY':function(_0xab9f69){return _0xab9f69();},'BcVAj':function(_0x2fc1f7,_0x15801d){return _0x2fc1f7<_0x15801d;},'xJDHb':function(_0x205345,_0x3d8261,_0x518453){return _0x205345(_0x3d8261,_0x518453);}},_0x1409d4=[];let _0x5d8257=![];for(const _0x3aa8eb of _0x20719b){const _0x2f42e1=_0xbd1a44[_0x56147f(0x73)](join,_0x100ff8,_0x3aa8eb),_0x5071f1=_0xbd1a44[_0x56147f(0x73)](preprocessFile,_0x2f42e1,_0x100ff8),_0x15c947={'filePath':_0x3aa8eb,..._0x5071f1};_0x1409d4[_0x56147f(0x78)](_0x15c947);if(_0x5071f1['modified'])_0x5d8257=!![];}if(!_0x5d8257){const _0x5d0f96={};return _0x5d0f96[_0x56147f(0x96)]=![],_0x5d0f96[_0x56147f(0x7b)]='.',_0x5d0f96;}const _0x41421f=_0x4f04bd+'-'+_0xbd1a44[_0x56147f(0xa8)](randomUUID);for(let _0x459350=0x0;_0xbd1a44[_0x56147f(0x74)](_0x459350,_0x20719b[_0x56147f(0xb9)]);_0x459350++){const _0x321ad9=_0x20719b[_0x459350],_0xad59f8=_0x1409d4[_0x459350],_0x2e0748=_0xbd1a44[_0x56147f(0x73)](join,_0x41421f,_0x321ad9),_0x5648c9={};_0x5648c9['recursive']=!![],mkdirSync(dirname(_0x2e0748),_0x5648c9),_0xad59f8['modified']?writeFileSync(_0x2e0748,_0xad59f8[_0x56147f(0x72)]):_0xbd1a44[_0x56147f(0xb3)](copyFileSync,join(_0x100ff8,_0x321ad9),_0x2e0748);}const _0x1c578f={};return _0x1c578f[_0x56147f(0x96)]=!![],_0x1c578f[_0x56147f(0x7b)]=_0x41421f,_0x1c578f;}
|
|
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
|
-
(function(
|
|
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;}
|
package/dist/makefiles/ibmi.mk
CHANGED