dependabot-npm_and_yarn 0.177.0 → 0.178.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: bdd9e2679b6d836b64ac2090230587d4d40a481d53f8c2b7fdb6a45e1d359de4
4
+ data.tar.gz: 6017374515a9ee5db91fb0963a9de3eec230ccf2d770089da1d6ddc283c16a0f
5
5
  SHA512:
6
- metadata.gz: 2438424284f5903523fdbecc7336a8e9b160e2038d997d58c51a9270e58de10b41f193d9cb64b02fb4162b00ed67dc0351f308a68bce3e4ed7f92d3ccc6743d7
7
- data.tar.gz: 24a57ea220261c9bbb6f6ecd8a25fd297de28f807a1ad4da2ba0a622dd15c0dc2f8c0abf6c18857318e9062f76258bf87cc75944319ffb6450db6bd6c2042699
6
+ metadata.gz: ec0a20c4b6ba2bf326c02a5a7bb3cf455ab11c1d7959df1ac80b62b2037f2470122d2247600b527470754732716c7c3dea88c81ef1b19a8136b563142372b28b
7
+ data.tar.gz: 5d5be3e55457b6813aa91f5484b221630f1723043df6b287bd84a165b99c96cbc9b9b9577b9bd7881aafca5ad959d228a7b910430d002c37ad535dbb7c9d4e7d
@@ -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.178.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-10 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.178.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.178.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement