update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	 * Resolve the node module with the specified `packageName` that satisfies
	 * the specified minimum version.
	 * @param packageName name of package to be resolved
	 * @param minVersionStr minimum version
	 * @param probeLocations locations to initiate node module resolution
	 * @param rootPackage location of package.json, if different from `packageName`
	 */
Resolve the node module with the specified `packageName` that satisfies
the specified minimum version.
@param packageName name of package to be resolved
@param minVersionStr minimum version
@param probeLocations locations to initiate node module resolution
@param rootPackage location of package.json, if different from `packageName`
Resolve the node module with the specified ` packageName ` that satisfies the specified minimum version . @param packageName name of package to be resolved @param minVersionStr minimum version @param probeLocations locations to initiate node module resolution @param rootPackage location of package . json if different from ` packageName `
function resolveWithMinVersion(packageName, minVersionStr, probeLocations, rootPackage) {
	    if (rootPackage && !packageName.startsWith(rootPackage)) {
	        throw new Error(`${packageName} must be in the root package`);
	    }
	    const minVersion = new Version(minVersionStr);
	    for (const location of probeLocations) {
	        const nodeModule = resolve(packageName, location, rootPackage);
	        if (nodeModule && nodeModule.version.greaterThanOrEqual(minVersion)) {
	            return nodeModule;
	        }
	    }
	    throw new Error(`Failed to resolve '${packageName}' with minimum version '${minVersion}' from ` +
	        JSON.stringify(probeLocations, null, 2));
	}
function resolveWithMinVersion ( packageName , minVersionStr , probeLocations , rootPackage ) { if ( rootPackage && ! packageName . startsWith ( rootPackage ) ) { throw new Error ( ` ${ packageName } ` ) ; } const minVersion = new Version ( minVersionStr ) ; for ( const location of probeLocations ) { const nodeModule = resolve ( packageName , location , rootPackage ) ; if ( nodeModule && nodeModule . version . greaterThanOrEqual ( minVersion ) ) { return nodeModule ; } } throw new Error ( ` ${ packageName } ${ minVersion } ` + JSON . stringify ( probeLocations , null , 2 ) ) ; }
Resolve the node module with the specified `packageName` that satisfies
 the specified minimum version.
Resolve the node module with the specified ` packageName ` that satisfies the specified minimum version .