@vltpkg/security-archive/update-expired
Type Aliases
ExpiredEntry
type ExpiredEntry = objectDefined 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: DepIDname
name: stringversion
version: stringUpdateExpiredPayload
type UpdateExpiredPayload = objectDefined in: src/security-archive/src/update-expired.ts:30
Serialized payload sent to the detached process via stdin.
Type declaration
dbPath
dbPath: stringPath to the sqlite database
expired
expired: ExpiredEntry[];Expired entries to revalidate
retries
retries: numberNumber of retries for fetching remote data
ttl
ttl: numberTTL in ms to use for new entries
Variables
__CODE_SPLIT_SCRIPT_NAME
const __CODE_SPLIT_SCRIPT_NAME: stringDefined in: src/security-archive/src/update-expired.ts:14
version
version: stringDefined 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>