core-3nweb-client-lib 0.44.6 → 0.44.7

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.
@@ -409,7 +409,7 @@ class SyncedObj {
409
409
  }
410
410
  async getNumOfBytesNeedingDownload(version) {
411
411
  if (!this.status.isAmongRemote(version)) {
412
- if (this.localVers.has(version)) {
412
+ if (this.status.isLocalOnlyVersion(version)) {
413
413
  return 0;
414
414
  }
415
415
  else {
@@ -147,6 +147,7 @@ export declare class ObjStatus implements SyncedObjStatus, UploadStatusRecorder
147
147
  versionBeforeUnsyncedRemoval(): number | undefined;
148
148
  adoptRemoteVersion(version?: number): Promise<void>;
149
149
  isAmongRemote(version: number): boolean;
150
+ isLocalOnlyVersion(version: number): boolean;
150
151
  }
151
152
  export declare function readAndCheckStatus(objFolder: string, objId: ObjId): Promise<ObjStatusInfo>;
152
153
  export declare function countBytesIn(info: UploadInfo): number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- Copyright (C) 2016 - 2020, 2022, 2025 3NSoft Inc.
3
+ Copyright (C) 2016 - 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
@@ -567,6 +567,10 @@ class ObjStatus {
567
567
  }
568
568
  return false;
569
569
  }
570
+ isLocalOnlyVersion(version) {
571
+ var _a;
572
+ return (((_a = this.status.local) === null || _a === void 0 ? void 0 : _a.current) === version);
573
+ }
570
574
  }
571
575
  exports.ObjStatus = ObjStatus;
572
576
  Object.freeze(ObjStatus.prototype);