MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / getOldLog

Function getOldLog

scripts/pre-release.mjs:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 return logs.map(v => v.trim()).join('\n');
69 };
70 const getOldLog = async () => {
71 const log = await readFile(FILES.chlog, enc);
72 const idx = log.indexOf('#');
73 return [
74 log.slice(0, idx),
75 log.slice(idx),
76 ];
77 };
78 const [newLog, [logHead, oldLog]] = await Promise.all([ getNewLog(), getOldLog() ]);
79 return `${logHead}# ${newver}\n${newLog}\n\n${oldLog}`;
80

Callers 1

readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected