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

bfx-api-node-plugin-managed-ob

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfx-api-node-plugin-managed-ob - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

13

lib/data/book.js

@@ -20,10 +20,9 @@ 'use strict'

const raw = chanFilter.prec[0] === 'R'
const nextBook = books[key]
? books[key]
: new OrderBook(original, raw)
const nextBook = books[key] || new OrderBook([], raw)
const isSnapshot = Array.isArray(original[0])
if (books[key]) {
const entries = !original.length || Array.isArray(original[0]) ? original : [original]
entries.forEach(entry => nextBook.updateWith(entry))
if (isSnapshot) {
nextBook.updateFromSnapshot(original)
} else {
nextBook.updateWith(original)
}

@@ -30,0 +29,0 @@

{
"name": "bfx-api-node-plugin-managed-ob",
"version": "1.0.3",
"version": "1.0.4",
"description": "Maintains complete local order books for the Bitfinex Node API",

@@ -5,0 +5,0 @@ "engines": {

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