Skip to content

Commit

Permalink
fix(datasource/npm): expose default registry urls (#29717)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Ladzaretti committed Jun 17, 2024
1 parent 25ca442 commit d82ab67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/modules/datasource/npm/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as npmVersioning from '../../versioning/npm';
import { Datasource } from '../datasource';
import type { GetReleasesConfig, ReleaseResult } from '../types';
import { defaultRegistryUrls as npmDefaultRegistryUrl } from './common';
import { getDependency } from './get';

export { setNpmrc } from './npmrc';
Expand All @@ -14,6 +15,8 @@ export class NpmDatasource extends Datasource {

override readonly defaultVersioning = npmVersioning.id;

override readonly defaultRegistryUrls = npmDefaultRegistryUrl;

override readonly releaseTimestampSupport = true;
override readonly releaseTimestampNote =
'The release timestamp is determined from the `time` field in the results.';
Expand Down

0 comments on commit d82ab67

Please sign in to comment.