@spirobel/monero-wallet-api 0.3.15 → 0.3.16

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.
@@ -5,6 +5,11 @@ export async function atomicWrite(targetPath, data) {
5
5
  const { rename } = await import("node:fs/promises");
6
6
  const tempPath = targetPath + ".tmp";
7
7
  const bytesWritten = await Bun.write(tempPath, data);
8
- await rename(tempPath, targetPath);
8
+ try {
9
+ await rename(tempPath, targetPath);
10
+ }
11
+ catch (e) {
12
+ //eat rename failed
13
+ }
9
14
  return bytesWritten;
10
15
  }