sliftutils 1.7.66 → 1.7.67

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.
Files changed (66) hide show
  1. package/CLAUDE.md +1 -0
  2. package/dist/test.ts.cache +187 -36
  3. package/dist/treeSummary.ts.cache +359 -0
  4. package/index.d.ts +28 -16
  5. package/misc/dist/environment.ts.cache +2 -2
  6. package/misc/dist/getSecret.ts.cache +2 -2
  7. package/misc/dist/strings.ts.cache +2 -2
  8. package/misc/dist/zip.ts.cache +2 -2
  9. package/misc/https/dist/certs.ts.cache +2 -2
  10. package/misc/https/dist/persistentLocalStorage.ts.cache +2 -2
  11. package/package.json +1 -1
  12. package/render-utils/dist/observer.tsx.cache +2 -2
  13. package/storage/ArchivesDisk.d.ts +2 -2
  14. package/storage/ArchivesDisk.ts +3 -2
  15. package/storage/BulkDatabase2/dist/BulkDatabaseBase.ts.cache +2 -2
  16. package/storage/BulkDatabase2/dist/BulkDatabaseFormat.ts.cache +2 -2
  17. package/storage/BulkDatabase2/dist/BulkDatabaseMerge.ts.cache +2 -2
  18. package/storage/BulkDatabase2/dist/BulkDatabaseReader.ts.cache +2 -2
  19. package/storage/BulkDatabase2/dist/LoadedIndex.ts.cache +2 -2
  20. package/storage/BulkDatabase2/dist/WriteOverlay.ts.cache +2 -2
  21. package/storage/BulkDatabase2/dist/blockCache.ts.cache +2 -2
  22. package/storage/BulkDatabase2/dist/mergeLock.ts.cache +2 -2
  23. package/storage/BulkDatabase2/dist/mergeMarkers.ts.cache +2 -2
  24. package/storage/BulkDatabase2/dist/streamLog.ts.cache +2 -2
  25. package/storage/BulkDatabase2/dist/syncClient.ts.cache +2 -2
  26. package/storage/IArchives.d.ts +14 -2
  27. package/storage/IArchives.ts +15 -2
  28. package/storage/backblaze.d.ts +2 -2
  29. package/storage/backblaze.ts +5 -4
  30. package/storage/dist/ArchivesDisk.ts.cache +5 -3
  31. package/storage/dist/FileFolderAPI.tsx.cache +2 -2
  32. package/storage/dist/IArchives.ts.cache +2 -2
  33. package/storage/dist/IndexedDBFileFolderAPI.ts.cache +2 -2
  34. package/storage/dist/JSONStorage.ts.cache +2 -2
  35. package/storage/dist/PendingManager.tsx.cache +2 -2
  36. package/storage/dist/TransactionStorage.ts.cache +2 -2
  37. package/storage/dist/backblaze.ts.cache +6 -5
  38. package/storage/dist/fileSystemPointer.ts.cache +2 -2
  39. package/storage/dist/remoteFileStorage.ts.cache +2 -2
  40. package/storage/remoteStorage/ArchivesRemote.d.ts +2 -2
  41. package/storage/remoteStorage/ArchivesRemote.ts +3 -3
  42. package/storage/remoteStorage/ArchivesUrl.d.ts +2 -2
  43. package/storage/remoteStorage/ArchivesUrl.ts +8 -6
  44. package/storage/remoteStorage/blobStore.d.ts +3 -3
  45. package/storage/remoteStorage/blobStore.ts +9 -5
  46. package/storage/remoteStorage/createArchives.d.ts +2 -2
  47. package/storage/remoteStorage/createArchives.ts +3 -3
  48. package/storage/remoteStorage/dist/ArchivesRemote.ts.cache +4 -4
  49. package/storage/remoteStorage/dist/ArchivesUrl.ts.cache +11 -7
  50. package/storage/remoteStorage/dist/blobStore.ts.cache +11 -5
  51. package/storage/remoteStorage/dist/cliArgs.ts.cache +2 -2
  52. package/storage/remoteStorage/dist/createArchives.ts.cache +4 -4
  53. package/storage/remoteStorage/dist/deployTakeover.ts.cache +2 -2
  54. package/storage/remoteStorage/dist/intermediateSources.ts.cache +2 -2
  55. package/storage/remoteStorage/dist/remoteConfig.ts.cache +2 -2
  56. package/storage/remoteStorage/dist/sourceWrapper.ts.cache +2 -2
  57. package/storage/remoteStorage/dist/sourcesList.ts.cache +2 -2
  58. package/storage/remoteStorage/dist/storageClientController.ts.cache +2 -2
  59. package/storage/remoteStorage/dist/storageController.ts.cache +4 -4
  60. package/storage/remoteStorage/dist/storageServerState.ts.cache +4 -4
  61. package/storage/remoteStorage/storageController.d.ts +1 -1
  62. package/storage/remoteStorage/storageController.ts +2 -2
  63. package/storage/remoteStorage/storageServerState.ts +3 -3
  64. package/test-files-cache.json +1 -0
  65. package/test.ts +127 -10
  66. package/treeSummary.ts +331 -54
