New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aurox/ohlcv-helpers

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurox/ohlcv-helpers - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

1

dist/OHLCVLiveAggregator.d.ts

@@ -32,2 +32,3 @@ import { OHLCVTimeUnit, OHLCVDataItem } from './types';

private applyItem;
resetHistory: () => void;
setHistory: (history: OHLCVDataItem[]) => void;

@@ -34,0 +35,0 @@ applyUpdate: (update: OHLCVDataItem) => {

@@ -15,2 +15,8 @@ "use strict";

this.data = new avl_1.default(undefined, true);
this.resetHistory = () => {
if (!this.enableHistory) {
throw new Error('History is disabled');
}
this.historyLoaded = false;
};
this.setHistory = (history) => {

@@ -21,5 +27,6 @@ if (!this.enableHistory) {

if (this.historyLoaded) {
throw new Error('History cannot be loaded more than once');
throw new Error('History cannot be loaded more than once, to reset the history first call resetHistory then setHistory');
}
this.historyLoaded = true;
this.data.clear();
for (const historyItem of history) {

@@ -26,0 +33,0 @@ this.applyItem(historyItem);

2

package.json
{
"name": "@aurox/ohlcv-helpers",
"version": "0.5.0",
"version": "0.5.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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