---
title: "@vltpkg/security-archive: update-expired — vlt docs"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/security-archive/update-expired"
image: "https://docs.vlt.io/og/client/api-reference/security-archive/update-expired"
lang: "en"
---

# update-expired

## Type Aliases

### ExpiredEntry

```ts
type ExpiredEntry = object;
```

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

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

#### Type declaration

| Name      | Type                                                                        |
| --------- | --------------------------------------------------------------------------- |
| `depID`   | [`DepID`](https://docs.vlt.io/client/api-reference/dep-id/browser.md#depid) |
| `name`    | `string`                                                                    |
| `version` | `string`                                                                    |

---

### UpdateExpiredPayload

```ts
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`](https://docs.vlt.io/client/api-reference/security-archive/update-expired.md#expiredentry)\[] | Expired entries to revalidate                |
| `retries` | `number`                                                                                                      | Number of retries for fetching remote data   |
| `timeout` | `number`                                                                                                      | Max ms for the remote request, incl. retries |
| `ttl`     | `number`                                                                                                      | TTL in ms to use for new entries             |

## Variables

### \_\_CODE_SPLIT_SCRIPT_NAME

```ts
const __CODE_SPLIT_SCRIPT_NAME: string;
```

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

## Functions

### main()

```ts
function main(input): Promise<boolean>
```

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

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`>
