fix(core): update

This commit is contained in:
2019-09-06 13:39:39 +02:00
parent ac53d801a6
commit f1d07f968d
4 changed files with 256 additions and 17 deletions

View File

@ -64,7 +64,7 @@ export class SmartUpdate {
)}...`
);
const npmRegistry = new plugins.smartnpm.NpmRegistry();
const npmPackage = (await npmRegistry.search({ name: npmnameArg, boostExact: true }))[0];
const npmPackage = npmRegistry.getPackageInfo(npmnameArg);
return npmPackage;
}