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

victory-bar

Package Overview
Dependencies
Maintainers
19
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-bar - npm Package Compare versions

Comparing version 37.3.1 to 37.3.2

2

CHANGELOG.md
# victory-bar
## 37.3.2
## 37.3.1

@@ -4,0 +6,0 @@

4

es/bar.js

@@ -46,5 +46,5 @@ import _defaults from "lodash/defaults";

};
export const Bar = /*#__PURE__*/forwardRef(
// eslint-disable-next-line prefer-arrow-callback
export const Bar = /*#__PURE__*/forwardRef(function Bar(initialProps, ref) {
function Bar(initialProps, ref) {
const props = evaluateProps(_defaults({}, initialProps, defaultProps));

@@ -51,0 +51,0 @@ const {

@@ -65,3 +65,2 @@ /**

intersection(circle1) {
// eslint-disable-line max-statements
const P0 = this.center;

@@ -68,0 +67,0 @@ const P1 = circle1.center;

@@ -110,4 +110,2 @@ import * as d3Shape from "victory-vendor/d3-shape";

} = position;
// eslint-disable-next-line max-statements, max-len
const getHalfPoints = side => {

@@ -196,4 +194,2 @@ const isLeft = side === "Left";

const x1 = position.x0 < position.x1 ? position.x1 : position.x0;
// eslint-disable-next-line max-statements, max-len
const getHalfPoints = side => {

@@ -278,4 +274,2 @@ const isTop = side === "top";

};
// eslint-disable-next-line max-params
export const getVerticalBarPath = (props, width, cornerRadius) => {

@@ -288,4 +282,2 @@ const position = getPosition(props, width);

};
// eslint-disable-next-line max-params
export const getHorizontalBarPath = (props, width, cornerRadius) => {

@@ -348,4 +340,2 @@ const position = getPosition(props, width);

};
// eslint-disable-next-line max-statements
const getTopPath = () => {

@@ -393,4 +383,2 @@ const {

};
// eslint-disable-next-line max-statements
const getBottomPath = () => {

@@ -397,0 +385,0 @@ const {

@@ -115,3 +115,3 @@ import React from "react";

UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[];
getSharedEventState: (key: string, value: string) => unknown;

@@ -118,0 +118,0 @@ baseProps: Record<string, object>;

@@ -24,3 +24,3 @@ import React from "react";

// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type

@@ -27,0 +27,0 @@ /**

@@ -55,5 +55,5 @@ "use strict";

};
const Bar = exports.Bar = /*#__PURE__*/(0, _react.forwardRef)(
// eslint-disable-next-line prefer-arrow-callback
const Bar = exports.Bar = /*#__PURE__*/(0, _react.forwardRef)(function Bar(initialProps, ref) {
function Bar(initialProps, ref) {
const props = evaluateProps((0, _defaults2.default)({}, initialProps, defaultProps));

@@ -60,0 +60,0 @@ const {

@@ -72,3 +72,2 @@ "use strict";

intersection(circle1) {
// eslint-disable-line max-statements
const P0 = this.center;

@@ -75,0 +74,0 @@ const P1 = circle1.center;

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

} = position;
// eslint-disable-next-line max-statements, max-len
const getHalfPoints = side => {

@@ -205,4 +203,2 @@ const isLeft = side === "Left";

const x1 = position.x0 < position.x1 ? position.x1 : position.x0;
// eslint-disable-next-line max-statements, max-len
const getHalfPoints = side => {

@@ -287,4 +283,2 @@ const isTop = side === "top";

};
// eslint-disable-next-line max-params
const getVerticalBarPath = (props, width, cornerRadius) => {

@@ -297,4 +291,2 @@ const position = getPosition(props, width);

};
// eslint-disable-next-line max-params
exports.getVerticalBarPath = getVerticalBarPath;

@@ -359,4 +351,2 @@ const getHorizontalBarPath = (props, width, cornerRadius) => {

};
// eslint-disable-next-line max-statements
const getTopPath = () => {

@@ -404,4 +394,2 @@ const {

};
// eslint-disable-next-line max-statements
const getBottomPath = () => {

@@ -408,0 +396,0 @@ const {

@@ -115,3 +115,3 @@ import React from "react";

UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
componentEvents: import("@/victory-core/lib/victory-util/events").ComponentEvent[];
getSharedEventState: (key: string, value: string) => unknown;

@@ -118,0 +118,0 @@ baseProps: Record<string, object>;

@@ -31,3 +31,3 @@ "use strict";

// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type

@@ -34,0 +34,0 @@ /**

{
"name": "victory-bar",
"version": "37.3.1",
"version": "37.3.2",
"description": "Bar Component for Victory",

@@ -24,4 +24,4 @@ "keywords": [

"lodash": "^4.17.19",
"victory-core": "37.3.1",
"victory-vendor": "37.3.1"
"victory-core": "37.3.2",
"victory-vendor": "37.3.2"
},

@@ -221,7 +221,5 @@ "peerDependencies": {

"lint": {
"command": "nps lint:pkg",
"command": "eslint src",
"files": [
"src/**",
"../../.eslintignore",
"../../.eslintrc.js"
"src/**"
],

@@ -241,7 +239,5 @@ "output": [],

"lint:fix": {
"command": "pnpm run lint || nps lint:pkg:fix",
"command": "eslint --fix src",
"files": [
"src/**",
"../../.eslintignore",
"../../.eslintrc.js"
"src/**"
],

@@ -248,0 +244,0 @@ "output": [],

@@ -69,3 +69,2 @@ /**

intersection(circle1: { center: Center; radius: number }) {
// eslint-disable-line max-statements
const P0 = this.center;

@@ -72,0 +71,0 @@ const P1 = circle1.center;

@@ -122,3 +122,2 @@ import * as d3Shape from "victory-vendor/d3-shape";

// eslint-disable-next-line max-statements, max-len
const getHalfPoints = (side) => {

@@ -181,3 +180,2 @@ const isLeft = side === "Left";

// eslint-disable-next-line max-statements, max-len
const getHalfPoints = (side) => {

@@ -239,3 +237,2 @@ const isTop = side === "top";

// eslint-disable-next-line max-params
export const getVerticalBarPath = (props, width, cornerRadius) => {

@@ -250,3 +247,2 @@ const position = getPosition(props, width);

// eslint-disable-next-line max-params
export const getHorizontalBarPath = (props, width, cornerRadius) => {

@@ -317,3 +313,2 @@ const position = getPosition(props, width);

// eslint-disable-next-line max-statements
const getTopPath = () => {

@@ -368,3 +363,2 @@ const { topRight, topLeft } = cornerRadius;

// eslint-disable-next-line max-statements
const getBottomPath = () => {

@@ -371,0 +365,0 @@ const { bottomRight, bottomLeft } = cornerRadius;

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

Sorry, the diff of this file is not supported yet

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