@vltpkg/security-archive 1.0.0-rc.23 → 1.0.0-rc.24

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.
@@ -0,0 +1,16 @@
1
+ import type { PackageReportData, SecurityArchiveLike } from './types.ts';
2
+ import type { DepID } from '@vltpkg/dep-id';
3
+ export * from './types.ts';
4
+ /**
5
+ * A database of security information for given packages in a graph.
6
+ */
7
+ export declare class SecurityArchive extends Map<DepID, PackageReportData> implements SecurityArchiveLike {
8
+ /**
9
+ * Whether the security archive is valid.
10
+ */
11
+ ok: boolean;
12
+ /**
13
+ * Loads a security archive from a valid JSON dump.
14
+ */
15
+ static load(dump: unknown): SecurityArchive | undefined;
16
+ }
@@ -0,0 +1,35 @@
1
+ import { asDepID } from '@vltpkg/dep-id/browser';
2
+ import { error } from '@vltpkg/error-cause';
3
+ import { asPackageReportData } from "./types.js";
4
+ export * from "./types.js";
5
+ const isObj = (o) => !!o && typeof o === 'object';
6
+ const isSecurityArchiveJSON = (json) => isObj(json) &&
7
+ Object.entries(json).every(([key, value]) => typeof key === 'string' && isObj(value));
8
+ const asSecurityArchiveJSON = (json) => {
9
+ if (!isSecurityArchiveJSON(json)) {
10
+ throw error('Invalid security archive JSON', { found: json });
11
+ }
12
+ return json;
13
+ };
14
+ /**
15
+ * A database of security information for given packages in a graph.
16
+ */
17
+ export class SecurityArchive extends Map {
18
+ /**
19
+ * Whether the security archive is valid.
20
+ */
21
+ ok = false;
22
+ /**
23
+ * Loads a security archive from a valid JSON dump.
24
+ */
25
+ static load(dump) {
26
+ if (dump === undefined)
27
+ return undefined;
28
+ const archive = new SecurityArchive();
29
+ const json = asSecurityArchiveJSON(dump);
30
+ for (const [key, value] of Object.entries(json)) {
31
+ archive.set(asDepID(key), asPackageReportData(value));
32
+ }
33
+ return archive;
34
+ }
35
+ }
@@ -0,0 +1,82 @@
1
+ import { LRUCache } from 'lru-cache';
2
+ import type { DepID } from '@vltpkg/dep-id';
3
+ import type { PackageReportData, SecurityArchiveLike, SecurityArchiveRefreshOptions } from './types.ts';
4
+ export * from './types.ts';
5
+ export declare const targetSecurityRegisty = "https://registry.npmjs.org/";
6
+ export type JSONItemResponse = {
7
+ namespace?: `@{string}`;
8
+ name: string;
9
+ version: string;
10
+ score: {
11
+ overall: number;
12
+ license: number;
13
+ maintenance: number;
14
+ quality: number;
15
+ supplyChain: number;
16
+ vulnerability: number;
17
+ };
18
+ };
19
+ export type DBReadEntry = {
20
+ depID: string;
21
+ now: number;
22
+ report: string;
23
+ start: number;
24
+ ttl: number;
25
+ };
26
+ export type DBWriteEntry = [string, string, number, number];
27
+ export type SecurityArchiveOptions = LRUCache.OptionsBase<DepID, PackageReportData, unknown> & {
28
+ /**
29
+ * Security archive does not supports a fetch-on-demand model.
30
+ */
31
+ fetchMethod?: undefined;
32
+ /**
33
+ * An optional value for the path in which to store the sqlite db.
34
+ */
35
+ path?: string;
36
+ /**
37
+ * Number of retries attempts to reach the remote security API.
38
+ */
39
+ retries?: number;
40
+ };
41
+ export declare const version: string;
42
+ /**
43
+ * A database of security information for given packages from a list of nodes.
44
+ *
45
+ * Using the SecurityArchive.refresh() method will update the local cache
46
+ * with information from the socket.dev APIs or load from the local storage
47
+ * if available. Information about package security is then available
48
+ * using the SecurityArchive.get() method.
49
+ */
50
+ export declare class SecurityArchive extends LRUCache<DepID, PackageReportData> implements SecurityArchiveLike {
51
+ #private;
52
+ /**
53
+ * True if the refresh process was successful and report data is available
54
+ * for all public registry packages from the initial list of nodes.
55
+ */
56
+ ok: boolean;
57
+ /**
58
+ * Creates a new security archive instance and starts the refresh process.
59
+ */
60
+ static start(options: SecurityArchiveOptions & SecurityArchiveRefreshOptions): Promise<SecurityArchive>;
61
+ /**
62
+ * By default, limits to 100K entries in the in-memory archive.
63
+ */
64
+ static get defaultMax(): number;
65
+ /**
66
+ * By default, entries are cached for 3 hours.
67
+ */
68
+ static get defaultTtl(): number;
69
+ constructor(options?: SecurityArchiveOptions);
70
+ /**
71
+ * Starts the security archive by providing an array of {@link NodeLike} instances,
72
+ * its registry-based nodes are going to be used as valid potential entries.
73
+ *
74
+ * Any entry that is missing from the persisted cached values are going
75
+ * to be requested in a batch-request to the remote socket.dev API.
76
+ */
77
+ refresh({ nodes }: SecurityArchiveRefreshOptions): Promise<void>;
78
+ /**
79
+ * Outputs the current in-memory cache as a JSON object.
80
+ */
81
+ toJSON(): Record<DepID, PackageReportData>;
82
+ }
package/dist/index.js ADDED
@@ -0,0 +1,369 @@
1
+ import { DatabaseSync } from 'node:sqlite';
2
+ import { mkdirSync } from 'node:fs';
3
+ import { dirname } from 'node:path';
4
+ import { LRUCache } from 'lru-cache';
5
+ import pRetry, { AbortError } from 'p-retry';
6
+ import { loadPackageJson } from 'package-json-from-dist';
7
+ import { asDepID, splitDepID, baseDepID } from '@vltpkg/dep-id';
8
+ import { error } from '@vltpkg/error-cause';
9
+ import { XDG } from '@vltpkg/xdg';
10
+ import { asPackageReportData } from "./types.js";
11
+ export * from "./types.js";
12
+ const SOCKET_API_V0_URL = 'https://api.socket.dev/v0/purl?alerts=true';
13
+ const SOCKET_PUBLIC_API_TOKEN = 'sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api';
14
+ export const targetSecurityRegisty = 'https://registry.npmjs.org/';
15
+ /**
16
+ * Only the public npm registry has information available in the
17
+ * socket.dev API. This function checks if a given depID is pointing
18
+ * to the public npm registry and returns `true` if it does.
19
+ */
20
+ const usesTargetRegistry = (node) => {
21
+ const depID = node.id;
22
+ const specOptions = node.options;
23
+ const [nodeType, nodeRegistry] = splitDepID(depID);
24
+ if (nodeType !== 'registry') {
25
+ return false;
26
+ }
27
+ const reg = specOptions.registries?.[nodeRegistry];
28
+ return reg === targetSecurityRegisty;
29
+ };
30
+ // Loads the version number to be used in the User-Agent header
31
+ export const { version } = loadPackageJson(import.meta.filename, process.env.__VLT_INTERNAL_CLI_PACKAGE_JSON);
32
+ /**
33
+ * A database of security information for given packages from a list of nodes.
34
+ *
35
+ * Using the SecurityArchive.refresh() method will update the local cache
36
+ * with information from the socket.dev APIs or load from the local storage
37
+ * if available. Information about package security is then available
38
+ * using the SecurityArchive.get() method.
39
+ */
40
+ export class SecurityArchive extends LRUCache {
41
+ #expired = new Set();
42
+ #pUpdateExpired;
43
+ #path;
44
+ #retries;
45
+ #nodesByName = new Map();
46
+ #nodesByID = new Map();
47
+ /**
48
+ * True if the refresh process was successful and report data is available
49
+ * for all public registry packages from the initial list of nodes.
50
+ */
51
+ ok = false;
52
+ /**
53
+ * Creates a new security archive instance and starts the refresh process.
54
+ */
55
+ static async start(options) {
56
+ const archive = new SecurityArchive(options);
57
+ await archive.refresh(options);
58
+ return archive;
59
+ }
60
+ /**
61
+ * By default, limits to 100K entries in the in-memory archive.
62
+ */
63
+ static get defaultMax() {
64
+ return 100_000;
65
+ }
66
+ /**
67
+ * By default, entries are cached for 3 hours.
68
+ */
69
+ static get defaultTtl() {
70
+ return 1000 * 60 * 60 * 3;
71
+ }
72
+ constructor(options = {}) {
73
+ super({
74
+ max: SecurityArchive.defaultMax,
75
+ ttl: SecurityArchive.defaultTtl,
76
+ ...options,
77
+ allowStale: true,
78
+ });
79
+ this.#path =
80
+ options.path ?? new XDG('vlt').cache('security-archive.db');
81
+ this.#retries = options.retries ?? 3;
82
+ }
83
+ /**
84
+ * Retrieves a node using its name and version.
85
+ */
86
+ #retrieveNodeByNameVersion(name, version) {
87
+ for (const node of this.#nodesByName.get(name) ?? []) {
88
+ if (node.version === version) {
89
+ return node;
90
+ }
91
+ }
92
+ }
93
+ /**
94
+ * Opens a connection to the database at the given path.
95
+ */
96
+ #openDatabase() {
97
+ mkdirSync(dirname(this.#path), { recursive: true });
98
+ const db = new DatabaseSync(this.#path);
99
+ db.exec('CREATE TABLE IF NOT EXISTS cache ' +
100
+ '(depID TEXT PRIMARY KEY, report TEXT, ttl INTEGER, start INTEGER) ' +
101
+ // WITHOUT ROWID models a key=value storage,
102
+ // enforcing depID must be unique and not null
103
+ // while using less space and more efficient lookups
104
+ // https://www.sqlite.org/withoutrowid.html
105
+ 'WITHOUT ROWID');
106
+ db.exec('PRAGMA journal_mode = WAL');
107
+ db.exec('PRAGMA synchronous = NORMAL');
108
+ return db;
109
+ }
110
+ /**
111
+ * Loads all valid items found in the database into the in-memory cache.
112
+ */
113
+ #loadItemsFromDatabase(db, nodes) {
114
+ const depIDs = [];
115
+ for (const node of nodes) {
116
+ depIDs.push(`'${baseDepID(node.id)}'`);
117
+ }
118
+ // retrieves from the db packages using their dep-id reference
119
+ // and only include entries that have a valid TTL value
120
+ const dbRead = db.prepare('SELECT depID, report, start, ttl, ' +
121
+ `(SELECT UNIXEPOCH('subsecond') * 1000) as now ` +
122
+ 'FROM cache ' +
123
+ `WHERE depID IN (${depIDs.join(',')})`);
124
+ // reset the list of expired entries
125
+ this.#expired.clear();
126
+ for (const entry of dbRead.all()) {
127
+ const { depID, now, report, start, ttl } = entry;
128
+ const id = baseDepID(asDepID(depID));
129
+ try {
130
+ this.set(id, asPackageReportData(JSON.parse(report)), {
131
+ ttl,
132
+ start,
133
+ });
134
+ // stale values are queued up as expired for revalidation
135
+ if (start + ttl < now) {
136
+ this.#expired.add(id);
137
+ }
138
+ }
139
+ catch {
140
+ // prune any invalid entries from the database
141
+ db.prepare('DELETE FROM cache WHERE depID = ?').run(depID);
142
+ }
143
+ }
144
+ // TODO: we need to move this to a detached process in order for the
145
+ // cli commands that make usage of the security-archive, e.g: vlt ls,
146
+ // vlt query to not hang while waiting for stale-while-revalidate
147
+ // request to finish and close the db connection
148
+ this.#pUpdateExpired = this.#updateExpired(db);
149
+ }
150
+ /**
151
+ * Updates the database with renewed entries for expired packages.
152
+ */
153
+ async #updateExpired(db) {
154
+ const expiredQueue = new Set();
155
+ for (const depID of this.#expired) {
156
+ const node = this.#nodesByID.get(baseDepID(depID));
157
+ /* c8 ignore start */
158
+ if (!node?.version) {
159
+ // skip any missing node or nodes without a version, this
160
+ // should not happen, but some optional dependencies might
161
+ // end up in this state when reading from the lockfile
162
+ continue;
163
+ }
164
+ /* c8 ignore stop */
165
+ const purl = `pkg:npm/${node.name}@${node.version}`;
166
+ expiredQueue.add({ purl });
167
+ }
168
+ if (expiredQueue.size > 0) {
169
+ const res = await pRetry(() => this.#retrieveRemoteData(expiredQueue), { retries: this.#retries });
170
+ const ids = this.#loadFromNDJSON(res);
171
+ this.#storeNewItemsToDatabase(db, ids);
172
+ }
173
+ }
174
+ /**
175
+ * Queues up all required packages that are missing from the archive.
176
+ */
177
+ #queueUpRequiredPackages() {
178
+ const queue = new Set();
179
+ for (const node of this.#nodesByID.values()) {
180
+ const normalizedId = baseDepID(node.id);
181
+ // only queue up valid public registry
182
+ // references that are missing from the archive
183
+ // also skips any pkg marked as expired
184
+ if (usesTargetRegistry(node) &&
185
+ !this.has(normalizedId) &&
186
+ !this.#expired.has(normalizedId)) {
187
+ const purl = `pkg:npm/${node.name}@${node.version}`;
188
+ queue.add({ purl });
189
+ }
190
+ }
191
+ return queue;
192
+ }
193
+ /**
194
+ * Fetches security information from the socket.dev API.
195
+ * Returns a string of NDJSON data.
196
+ */
197
+ async #retrieveRemoteData(queue) {
198
+ // fetch information from the socket.dev API
199
+ const req = await fetch(SOCKET_API_V0_URL, {
200
+ method: 'POST',
201
+ headers: {
202
+ Authorization: `Basic ${Buffer.from(`${SOCKET_PUBLIC_API_TOKEN}:`).toString('base64url')}`,
203
+ 'User-Agent': `@vltpkg/security-archive/${version}`,
204
+ },
205
+ body: JSON.stringify({
206
+ components: Array.from(queue),
207
+ }),
208
+ });
209
+ // on missing valid auth or API, it should abort the retry logic
210
+ if (req.status === 404) {
211
+ throw new AbortError('Missing API');
212
+ }
213
+ // on any other error throws an error that will trigger retry
214
+ if (!req.ok || !(req.status >= 200 && req.status <= 299)) {
215
+ throw error('Failed to fetch security data', { response: req });
216
+ }
217
+ const str = await req.text();
218
+ return str.trim() + '\n';
219
+ }
220
+ /**
221
+ * Parses and load NDJSON data into the in-memory cache.
222
+ * Returns a set of dep ids that were successfully loaded.
223
+ */
224
+ #loadFromNDJSON(str) {
225
+ // builds a set of dep ids that were successfully fetched and loaded
226
+ const fetchedDepIDs = new Set();
227
+ const json = str.split('}\n');
228
+ for (const line of json) {
229
+ if (!line.trim())
230
+ continue;
231
+ const data = JSON.parse(line + '}');
232
+ const scope = data.namespace ? `${data.namespace}/` : '';
233
+ const name = `${scope}${data.name}`;
234
+ const node = this.#retrieveNodeByNameVersion(name, data.version);
235
+ if (node) {
236
+ const normalizedId = baseDepID(node.id);
237
+ fetchedDepIDs.add(baseDepID(node.id));
238
+ // Calculate average score from all score components
239
+ const scoreComponents = [
240
+ data.score.license,
241
+ data.score.maintenance,
242
+ data.score.quality,
243
+ data.score.supplyChain,
244
+ data.score.vulnerability,
245
+ ];
246
+ const newAverageScore = Number((scoreComponents.reduce((sum, score) => sum + score, 0) /
247
+ scoreComponents.length).toFixed(2));
248
+ // Add average score to the score object
249
+ const scoreWithNewAverage = {
250
+ ...data.score,
251
+ overall: newAverageScore,
252
+ };
253
+ this.set(normalizedId, asPackageReportData({
254
+ ...data,
255
+ score: scoreWithNewAverage,
256
+ }));
257
+ }
258
+ else {
259
+ // eslint-disable-next-line no-console
260
+ console.warn(`security-archive: failed to find node for ${scope}${data.name}@${data.version} found in the response.`);
261
+ }
262
+ }
263
+ return fetchedDepIDs;
264
+ }
265
+ /**
266
+ * Store new in-memory items to the database.
267
+ */
268
+ #storeNewItemsToDatabase(db, depIDs) {
269
+ const insertData = [];
270
+ for (const depID of depIDs) {
271
+ const entry = this.info(depID);
272
+ if (entry?.start && entry.ttl) {
273
+ insertData.push([
274
+ depID,
275
+ JSON.stringify(entry.value),
276
+ entry.start,
277
+ entry.ttl,
278
+ ]);
279
+ }
280
+ }
281
+ const dbWrite = db.prepare('INSERT OR REPLACE INTO cache (depID, report, start, ttl) ' +
282
+ 'VALUES (?, ?, ?, ?)');
283
+ for (const data of insertData) {
284
+ dbWrite.run(...data);
285
+ }
286
+ }
287
+ /**
288
+ * Validates that all public-registry packages in the nodes
289
+ * have a valid report data in the current in-memory cache.
290
+ */
291
+ #validateReportData() {
292
+ for (const node of this.#nodesByID.values()) {
293
+ if (usesTargetRegistry(node)) {
294
+ if (!this.has(baseDepID(node.id))) {
295
+ this.ok = false;
296
+ return;
297
+ }
298
+ }
299
+ }
300
+ this.ok = true;
301
+ }
302
+ /**
303
+ * Starts the security archive by providing an array of {@link NodeLike} instances,
304
+ * its registry-based nodes are going to be used as valid potential entries.
305
+ *
306
+ * Any entry that is missing from the persisted cached values are going
307
+ * to be requested in a batch-request to the remote socket.dev API.
308
+ */
309
+ async refresh({ nodes }) {
310
+ // should start by clearing the current in-memory cache
311
+ this.clear();
312
+ const db = this.#openDatabase();
313
+ // indexes nodes by name and id for quick lookup
314
+ this.#nodesByName.clear();
315
+ this.#nodesByID.clear();
316
+ for (const node of nodes) {
317
+ /* c8 ignore start */
318
+ const setByName = this.#nodesByName.get(node.name ?? '') ?? new Set();
319
+ setByName.add(node);
320
+ this.#nodesByName.set(node.name ?? '', setByName);
321
+ /* c8 ignore stop */
322
+ this.#nodesByID.set(baseDepID(node.id), node);
323
+ }
324
+ try {
325
+ this.#loadItemsFromDatabase(db, nodes);
326
+ const queue = this.#queueUpRequiredPackages();
327
+ // only reach for the remote API if there are packages queued up
328
+ if (queue.size > 0) {
329
+ // Parse the response data
330
+ const res = await pRetry(() => this.#retrieveRemoteData(queue), { retries: this.#retries });
331
+ const ids = this.#loadFromNDJSON(res);
332
+ this.#storeNewItemsToDatabase(db, ids);
333
+ }
334
+ // validates the refresh process was successful
335
+ this.#validateReportData();
336
+ }
337
+ finally {
338
+ // TODO: once we move the stale-while-revalidate to a detached process
339
+ // the this.#close method no longer needs to be async
340
+ void this.#close(db);
341
+ }
342
+ }
343
+ /**
344
+ * Closes the database connection and cleans up the internal state.
345
+ */
346
+ async #close(db) {
347
+ // the revalidation of stale entries might not yet be completed
348
+ // so in case we have a pending promise for that, we need to wait
349
+ await this.#pUpdateExpired;
350
+ // close db connection
351
+ db.exec('PRAGMA optimize');
352
+ db.close();
353
+ // clean up internal state
354
+ this.#expired.clear();
355
+ this.#pUpdateExpired = undefined;
356
+ // TODO: at this point we could spawn a deref process to
357
+ // remove entries with expired ttl values and vaccum the db
358
+ }
359
+ /**
360
+ * Outputs the current in-memory cache as a JSON object.
361
+ */
362
+ toJSON() {
363
+ const obj = {};
364
+ for (const [key, value] of this.dump()) {
365
+ obj[key] = value.value;
366
+ }
367
+ return obj;
368
+ }
369
+ }
@@ -0,0 +1,91 @@
1
+ import type { DepID } from '@vltpkg/dep-id';
2
+ import type { NodeLike } from '@vltpkg/types';
3
+ /**
4
+ * Parameter options for initializing a security archive.
5
+ */
6
+ export type SecurityArchiveRefreshOptions = {
7
+ /**
8
+ * A @link{GraphLike} instance to find what packages the
9
+ * security archive should have.
10
+ */
11
+ nodes: NodeLike[];
12
+ };
13
+ /**
14
+ * An interface for interacting with a security archive.
15
+ */
16
+ export interface SecurityArchiveLike {
17
+ get: (depId: DepID) => PackageReportData | undefined;
18
+ set: (depId: DepID, data: PackageReportData) => void;
19
+ delete: (depId: DepID) => void;
20
+ has: (depId: DepID) => boolean;
21
+ clear: () => void;
22
+ ok?: boolean;
23
+ }
24
+ export declare const isSecurityArchiveLike: (o: unknown) => o is SecurityArchiveLike;
25
+ export declare const asSecurityArchiveLike: (o: unknown) => SecurityArchiveLike;
26
+ /**
27
+ * Package alert extra information.
28
+ */
29
+ export type PackageAlertProps = {
30
+ lastPublish: string;
31
+ cveId?: `CVE-${string}`;
32
+ cwes?: {
33
+ id: `CWE-${string}`;
34
+ }[];
35
+ };
36
+ /**
37
+ * A known alert for a given package.
38
+ */
39
+ export type PackageAlert = {
40
+ key: string;
41
+ type: string;
42
+ severity: 'low' | 'medium' | 'high' | 'critical';
43
+ category: string;
44
+ props?: PackageAlertProps;
45
+ };
46
+ /**
47
+ * The scores for a given package
48
+ */
49
+ export type PackageScore = {
50
+ /**
51
+ * The average of all score factors. (0-1)
52
+ */
53
+ overall: number;
54
+ /**
55
+ * Score factors relating to package licensing (0-1)
56
+ */
57
+ license: number;
58
+ /**
59
+ * Score factors relating to package maintenance (0-1)
60
+ */
61
+ maintenance: number;
62
+ /**
63
+ * Score factors relating to code quality (0-1)
64
+ */
65
+ quality: number;
66
+ /**
67
+ * Score factors relating to supply chain security (0-1)
68
+ */
69
+ supplyChain: number;
70
+ /**
71
+ * Score factors relating to package vulnerabilities (0-1)
72
+ */
73
+ vulnerability: number;
74
+ };
75
+ /**
76
+ * The report data for a given package.
77
+ */
78
+ export type PackageReportData = {
79
+ id: string;
80
+ author: string[];
81
+ size: number;
82
+ type: 'npm';
83
+ namespace?: `@${string}`;
84
+ name: string;
85
+ version: string;
86
+ license: string;
87
+ alerts: PackageAlert[];
88
+ score: PackageScore;
89
+ };
90
+ export declare const isPackageReportData: (o: unknown) => o is PackageReportData;
91
+ export declare const asPackageReportData: (o: unknown) => PackageReportData;
package/dist/types.js ADDED
@@ -0,0 +1,29 @@
1
+ import { error } from '@vltpkg/error-cause';
2
+ export const isSecurityArchiveLike = (o) => typeof o === 'object' &&
3
+ o != null &&
4
+ 'get' in o &&
5
+ 'set' in o &&
6
+ 'delete' in o &&
7
+ 'has' in o &&
8
+ 'clear' in o;
9
+ export const asSecurityArchiveLike = (o) => {
10
+ if (!isSecurityArchiveLike(o)) {
11
+ throw error('Invalid security archive like', { found: o });
12
+ }
13
+ return o;
14
+ };
15
+ export const isPackageReportData = (o) => typeof o === 'object' &&
16
+ o != null &&
17
+ 'id' in o &&
18
+ 'type' in o &&
19
+ 'name' in o &&
20
+ 'version' in o &&
21
+ 'alerts' in o &&
22
+ 'score' in o &&
23
+ o.type === 'npm';
24
+ export const asPackageReportData = (o) => {
25
+ if (!isPackageReportData(o)) {
26
+ throw error('Invalid package report data', { found: o });
27
+ }
28
+ return o;
29
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/security-archive",
3
3
  "description": "A database of security information of packages",
4
- "version": "1.0.0-rc.23",
4
+ "version": "1.0.0-rc.24",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -12,11 +12,11 @@
12
12
  "email": "support@vlt.sh"
13
13
  },
14
14
  "dependencies": {
15
- "@vltpkg/dep-id": "1.0.0-rc.23",
16
- "@vltpkg/error-cause": "1.0.0-rc.23",
17
- "@vltpkg/spec": "1.0.0-rc.23",
18
- "@vltpkg/types": "1.0.0-rc.23",
19
- "@vltpkg/xdg": "1.0.0-rc.23",
15
+ "@vltpkg/dep-id": "1.0.0-rc.24",
16
+ "@vltpkg/error-cause": "1.0.0-rc.24",
17
+ "@vltpkg/spec": "1.0.0-rc.24",
18
+ "@vltpkg/types": "1.0.0-rc.24",
19
+ "@vltpkg/xdg": "1.0.0-rc.24",
20
20
  "lru-cache": "^11.2.4",
21
21
  "p-retry": "^7.1.1",
22
22
  "package-json-from-dist": "^1.0.1"