SHKeeper
This commit is contained in:
@@ -8,4 +8,4 @@ try{for(;;){const part=await reader.read();if(part.done)break;bytes+=part.value.
|
||||
finally{await reader.cancel();reader.releaseLock();}
|
||||
const joined=new Uint8Array(bytes);let offset=0;for(const chunk of chunks){joined.set(chunk,offset);offset+=chunk.length;}
|
||||
const report=checkOperations(JSON.parse(new TextDecoder('utf-8',{fatal:true}).decode(joined)));
|
||||
console.log(JSON.stringify(report,null,2));if(!report.healthy)process.exitCode=1;
|
||||
console.log(JSON.stringify(report,null,2));if(!report.healthy)process.exitCode=1;
|
||||
|
||||
Reference in New Issue
Block a user