victory-core
Advanced tools
Comparing version 34.3.7 to 34.3.8
@@ -490,7 +490,7 @@ import _isPlainObject from "lodash/isPlainObject"; | ||
}, | ||
getCategories: function (props) { | ||
getCategories: function (props, childComponents, allStrings) { | ||
var xPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.x : props.categories; | ||
var yPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.y : props.categories; | ||
var fallbackRequired = !xPropCategories || !yPropCategories; | ||
var fallbackProps = fallbackRequired ? this.getStringsFromChildren(props) : {}; | ||
var fallbackProps = fallbackRequired ? allStrings || this.getStringsFromChildren(props, childComponents) : {}; | ||
var xCategories = xPropCategories || fallbackProps.x; | ||
@@ -497,0 +497,0 @@ var yCategories = yPropCategories || fallbackProps.y; |
@@ -527,7 +527,7 @@ "use strict"; | ||
}, | ||
getCategories: function (props) { | ||
getCategories: function (props, childComponents, allStrings) { | ||
var xPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.x : props.categories; | ||
var yPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.y : props.categories; | ||
var fallbackRequired = !xPropCategories || !yPropCategories; | ||
var fallbackProps = fallbackRequired ? this.getStringsFromChildren(props) : {}; | ||
var fallbackProps = fallbackRequired ? allStrings || this.getStringsFromChildren(props, childComponents) : {}; | ||
var xCategories = xPropCategories || fallbackProps.x; | ||
@@ -534,0 +534,0 @@ var yCategories = yPropCategories || fallbackProps.y; |
{ | ||
"name": "victory-core", | ||
"version": "34.3.7", | ||
"version": "34.3.8", | ||
"description": "Victory Core", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -410,3 +410,3 @@ import { | ||
getCategories(props) { | ||
getCategories(props, childComponents, allStrings) { | ||
const xPropCategories = | ||
@@ -420,3 +420,5 @@ props.categories && !Array.isArray(props.categories) ? props.categories.x : props.categories; | ||
const fallbackProps = fallbackRequired ? this.getStringsFromChildren(props) : {}; | ||
const fallbackProps = fallbackRequired | ||
? allStrings || this.getStringsFromChildren(props, childComponents) | ||
: {}; | ||
@@ -423,0 +425,0 @@ const xCategories = xPropCategories || fallbackProps.x; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2085187
28679