class NpmMetadataUtils {

  @Nonnull
  public static NestedAttributesMap shrink(final NestedAttributesMap packageRoot) {
    final NestedAttributesMap versions = packageRoot.child(VERSIONS);
    for (Entry<String, Object> version : versions) {
      version.setValue(resolveVersionToTag(packageRoot, version.getKey()));
    }
    return packageRoot;
  }

  private  NpmMetadataUtils();

}