Skip to content

@vltpkg/security-archive/browser

Classes

SecurityArchive

Defined in: src/security-archive/src/browser.ts:36

A database of security information for given packages in a graph.

Extends

Implements

Constructors

new SecurityArchive()
new SecurityArchive(entries?): SecurityArchive

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.collection.d.ts:50

Parameters
entries?

null | readonly readonly [DepID, PackageReportData][]

Returns

SecurityArchive

Inherited from
Map<DepID, PackageReportData>.constructor
new SecurityArchive()
new SecurityArchive(iterable?): SecurityArchive

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.collection.d.ts:49

Parameters
iterable?

null | Iterable<readonly [DepID, PackageReportData]>

Returns

SecurityArchive

Inherited from
Map<DepID, PackageReportData>.constructor

Methods

load()
static load(dump): undefined | SecurityArchive

Defined in: src/security-archive/src/browser.ts:43

Loads a security archive from a valid JSON dump.

Parameters
dump

unknown

Returns

undefined | SecurityArchive

References

asPackageReportData

Re-exports asPackageReportData

isPackageReportData

Re-exports isPackageReportData

PackageAlert

Re-exports PackageAlert

PackageAlertProps

Re-exports PackageAlertProps

PackageReportData

Re-exports PackageReportData

SecurityArchiveLike

Re-exports SecurityArchiveLike

SecurityArchiveRefreshOptions

Re-exports SecurityArchiveRefreshOptions