@wrongstack/tools 0.51.3 → 0.54.1

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/builtin.js CHANGED
@@ -3413,7 +3413,8 @@ var editTool = {
3413
3413
  const newFileLf = input.replace_all ? fileLf.split(oldLf).join(newLf) : fileLf.replace(oldLf, newLf);
3414
3414
  const newFile = toStyle(newFileLf, style);
3415
3415
  await atomicWrite(absPath, newFile, { mode: updated.mode & 511 });
3416
- ctx.recordRead(absPath, updated.mtimeMs);
3416
+ const written = await fs11.stat(absPath);
3417
+ ctx.recordRead(absPath, written.mtimeMs);
3417
3418
  ctx.session.recordFileChange({
3418
3419
  path: absPath,
3419
3420
  action: "modified",