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

@orbis-systems/orbis-chart-react

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orbis-systems/orbis-chart-react - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

dist/public/charting/charting_library.min.js

27

dist/index.js

@@ -0,3 +1,3 @@

import isEqual from 'lodash.isequal';
import React from 'react';
import isEqual from 'lodash.isequal';

@@ -50,9 +50,28 @@ const SCRIPT_ID = 'orbis-chart-script';

this.initWidget = () => {
var _a, _b;
if (typeof TradingView === 'undefined' || !document.getElementById(this.containerId)) {
return;
}
const { apiUrl = 'https://charts.orbis.dev/api/', quoteType = 'delayed', token, env, updateInterval = 2000, chartConfig, } = this.props;
new TradingView.widget(Object.assign(Object.assign({ locale: 'en', interval: 'D', library_path: '/charting/' }, chartConfig), { container_id: this.containerId, datafeed: token
const { apiUrl = 'https://charts.orbis.dev/api/', quoteType = 'delayed', token, env, updateInterval = 2000, chartConfig: customChartConfig, mutualFund } = this.props;
const chartConfig = Object.assign(Object.assign({ locale: 'en', interval: '1', timeframe: '1D', library_path: '/charting/' }, customChartConfig), { disabled_features: ['header_symbol_search', ...(customChartConfig.disabled_features || [])], container_id: this.containerId, datafeed: token
? new OrbisDatafeed(apiUrl, updateInterval, quoteType, 'sessionid', token, env)
: new OrbisDatafeed(apiUrl, updateInterval, quoteType) }));
: new OrbisDatafeed(apiUrl, updateInterval, quoteType) });
if (mutualFund) {
chartConfig.interval = '1';
(_a = chartConfig.disabled_features) === null || _a === void 0 ? void 0 : _a.push('header_indicators');
(_b = chartConfig.disabled_features) === null || _b === void 0 ? void 0 : _b.push('left_toolbar');
chartConfig.custom_css_url = '/charting/static/mutualFund.css';
chartConfig.overrides = {
"mainSeriesProperties.style": 2,
};
// Reset style setting
if (localStorage) {
const key = 'tradingview.chartproperties.mainSeriesProperties';
const json = localStorage.getItem(key);
const mainSeriesProperties = JSON.parse(json || '{}');
delete mainSeriesProperties.style;
localStorage.setItem(key, JSON.stringify(mainSeriesProperties));
}
}
new TradingView.widget(chartConfig);
};

@@ -59,0 +78,0 @@ this.cleanupWidget = () => {

@@ -7,2 +7,3 @@ import React from 'react';

quoteType?: 'delayed' | 'realtime';
mutualFund?: boolean;
token?: string;

@@ -9,0 +10,0 @@ env?: string;

5

package.json
{
"name": "@orbis-systems/orbis-chart-react",
"version": "0.0.11",
"version": "0.0.12",
"description": "",

@@ -11,3 +11,3 @@ "main": "dist/index.js",

"scripts": {
"build": "npm run clean && rollup -c",
"build": "npm run clean && copyfiles --all public/**/* dist && rollup -c",
"start": "npm run storybook",

@@ -48,2 +48,3 @@ "prepare": "npm run build",

"babel-loader": "^8.1.0",
"copyfiles": "^2.4.1",
"react": "^16.13.1",

@@ -50,0 +51,0 @@ "react-docgen-typescript-loader": "^3.7.2",

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