Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
fix(pkgmap): check that the value in the object is actually a string
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Oct 15, 2018
1 parent 8e503bd commit c134415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pkgmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function resolve (...p) {
scope.packages &&
scope.packages[pkgName] &&
scope.packages[pkgName].files &&
scope.packages[pkgName].files[filePath]
scope.packages[pkgName].files[filePath] &&
typeof scope.packages[pkgName].files[filePath] === 'string'
) {
const pkg = scope.packages[pkgName]
const hash = pkg.files[filePath]
Expand Down

0 comments on commit c134415

Please sign in to comment.