Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d2-charts-api

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d2-charts-api - npm Package Compare versions

Comparing version 32.0.8 to 32.0.9

18

lib/store/adapters/dhis_highcharts/pie.js

@@ -8,11 +8,13 @@ "use strict";

exports.default = function (acc, seriesIds, categoryIds, idValueMap, metaData) {
acc.push.apply(acc, _toConsumableArray(seriesIds.map(function (seriesId) {
return {
name: metaData.items[seriesId].name,
y: parseFloat(idValueMap.get(seriesId))
};
})));
seriesIds.forEach(function (seriesId) {
var value = idValueMap.get(seriesId);
if (value) {
acc.push({
name: metaData.items[seriesId].name,
y: parseFloat(value)
});
}
});
};
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
//# sourceMappingURL=pie.js.map
{
"name": "d2-charts-api",
"version": "32.0.8",
"version": "32.0.9",
"description": "DHIS2 charts api",

@@ -5,0 +5,0 @@ "main": "index.js",

export default function(acc, seriesIds, categoryIds, idValueMap, metaData) {
acc.push(...seriesIds.map(seriesId => ({
name: metaData.items[seriesId].name,
y: parseFloat(idValueMap.get(seriesId)),
})));
seriesIds.forEach(seriesId => {
const value = idValueMap.get(seriesId);
if (value) {
acc.push({
name: metaData.items[seriesId].name,
y: parseFloat(value),
});
}
});
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc