wiki-graph-sdk 0.9.2 → 0.9.4

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 CHANGED
@@ -46,6 +46,7 @@ import {
46
46
  WikiGraph as WikiGraph2,
47
47
  WikiGraphArchiveFile as WikiGraphArchiveFile2,
48
48
  WikiGraphDirectoryFile as WikiGraphDirectoryFile2,
49
+ WikgCoordinator,
49
50
  TOC_FILE_VERSION,
50
51
  writeWikgArchive,
51
52
  ObjectMetadataKind
@@ -2628,7 +2629,10 @@ var WikiGraphArchiveManager = class {
2628
2629
  });
2629
2630
  }
2630
2631
  if (options.replace === true) {
2631
- await rename2(outputPath, path);
2632
+ await new WikgCoordinator().withExclusiveArchiveReplacement(
2633
+ new NodeFile(path),
2634
+ async () => await rename2(outputPath, path)
2635
+ );
2632
2636
  } else {
2633
2637
  try {
2634
2638
  await link(outputPath, path);