update-expired
Type Aliases
ExpiredEntry
type ExpiredEntry = object;Defined in: src/security-archive/src/update-expired.ts:38
Minimal serialized information for each expired entry. Only carries what's needed for the API call + DB write.
Type declaration
| Name | Type |
|---|---|
depID | DepID |
name | string |
version | string |
UpdateExpiredPayload
type UpdateExpiredPayload = object;Defined in: src/security-archive/src/update-expired.ts:23
Serialized payload sent to the detached process via stdin.
Type declaration
| Name | Type | Description |
|---|---|---|
dbPath | string | Path to the sqlite database |
expired | ExpiredEntry[] | Expired entries to revalidate |
retries | number | Number of retries for fetching remote data |
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
Functions
main()
function main(input): Promise<boolean>Defined in: src/security-archive/src/update-expired.ts:89
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
| Parameter | Type | Default value |
|---|---|---|
input | EventEmitter | process.stdin |
Returns
Promise<boolean>