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.
- package/build/core/storage/synced/obj-files.js +1 -1
- package/build/core/storage/synced/obj-status.d.ts +1 -0
- package/build/core/storage/synced/obj-status.js +5 -1
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/xsp-fs/exceptions.js +2 -0
- package/package.json +1 -1
|
@@ -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);
|