dependabot-bun 0.362.0 → 0.363.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75d180b678ceb65ddd56fe7fcd6ab89a7030e3e1499101c8e7cfc2b8928eb1ad
4
- data.tar.gz: 0b38a073e2da7a34c1ec141bcba1fa24e99989f9c2a996abe4c9e61166e9c624
3
+ metadata.gz: 258a5d904892d113e930edf61c32eb0dc86f0dfc6927f8e1c9976bcd9bee6c0d
4
+ data.tar.gz: 3c138bd0bc4ca408f2183c8c1f4e54308cb59f1ebb76d10dec6f9dae4bb22624
5
5
  SHA512:
6
- metadata.gz: 40fbd7ae566f1fd3938a9602e0468a894a19422f2a41b07f917c1af7374871585c8da689e0ddf4c9470c75769b50cc083b988d33022f6d8b0f594a30676535b0
7
- data.tar.gz: 04d164686779098d9f043193ec876723019e18915f83035b1e2d4d4d953572a7791442a535b4db59e50d6bf8b3dc3dd9eff9aebd8084f82f405f658f85fcd585
6
+ metadata.gz: 46a33edb38611d3f1c31994da75d558d2aa803fdda542c7d3690a91555d979928cad02d8830748be7b25dd8b03ded81e17ae8645dfea81c97414ae6120e47cad
7
+ data.tar.gz: 68eab34cc0760b686d7ed6d30f30faef861ec3ae2dea78acce96e9360ec89d89c4a37e42f81eb6e26b4f06cab5b1d5f9b5ef3d434dc398e8568ec61fc4a66849
@@ -71,9 +71,9 @@ module Dependabot
71
71
  path_starts = FileFetcher::PATH_DEPENDENCY_STARTS
72
72
  parsed_yarn_lock.to_a
73
73
  .find do |n, _|
74
- next false unless n.split(/(?<=\w)\@/).first == dependency_name
74
+ next false unless n.split(/(?<=\w)\@/).first == dependency_name
75
75
 
76
- T.must(n.split(/(?<=\w)\@/).last).start_with?(*path_starts)
76
+ T.must(n.split(/(?<=\w)\@/).last).start_with?(*path_starts)
77
77
  end&.last
78
78
  end
79
79
 
@@ -82,7 +82,7 @@ module Dependabot
82
82
  path_starts = FileFetcher::NPM_PATH_DEPENDENCY_STARTS
83
83
  path_deps = parsed_package_lock.fetch("dependencies", []).to_a
84
84
  .select do |_, v|
85
- v.fetch("version", "").start_with?(*path_starts)
85
+ v.fetch("version", "").start_with?(*path_starts)
86
86
  end
87
87
  path_deps.find { |n, _| n == dependency_name }&.last
88
88
  end
@@ -131,10 +131,10 @@ module Dependabot
131
131
  path_from_base =
132
132
  parsed_yarn_lock.to_a
133
133
  .find do |n, _|
134
- next false unless n.split(/(?<=\w)\@/).first == name
134
+ next false unless n.split(/(?<=\w)\@/).first == name
135
135
 
136
- T.must(n.split(/(?<=\w)\@/).last)
137
- .start_with?(*FileFetcher::PATH_DEPENDENCY_STARTS)
136
+ T.must(n.split(/(?<=\w)\@/).last)
137
+ .start_with?(*FileFetcher::PATH_DEPENDENCY_STARTS)
138
138
  end&.first&.split(/(?<=\w)\@/)&.last
139
139
 
140
140
  next unless path_from_base
@@ -250,18 +250,19 @@ module Dependabot
250
250
 
251
251
  resolution_deps = resolution_objects.flat_map(&:to_a)
252
252
  .map do |path, value|
253
- # skip dependencies that contain invalid values such as inline comments, null, etc.
253
+ # skip dependencies that contain invalid values
254
+ # such as inline comments, null, etc.
254
255
 
