appback-remoteagent 0.13.6 → 0.13.7
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/store/file-store.js +1 -1
- package/package.json +1 -1
package/dist/store/file-store.js
CHANGED
|
@@ -404,7 +404,7 @@ export class FileStore {
|
|
|
404
404
|
}
|
|
405
405
|
async writeJsonFileAtomic(filePath, value) {
|
|
406
406
|
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
407
|
-
const temporaryPath = `${filePath}.${process.pid}.${Date.now()}.tmp`;
|
|
407
|
+
const temporaryPath = `${filePath}.${process.pid}.${Date.now()}.${randomUUID()}.tmp`;
|
|
408
408
|
await fs.writeFile(temporaryPath, `${JSON.stringify(value, null, 2)}\n`, "utf8");
|
|
409
409
|
await fs.rename(temporaryPath, filePath);
|
|
410
410
|
}
|