Skip to content

Commit

Permalink
refactor(node)!: Limit visibility of NpmDetection code to internal
Browse files Browse the repository at this point in the history
There is no need to expose this.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau authored and sschuberth committed Nov 7, 2024
1 parent 5f8ee66 commit 96ded74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/package-managers/node/src/main/kotlin/NpmDetection.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import org.ossreviewtoolkit.utils.common.collectMessages
/**
* A class to detect the package managers used for the give [definitionFiles].
*/
class NpmDetection(private val definitionFiles: Collection<File>) {
internal class NpmDetection(private val definitionFiles: Collection<File>) {
/**
* A map of project directories to the set of package managers that are most likely responsible for the project. If
* the set is empty, none of the package managers is responsible.
Expand Down Expand Up @@ -110,7 +110,7 @@ class NpmDetection(private val definitionFiles: Collection<File>) {
/**
* An enum of all supported Node package managers.
*/
enum class NodePackageManager(
internal enum class NodePackageManager(
val lockfileName: String,
val markerFileName: String? = null,
val workspaceFileName: String = NodePackageManager.DEFINITION_FILE
Expand Down

0 comments on commit 96ded74

Please sign in to comment.