dependabot-npm_and_yarn 0.106.40 → 0.106.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 609566d61afcbf1506dd4b4bf3e205d560a7bc7074faa2a8b07c6fbbf04cd177
4
- data.tar.gz: abd9d9dd98935828a5a8554ee44c54c6d127be3c4c879a91cf0009317f43e087
3
+ metadata.gz: 0f8bb086851023c74d079b9a9832a84ae452ce9c2f59a19fa9712ecf4574cfbf
4
+ data.tar.gz: 4243484c2601bf5b82eea4c2c37b7aa41221429dca9bd3cb0fb44b6d9561b4a9
5
5
  SHA512:
6
- metadata.gz: 9655e60f3a8e50790826b07cf9a90a48c5bf1216183376812b92f67b1b52dc2ebf1ff14266eb169c540ff6556e4d5d5b466643a05b50013b657265419c592d6f
7
- data.tar.gz: ff8fdc6aa5d0afe2393cac60ae38415f19bfffae1355e63c3884e536cd22d8e70ff1c3640d2abc62753b76f1d818994ee09ff6e1575ab768a9fb5680fb010709
6
+ metadata.gz: e6a788619229c847e8bcaf947a591bb220d00ff10f4428ddfb075697d61bf0543696cbf1d7adf8eae30f63da021a747c8d95be82a650dfa3850df49371366720
7
+ data.tar.gz: 48de74fdc1ef7dedd58b049b69fd06ed5301df5f531c6d23b6a0df6a47759fec961de57853614b81965de1fcdf5f88a132abf7254931e2850616ddeb1f545a6c
@@ -482,10 +482,15 @@ module Dependabot
482
482
  end
483
483
 
484
484
  def sanitized_package_json_content(content)
485
- content.
485
+ updated_content =
486
+ content.
486
487
  gsub(/\{\{.*?\}\}/, "something"). # {{ name }} syntax not allowed
487
488
  gsub(/(?<!\\)\\ /, " "). # escaped whitespace not allowed
488
489
  gsub(%r{^\s*//.*}, " ") # comments are not allowed
490
+
491
+ json = JSON.parse(updated_content)
492
+ json["name"] = json["name"].delete(" ")
493
+ json.to_json
489
494
  end
490
495
 
491
496
  def yarn_locks
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-npm_and_yarn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.106.40
4
+ version: 0.106.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.106.40
19
+ version: 0.106.41
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.106.40
26
+ version: 0.106.41
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement