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 +4 -4
- data/lib/bibliothecary/parsers/npm.rb +6 -2
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5bd402aa6174c1ce713cbb245f8536de6444d231635b591bded1f22fbae890f
|
|
4
|
+
data.tar.gz: ae9249153e0f409665a008a8423639a648343ca6d16ccc86516c0dfa70a13570
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
72
|
-
|
|
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: {})
|