Skip to content

Commit

Permalink
fix: handle null drift or pulse values
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaoelitiana committed Jun 8, 2023
1 parent d72af03 commit 90ea723
Show file tree
Hide file tree
Showing 4 changed files with 4,862 additions and 3,104 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 16.14.0
4 changes: 2 additions & 2 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3934,8 +3934,8 @@ var getResultsTable = function (report) {
var dependency = _a.dependency, drift = _a.drift, pulse = _a.pulse, releases = _a.releases, major = _a.major, minor = _a.minor, patch = _a.patch, available = _a.available;
return ({
dependency: dependency,
drift: drift.toFixed(2),
pulse: pulse.toFixed(2),
drift: (drift === null || drift === void 0 ? void 0 : drift.toFixed(2)) || drift,
pulse: (pulse === null || pulse === void 0 ? void 0 : pulse.toFixed(2)) || pulse,
releases: releases,
major: major,
minor: minor,
Expand Down
Loading

0 comments on commit 90ea723

Please sign in to comment.