dependabot-npm_and_yarn 0.177.0 → 0.179.0

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: 52a42523d67ccc035c219c5bfe10dc5a2dfbdfc94f9861bf4a4c059d060fcc23
4
- data.tar.gz: '0631281fdc085c071457a35c165fd30c12932a43d3db2c482d30d76a2536fa0d'
3
+ metadata.gz: bc596fa0eed45ff4e038d27548380f95524c709f8156e11c1a85874aedaba8c8
4
+ data.tar.gz: 1ce9704c315d83b3fb2d2d4394020af4c11040f81da521a301d7f29b78dd0fec
5
5
  SHA512:
6
- metadata.gz: 2438424284f5903523fdbecc7336a8e9b160e2038d997d58c51a9270e58de10b41f193d9cb64b02fb4162b00ed67dc0351f308a68bce3e4ed7f92d3ccc6743d7
7
- data.tar.gz: 24a57ea220261c9bbb6f6ecd8a25fd297de28f807a1ad4da2ba0a622dd15c0dc2f8c0abf6c18857318e9062f76258bf87cc75944319ffb6450db6bd6c2042699
6
+ metadata.gz: 677fec2af290d2874cd8871c89b81471a93ac2c213c19a62bfe9b034229e6a41575c9db1ef04da0706857aacba84c0d997f73f7d46671b31c4be2171683f50bc
7
+ data.tar.gz: 3a414269cc4e7bbd5fdda38df4c4c9097ff3a96f0b47cd3b888718fb1e9932705638a4979cdbde66bac0280a79ebf8f3207f9029e075189cc4b4c70dd5cc1e9a
@@ -500,6 +500,8 @@ module Dependabot
500
500
  # levels deep it is indented.
501
501
  def detect_indentation(json)
502
502
  indentation = json.scan(/^\s+/).min_by(&:length)
503
+ return "" if indentation.nil? # let npm set the default if we can't detect any indentation
504
+
503
505
  indentation_size = indentation.length
504
506
  indentation_type = indentation.scan(/\t/).any? ? "\t" : " "
505
507
 
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.177.0
4
+ version: 0.179.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-04 00:00:00.000000000 Z
11
+ date: 2022-03-16 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.177.0
19
+ version: 0.179.0
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.177.0
26
+ version: 0.179.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement