victory-area
Advanced tools
Comparing version 35.9.3 to 35.10.0
import _isNil from "lodash/isNil"; | ||
import _assign from "lodash/assign"; | ||
import { Helpers, LabelHelpers, Data, Domain, Scale, Collection } from "victory-core"; | ||
var getDataWithBaseline = function (props, scale) { | ||
export var getDataWithBaseline = function (props, scale) { | ||
var data = Data.getData(props); | ||
@@ -73,3 +72,3 @@ | ||
var getBaseProps = function (props, fallbackProps) { | ||
export var getBaseProps = function (props, fallbackProps) { | ||
var modifiedProps = Helpers.modifyProps(props, fallbackProps, "area"); | ||
@@ -139,4 +138,2 @@ props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
}, initialChildProps); | ||
}; | ||
export { getBaseProps, getDataWithBaseline }; | ||
}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.getDataWithBaseline = exports.getBaseProps = void 0; | ||
exports.getBaseProps = exports.getDataWithBaseline = void 0; | ||
@@ -9,0 +9,0 @@ var _isNil2 = _interopRequireDefault(require("lodash/isNil")); |
{ | ||
"name": "victory-area", | ||
"version": "35.9.3", | ||
"version": "35.10.0", | ||
"description": "Area Component for Victory", | ||
@@ -25,4 +25,7 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^35.9.3" | ||
"victory-core": "^35.10.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.6.0 || ^17.0.0" | ||
}, | ||
"scripts": { | ||
@@ -29,0 +32,0 @@ "version": "nps build-libs && nps build-dists" |
@@ -11,3 +11,3 @@ import { assign, isNil } from "lodash"; | ||
const getDataWithBaseline = (props, scale) => { | ||
export const getDataWithBaseline = (props, scale) => { | ||
let data = Data.getData(props); | ||
@@ -68,3 +68,3 @@ if (data.length < 2) { | ||
const getBaseProps = (props, fallbackProps) => { | ||
export const getBaseProps = (props, fallbackProps) => { | ||
const modifiedProps = Helpers.modifyProps(props, fallbackProps, "area"); | ||
@@ -135,3 +135,1 @@ props = assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
}; | ||
export { getBaseProps, getDataWithBaseline }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1239862
5
22502
8
4
Updatedvictory-core@^35.10.0