255
- unless value.is_a?(String)
256
- Dependabot.logger.warn(
257
- "File fetcher: Skipping dependency \"#{path}\" " \
258
- "with value: \"#{value}\""
259
- )
256
+ unless value.is_a?(String)
257
+ Dependabot.logger.warn(
258
+ "File fetcher: Skipping dependency \"#{path}\" " \
259
+ "with value: \"#{value}\""
260
+ )
260
261
 
261
- next
262
- end
262
+ next
263
+ end
263
264
 
264
- convert_dependency_path_to_name(path, value)
265
+ convert_dependency_path_to_name(path, value)
265
266
  end
266
267
 
267
268
  path_starts = PATH_DEPENDENCY_STARTS
@@ -126,10 +126,10 @@ module Dependabot
126
126
  updated_requirement_pairs =
127
127
  dependency.requirements.zip(T.must(dependency.previous_requirements))
128
128
  .reject do |new_req, old_req|
129
- next true if new_req == old_req
130
- next false unless old_req&.fetch(:source).nil?
129
+ next true if new_req == old_req
130
+ next false unless old_req&.fetch(:source).nil?
131
131
 
132
- new_req[:requirement] == old_req&.fetch(:requirement)
132
+ new_req[:requirement] == old_req&.fetch(:requirement)
133
133
  end
134
134
 
135
135
  updated_requirement_pairs
@@ -237,7 +237,7 @@ module Dependabot
237
237
  def possible_previous_releases
238
238
  (package_details&.releases || [])
239
239
  .reject do |r|
240
- r.version.prerelease? && !related_to_current_pre?(T.unsafe(r.version))
240
+ r.version.prerelease? && !related_to_current_pre?(T.unsafe(r.version))
241
241
  end
242
242
  .sort_by(&:version).reverse
243
243
  end
@@ -229,7 +229,7 @@ module Dependabot
229
229
  .possible_previous_versions_with_details
230
230
  .map(&:first)
231
231
  reqs = dep.requirements.filter_map { |r| r[:requirement] }
232
- .map { |r| requirement_class.requirements_array(r) }
232
+ .map { |r| requirement_class.requirements_array(r) }
233
233
 
234
234
  # Pick the lowest version from the max possible version from all
235
235
  # requirements. This matches the logic when combining the same
@@ -720,12 +720,12 @@ module Dependabot
720
720
  return version_class.new(dep.version) if dep.version && version_class.correct?(dep.version)
721
721
 
722
722
  dep.requirements.filter_map { |r| r[:requirement] }
723
- .reject { |req_string| req_string.start_with?("<") }
724
- .select { |req_string| req_string.match?(version_regex) }
725
- .map { |req_string| req_string.match(version_regex) }
726
- .select { |version| version_class.correct?(version.to_s) }
727
- .map { |version| version_class.new(version.to_s) }
728
- .max
723
+ .reject { |req_string| req_string.start_with?("<") }
724
+ .select { |req_string| req_string.match?(version_regex) }
725
+ .map { |req_string| req_string.match(version_regex) }
726
+ .select { |version| version_class.correct?(version.to_s) }
727
+ .map { |version| version_class.new(version.to_s) }
728
+ .max
729
729
  end
730
730
 
731
731
  sig { returns(T.class_of(Dependabot::Version)) }
@@ -538,7 +538,7 @@ module Dependabot
538
538
  sources =
539
539
  updated_dependency
540
540
  .requirements.map { |r| r.fetch(:source) }
541
- .uniq.compact
541
+ .uniq.compact
542
542
  .sort_by do |source|
543
543
  Package::RegistryFinder.central_registry?(source[:url]) ? 1 : 0
544
544
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-bun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.362.0
4
+ version: 0.363.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.362.0
18
+ version: 0.363.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.362.0
25
+ version: 0.363.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: debug
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -85,14 +85,14 @@ dependencies:
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.3'
88
+ version: '2.0'
89
89
  type: :development
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.3'
95
+ version: '2.0'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: rspec-sorbet
98
98
  requirement: !ruby/object:Gem::Requirement
@@ -347,7 +347,7 @@ licenses:
347
347
  - MIT
348
348
  metadata:
349
349
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
350
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.362.0
350
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.363.0
351
351
  rdoc_options: []
352
352
  require_paths:
353
353
  - lib