Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.
This PR upgrades the jszip dependency to ^3.7.0 and consequently tweaks the headless_zip.js functions to be more async friendly as zip.generate() has been replaced by zip.generateAsync().
This fixes #655.
Additionally I had to fix a unit test failure that occurs when running on macOS 11 (caused by os.name now returning macOS rather than Mac OS X) to ensure my changes still passed the unit tests.
Appmetrics currently uses
jszip@2.x
which has a prototype pollution vulnerability:This PR upgrades the
jszip
dependency to^3.7.0
and consequently tweaks theheadless_zip.js
functions to be more async friendly aszip.generate()
has been replaced byzip.generateAsync()
.This fixes #655.
Additionally I had to fix a unit test failure that occurs when running on macOS 11 (caused by
os.name
now returningmacOS
rather thanMac OS X
) to ensure my changes still passed the unit tests.