HomeSoftware Heritage

npm.client: Ensure package.json parsing

Authored by anlambert on May 21 2019, 4:57 PM.

Description

npm.client: Ensure package.json parsing

  • refine JSON loading code to avoid UnicodeDecodeError
  • discard malformed JSON
  • remove any BOM to avoid JSONDecodeError
  • cover more tarball layouts

Related T1726

Details

Committed
anlambertMay 22 2019, 1:14 PM
Pushed
anlambertMay 23 2019, 3:54 PM
Differential Revision
D1498: npm.client: Ensure package.json parsing
Parents
rDLDNPM899207d97a8b: utils: Fix some author parsing errors
Branches
Unknown
Tags
Unknown
Build Status
Buildable 5899
Build 8083: test-and-build