@absolutejs/voice 0.0.22-beta.425 → 0.0.22-beta.426
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/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28796,10 +28796,13 @@ var writeRecentJsonFileIndex = async (directory, files) => {
|
|
|
28796
28796
|
await mkdir3(directory, {
|
|
28797
28797
|
recursive: true
|
|
28798
28798
|
});
|
|
28799
|
-
|
|
28799
|
+
const path = recentJsonFileIndexPath(directory);
|
|
28800
|
+
const tempPath = `${path}.${crypto.randomUUID()}.tmp`;
|
|
28801
|
+
await writeFile(tempPath, JSON.stringify({
|
|
28800
28802
|
files: sortRecentJsonFileIndexEntries(files).slice(0, 5000),
|
|
28801
28803
|
version: 1
|
|
28802
28804
|
}));
|
|
28805
|
+
await rename(tempPath, path);
|
|
28803
28806
|
};
|
|
28804
28807
|
var rebuildRecentJsonFileIndex = async (directory) => {
|
|
28805
28808
|
const files = await listJsonFiles(directory);
|