core-3nweb-client-lib 0.44.4 → 0.44.5
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/build/api-defs/files.d.ts +14 -0
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/fs-utils/files.js +1 -2
- package/build/lib-client/xsp-fs/file.d.ts +1 -0
- package/build/lib-client/xsp-fs/file.js +18 -0
- package/build/lib-client/xsp-fs/folder-node.js +1 -1
- package/build/lib-client/xsp-fs/fs.js +1 -1
- package/package.json +1 -1
|
@@ -675,6 +675,7 @@ declare namespace web3n.files {
|
|
|
675
675
|
|
|
676
676
|
interface OptionsToDiffFileVersions {
|
|
677
677
|
remoteVersion?: number;
|
|
678
|
+
// XXX implicit assumption that mtime changes only when file content changes
|
|
678
679
|
compareContentIfSameMTime?: boolean;
|
|
679
680
|
}
|
|
680
681
|
|
|
@@ -1493,6 +1494,12 @@ declare namespace web3n.files {
|
|
|
1493
1494
|
*/
|
|
1494
1495
|
getRemoteFolderItem(path: string, remoteItemName: string, remoteVersion?: number): Promise<ReadonlyFS>;
|
|
1495
1496
|
|
|
1497
|
+
// compareLocalAndRemoteFileItems(path: string, itemName: string, remoteVersion?: number): Promise<FileDiff>;
|
|
1498
|
+
|
|
1499
|
+
// compareLocalAndRemoteFolderItems(
|
|
1500
|
+
// path: string, itemName: string, remoteVersion?: number
|
|
1501
|
+
// ): Promise<FolderContentDiff>;
|
|
1502
|
+
|
|
1496
1503
|
// XXX method to work around damaged files
|
|
1497
1504
|
// reloadFromServer(path: string): Promise<SyncStatus>;
|
|
1498
1505
|
|
|
@@ -1631,6 +1638,13 @@ declare namespace web3n.files {
|
|
|
1631
1638
|
};
|
|
1632
1639
|
}
|
|
1633
1640
|
|
|
1641
|
+
// interface FolderContentDiff extends CommonDiff {
|
|
1642
|
+
// local: ({
|
|
1643
|
+
|
|
1644
|
+
// } & ListingEntry)[];
|
|
1645
|
+
// remote: ({} & ListingEntry)[];
|
|
1646
|
+
// }
|
|
1647
|
+
|
|
1634
1648
|
interface WritableFSSyncAPI extends ReadonlyFSSyncAPI {
|
|
1635
1649
|
|
|
1636
1650
|
/**
|