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.
@@ -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
- const status = await node.updateStatusInfo();
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
- const isOnDisk = await node.isSyncedVersionOnDisk(version);
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
- const diff = await node.diffCurrentAndRemote(remoteVersion);
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
- const newVersion = await node.adoptRemoteFolderItem(itemName, opts);
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);