core-3nweb-client-lib 0.43.14 → 0.43.15

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.
@@ -1307,10 +1307,6 @@ declare namespace web3n.files {
1307
1307
  */
1308
1308
  diffCurrentAndRemoteFolderVersions(path: string, remoteVersion?: number): Promise<FolderDiff|undefined>;
1309
1309
 
1310
-
1311
- // XXX (Christmas methods)
1312
- // add following methods to read remote item, facilitating decisions in conflict situations.
1313
-
1314
1310
  /**
1315
1311
  * Returns stats of a child from remote version of a folder.
1316
1312
  * @param path of folder
@@ -2001,7 +2001,7 @@ var vsStatRemoteItem;
2001
2001
  function wrapService(fn) {
2002
2002
  return buf => {
2003
2003
  const { path, remoteItemName, remoteVersion } = remoteChildReqType.unpack(buf);
2004
- const promise = fn(path, remoteItemName, (0, protobuf_msg_1.valOfOpt)(remoteVersion))
2004
+ const promise = fn(path, remoteItemName, (0, protobuf_msg_1.valOfOptInt)(remoteVersion))
2005
2005
  .then(file.packStats);
2006
2006
  return { promise };
2007
2007
  };
@@ -2023,7 +2023,7 @@ var vsListRemoteFolderItem;
2023
2023
  function wrapService(fn) {
2024
2024
  return buf => {
2025
2025
  const { path, remoteItemName, remoteVersion } = remoteChildReqType.unpack(buf);
2026
- const promise = fn(path, remoteItemName, (0, protobuf_msg_1.valOfOpt)(remoteVersion))
2026
+ const promise = fn(path, remoteItemName, (0, protobuf_msg_1.valOfOptInt)(remoteVersion))
2027
2027
  .then(listFolder.packFolderListing);
2028
2028
  return { promise };
2029
2029
  };
@@ -2045,7 +2045,7 @@ var vsGetRemoteFileItem;
2045
2045
  function wrapService(fn, expServices) {
2046
2046
  return buf => {
2047
2047
  const { path, remoteItemName, remoteVersion } = remoteChildReqType.unpack(buf);
2048
- const promise = fn(path, remoteItemName, (0, protobuf_msg_1.valOfOpt)(remoteVersion))
2048
+ const promise = fn(path, remoteItemName, (0, protobuf_msg_1.valOfOptInt)(remoteVersion))
2049
2049
  .then(file => {
2050
2050
  const fileMsg = (0, file_1.exposeFileService)(file, expServices);
2051
2051
  return file_1.fileMsgType.pack(fileMsg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.43.14",
3
+ "version": "0.43.15",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",