HomeSoftware Heritage

npm: Explicitely retrieve the revision date from extrinsic metadata

Description

npm: Explicitely retrieve the revision date from extrinsic metadata

No date is available in intrinsic metadata, so we retrieve it from the API
metadata, using the version number that the API claims this package has.

This fixes the current loading which fails when this scenario occurs.

Note: This matches what was done in the prior loader-npm version [1]

[1] https://forge.softwareheritage.org/source/swh-loader-npm/browse/master/swh/loader/npm/client.py$84-91

Details

Provenance
ardumontAuthored on Nov 22 2019, 4:05 PM
ardumontPushed on Nov 22 2019, 6:11 PM
Differential Revision
D2344: npm: Explicitely retrieve the revision date from extrinsic metadata
Parents
rDLDBASE5328d6bde164: package.pypi: Filter out non-sdist package type
Branches
Unknown
Tags
Unknown
References
tag: v0.0.59
Build Status
Buildable 9344
Build 13681: test-and-buildJenkins