@dxos/echo-pipeline 0.3.11-main.121f5a8 → 0.3.11-main.13264f1

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.
@@ -2991,7 +2991,7 @@ var AutomergeStorageAdapter = class extends StorageAdapter {
2991
2991
  async remove(key) {
2992
2992
  const filename = this._getFilename(key);
2993
2993
  const file = this._directory.getOrCreateFile(filename);
2994
- await file.truncate?.(0);
2994
+ await file.destroy();
2995
2995
  }
2996
2996
  async loadRange(keyPrefix) {
2997
2997
  const filename = this._getFilename(keyPrefix);
@@ -3010,8 +3010,8 @@ var AutomergeStorageAdapter = class extends StorageAdapter {
3010
3010
  const filename = this._getFilename(keyPrefix);
3011
3011
  const entries = await this._directory.list();
3012
3012
  await Promise.all(entries.filter((entry) => entry.startsWith(filename)).map(async (entry) => {
3013
- const file = this._directory.getOrCreateFile(filename);
3014
- await file.truncate?.(0);
3013
+ const file = this._directory.getOrCreateFile(entry);
3014
+ await file.destroy();
3015
3015
  }));
3016
3016
  }
3017
3017
  _getFilename(key) {
@@ -3049,4 +3049,4 @@ export {
3049
3049
  SpaceManager,
3050
3050
  AutomergeHost
3051
3051
  };
3052
- //# sourceMappingURL=chunk-RM4WCR2Z.mjs.map
3052
+ //# sourceMappingURL=chunk-MPBRK5OV.mjs.map