Skip to content

Commit 138baac

Browse files
authored
Merge pull request #2081 from sswguo/npm_listing
hide the package.json and the checksum files
2 parents 17b90bd + 8eabb5b commit 138baac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/content-browse/common/src/main/java/org/commonjava/indy/content/browse/ContentBrowseController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private ContentBrowseResult renderResult( final StoreKey key, final String reque
126126
//skip npm adduser path to avoid the sensitive info showing.
127127
//continue;
128128
}
129-
if ( p.endsWith( NPM_METADATA_NAME ) )
129+
if ( p.contains( NPM_METADATA_NAME ) )
130130
{
131131
//the package.json should not be visible for user
132132
continue;

0 commit comments

Comments
 (0)