Class: Dependabot::NpmAndYarn::MetadataFinder
- Inherits:
-
MetadataFinders::Base
- Object
- MetadataFinders::Base
- Dependabot::NpmAndYarn::MetadataFinder
- Defined in:
- lib/dependabot/npm_and_yarn/metadata_finder.rb
Instance Method Summary collapse
Instance Method Details
#homepage_url ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/dependabot/npm_and_yarn/metadata_finder.rb', line 16 def homepage_url # Attempt to use version_listing first, as fetching the entire listing # array can be slow (if it's large) return latest_version_listing["homepage"] if latest_version_listing["homepage"] listing = all_version_listings.find { |_, l| l["homepage"] } listing&.last&.fetch("homepage", nil) || super end |
#maintainer_changes ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/dependabot/npm_and_yarn/metadata_finder.rb', line 25 def maintainer_changes return unless npm_releaser return unless npm_listing.dig("time", dependency.version) return if previous_releasers.include?(npm_releaser) "This version was pushed to npm by " \ "[#{npm_releaser}](https://www.npmjs.com/~#{npm_releaser}), a new " \ "releaser for #{dependency.name} since your current version." end |