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

victory-pie

Package Overview
Dependencies
Maintainers
6
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-pie - npm Package Compare versions

Comparing version 33.0.1 to 33.0.2

4

es/helper-methods.js

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

var checkForValidText = function (text) {
if (text === undefined || text === null) {
if (text === undefined || text === null || _isFunction(text)) {
return text;

@@ -90,3 +90,3 @@ } else {

} else {
text = _isFunction(props.labels) ? props.labels(datum) : datum.xName || datum._x;
text = _isFunction(props.labels) ? props.labels : datum.xName || datum._x;
}

@@ -93,0 +93,0 @@

@@ -27,3 +27,3 @@ "use strict";

var checkForValidText = function (text) {
if (text === undefined || text === null) {
if (text === undefined || text === null || (0, _isFunction2.default)(text)) {
return text;

@@ -113,3 +113,3 @@ } else {

} else {
text = (0, _isFunction2.default)(props.labels) ? props.labels(datum) : datum.xName || datum._x;
text = (0, _isFunction2.default)(props.labels) ? props.labels : datum.xName || datum._x;
}

@@ -116,0 +116,0 @@

{
"name": "victory-pie",
"version": "33.0.1",
"version": "33.0.2",
"description": "Pie Component for Victory",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,3 +8,3 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 135, 180, 225, 315] }]*/

const checkForValidText = (text) => {
if (text === undefined || text === null) {
if (text === undefined || text === null || isFunction(text)) {
return text;

@@ -83,3 +83,3 @@ } else {

} else {
text = isFunction(props.labels) ? props.labels(datum) : datum.xName || datum._x;
text = isFunction(props.labels) ? props.labels : datum.xName || datum._x;
}

@@ -86,0 +86,0 @@ return checkForValidText(text);

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