victory-stack
Advanced tools
Comparing version 34.2.2 to 34.3.0
@@ -20,2 +20,3 @@ import * as React from "react"; | ||
VictoryMultiLabelableProps { | ||
bins?: number | number[] | Date[]; | ||
categories?: CategoryPropType; | ||
@@ -22,0 +23,0 @@ children?: React.ReactNode | React.ReactNode[]; |
@@ -23,3 +23,3 @@ import _isEmpty from "lodash/isEmpty"; | ||
import React from "react"; | ||
import { Helpers, VictoryContainer, VictoryTheme, CommonProps, Wrapper } from "victory-core"; | ||
import { Helpers, VictoryContainer, VictoryTheme, CommonProps, Wrapper, PropTypes as CustomPropTypes } from "victory-core"; | ||
import { VictorySharedEvents } from "victory-shared-events"; | ||
@@ -176,2 +176,3 @@ import { getChildren, getCalculatedProps } from "./helper-methods"; | ||
value: _objectSpread({}, CommonProps.baseProps, { | ||
bins: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([CustomPropTypes.nonNegative, PropTypes.instanceOf(Date)])), CustomPropTypes.nonNegative]), | ||
categories: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.shape({ | ||
@@ -178,0 +179,0 @@ x: PropTypes.arrayOf(PropTypes.string), |
@@ -20,2 +20,3 @@ import * as React from "react"; | ||
VictoryMultiLabelableProps { | ||
bins?: number | number[] | Date[]; | ||
categories?: CategoryPropType; | ||
@@ -22,0 +23,0 @@ children?: React.ReactNode | React.ReactNode[]; |
@@ -198,2 +198,3 @@ "use strict"; | ||
value: _objectSpread({}, _victoryCore.CommonProps.baseProps, { | ||
bins: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_victoryCore.PropTypes.nonNegative, _propTypes.default.instanceOf(Date)])), _victoryCore.PropTypes.nonNegative]), | ||
categories: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.shape({ | ||
@@ -200,0 +201,0 @@ x: _propTypes.default.arrayOf(_propTypes.default.string), |
{ | ||
"name": "victory-stack", | ||
"version": "34.2.2", | ||
"version": "34.3.0", | ||
"description": "Stack Layout Component for Victory", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"react-fast-compare": "^2.0.0", | ||
"victory-core": "^34.2.2", | ||
"victory-shared-events": "^34.2.2" | ||
"victory-core": "^34.3.0", | ||
"victory-shared-events": "^34.3.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
@@ -20,2 +20,3 @@ import * as React from "react"; | ||
VictoryMultiLabelableProps { | ||
bins?: number | number[] | Date[]; | ||
categories?: CategoryPropType; | ||
@@ -22,0 +23,0 @@ children?: React.ReactNode | React.ReactNode[]; |
import { assign, defaults, isEmpty } from "lodash"; | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
import { Helpers, VictoryContainer, VictoryTheme, CommonProps, Wrapper } from "victory-core"; | ||
import { | ||
Helpers, | ||
VictoryContainer, | ||
VictoryTheme, | ||
CommonProps, | ||
Wrapper, | ||
PropTypes as CustomPropTypes | ||
} from "victory-core"; | ||
import { VictorySharedEvents } from "victory-shared-events"; | ||
@@ -22,2 +29,8 @@ import { getChildren, getCalculatedProps } from "./helper-methods"; | ||
...CommonProps.baseProps, | ||
bins: PropTypes.oneOfType([ | ||
PropTypes.arrayOf( | ||
PropTypes.oneOfType([CustomPropTypes.nonNegative, PropTypes.instanceOf(Date)]) | ||
), | ||
CustomPropTypes.nonNegative | ||
]), | ||
categories: PropTypes.oneOfType([ | ||
@@ -24,0 +37,0 @@ PropTypes.arrayOf(PropTypes.string), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
1308880
8173
4
2
Updatedvictory-core@^34.3.0