@vx/boxplot
Advanced tools
Comparing version 0.0.161 to 0.0.165-beta.0
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = BoxPlot; | ||
@@ -14,7 +11,7 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _classnames = require('classnames'); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _classnames2 = babelHelpers.interopRequireDefault(_classnames); | ||
@@ -25,8 +22,4 @@ var _group = require('@vx/group'); | ||
var _additionalProps2 = _interopRequireDefault(_additionalProps); | ||
var _additionalProps2 = babelHelpers.interopRequireDefault(_additionalProps); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function BoxPlot(_ref) { | ||
@@ -63,3 +56,3 @@ var _ref$left = _ref.left, | ||
containerProps = _ref$containerProps === undefined ? {} : _ref$containerProps, | ||
restProps = _objectWithoutProperties(_ref, ['left', 'className', 'data', 'max', 'min', 'firstQuartile', 'thirdQuartile', 'median', 'boxWidth', 'fill', 'fillOpacity', 'stroke', 'strokeWidth', 'rx', 'ry', 'medianProps', 'maxProps', 'minProps', 'boxProps', 'container', 'containerProps']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['left', 'className', 'data', 'max', 'min', 'firstQuartile', 'thirdQuartile', 'median', 'boxWidth', 'fill', 'fillOpacity', 'stroke', 'strokeWidth', 'rx', 'ry', 'medianProps', 'maxProps', 'minProps', 'boxProps', 'container', 'containerProps']); | ||
@@ -70,3 +63,3 @@ var centerX = left + boxWidth / 2; | ||
{ className: (0, _classnames2.default)('vx-boxplot', className) }, | ||
_react2.default.createElement('line', _extends({ | ||
_react2.default.createElement('line', babelHelpers.extends({ | ||
className: 'vx-boxplot-max', | ||
@@ -93,3 +86,3 @@ x1: centerX - boxWidth / 4, | ||
}), | ||
_react2.default.createElement('rect', _extends({ | ||
_react2.default.createElement('rect', babelHelpers.extends({ | ||
x: left, | ||
@@ -116,3 +109,3 @@ y: thirdQuartile, | ||
}))), | ||
_react2.default.createElement('line', _extends({ | ||
_react2.default.createElement('line', babelHelpers.extends({ | ||
className: 'vx-boxplot-median', | ||
@@ -139,3 +132,3 @@ x1: left, | ||
}), | ||
_react2.default.createElement('line', _extends({ | ||
_react2.default.createElement('line', babelHelpers.extends({ | ||
className: 'vx-boxplot-min', | ||
@@ -154,3 +147,3 @@ x1: centerX - boxWidth / 4, | ||
}))), | ||
container && _react2.default.createElement('rect', _extends({ | ||
container && _react2.default.createElement('rect', babelHelpers.extends({ | ||
x: left, | ||
@@ -157,0 +150,0 @@ y: max, |
@@ -12,6 +12,4 @@ 'use strict'; | ||
get: function get() { | ||
return _interopRequireDefault(_BoxPlot).default; | ||
return babelHelpers.interopRequireDefault(_BoxPlot).default; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
}); |
@@ -10,6 +10,4 @@ 'use strict'; | ||
var _callOrValue2 = _interopRequireDefault(_callOrValue); | ||
var _callOrValue2 = babelHelpers.interopRequireDefault(_callOrValue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function additionalProps(restProps, data) { | ||
@@ -16,0 +14,0 @@ return Object.keys(restProps).reduce(function (ret, cur) { |
{ | ||
"name": "@vx/boxplot", | ||
"version": "0.0.161", | ||
"version": "0.0.165-beta.0", | ||
"description": "vx box plot", | ||
"sideEffects": false, | ||
"main": "build/index.js", | ||
"main": "dist/vx-boxplot.umd.js", | ||
"module": "dist/vx-boxplot.es.js", | ||
"files": [ | ||
"dist", | ||
"build" | ||
], | ||
"scripts": { | ||
"build": "make build SRC=./src", | ||
"prepublish": "make build SRC=./src", | ||
"build": "npm run build:babel && npm run build:dist", | ||
"build:dist": "rm -rf dist && mkdir dist && rollup -c", | ||
"build:babel": "rm -rf build && mkdir build && babel src --out-dir build --ignore node_modules/ --presets stage-0,react,env --plugins external-helpers", | ||
"prepublish": "npm run build", | ||
"test": "jest" | ||
@@ -30,17 +37,27 @@ }, | ||
"dependencies": { | ||
"@vx/group": "0.0.161", | ||
"@vx/group": "0.0.165-beta.0", | ||
"classnames": "^2.2.5" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-jest": "^21.2.0", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.2", | ||
"jest": "^21.2.1", | ||
"jest-cli": "^21.2.1", | ||
"raf": "^3.4.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-fatigue-dev": "github:tj/react-fatigue-dev", | ||
"react-test-renderer": "^16.0.0", | ||
"react-tools": "^0.10.0", | ||
"regenerator-runtime": "^0.10.5" | ||
"rollup": "^0.59.4", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-replace": "^2.0.0", | ||
"rollup-plugin-uglify": "^4.0.0" | ||
}, | ||
@@ -47,0 +64,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
17870
359
0
21
8
2
1
+ Added@vx/group@0.0.165-beta.0(transitive)
- Removed@vx/group@0.0.161(transitive)
Updated@vx/group@0.0.165-beta.0