diff --git a/src/registry/domain/repository.ts b/src/registry/domain/repository.ts index 746daec61..0fcc71690 100644 --- a/src/registry/domain/repository.ts +++ b/src/registry/domain/repository.ts @@ -76,8 +76,7 @@ export default function repository(conf: Config) { return isValidComponent; }); - validComponents.push('oc-client'); - return validComponents; + return [...validComponents, 'oc-client']; }, getComponentVersions(componentName: string): Promise { if (componentName === 'oc-client') { @@ -356,9 +355,8 @@ export default function repository(conf: Config) { }; } - const componentVersions = await repository.getComponentVersions( - componentName - ); + const componentVersions = + await repository.getComponentVersions(componentName); if ( !versionHandler.validateNewVersion(componentVersion, componentVersions)