@@ -72,7 +72,7 @@ export declare const RemoteStorageController: import("socket-function/SocketFunc
72
72
  } | undefined>;
73
73
  set: (account: string, bucketName: string, path: string, data: Buffer, lastModified?: number, forceSetImmutable?: boolean, internal?: boolean) => Promise<void>;
74
74
  del: (account: string, bucketName: string, path: string) => Promise<void>;
75
- getInfo: (account: string, bucketName: string, path: string) => Promise<{
75
+ getInfo: (account: string, bucketName: string, path: string, includeTombstones?: boolean) => Promise<{
76
76
  writeTime: number;
77
77
  size: number;
78
78
  } | undefined>;
@@ -308,11 +308,11 @@ class RemoteStorageControllerBase {
308
308
  assertValidPath(path);
309
309
  await deleteBucketFile(account, bucketName, path);
310
310
  }
311
- async getInfo(account: string, bucketName: string, path: string): Promise<{ writeTime: number; size: number } | undefined> {
311
+ async getInfo(account: string, bucketName: string, path: string, includeTombstones?: boolean): Promise<{ writeTime: number; size: number } | undefined> {
312
312
  assertValidPath(path);
313
313
  let bucket = await getBucket(account, bucketName);
314
314
  if (!bucket) return undefined;
315
- return await bucket.store.getInfo(path);
315
+ return await bucket.store.getInfo(path, { includeTombstones });
316
316
  }
317
317
  async findInfo(account: string, bucketName: string, prefix: string, config?: { shallow?: boolean; type?: "files" | "folders" }): Promise<ArchiveFileInfo[]> {
318
318
  let bucket = await getBucket(account, bucketName);
@@ -10,7 +10,7 @@ import { ArchivesDisk } from "../ArchivesDisk";
10
10
  import { BlobStore, IBucketStore, DEFAULT_FAST_WRITE_DELAY, WINDOW_END_FLUSH_MARGIN } from "./blobStore";
11
11
  import {
12
12
  RemoteConfig, HostedConfig, BackblazeConfig, IArchives, ArchivesSource, ArchiveFileInfo, ArchivesConfig,
13
- ArchivesSyncStatus, ChangesAfterConfig, GetConfig, SetConfig,
13
+ ArchivesSyncStatus, ChangesAfterConfig, GetConfig, GetInfoConfig, SetConfig,
14
14
  STORAGE_WRONG_VALID_WINDOW, STORAGE_WRONG_ROUTE, FULL_ROUTE,
15
15
  } from "../IArchives";
16
16
  import { ROUTING_FILE, parseRoutingData, serializeRemoteConfig, parseHostedUrl, replaceHostedUrlPort, buildFileUrl, getConfigVersion, getRoute, routeContains, routeIntersection, normalizeSource } from "./remoteConfig";
@@ -1170,10 +1170,10 @@ class ArchivesLocalBucket implements IArchives {
1170
1170
  throw e;
1171
1171
  }
1172
1172
  }
1173
- public async getInfo(fileName: string): Promise<{ writeTime: number; size: number } | undefined> {
1173
+ public async getInfo(fileName: string, config?: GetInfoConfig): Promise<{ writeTime: number; size: number } | undefined> {
1174
1174
  let bucket = await this.getBucket();
1175
1175
  if (!bucket) return undefined;
1176
- return await bucket.store.getInfo(fileName);
1176
+ return await bucket.store.getInfo(fileName, config);
1177
1177
  }
1178
1178
  public async findInfo(prefix: string, config?: { shallow?: boolean; type: "files" | "folders" }): Promise<ArchiveFileInfo[]> {
1179
1179
  let bucket = await this.getBucket();