lib/dependabot/composer/update_checker.rb in dependabot-composer-0.217.0 vs lib/dependabot/composer/update_checker.rb in dependabot-composer-0.218.0
- old
+ new
@@ -66,9 +66,13 @@
latest_resolvable_version: preferred_resolvable_version&.to_s,
update_strategy: requirements_update_strategy
).updated_requirements
end
+ def requirements_unlocked_or_can_be?
+ requirements_update_strategy != :lockfile_only
+ end
+
def requirements_update_strategy
# If passed in as an option (in the base class) honour that option
return @requirements_update_strategy.to_sym if @requirements_update_strategy
# Otherwise, widen ranges for libraries and bump versions for apps