core-3nweb-client-lib 0.43.17 → 0.43.18
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 +43 -4
- package/build/core-ipc/fs.d.ts +0 -9
- package/build/core-ipc/fs.js +69 -27
- package/build/lib-client/fs-utils/files.js +2 -1
- package/build/lib-client/xsp-fs/folder-node.d.ts +12 -0
- package/build/lib-client/xsp-fs/folder-node.js +143 -87
- package/build/lib-client/xsp-fs/fs.d.ts +2 -0
- package/build/lib-client/xsp-fs/fs.js +9 -9
- package/build/protos/asmail.proto.js +711 -0
- package/build/protos/fs.proto.js +711 -0
- package/package.json +1 -1
- package/protos/fs.proto +32 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
Copyright (C) 2015 - 2020, 2022, 2025 3NSoft Inc.
|
|
3
|
+
Copyright (C) 2015 - 2020, 2022, 2025 - 2026 3NSoft Inc.
|
|
4
4
|
|
|
5
5
|
This program is free software: you can redistribute it and/or modify it under
|
|
6
6
|
the terms of the GNU General Public License as published by the Free Software
|
|
@@ -754,14 +754,12 @@ class S {
|
|
|
754
754
|
}
|
|
755
755
|
async updateStatusInfo(path) {
|
|
756
756
|
const node = await this.n.get(path);
|
|
757
|
-
|
|
758
|
-
return status;
|
|
757
|
+
return await node.updateStatusInfo();
|
|
759
758
|
}
|
|
760
759
|
async isRemoteVersionOnDisk(path, version) {
|
|
761
760
|
const node = await this.n.get(path);
|
|
762
761
|
try {
|
|
763
|
-
|
|
764
|
-
return isOnDisk;
|
|
762
|
+
return await node.isSyncedVersionOnDisk(version);
|
|
765
763
|
}
|
|
766
764
|
catch (exc) {
|
|
767
765
|
throw (0, common_1.setPathInExc)(exc, path);
|
|
@@ -795,8 +793,7 @@ class S {
|
|
|
795
793
|
async diffCurrentAndRemoteFolderVersions(path, remoteVersion) {
|
|
796
794
|
const node = await this.getFolderNode(path);
|
|
797
795
|
try {
|
|
798
|
-
|
|
799
|
-
return diff;
|
|
796
|
+
return await node.diffCurrentAndRemote(remoteVersion);
|
|
800
797
|
}
|
|
801
798
|
catch (exc) {
|
|
802
799
|
throw (0, common_1.setPathInExc)(exc, path);
|
|
@@ -805,8 +802,7 @@ class S {
|
|
|
805
802
|
async adoptRemoteFolderItem(path, itemName, opts) {
|
|
806
803
|
const node = await this.getFolderNode(path);
|
|
807
804
|
try {
|
|
808
|
-
|
|
809
|
-
return newVersion;
|
|
805
|
+
return await node.adoptRemoteFolderItem(itemName, opts);
|
|
810
806
|
}
|
|
811
807
|
catch (exc) {
|
|
812
808
|
throw (0, common_1.setPathInExc)(exc, path);
|
|
@@ -847,6 +843,10 @@ class S {
|
|
|
847
843
|
throw (0, file_1.makeFileException)('notDirectory', `${path}/${remoteItemName}`);
|
|
848
844
|
}
|
|
849
845
|
}
|
|
846
|
+
async adoptAllRemoteItems(path, opts) {
|
|
847
|
+
const folderNode = await this.getFolderNode(path);
|
|
848
|
+
return await folderNode.adoptItemsFromRemoteVersion(opts);
|
|
849
|
+
}
|
|
850
850
|
}
|
|
851
851
|
Object.freeze(S.prototype);
|
|
852
852
|
Object.freeze(S);
|