UNPKG

1.74 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.RunInstallPleaseResolver = void 0;
4const MessageName_1 = require("./MessageName");
5const Report_1 = require("./Report");
6class RunInstallPleaseResolver {
7 constructor(resolver) {
8 this.resolver = resolver;
9 }
10 supportsDescriptor(descriptor, opts) {
11 return this.resolver.supportsDescriptor(descriptor, opts);
12 }
13 supportsLocator(locator, opts) {
14 return this.resolver.supportsLocator(locator, opts);
15 }
16 shouldPersistResolution(locator, opts) {
17 return this.resolver.shouldPersistResolution(locator, opts);
18 }
19 bindDescriptor(descriptor, fromLocator, opts) {
20 return this.resolver.bindDescriptor(descriptor, fromLocator, opts);
21 }
22 getResolutionDependencies(descriptor, opts) {
23 return this.resolver.getResolutionDependencies(descriptor, opts);
24 }
25 async getCandidates(descriptor, dependencies, opts) {
26 throw new Report_1.ReportError(MessageName_1.MessageName.MISSING_LOCKFILE_ENTRY, `This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions`);
27 }
28 async getSatisfying(descriptor, references, opts) {
29 throw new Report_1.ReportError(MessageName_1.MessageName.MISSING_LOCKFILE_ENTRY, `This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions`);
30 }
31 async resolve(locator, opts) {
32 throw new Report_1.ReportError(MessageName_1.MessageName.MISSING_LOCKFILE_ENTRY, `This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions`);
33 }
34}
35exports.RunInstallPleaseResolver = RunInstallPleaseResolver;