Skip to content

@vltpkg/security-archive/update-expired

Type Aliases

ExpiredEntry

type ExpiredEntry = object

Defined in: src/security-archive/src/update-expired.ts:45

Minimal serialized information for each expired entry. Only carries what’s needed for the API call + DB write.

Type declaration

depID
depID: DepID
name
name: string
version
version: string

UpdateExpiredPayload

type UpdateExpiredPayload = object

Defined in: src/security-archive/src/update-expired.ts:30

Serialized payload sent to the detached process via stdin.

Type declaration

dbPath
dbPath: string

Path to the sqlite database

expired
expired: ExpiredEntry[];

Expired entries to revalidate

retries
retries: number

Number of retries for fetching remote data

ttl
ttl: number

TTL in ms to use for new entries

Variables

__CODE_SPLIT_SCRIPT_NAME

const __CODE_SPLIT_SCRIPT_NAME: string

Defined in: src/security-archive/src/update-expired.ts:14


version

version: string

Defined in: src/security-archive/src/update-expired.ts:20

Functions

main()

function main(input): Promise<boolean>

Defined in: src/security-archive/src/update-expired.ts:96

Main entrypoint for the detached process. Reads a JSON payload from stdin, fetches updated security data, and writes it back to the SQLite database.

Parameters

input

EventEmitter = process.stdin

Returns

Promise<boolean>