MCPcopy
hub / github.com/Kong/insomnia / constructor

Method constructor

packages/insomnia/bin/yarn-standalone.js:6224–6237  ·  view source on GitHub ↗
(flags, config, reporter, lockfile)

Source from the content-addressed store, hash-verified

6222
6223class Install {
6224 constructor(flags, config, reporter, lockfile) {
6225 this.rootManifestRegistries = [];
6226 this.rootPatternsToOrigin = (0, (_map || _load_map()).default)();
6227 this.lockfile = lockfile;
6228 this.reporter = reporter;
6229 this.config = config;
6230 this.flags = normalizeFlags(config, flags);
6231 this.resolutions = (0, (_map || _load_map()).default)(); // Legacy resolutions field used for flat install mode
6232 this.resolutionMap = new (_resolutionMap || _load_resolutionMap()).default(config); // Selective resolutions for nested dependencies
6233 this.resolver = new (_packageResolver || _load_packageResolver()).default(config, lockfile, this.resolutionMap);
6234 this.integrityChecker = new (_integrityChecker || _load_integrityChecker()).default(config);
6235 this.linker = new (_packageLinker || _load_packageLinker()).default(config, this.resolver);
6236 this.scripts = new (_packageInstallScripts || _load_packageInstallScripts()).default(config, this.resolver, this.flags.force);
6237 }
6238
6239 /**
6240 * Create a list of dependency requests from the current directories manifests.

Callers

nothing calls this directly

Calls 7

_load_mapFunction · 0.85
normalizeFlagsFunction · 0.85
_load_resolutionMapFunction · 0.85
_load_packageResolverFunction · 0.85
_load_integrityCheckerFunction · 0.85
_load_packageLinkerFunction · 0.85

Tested by

no test coverage detected