Skip to main content
Module

x/molt/mod.ts>DependencyUpdate

Update dependencies the Deno way
Latest
interface DependencyUpdate
import { type DependencyUpdate } from "https://deno.land/x/molt@0.17.2/mod.ts";

Representation of an update to a dependency.

Properties

from: T extends "lockfile" ? Dependency | undefined : Dependency

Properties of the dependency being updated. Undefined if the dependency is added.

code: { specifier: string; span: T extends "module" ? NonNullable<DependencyJson["code"]>["span"] : undefined; }

The code of the dependency. Note that type in the DependencyJSON is merged into code here for convenience.

map: T extends "import_map" ? { source: string; } & ImportMapResolveResult<true> : undefined

Information about the import map used to resolve the dependency.

referrer: string

The full path to the module that imports the dependency.