victory-line
Advanced tools
Comparing version 37.0.1 to 37.0.2
# victory-line | ||
## 37.0.2 | ||
### Patch Changes | ||
- Ensure undefined props do not overwrite defaults ([#2852](https://github.com/FormidableLabs/victory/pull/2852)) | ||
## 37.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -0,1 +1,2 @@ | ||
import _defaults from "lodash/defaults"; | ||
/* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ | ||
@@ -33,6 +34,3 @@ import React from "react"; | ||
export const Curve = initialProps => { | ||
const props = evaluateProps({ | ||
...defaultProps, | ||
...initialProps | ||
}); | ||
const props = evaluateProps(_defaults({}, initialProps, defaultProps)); | ||
const userProps = UserProps.getSafeUserProps(props); | ||
@@ -39,0 +37,0 @@ const { |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.Curve = void 0; | ||
var _defaults2 = _interopRequireDefault(require("lodash/defaults")); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -42,6 +43,3 @@ var _victoryCore = require("victory-core"); | ||
const Curve = initialProps => { | ||
const props = evaluateProps({ | ||
...defaultProps, | ||
...initialProps | ||
}); | ||
const props = evaluateProps((0, _defaults2.default)({}, initialProps, defaultProps)); | ||
const userProps = _victoryCore.UserProps.getSafeUserProps(props); | ||
@@ -48,0 +46,0 @@ const { |
{ | ||
"name": "victory-line", | ||
"version": "37.0.1", | ||
"version": "37.0.2", | ||
"description": "Line Component for Victory", | ||
@@ -24,4 +24,4 @@ "keywords": [ | ||
"lodash": "^4.17.19", | ||
"victory-core": "^37.0.1", | ||
"victory-vendor": "^37.0.1" | ||
"victory-core": "^37.0.2", | ||
"victory-vendor": "^37.0.2" | ||
}, | ||
@@ -28,0 +28,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1166560
20066
Updatedvictory-core@^37.0.2
Updatedvictory-vendor@^37.0.2