dependabot-npm_and_yarn 0.119.5 → 0.120.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/package.json +2 -2
- data/helpers/yarn.lock +25 -20
- data/lib/dependabot/npm_and_yarn/metadata_finder.rb +2 -4
- data/lib/dependabot/npm_and_yarn/update_checker/latest_version_finder.rb +4 -8
- data/lib/dependabot/npm_and_yarn/update_checker/registry_finder.rb +3 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ccd4fc0cdef4d0b5753252a4e250f3e9803c716314bcc6d0c8edb60aa83346
|
4
|
+
data.tar.gz: 74d459e785fc21c5edf6466be90f8ec2c09e5b85e335278c6279181730e7f4e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66f7cd247dd9fc12e9c03a2a03a3d87f0a526bd8abb13b45c21264e442d2ceac8e407f39984fc168e59cb33cb5bb2eecbe5f6bf73efe60d1028e76f384892de2
|
7
|
+
data.tar.gz: 9a987feecc4a539902fd265daabbd92ea77344d298e8e19daa4f37dcf775457c6db76b6ef234184755ae554eb8564d0c38c92a2296010904f95d5cc1e7ac20e0
|
data/helpers/package.json
CHANGED
data/helpers/yarn.lock
CHANGED
@@ -2044,12 +2044,12 @@ eslint-plugin-prettier@^3.1.4:
|
|
2044
2044
|
dependencies:
|
2045
2045
|
prettier-linter-helpers "^1.0.0"
|
2046
2046
|
|
2047
|
-
eslint-scope@^5.1.
|
2048
|
-
version "5.1.
|
2049
|
-
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.
|
2050
|
-
integrity sha512-
|
2047
|
+
eslint-scope@^5.1.1:
|
2048
|
+
version "5.1.1"
|
2049
|
+
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
|
2050
|
+
integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
|
2051
2051
|
dependencies:
|
2052
|
-
esrecurse "^4.
|
2052
|
+
esrecurse "^4.3.0"
|
2053
2053
|
estraverse "^4.1.1"
|
2054
2054
|
|
2055
2055
|
eslint-utils@^2.1.0:
|
@@ -2064,10 +2064,10 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
|
|
2064
2064
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
|
2065
2065
|
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
|
2066
2066
|
|
2067
|
-
eslint@^7.
|
2068
|
-
version "7.
|
2069
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.
|
2070
|
-
integrity sha512
|
2067
|
+
eslint@^7.10.0:
|
2068
|
+
version "7.10.0"
|
2069
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.10.0.tgz#494edb3e4750fb791133ca379e786a8f648c72b9"
|
2070
|
+
integrity sha512-BDVffmqWl7JJXqCjAK6lWtcQThZB/aP1HXSH1JKwGwv0LQEdvpR7qzNrUT487RM39B5goWuboFad5ovMBmD8yA==
|
2071
2071
|
dependencies:
|
2072
2072
|
"@babel/code-frame" "^7.0.0"
|
2073
2073
|
"@eslint/eslintrc" "^0.1.3"
|
@@ -2077,7 +2077,7 @@ eslint@^7.8.1:
|
|
2077
2077
|
debug "^4.0.1"
|
2078
2078
|
doctrine "^3.0.0"
|
2079
2079
|
enquirer "^2.3.5"
|
2080
|
-
eslint-scope "^5.1.
|
2080
|
+
eslint-scope "^5.1.1"
|
2081
2081
|
eslint-utils "^2.1.0"
|
2082
2082
|
eslint-visitor-keys "^1.3.0"
|
2083
2083
|
espree "^7.3.0"
|
@@ -2128,14 +2128,14 @@ esquery@^1.2.0:
|
|
2128
2128
|
dependencies:
|
2129
2129
|
estraverse "^5.1.0"
|
2130
2130
|
|
2131
|
-
esrecurse@^4.
|
2132
|
-
version "4.
|
2133
|
-
resolved "https://registry.
|
2134
|
-
integrity sha512-
|
2131
|
+
esrecurse@^4.3.0:
|
2132
|
+
version "4.3.0"
|
2133
|
+
resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"
|
2134
|
+
integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==
|
2135
2135
|
dependencies:
|
2136
|
-
estraverse "^
|
2136
|
+
estraverse "^5.2.0"
|
2137
2137
|
|
2138
|
-
estraverse@^4.1.
|
2138
|
+
estraverse@^4.1.1, estraverse@^4.2.0:
|
2139
2139
|
version "4.3.0"
|
2140
2140
|
resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
|
2141
2141
|
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
|
@@ -2145,6 +2145,11 @@ estraverse@^5.1.0:
|
|
2145
2145
|
resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642"
|
2146
2146
|
integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw==
|
2147
2147
|
|
2148
|
+
estraverse@^5.2.0:
|
2149
|
+
version "5.2.0"
|
2150
|
+
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880"
|
2151
|
+
integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==
|
2152
|
+
|
2148
2153
|
esutils@^2.0.2:
|
2149
2154
|
version "2.0.3"
|
2150
2155
|
resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
|
@@ -5393,10 +5398,10 @@ prettier-linter-helpers@^1.0.0:
|
|
5393
5398
|
dependencies:
|
5394
5399
|
fast-diff "^1.1.2"
|
5395
5400
|
|
5396
|
-
prettier@^2.1.
|
5397
|
-
version "2.1.
|
5398
|
-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.
|
5399
|
-
integrity sha512-
|
5401
|
+
prettier@^2.1.2:
|
5402
|
+
version "2.1.2"
|
5403
|
+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
|
5404
|
+
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
|
5400
5405
|
|
5401
5406
|
pretty-format@^26.4.2:
|
5402
5407
|
version "26.4.2"
|
@@ -156,9 +156,8 @@ module Dependabot
|
|
156
156
|
|
157
157
|
response = Excon.get(
|
158
158
|
"#{dependency_url}/latest",
|
159
|
-
headers: registry_auth_headers,
|
160
159
|
idempotent: true,
|
161
|
-
**SharedHelpers.excon_defaults
|
160
|
+
**SharedHelpers.excon_defaults(headers: registry_auth_headers)
|
162
161
|
)
|
163
162
|
|
164
163
|
if response.status == 200
|
@@ -184,9 +183,8 @@ module Dependabot
|
|
184
183
|
|
185
184
|
response = Excon.get(
|
186
185
|
dependency_url,
|
187
|
-
headers: registry_auth_headers,
|
188
186
|
idempotent: true,
|
189
|
-
**SharedHelpers.excon_defaults
|
187
|
+
**SharedHelpers.excon_defaults(headers: registry_auth_headers)
|
190
188
|
)
|
191
189
|
|
192
190
|
return @npm_listing = {} if response.status >= 500
|
@@ -237,18 +237,16 @@ module Dependabot
|
|
237
237
|
begin
|
238
238
|
status = Excon.get(
|
239
239
|
dependency_url + "/#{version}",
|
240
|
-
headers: registry_auth_headers,
|
241
240
|
idempotent: true,
|
242
|
-
**SharedHelpers.excon_defaults
|
241
|
+
**SharedHelpers.excon_defaults(headers: registry_auth_headers)
|
243
242
|
).status
|
244
243
|
|
245
244
|
if status == 404 && dependency_registry != "registry.npmjs.org"
|
246
245
|
# Some registries don't handle escaped package names properly
|
247
246
|
status = Excon.get(
|
248
247
|
dependency_url.gsub("%2F", "/") + "/#{version}",
|
249
|
-
headers: registry_auth_headers,
|
250
248
|
idempotent: true,
|
251
|
-
**SharedHelpers.excon_defaults
|
249
|
+
**SharedHelpers.excon_defaults(headers: registry_auth_headers)
|
252
250
|
).status
|
253
251
|
end
|
254
252
|
|
@@ -271,9 +269,8 @@ module Dependabot
|
|
271
269
|
begin
|
272
270
|
Excon.get(
|
273
271
|
dependency_url + "/latest",
|
274
|
-
headers: registry_auth_headers,
|
275
272
|
idempotent: true,
|
276
|
-
**SharedHelpers.excon_defaults
|
273
|
+
**SharedHelpers.excon_defaults(headers: registry_auth_headers)
|
277
274
|
).status < 400
|
278
275
|
rescue Excon::Error::Timeout, Excon::Error::Socket
|
279
276
|
# Give the benefit of the doubt if the registry is playing up
|
@@ -307,9 +304,8 @@ module Dependabot
|
|
307
304
|
def fetch_npm_response
|
308
305
|
response = Excon.get(
|
309
306
|
dependency_url,
|
310
|
-
headers: registry_auth_headers,
|
311
307
|
idempotent: true,
|
312
|
-
**SharedHelpers.excon_defaults
|
308
|
+
**SharedHelpers.excon_defaults(headers: registry_auth_headers)
|
313
309
|
)
|
314
310
|
|
315
311
|
return response unless response.status == 500
|
@@ -45,9 +45,10 @@ module Dependabot
|
|
45
45
|
response = Excon.get(
|
46
46
|
"https://#{details['registry'].gsub(%r{/+$}, '')}/"\
|
47
47
|
"#{escaped_dependency_name}",
|
48
|
-
headers: auth_header_for(details["token"]),
|
49
48
|
idempotent: true,
|
50
|
-
**SharedHelpers.excon_defaults
|
49
|
+
**SharedHelpers.excon_defaults(
|
50
|
+
headers: auth_header_for(details["token"])
|
51
|
+
)
|
51
52
|
)
|
52
53
|
response.status < 400 && JSON.parse(response.body)
|
53
54
|
rescue Excon::Error::Timeout,
|
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.120.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-28 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.120.3
|
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.120.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.91.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.91.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: vcr
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|