victory-histogram 36.8.4 → 36.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import _isNil from "lodash/isNil";
2
- import _assign from "lodash/assign";
3
2
 
4
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
4
 
@@ -210,9 +209,7 @@ var getCalculatedValues = function (props) {
210
209
 
211
210
  export var getBaseProps = function (initialProps, fallbackProps) {
212
211
  var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "histogram");
213
-
214
- var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps));
215
-
212
+ var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
216
213
  var binSpacing = props.binSpacing,
217
214
  cornerRadius = props.cornerRadius,
218
215
  data = props.data,
@@ -7,8 +7,6 @@ exports.getFormattedData = exports.getDomain = exports.getData = exports.getBase
7
7
 
8
8
  var _isNil2 = _interopRequireDefault(require("lodash/isNil"));
9
9
 
10
- var _assign2 = _interopRequireDefault(require("lodash/assign"));
11
-
12
10
  var _victoryCore = require("victory-core");
13
11
 
14
12
  var _victoryBar = require("victory-bar");
@@ -242,7 +240,7 @@ var getCalculatedValues = function (props) {
242
240
  var getBaseProps = function (initialProps, fallbackProps) {
243
241
  var modifiedProps = _victoryCore.Helpers.modifyProps(initialProps, fallbackProps, "histogram");
244
242
 
245
- var props = (0, _assign2.default)({}, modifiedProps, getCalculatedValues(modifiedProps));
243
+ var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
246
244
  var binSpacing = props.binSpacing,
247
245
  cornerRadius = props.cornerRadius,
248
246
  data = props.data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-histogram",
3
- "version": "36.8.4",
3
+ "version": "36.8.5",
4
4
  "description": "Histogram Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -23,9 +23,9 @@
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.8.1",
25
25
  "react-fast-compare": "^3.2.0",
26
- "victory-bar": "^36.8.4",
27
- "victory-core": "^36.8.4",
28
- "victory-vendor": "^36.8.4"
26
+ "victory-bar": "^36.8.5",
27
+ "victory-core": "^36.8.5",
28
+ "victory-vendor": "^36.8.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "victory-histogram": "*"
@@ -1,4 +1,4 @@
1
- import { assign, isNil } from "lodash";
1
+ import { isNil } from "lodash";
2
2
  import { Helpers, LabelHelpers, Data, Domain, Scale } from "victory-core";
3
3
  import { getBarPosition } from "victory-bar";
4
4
  import isEqual from "react-fast-compare";
@@ -187,7 +187,11 @@ export const getBaseProps = (initialProps, fallbackProps) => {
187
187
  fallbackProps,
188
188
  "histogram",
189
189
  );
190
- const props = assign({}, modifiedProps, getCalculatedValues(modifiedProps));
190
+ const props = Object.assign(
191
+ {},
192
+ modifiedProps,
193
+ getCalculatedValues(modifiedProps),
194
+ );
191
195
 
192
196
  const {
193
197
  binSpacing,