@nivo/chord
Advanced tools
Comparing version 0.35.0 to 0.35.2
@@ -19,6 +19,8 @@ 'use strict'; | ||
var React__default = _interopDefault(React); | ||
var lodash = require('lodash'); | ||
var isFunction = _interopDefault(require('lodash/isFunction')); | ||
var mapValues = _interopDefault(require('lodash/mapValues')); | ||
var reactMotion = require('react-motion'); | ||
var d3Format = require('d3-format'); | ||
var setDisplayName = _interopDefault(require('recompose/setDisplayName')); | ||
var partial = _interopDefault(require('lodash/partial')); | ||
@@ -347,3 +349,3 @@ var ChordPropTypes = { | ||
return lodash.mapValues(angles, function (angle) { | ||
return mapValues(angles, function (angle) { | ||
return reactMotion.spring(angle, springConfig); | ||
@@ -504,3 +506,3 @@ }); | ||
if (!tooltipFormat || lodash.isFunction(tooltipFormat)) return { tooltipFormat: tooltipFormat }; | ||
if (!tooltipFormat || isFunction(tooltipFormat)) return { tooltipFormat: tooltipFormat }; | ||
return { tooltipFormat: d3Format.format(tooltipFormat) }; | ||
@@ -1029,5 +1031,5 @@ }), pure); | ||
}, | ||
onMouseEnter: lodash.partial(_this3.handleMouseHover, showTooltip, hideTooltip), | ||
onMouseMove: lodash.partial(_this3.handleMouseHover, showTooltip, hideTooltip), | ||
onMouseLeave: lodash.partial(_this3.handleMouseLeave, hideTooltip) | ||
onMouseEnter: partial(_this3.handleMouseHover, showTooltip, hideTooltip), | ||
onMouseMove: partial(_this3.handleMouseHover, showTooltip, hideTooltip), | ||
onMouseLeave: partial(_this3.handleMouseLeave, hideTooltip) | ||
}); | ||
@@ -1034,0 +1036,0 @@ } |
{ | ||
"name": "@nivo/chord", | ||
"version": "0.35.0", | ||
"version": "0.35.2", | ||
"license": "MIT", | ||
@@ -12,7 +12,8 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@nivo/core": "0.35.0", | ||
"@nivo/legends": "0.35.0", | ||
"@nivo/core": "0.35.2", | ||
"@nivo/legends": "0.35.2", | ||
"d3-chord": "^1.0.4", | ||
"d3-format": "^1.2.0", | ||
"d3-shape": "^1.2.0", | ||
"lodash": "^4.17.4", | ||
"react-motion": "^0.5.2", | ||
@@ -19,0 +20,0 @@ "recompose": "^0.26.0" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39214
920
0
10
+ Addedlodash@^4.17.4
+ Added@nivo/core@0.35.2(transitive)
+ Addedlodash@4.17.21(transitive)
- Removed@nivo/core@0.35.0(transitive)
Updated@nivo/core@0.35.2
Updated@nivo/legends@0.35.2