scarf-sh / scarf-js

Installation analytics for your npm package
https://scarf.sh
Apache License 2.0
157 stars 11 forks source link

don't use same object reference in shallow dep info #66

Closed justinwoo closed 1 year ago

justinwoo commented 1 year ago

this causes us to create an invalid parent node that does not parse as a valid request in the API, due to the shared grandparent node being modified: https://github.com/scarf-sh/scarf-js/blob/8bade0e1b1ed705305e016f480beac36abef4cc0/report.js#L118-L128

fixes problems from https://github.com/scarf-sh/scarf-js/pull/60