Skip to content

Commit e0ede06

Browse files
authored
fix(datasource/npm): catch invalid homepage (#42892)
In a similar fix to 06cf949, this fixes early versions of `https://registry.npmjs.org/fs-extra` returning an array value for `homepage`, resulting in no caching for these responses.
1 parent 300035a commit e0ede06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/modules/datasource/npm/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Distribution = z.object({
1818

1919
const Version = z.object({
2020
repository: Repository.optional(),
21-
homepage: z.string().optional(),
21+
homepage: z.string().optional().catch(undefined),
2222
deprecated: z.union([z.string(), z.boolean()]).optional(),
2323
gitHead: z.string().optional(),
2424
dependencies: z.record(z.string()).optional(),

0 commit comments

Comments
 (0)