diff --git a/lib/datasource/index.ts b/lib/datasource/index.ts index 6c8a21f99e86f61de1fe9b444adf190c13b0fcfe..7122b79fd49a7b008dfcfbd2c11ec1bd21639ba6 100644 --- a/lib/datasource/index.ts +++ b/lib/datasource/index.ts @@ -13,6 +13,7 @@ import { GetPkgReleasesConfig, } from './common'; import datasources from './api.generated'; +import { clone } from '../util/clone'; export * from './common'; @@ -86,10 +87,12 @@ export async function getPkgReleases( } let res: ReleaseResult; try { - res = await getRawReleases({ - ...config, - lookupName, - }); + res = clone( + await getRawReleases({ + ...config, + lookupName, + }) + ); } catch (e) /* istanbul ignore next */ { if (e instanceof DatasourceError) { e.datasource = config.datasource;