VulnCheck.Types.Package (VulnCheck v1.0.1)

Copy Markdown View Source

A locked dependency of the scanned project.

scope separates the production runtime closure (:prod) from packages that are only present for development, testing or documentation (:non_prod) and packages only needed to build the production release (:build_only: declared with runtime: false, and their dependencies that no runtime dependency needs).

Summary

Types

dep_scope()

@type dep_scope() :: :prod | :build_only | :non_prod

source_kind()

@type source_kind() :: :hex | :git | :path | :stdlib

t()

@type t() :: %VulnCheck.Types.Package{
  checksum: String.t() | nil,
  deps: [String.t()],
  ebin_dir: String.t() | nil,
  git_ref: String.t() | nil,
  git_url: String.t() | nil,
  hex_name: String.t() | nil,
  inner_checksum: String.t() | nil,
  lock_level: non_neg_integer() | nil,
  lock_line: pos_integer() | nil,
  name: String.t(),
  optional_deps: [String.t()],
  otp_app: String.t() | nil,
  runtime: boolean(),
  scope: dep_scope(),
  source: source_kind(),
  version: String.t()
}