dependabot-npm_and_yarn 0.148.8 → 0.149.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/lib/yarn/peer-dependency-checker.js +1 -0
- data/helpers/lib/yarn/subdependency-updater.js +4 -2
- data/helpers/lib/yarn/updater.js +1 -0
- data/helpers/package-lock.json +2194 -5534
- data/helpers/package.json +1 -1
- data/lib/dependabot/npm_and_yarn/requirement.rb +2 -0
- data/lib/dependabot/npm_and_yarn/update_checker/latest_version_finder.rb +1 -1
- metadata +4 -4
data/helpers/package.json
CHANGED
@@ -8,6 +8,7 @@ module Dependabot
|
|
8
8
|
class Requirement < Gem::Requirement
|
9
9
|
AND_SEPARATOR = /(?<=[a-zA-Z0-9*])\s+(?:&+\s+)?(?!\s*[|-])/.freeze
|
10
10
|
OR_SEPARATOR = /(?<=[a-zA-Z0-9*])\s*\|+/.freeze
|
11
|
+
LATEST_REQUIREMENT = "latest"
|
11
12
|
|
12
13
|
# Override the version pattern to allow a 'v' prefix
|
13
14
|
quoted = OPS.keys.map { |k| Regexp.quote(k) }.join("|")
|
@@ -17,6 +18,7 @@ module Dependabot
|
|
17
18
|
PATTERN = /\A#{PATTERN_RAW}\z/.freeze
|
18
19
|
|
19
20
|
def self.parse(obj)
|
21
|
+
return ["=", nil] if obj.is_a?(String) && obj.strip == LATEST_REQUIREMENT
|
20
22
|
return ["=", NpmAndYarn::Version.new(obj.to_s)] if obj.is_a?(Gem::Version)
|
21
23
|
|
22
24
|
unless (matches = PATTERN.match(obj.to_s))
|
@@ -138,7 +138,7 @@ module Dependabot
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def filter_lower_versions(versions_array)
|
141
|
-
return versions_array unless dependency.version
|
141
|
+
return versions_array unless dependency.version && version_class.correct?(dependency.version)
|
142
142
|
|
143
143
|
versions_array.
|
144
144
|
select { |version, _| version > version_class.new(dependency.version) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-npm_and_yarn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.149.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.149.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.149.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|