We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2128770 commit 025d585Copy full SHA for 025d585
lib/content/path.js
@@ -15,9 +15,10 @@ module.exports = contentPath
15
function contentPath (cache, integrity) {
16
const sri = ssri.parse(integrity, { single: true })
17
// contentPath is the *strongest* algo given
18
- return path.join.apply(
19
- path,
20
- [contentDir(cache), sri.algorithm].concat(hashToSegments(sri.hexDigest()))
+ return path.join(
+ contentDir(cache),
+ sri.algorithm,
21
+ ...hashToSegments(sri.hexDigest())
22
)
23
}
24
0 commit comments