Skip to content

Commit

Permalink
chore(datasource/hexpm-blob): default to semver
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor committed Jun 28, 2023
1 parent fda51fc commit 179b0da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/modules/datasource/hexpm-bob/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { logger } from '../../../logger';
import { ExternalHostError } from '../../../types/errors/external-host-error';
import { cache } from '../../../util/cache/package/decorator';
import { HttpError } from '../../../util/http';
import {id as semverId} from "../../versioning/semver";
import { Datasource } from '../datasource';
import type { GetReleasesConfig, ReleaseResult } from '../types';
import { datasource, defaultRegistryUrl } from './common';
Expand All @@ -21,6 +22,8 @@ export class HexpmBobDatasource extends Datasource {

override readonly caching = true;

override readonly defaultVersioning = semverId

@cache({
namespace: `datasource-${datasource}`,
key: ({ registryUrl, packageName }: GetReleasesConfig) =>
Expand Down

0 comments on commit 179b0da

Please sign in to comment.