vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
    • Overview
    • browser
    • index
    • Reference
    • update-expired
  • Type Aliases
  • ExpiredEntry
  • UpdateExpiredPayload
  • Variables
  • __CODE_SPLIT_SCRIPT_NAME
  • Functions
  • main()
  1. Client
  2. /
  3. API Reference
  4. /
  5. @vltpkg/security-archive
  6. /
  7. update-expired

update-expired

Type Aliases

ExpiredEntry

TypeScript
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

NameType
depIDDepID
namestring
versionstring

UpdateExpiredPayload

TypeScript
type UpdateExpiredPayload = object;

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

Serialized payload sent to the detached process via stdin.

Type declaration

NameTypeDescription
dbPathstringPath to the sqlite database
expiredExpiredEntry[]Expired entries to revalidate
retriesnumberNumber of retries for fetching remote data
ttlnumberTTL in ms to use for new entries

Variables

__CODE_SPLIT_SCRIPT_NAME

TypeScript
const __CODE_SPLIT_SCRIPT_NAME: string;

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

Functions

main()

TypeScript
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

ParameterTypeDefault value
inputEventEmitterprocess.stdin

Returns

Promise<boolean>


PreviousReferenceNext@vltpkg/semver

On this page

  • Type Aliases
  • ExpiredEntry
  • UpdateExpiredPayload
  • Variables
  • __CODE_SPLIT_SCRIPT_NAME
  • Functions
  • main()

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now