ghcr-manager-visualizer 1.0.0 → 1.0.2
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.
|
@@ -247,6 +247,7 @@ export class GraphRepository {
|
|
|
247
247
|
return this.#database.prepare(sql).all(...scanIds, ...digests, ...digests);
|
|
248
248
|
}
|
|
249
249
|
#readManifestMap(scanIds, digests, includePayload, newerScanId, olderScanId) {
|
|
250
|
+
const preferredManifestScanId = olderScanId ?? newerScanId;
|
|
250
251
|
const scanInClause = placeholders(scanIds.length);
|
|
251
252
|
const inClause = placeholders(digests.length);
|
|
252
253
|
const payloadColumn = includePayload ? "payload.raw_json" : "NULL";
|
|
@@ -307,7 +308,7 @@ export class GraphRepository {
|
|
|
307
308
|
`;
|
|
308
309
|
const rows = this.#database
|
|
309
310
|
.prepare(sql)
|
|
310
|
-
.all(...scanIds, ...digests, ...scanIds, ...digests,
|
|
311
|
+
.all(...scanIds, ...digests, ...scanIds, ...digests, preferredManifestScanId);
|
|
311
312
|
const manifests = new Map();
|
|
312
313
|
const scanMemberships = new Map();
|
|
313
314
|
const tagsByDigest = new Map();
|
|
@@ -319,7 +320,7 @@ export class GraphRepository {
|
|
|
319
320
|
}
|
|
320
321
|
scanMembership.add(row.scan_id);
|
|
321
322
|
let manifest = manifests.get(row.digest);
|
|
322
|
-
if (!manifest || row.scan_id ===
|
|
323
|
+
if (!manifest || row.scan_id === preferredManifestScanId) {
|
|
323
324
|
manifest = {
|
|
324
325
|
id: row.digest,
|
|
325
326
|
digest: row.digest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghcr-manager-visualizer",
|
|
3
|
-
"version": "v1.0.
|
|
3
|
+
"version": "v1.0.2",
|
|
4
4
|
"description": "Inspect ghcr-manager SQLite scan databases in a local browser graph visualizer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/ghcr-manager/ghcr-manager#readme",
|