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/archives.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
@@ -2391,7 +2392,10 @@ var WikiGraphArchiveManager = class {
2391
2392
  });
2392
2393
  }
2393
2394
  if (options.replace === true) {
2394
- await rename2(outputPath, path);
2395
+ await new WikgCoordinator().withExclusiveArchiveReplacement(
2396
+ new NodeFile(path),
2397
+ async () => await rename2(outputPath, path)
2398
+ );
2395
2399
  } else {
2396
2400
  try {
2397
2401
  await link(outputPath, path);