Skip to content

Commit 44d67ed

Browse files
authored
fix microsoft#8188 - protect against missing field in npm feeds (microsoft#8478)
1 parent 2a99641 commit 44d67ed

File tree

1 file changed

+2
-2
lines changed
  • extensions/packageManager/src/node/feeds/npm

1 file changed

+2
-2
lines changed

extensions/packageManager/src/node/feeds/npm/npmFeed.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export class NpmFeed implements IFeed {
6464
return {
6565
name: i.package.name,
6666
version: i.package.version,
67-
authors: i.package?.author?.name,
67+
authors: i.package.author?.name,
6868
keywords: i.package.keywords,
69-
repository: i.package?.links.repository,
69+
repository: i.package.links?.repository,
7070
description: i.package.description,
7171
language: this.language,
7272
source: this.source,

0 commit comments

Comments
 (0)