@northflank/cli
Version:
Provides a command-line interface to the Northflank platform.
1 lines • 3.86 kB
JavaScript
;const a12W=a12K;(function(Z,K){const y=a12K,O=Z();while(!![]){try{const g=parseInt(y(0xa5))/0x1+-parseInt(y(0x99))/0x2*(-parseInt(y(0x9e))/0x3)+parseInt(y(0x8c))/0x4*(parseInt(y(0x87))/0x5)+-parseInt(y(0x96))/0x6*(parseInt(y(0xa6))/0x7)+parseInt(y(0x9d))/0x8*(-parseInt(y(0x8d))/0x9)+parseInt(y(0x9c))/0xa+-parseInt(y(0xa0))/0xb*(parseInt(y(0xa1))/0xc);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a12Z,0x511ad));var __importDefault=this&&this[a12W(0x94)]||function(Z){const B=a12W;return Z&&Z[B(0x9b)]?Z:{'default':Z};};function a12K(Z,K){const O=a12Z();return a12K=function(g,N){g=g-0x84;let H=O[g];return H;},a12K(Z,K);}Object[a12W(0x8b)](exports,a12W(0x9b),{'value':!![]}),exports['formatLogLine']=exports[a12W(0x9a)]=void 0x0;const chalk_1=__importDefault(require(a12W(0x8f)));exports[a12W(0x9a)]=[{'color':a12W(0x95),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':a12W(0x95),'pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':a12W(0x95),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a12W(0x95),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a12W(0x9f),'pattern':new RegExp('s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a12W(0x90),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a12W(0x89),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a12W(0x98),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a12W(0xa3),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a12W(0x93),'pattern':/\b(information|info|debug)\b/i},{'color':a12W(0x97),'pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a12W(0x89),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(Z,K)=>{const V=a12W,O=chalk_1[V(0x85)][V(0x88)](Z['ts']['toISOString']()),g=chalk_1[V(0x85)][V(0x91)](Z[V(0xa4)]),N=exports['defaultLogSyntax'][V(0x86)]((o,s)=>{const M=V;return o[M(0x8a)](s[M(0x92)],R=>s[M(0x84)]?chalk_1[M(0x85)][s[M(0x84)]](R):chalk_1[M(0x85)][M(0x95)](R));},Z['log']),H=K?N[V(0x8a)](new RegExp(K,'g'),o=>chalk_1[V(0x85)][V(0x9f)](o)):N;console[V(0xa2)](O+'\x20'+g+V(0x8e)+H);};exports['formatLogLine']=formatLogLine;function a12Z(){const I=['9456yrNkZy','152487lZJEHS','\x20--\x20','chalk','green','cyan','pattern','gray','__importDefault','grey','6ruResk','yellow','greenBright','110pCSfqO','defaultLogSyntax','__esModule','3560690RPhNbw','168pbwHBV','26175OGWDkr','bold','209coMLTE','403428vMwTfs','log','red','containerId','264689XOyHaN','1445332XxEXYu','color','default','reduce','915UQlPtU','dim','blue','replace','defineProperty'];a12Z=function(){return I;};return a12Z();}