Skip to content

Commit

Permalink
Allow entries to be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Oct 11, 2024
1 parent 5f100c4 commit 3a2058c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion registry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getManifestData(eco, regPkgName) {
if (eco) {
const entries = registryManifest[eco]
return regPkgName
? entries.find(
? entries?.find(
({ 0: purlStr }) => PackageURL.fromString(purlStr).name === regPkgName
)?.[1]
: entries
Expand Down
2 changes: 1 addition & 1 deletion registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socketsecurity/registry",
"version": "1.0.3",
"version": "1.0.4",
"license": "MIT",
"description": "Socket.dev registry helpers methods and metadata",
"keywords": [
Expand Down

0 comments on commit 3a2058c

Please sign in to comment.