@@ -570,7 +570,7 @@ export class DockerDatasource extends Datasource {
570
570
// OCI image lists are not required to specify a mediaType
571
571
if (
572
572
manifest . mediaType === MediaType . ociManifestIndexV1 ||
573
- ( ! manifest . mediaType && hasKey ( 'manifests' , manifest ) )
573
+ ( ! manifest . mediaType && 'manifests' in manifest )
574
574
) {
575
575
if ( manifest . manifests . length ) {
576
576
logger . trace (
@@ -594,7 +594,7 @@ export class DockerDatasource extends Datasource {
594
594
// OCI manifests are not required to specify a mediaType
595
595
if (
596
596
( manifest . mediaType === MediaType . ociManifestV1 ||
597
- ( ! manifest . mediaType && hasKey ( 'config' , manifest ) ) ) &&
597
+ ( ! manifest . mediaType && 'config' in manifest ) ) &&
598
598
is . string ( manifest . config ?. digest )
599
599
) {
600
600
return manifest . config ?. digest ;
@@ -1042,7 +1042,7 @@ export class DockerDatasource extends Datasource {
1042
1042
manifestList . schemaVersion === 2 &&
1043
1043
( manifestList . mediaType === MediaType . manifestListV2 ||
1044
1044
manifestList . mediaType === MediaType . ociManifestIndexV1 ||
1045
- ( ! manifestList . mediaType && hasKey ( 'manifests' , manifestList ) ) )
1045
+ ( ! manifestList . mediaType && 'manifests' in manifestList ) )
1046
1046
) {
1047
1047
for ( const manifest of manifestList . manifests ) {
1048
1048
if ( manifest . platform [ 'architecture' ] === architecture ) {
0 commit comments