Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-legend

Package Overview
Dependencies
Maintainers
16
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-legend - npm Package Compare versions

Comparing version 36.8.4 to 36.8.5-next.0

9

CHANGELOG.md
# victory-legend
## 36.8.5-next.0
### Patch Changes
- c8c2eb2f5: Replace instances of lodash.assign with Object.assign
- Updated dependencies [c8c2eb2f5]
- Updated dependencies [0f3abe234]
- victory-core@36.8.5-next.0
## 36.8.4

@@ -4,0 +13,0 @@

0

es/helper-methods.d.ts

@@ -0,0 +0,0 @@ export declare const getDimensions: (initialProps: any, fallbackProps: any) => {

13

es/helper-methods.js

@@ -6,3 +6,2 @@ import _isNil from "lodash/isNil";

import _groupBy from "lodash/groupBy";
import _assign from "lodash/assign";
import _defaults from "lodash/defaults";

@@ -75,3 +74,3 @@

});
return _assign({}, props, {
return Object.assign({}, props, {
style: style,

@@ -256,3 +255,3 @@ isHorizontal: isHorizontal,

width: width,
style: _assign({
style: Object.assign({
fill: "none"

@@ -265,5 +264,3 @@ }, style.border)

var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "legend");
var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var title = props.title,

@@ -285,5 +282,3 @@ titleOrientation = props.titleOrientation;

var modifiedProps = Helpers.modifyProps(initialProps, fallbackProps, "legend");
var props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var data = props.data,

@@ -290,0 +285,0 @@ standalone = props.standalone,

export * from "./victory-legend";
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ import React from "react";

@@ -0,0 +0,0 @@ export declare const getDimensions: (initialProps: any, fallbackProps: any) => {

@@ -18,4 +18,2 @@ "use strict";

var _assign2 = _interopRequireDefault(require("lodash/assign"));
var _defaults2 = _interopRequireDefault(require("lodash/defaults"));

@@ -91,3 +89,3 @@

return (0, _assign2.default)({}, props, {
return Object.assign({}, props, {
style: style,

@@ -269,3 +267,3 @@ isHorizontal: isHorizontal,

width: width,
style: (0, _assign2.default)({
style: Object.assign({
fill: "none"

@@ -279,3 +277,3 @@ }, style.border)

var props = (0, _assign2.default)({}, modifiedProps, getCalculatedValues(modifiedProps));
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var title = props.title,

@@ -301,3 +299,3 @@ titleOrientation = props.titleOrientation;

var props = (0, _assign2.default)({}, modifiedProps, getCalculatedValues(modifiedProps));
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
var data = props.data,

@@ -304,0 +302,0 @@ standalone = props.standalone,

export * from "./victory-legend";
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ import React from "react";

{
"name": "victory-legend",
"version": "36.8.4",
"version": "36.8.5-next.0",
"description": "Legend Component for Victory",

@@ -25,3 +25,3 @@ "keywords": [

"prop-types": "^15.8.1",
"victory-core": "^36.8.4"
"victory-core": "^36.8.5-next.0"
},

@@ -32,6 +32,6 @@ "peerDependencies": {

"devDependencies": {
"victory-legend": "*"
"victory-legend": "36.8.5-next.0"
},
"publishConfig": {
"provenance": true
"provenance": false
},

@@ -38,0 +38,0 @@ "wireit": {

@@ -1,2 +0,2 @@

import { defaults, assign, groupBy, keys, sum, range, isNil } from "lodash";
import { defaults, groupBy, keys, sum, range, isNil } from "lodash";
import { Helpers, Style, TextSize } from "victory-core";

@@ -40,3 +40,8 @@ import { VictoryLegendProps } from "./victory-legend";

const borderPadding = Helpers.getPadding({ padding: props.borderPadding });
return assign({}, props, { style, isHorizontal, colorScale, borderPadding });
return Object.assign({}, props, {
style,
isHorizontal,
colorScale,
borderPadding,
});
};

@@ -200,3 +205,9 @@

const width = (contentWidth || 0) + borderPadding.left + borderPadding.right;
return { x, y, height, width, style: assign({ fill: "none" }, style.border) };
return {
x,
y,
height,
width,
style: Object.assign({ fill: "none" }, style.border),
};
};

@@ -210,3 +221,7 @@

);
const props = assign({}, modifiedProps, getCalculatedValues(modifiedProps));
const props = Object.assign(
{},
modifiedProps,
getCalculatedValues(modifiedProps),
);
const { title, titleOrientation } = props;

@@ -238,3 +253,7 @@ const groupedData = groupData(props);

);
const props = assign({}, modifiedProps, getCalculatedValues(modifiedProps));
const props = Object.assign(
{},
modifiedProps,
getCalculatedValues(modifiedProps),
);
const {

@@ -241,0 +260,0 @@ data,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc