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

victory-box-plot

Package Overview
Dependencies
Maintainers
3
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-box-plot - npm Package Compare versions

Comparing version 35.6.1 to 35.6.2

22

es/helper-methods.js

@@ -10,13 +10,5 @@ import _isNil from "lodash/isNil";

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { Helpers, Scale, Domain, Data } from "victory-core";
import { Helpers, Scale, Domain, Data, Collection } from "victory-core";
import { min as d3Min, max as d3Max, quantile as d3Quantile } from "d3-array";

@@ -432,11 +424,7 @@ var TYPES = ["max", "min", "median", "q1", "q3"];

_max = datum._max;
var minDomainX = Collection.getMinValue(domain.x);
var maxDomainX = Collection.getMaxValue(domain.x);
var minDomainY = Collection.getMinValue(domain.y);
var maxDomainY = Collection.getMaxValue(domain.y);
var _domain$x = _slicedToArray(domain.x, 2),
minDomainX = _domain$x[0],
maxDomainX = _domain$x[1];
var _domain$y = _slicedToArray(domain.y, 2),
minDomainY = _domain$y[0],
maxDomainY = _domain$y[1];
var underMin = function (min) {

@@ -443,0 +431,0 @@ return function (val) {

@@ -30,10 +30,2 @@ "use strict";

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -454,10 +446,10 @@

var _domain$x = _slicedToArray(domain.x, 2),
minDomainX = _domain$x[0],
maxDomainX = _domain$x[1];
var minDomainX = _victoryCore.Collection.getMinValue(domain.x);
var _domain$y = _slicedToArray(domain.y, 2),
minDomainY = _domain$y[0],
maxDomainY = _domain$y[1];
var maxDomainX = _victoryCore.Collection.getMaxValue(domain.x);
var minDomainY = _victoryCore.Collection.getMinValue(domain.y);
var maxDomainY = _victoryCore.Collection.getMaxValue(domain.y);
var underMin = function (min) {

@@ -464,0 +456,0 @@ return function (val) {

{
"name": "victory-box-plot",
"version": "35.6.1",
"version": "35.6.2",
"description": "Box Plot Component for Victory",

@@ -25,3 +25,3 @@ "keywords": [

"prop-types": "^15.5.8",
"victory-core": "^35.6.1"
"victory-core": "^35.6.2"
},

@@ -28,0 +28,0 @@ "scripts": {

import { orderBy, defaults, assign, uniq, groupBy, keys, isNaN, isNil } from "lodash";
import { Helpers, Scale, Domain, Data } from "victory-core";
import { Helpers, Scale, Domain, Data, Collection } from "victory-core";
import { min as d3Min, max as d3Max, quantile as d3Quantile } from "d3-array";

@@ -339,4 +339,7 @@

const { _x, _min, _max } = datum;
const [minDomainX, maxDomainX] = domain.x;
const [minDomainY, maxDomainY] = domain.y;
const minDomainX = Collection.getMinValue(domain.x);
const maxDomainX = Collection.getMaxValue(domain.x);
const minDomainY = Collection.getMinValue(domain.y);
const maxDomainY = Collection.getMaxValue(domain.y);
const underMin = (min) => (val) => exists(val) && val < min;

@@ -343,0 +346,0 @@ const overMax = (max) => (val) => exists(val) && val > max;

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

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