dependabot-npm_and_yarn 0.119.4 → 0.120.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef2adfce3682f36c0240bcdf876235f4f5d3c62a8e6ee4d1117471ab92de8dd2
4
- data.tar.gz: a43a079c74eb3032fc878680b011995424311d67f8b748cafcb97505e8f923a9
3
+ metadata.gz: 06ce3f20a20b0c56a0bd9e3bf7bb9dc9d1c257d16a7ec7d717fd91d8268f2b5f
4
+ data.tar.gz: ecd6893cf9fa812bd3f967f8453d7b5cf03560bb1cc3f67f22bf2d325c4373ca
5
5
  SHA512:
6
- metadata.gz: 549602f8438cf4ad4520acce0fd311b3208c0ec756804c874ca74b5babe6a1e4426ec7eebc43206850cb7d9d8bebc40e7b6c2dc8cd5c76df29158a9815eb5857
7
- data.tar.gz: 02bbe98a9b1461ae3f25abc2108fd1b8a8ba7cc6fdcf6e0e5c13ee8f359a5f361dd747f5b14f42d41c78312d3c03267abe125a8784e68bdeb2ccf8a70f268704
6
+ metadata.gz: e744444c7a684737b4ab4ea39f55efe2735115890bf09d4325ddde5d23dfc0ed65493e54d96644ee56d2ea1adb91af48910ce755fdb0d593ae05a0d6743655b3
7
+ data.tar.gz: e4319be89733258275e988e62543df28972bc7472e3212cd228772ade7c41bf79f96cc2c03db30cfc0371d7fdbfe61c08e0fcf38f65e857aeca1ef7fe3dd95ef
@@ -15,10 +15,10 @@
15
15
  "semver": "^7.3.2"
16
16
  },
17
17
  "devDependencies": {
18
- "eslint": "^7.8.1",
18
+ "eslint": "^7.9.0",
19
19
  "eslint-plugin-prettier": "^3.1.4",
20
20
  "jest": "^26.4.2",
21
- "prettier": "^2.1.1",
21
+ "prettier": "^2.1.2",
22
22
  "rimraf": "^3.0.2"
23
23
  }
24
24
  }
@@ -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.8.1:
2068
- version "7.8.1"
2069
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.8.1.tgz#e59de3573fb6a5be8ff526c791571646d124a8fa"
2070
- integrity sha512-/2rX2pfhyUG0y+A123d0ccXtMm7DV7sH1m3lk9nk2DZ2LReq39FXHueR9xZwshE5MdfSf0xunSaMWRqyIA6M1w==
2067
+ eslint@^7.9.0:
2068
+ version "7.9.0"
2069
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.9.0.tgz#522aeccc5c3a19017cf0cb46ebfd660a79acf337"
2070
+ integrity sha512-V6QyhX21+uXp4T+3nrNfI3hQNBDa/P8ga7LoQOenwrlEFXrEnUEE+ok1dMtaS3b6rmLXhT1TkTIsG75HMLbknA==
2071
2071
  dependencies:
2072
2072
  "@babel/code-frame" "^7.0.0"
2073
2073
  "@eslint/eslintrc" "^0.1.3"
@@ -5393,10 +5393,10 @@ prettier-linter-helpers@^1.0.0:
5393
5393
  dependencies:
5394
5394
  fast-diff "^1.1.2"
5395
5395
 
5396
- prettier@^2.1.1:
5397
- version "2.1.1"
5398
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.1.tgz#d9485dd5e499daa6cb547023b87a6cf51bee37d6"
5399
- integrity sha512-9bY+5ZWCfqj3ghYBLxApy2zf6m+NJo5GzmLTpr9FsApsfjriNnS2dahWReHMi7qNPhhHl9SYHJs2cHZLgexNIw==
5396
+ prettier@^2.1.2:
5397
+ version "2.1.2"
5398
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
5399
+ integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
5400
5400
 
5401
5401
  pretty-format@^26.4.2:
5402
5402
  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.119.4
4
+ version: 0.120.2
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-15 00:00:00.000000000 Z
11
+ date: 2020-09-25 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.119.4
19
+ version: 0.120.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.119.4
26
+ version: 0.120.2
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.90.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.90.0
110
+ version: 0.91.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement