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

@binary-com/smartcharts

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binary-com/smartcharts - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

10

app/connection/ConnectionManager.js

@@ -66,6 +66,8 @@ import EventEmitter from 'event-emitter-es6';

.catch(() => {
console.error('Server unresponsive. Creating new connection...');
// Reset connection if ping gets no pong from server
this._websocket.close();
this._initialize();
if (this._websocket.readyState === WebSocket.OPEN) {
console.error('Server unresponsive. Creating new connection...');
// Reset connection if ping gets no pong from server
this._websocket.close();
this._initialize();
}
});

@@ -72,0 +74,0 @@ }

3

app/index.jsx

@@ -76,3 +76,2 @@ import { // eslint-disable-line import/no-extraneous-dependencies,import/no-unresolved

const requestForget = streamManager.forget.bind(streamManager);
const shareOrigin = window.location.href.split('?')[0];

@@ -130,3 +129,2 @@

<SmartChart
onSymbolChange={symbol => this.symbolChange(symbol)}
onMessage={e => this.notifier.notify(e)}

@@ -140,3 +138,2 @@ isMobile={CIQ.isMobile}

requestForget={requestForget}
shareOrigin={shareOrigin}
settings={settings}

@@ -143,0 +140,0 @@ onSettingsChange={this.saveSettings}

@@ -62,3 +62,2 @@ import { configure } from 'mobx';

const requestForget = streamManager.forget.bind(streamManager);
const shareOrigin = window.location.href.split('?')[0];

@@ -75,2 +74,5 @@ class App extends React.Component {

onColorChange =(evt) => {
this.setState({ shadeColor: evt.target.value });
}

@@ -100,6 +102,6 @@ onHighLowChange = (evt) => {

render() {
const { barrierType, highLow : { high, low }, hidePriceLines, draggable, relative } = this.state;
const { barrierType, highLow : { high, low }, hidePriceLines, draggable, relative, shadeColor } = this.state;
const barriers = barrierType ? [{
shade: barrierType,
shadeColor: 'red',
shadeColor,
color: '#f44336',

@@ -124,3 +126,2 @@ onChange: this.handleBarrierChange,

requestForget={requestForget}
shareOrigin={shareOrigin}
barriers={barriers}

@@ -141,2 +142,12 @@ />

</select>
Choose barrier bg color:&nbsp;
<select defaultValue="" id="barrierBGColor" onChange={this.onColorChange}>
<option value="GREEN">GREEN</option>
<option value="RED">RED</option>
<option value="YELLOW">YELLOW</option>
<option value="ORANGERED">ORANGERED</option>
<option value="PURPLE">PURPLE</option>
<option value="BLUE">BLUE</option>
<option value="DEEPPINK">DEEPPINK</option>
</select>
&nbsp;

@@ -143,0 +154,0 @@ <b>low:</b> <input id="low" type="number" value={low === undefined ? '' : low} onChange={this.onHighLowChange} />,

{
"name": "@binary-com/smartcharts",
"version": "0.2.5",
"version": "0.2.6",
"main": "dist/smartcharts.js",

@@ -81,4 +81,4 @@ "author": "amin@binary.com",

"mkdirp": "^0.5.1",
"mobx": "^4.2.0",
"mobx-react": "^5.1.2",
"mobx": "^5.0.3",
"mobx-react": "^5.2.3",
"mocha": "^5.2.0",

@@ -120,3 +120,3 @@ "node-sass": "^4.7.2",

"babel-polyfill": "^6.26.0",
"mobx": "^4.2.0",
"mobx": "^5.0.3",
"mobx-react": "^5.1.2",

@@ -123,0 +123,0 @@ "react": "^16.2.0",

@@ -96,3 +96,2 @@ # SmartCharts

isMobile | Switch between mobile or desktop view. Defaults to `false`.
shareOrigin | Sets the origin of the generated share link. Defaults to `https://charts.binary.com`.
onSettingsChange | Callback that will be fired each time a setting is changed.

@@ -134,3 +133,3 @@ settings | Sets the chart settings. Refer to [Chart Settings](#chart-settings)

--------|--------------
shadeColor | Barrier shade color; choose between `green` and `red`. Defaults to `green`.
shadeColor | Barrier shade color. Defaults to `green`.
color | Price line color. Defaults to `#000`.

@@ -137,0 +136,0 @@ shade | Shade type; choose between `NONE_SINGLE`, `NONE_DOUBLE`, `ABOVE`, `BELOW`, `OUTSIDE` or `BETWEEN`. Defaults to `NONE_SINGLE`.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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