@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
Map<DepID,PackageReportData>
Implements
Constructors
new SecurityArchive()
new SecurityArchive(entries?): SecurityArchiveDefined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.collection.d.ts:50
Parameters
entries?
null | readonly readonly
[DepID,
PackageReportData][]
Returns
Inherited from
Map<DepID, PackageReportData>.constructornew SecurityArchive()
new SecurityArchive(iterable?): SecurityArchiveDefined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.collection.d.ts:49
Parameters
iterable?
null | Iterable<readonly
[DepID,
PackageReportData],
any, any>
Returns
Inherited from
Map<DepID, PackageReportData>.constructorProperties
ok
ok: boolean = falseDefined in: src/security-archive/src/browser.ts:43
Whether the security archive is valid.
Implementation of
Methods
load()
static load(dump): undefined | SecurityArchiveDefined in: src/security-archive/src/browser.ts:48
Loads a security archive from a valid JSON dump.
Parameters
dump
unknown
Returns
undefined | SecurityArchive
References
asPackageReportData
Re-exports asPackageReportData
asSecurityArchiveLike
Re-exports asSecurityArchiveLike
isPackageReportData
Re-exports isPackageReportData
isSecurityArchiveLike
Re-exports isSecurityArchiveLike
PackageAlert
Re-exports PackageAlert
PackageAlertProps
Re-exports PackageAlertProps
PackageReportData
Re-exports PackageReportData
PackageScore
Re-exports PackageScore
SecurityArchiveLike
Re-exports SecurityArchiveLike
SecurityArchiveRefreshOptions
Re-exports SecurityArchiveRefreshOptions