register static method

void register(
  1. NpmDependency dep
)

Registers a single dep.

If a dependency with the same NpmDependency.specifier already exists in the registry, the previous registration is replaced.

Implementation

static void register(NpmDependency dep) {
  _deps[dep.specifier] = dep;
}