fix(core): update
This commit is contained in:
		@@ -92,7 +92,7 @@ export class NpmRegistry {
 | 
			
		||||
  }): Promise<plugins.smartfile.Smartfile[]> {
 | 
			
		||||
    const npmPackage = await this.getPackageInfo(packageNameArg);
 | 
			
		||||
    if (!optionsArg?.version && !optionsArg?.distTag) {
 | 
			
		||||
      const latestAvailable = npmPackage.allDistTags.find(packageArg => packageArg.name === 'latest');
 | 
			
		||||
      const latestAvailable = npmPackage.allDistTags.find(packageDistTagArg => packageDistTagArg.name === 'latest');
 | 
			
		||||
      if (!latestAvailable) {
 | 
			
		||||
        optionsArg = {
 | 
			
		||||
          version: npmPackage.getBestMatchingVersion('*')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user