bibliothecary 8.3.6 → 8.3.7

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: 17f26c778e80bae98b90c9329deee84531373bd632522cafeaa6fd373625875d
4
- data.tar.gz: 414e573a0fff88a2352fec3393ba4067fc96e483ee6f73752c23ed9578739d9f
3
+ metadata.gz: d5bd402aa6174c1ce713cbb245f8536de6444d231635b591bded1f22fbae890f
4
+ data.tar.gz: ae9249153e0f409665a008a8423639a648343ca6d16ccc86516c0dfa70a13570
5
5
  SHA512:
6
- metadata.gz: fac3dbf50483860ae351fc198a884ec8e1b1f54f0e7f89da36cacd78dbac84800a4c75cf118b5af27529e1ca068d664dcbb63775aec4940c78023d867fb2e675
7
- data.tar.gz: 389d6f67d33980bda05d35fd22c1533e2727f79734e40a0371fda3edee4ddbae81f22e276807b0c0898c5cf5d22575e1d221b9a967331af725cea937b81e3731
6
+ metadata.gz: 9c79302eb1f9dd93f555c6338433ddb12c99baf4037bc1de40f113bfda8fac15dd75685f000ad25b5b6058eebc4e720b1fd29cee04beabf7f5662ff56295d442
7
+ data.tar.gz: 2899dfd48185b8d71cbab5d9d830d8350b37cd2b6ad1561768494d37b79c63e001c7a6d5ea732f891e0822463da4d2cfbafbfaa85b3f4923ff7833290c7c6e47
@@ -68,8 +68,12 @@ module Bibliothecary
68
68
  def self.parse_manifest(file_contents, options: {})
69
69
  manifest = JSON.parse(file_contents)
70
70
  raise "appears to be a lockfile rather than manifest format" if manifest.key?('lockfileVersion')
71
- map_dependencies(manifest, 'dependencies', 'runtime') +
72
- map_dependencies(manifest, 'devDependencies', 'development')
71
+
72
+ (
73
+ map_dependencies(manifest, 'dependencies', 'runtime') +
74
+ map_dependencies(manifest, 'devDependencies', 'development')
75
+ )
76
+ .reject { |dep| dep[:name].start_with?("//") } # Omit comment keys. They are valid in package.json: https://groups.google.com/g/nodejs/c/NmL7jdeuw0M/m/yTqI05DRQrIJ
73
77
  end
74
78
 
75
79
  def self.parse_yarn_lock(file_contents, options: {})
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "8.3.6"
2
+ VERSION = "8.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.6
4
+ version: 8.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt