@nivo/voronoi
Advanced tools
Comparing version
@@ -7,18 +7,10 @@ 'use strict'; | ||
var PropTypes = _interopDefault(require('prop-types')); | ||
var React = _interopDefault(require('react')); | ||
var d3Voronoi = require('d3-voronoi'); | ||
var core = require('@nivo/core'); | ||
var compose = _interopDefault(require('recompose/compose')); | ||
var defaultProps = _interopDefault(require('recompose/defaultProps')); | ||
var pure = _interopDefault(require('recompose/pure')); | ||
var PropTypes = _interopDefault(require('prop-types')); | ||
var core = require('@nivo/core'); | ||
var d3Voronoi = require('d3-voronoi'); | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
var VoronoiPropTypes = { | ||
@@ -57,22 +49,6 @@ data: PropTypes.arrayOf(PropTypes.shape({ | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
var enhance = (function (Component) { | ||
return compose(defaultProps(VoronoiDefaultProps), core.withTheme(), core.withDimensions(), pure)(Component); | ||
return compose(defaultProps(VoronoiDefaultProps), core.withTheme(), core.withDimensions(), pure)(Component); | ||
}); | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
var Voronoi = function Voronoi(_ref) { | ||
@@ -96,3 +72,3 @@ var data = _ref.data, | ||
var voronoi$$1 = d3Voronoi.voronoi().x(function (d) { | ||
var voronoi = d3Voronoi.voronoi().x(function (d) { | ||
return d.x; | ||
@@ -103,4 +79,4 @@ }).y(function (d) { | ||
var polygons = voronoi$$1.polygons(data); | ||
var links = voronoi$$1.links(data); | ||
var polygons = voronoi.polygons(data); | ||
var links = voronoi.links(data); | ||
@@ -173,10 +149,2 @@ return React.createElement( | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
var ResponsiveVoronoi = (function (props) { | ||
@@ -194,11 +162,2 @@ return React.createElement( | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
exports.Voronoi = Voronoi$1; | ||
@@ -205,0 +164,0 @@ exports.ResponsiveVoronoi = ResponsiveVoronoi; |
{ | ||
"name": "@nivo/voronoi", | ||
"version": "0.34.0-1", | ||
"version": "0.35.0", | ||
"license": "MIT", | ||
@@ -12,15 +12,6 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@nivo/core": "0.34.0-1", | ||
"@nivo/core": "0.35.0", | ||
"d3-voronoi": "^1.1.2", | ||
"recompose": "^0.26.0" | ||
}, | ||
"devDependencies": { | ||
"@nivo/babel-preset": "0.34.0-1", | ||
"babel-cli": "^6.26.0", | ||
"babel-jest": "^20.0.3", | ||
"cross-env": "^5.0.5", | ||
"jest": "^21.0.1", | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0" | ||
}, | ||
"peerDependencies": { | ||
@@ -32,4 +23,3 @@ "prop-types": "^15.5.10", | ||
"access": "public" | ||
}, | ||
"scripts": {} | ||
} | ||
} |
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
0
-100%6024
-18.73%144
-21.74%1
Infinity%+ Added
- Removed
Updated