core-3nweb-client-lib 0.44.8 → 0.44.9
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.
|
@@ -41,7 +41,6 @@ export declare function rmNonArchVersionsIn(versions: VersionsInfo, ver: number)
|
|
|
41
41
|
export declare function rmArchVersionFrom(versions: VersionsInfo, ver: number): boolean;
|
|
42
42
|
export declare function setCurrentVersionIn(versions: VersionsInfo, version: number, baseVer: number | undefined): void;
|
|
43
43
|
export declare function rmCurrentVersionIn(versions: VersionsInfo): number | undefined;
|
|
44
|
-
export declare function rmVersionIn(version: number, vers: VersionsInfo): void;
|
|
45
44
|
export declare function nonGarbageVersionsIn(versions: VersionsInfo): Set<number>;
|
|
46
45
|
export interface NonGarbageVersions {
|
|
47
46
|
gcMaxVer?: number;
|
|
@@ -23,7 +23,6 @@ exports.rmNonArchVersionsIn = rmNonArchVersionsIn;
|
|
|
23
23
|
exports.rmArchVersionFrom = rmArchVersionFrom;
|
|
24
24
|
exports.setCurrentVersionIn = setCurrentVersionIn;
|
|
25
25
|
exports.rmCurrentVersionIn = rmCurrentVersionIn;
|
|
26
|
-
exports.rmVersionIn = rmVersionIn;
|
|
27
26
|
exports.nonGarbageVersionsIn = nonGarbageVersionsIn;
|
|
28
27
|
exports.addWithBasesTo = addWithBasesTo;
|
|
29
28
|
exports.addArchived = addArchived;
|
|
@@ -131,15 +130,6 @@ function rmCurrentVersionIn(versions) {
|
|
|
131
130
|
}
|
|
132
131
|
return current;
|
|
133
132
|
}
|
|
134
|
-
function rmVersionIn(version, vers) {
|
|
135
|
-
if (vers.current === version) {
|
|
136
|
-
vers.current = undefined;
|
|
137
|
-
rmNonArchVersionsIn(vers, version);
|
|
138
|
-
}
|
|
139
|
-
if (isVersionIn(version, vers)) {
|
|
140
|
-
rmArchVersionFrom(vers, version);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
133
|
function nonGarbageVersionsIn(versions) {
|
|
144
134
|
const nonGarbage = new Set();
|
|
145
135
|
addWithBasesTo(nonGarbage, versions.current, versions);
|
|
@@ -474,15 +474,11 @@ class ObjStatus {
|
|
|
474
474
|
const local = this.status.local;
|
|
475
475
|
(0, assert_1.assert)(local.diffToBase[version] === localBase);
|
|
476
476
|
const lowerBase = local.diffToBase[localBase];
|
|
477
|
-
if (
|
|
478
|
-
|
|
479
|
-
local
|
|
477
|
+
if (lowerBase) {
|
|
478
|
+
// flip version's base to be new value before removing
|
|
479
|
+
(0, obj_info_file_1.addBaseToDiffLinkInVersInfo)(local, version, lowerBase);
|
|
480
480
|
}
|
|
481
|
-
|
|
482
|
-
delete local.diffToBase[version];
|
|
483
|
-
}
|
|
484
|
-
delete local.diffToBase[localBase];
|
|
485
|
-
delete local.baseToDiff[localBase];
|
|
481
|
+
(0, obj_info_file_1.rmNonArchVersionsIn)(local, localBase);
|
|
486
482
|
return this.triggerSaveProc();
|
|
487
483
|
}
|
|
488
484
|
latestSyncedVersion() {
|