Skip to content

Commit

Permalink
Merge pull request #14 from bhoomij/dep-audit
Browse files Browse the repository at this point in the history
(chore) bump react-scripts to fix security issues
  • Loading branch information
robertkowalski authored May 17, 2021
2 parents ace6495 + 75e242f commit d829baa
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended"
]
],
"rules": {
"react/prop-types": "warn"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^16.12.0",
"react-onclickoutside": "^6.9.0",
"react-scripts": "3.4.1"
"react-scripts": "4.0.3"
},
"scripts": {
"cra-build": "react-scripts build",
Expand Down Expand Up @@ -66,7 +66,7 @@
"babel-core": "^6.26.3",
"babel-eslint": "^10.1.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"eslint": "^6.7.2",
"eslint": "^7.11.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
Expand Down
10 changes: 5 additions & 5 deletions src/components/Chart/lib/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default class BitfinexTradingChart {

const v = ind.v()
let nullP = 0

if (indicatorInstances[j][1].ui.lines) {
nullP = {}
indicatorInstances[j][1].ui.lines.forEach(key => nullP[key] = 0)
Expand Down Expand Up @@ -342,7 +342,7 @@ export default class BitfinexTradingChart {
}
}

renderBBandsIndicator (indicator, data, slot) {
renderBBandsIndicator (indicator, data) {
const colors = indicator[2]
const candlesToRender = this.getCandlesInView()
const vpHeight = this.getOHLCVPHeight()
Expand Down Expand Up @@ -525,7 +525,7 @@ export default class BitfinexTradingChart {
}
}

renderOverlayLineIndicator (indicator, data, slot) {
renderOverlayLineIndicator (indicator, data) {
const color = indicator[2][0]
const candlesToRender = this.getCandlesInView()
const vpHeight = this.getOHLCVPHeight()
Expand All @@ -548,7 +548,7 @@ export default class BitfinexTradingChart {
drawLine(this.ohlcCanvas, color, linePoints)
}

renderOverlayLinesIndicator (indicator, data, slot) {
renderOverlayLinesIndicator (indicator, data) {
const colors = indicator[2]
const candlesToRender = this.getCandlesInView()
const vpHeight = this.getOHLCVPHeight()
Expand Down Expand Up @@ -891,7 +891,7 @@ export default class BitfinexTradingChart {
this.isDragging = false
}

onMouseUp (e) {
onMouseUp () {
this.isDragging = false
this.dragStart = null

Expand Down
2 changes: 1 addition & 1 deletion src/components/Chart/lib/drawings/drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class Drawing {
this.anchors.forEach(a => a.moving = false)
}

onMouseDown (x, y) {
onMouseDown () {
let hasMovingAnchor = false

this.anchors.forEach((a) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class IndicatorSettingsModal extends React.PureComponent {

<ul className='bfxc__indicatorsettingsmodal-settings'>
{args.map((arg, i) => (
<li>
<li key={i}>
<p>{argsDef[i].label}</p>

<input
Expand Down

0 comments on commit d829baa

Please sign in to comment.