New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unipept-heatmap

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unipept-heatmap - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

8

package.json
{
"name": "unipept-heatmap",
"version": "1.0.18",
"version": "1.0.19",
"description": "HeatMap built for the Unipept project. See http://unipept.ugent.be for more information. This HeatMap supports UPGMA-clustering and MOLO-reordering.",

@@ -8,3 +8,5 @@ "main": "dist/bundle.js",

"dependencies": {
"d3": "^5.7.0"
"@types/sanitize-html": "^1.18.3",
"d3": "^5.7.0",
"sanitize-html": "^1.20.0"
},

@@ -16,3 +18,3 @@ "devDependencies": {

"@types/jest": "^24.0.9",
"@types/node": "^10.12.17",
"@types/node": "^10.14.4",
"babel-loader": "^8.0.5",

@@ -19,0 +21,0 @@ "d3": "^5.7.0",

import Settings from "../settings";
import {HeatmapElement, HeatmapValue} from "./input";
let sanitizeHtml = require("sanitize-html");

@@ -44,3 +45,3 @@ export class HeatmapSettings extends Settings {

getTooltipTitle: (x: HeatmapValue, row: HeatmapElement, column: HeatmapElement) => string = (x: HeatmapValue, row: HeatmapElement, column: HeatmapElement) => {
return `${column.name ? column.name : ''}${column.name ? ' and ' : ''}${row.name ? row.name : ''}`;
return sanitizeHtml(`${column.name ? column.name : ''}${column.name ? ' and ' : ''}${row.name ? row.name : ''}`);
};

@@ -50,4 +51,4 @@

getTooltipText: (x: HeatmapValue) => string = (x: HeatmapValue) => {
return `Score: ${(x.value * 100).toFixed(2)}%`;
return sanitizeHtml(`Score: ${(x.value * 100).toFixed(2)}%`);
};
}

@@ -12,4 +12,4 @@ {

"declaration": true,
"types": ["jest", "d3"]
"types": ["jest", "d3", "node", "sanitize-html"]
}
}

Sorry, the diff of this file is too big to display

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