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

math-helper-functions

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

math-helper-functions - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

4

./dist/index.js

@@ -263,3 +263,3 @@ "use strict";

count: dataArr.map((d) => d.data),
percentage_serie: dataArr.map((d) => calcPercent(d.data * 100, serieCount))
percentage_serie: dataArr.map((d) => calcPercent(d.data, serieCount))
};

@@ -270,3 +270,3 @@ });

data: data.map((i) => __spreadProps(__spreadValues({}, i), {
percentage_total: i.count.map((d) => calcPercent(d * 100, totalCount))
percentage_total: i.count.map((d) => calcPercent(d, totalCount))
}))

@@ -273,0 +273,0 @@ };

@@ -263,3 +263,3 @@ "use strict";

count: dataArr.map((d) => d.data),
percentage_serie: dataArr.map((d) => calcPercent(d.data * 100, serieCount))
percentage_serie: dataArr.map((d) => calcPercent(d.data, serieCount))
};

@@ -270,3 +270,3 @@ });

data: data.map((i) => __spreadProps(__spreadValues({}, i), {
percentage_total: i.count.map((d) => calcPercent(d * 100, totalCount))
percentage_total: i.count.map((d) => calcPercent(d, totalCount))
}))

@@ -273,0 +273,0 @@ };

{
"name": "math-helper-functions",
"version": "3.1.0",
"version": "3.1.1",
"description": "Helper with misc. math functions such as sums, averages, max, min, etc",

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

@@ -174,3 +174,3 @@ import { thresholdSturges } from 'd3-array';

count: dataArr.map((d) => d.data),
percentage_serie: dataArr.map((d) => calcPercent(d.data * 100, serieCount)),
percentage_serie: dataArr.map((d) => calcPercent(d.data, serieCount)),
};

@@ -183,3 +183,3 @@ });

...i,
percentage_total: i.count.map((d) => calcPercent(d * 100, totalCount)),
percentage_total: i.count.map((d) => calcPercent(d, totalCount)),
})),

@@ -186,0 +186,0 @@ };

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