bitmex-realtime-api
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -215,5 +215,5 @@ 'use strict'; | ||
const newData = deltaParser.onAction(action, table, symbol, client, data); | ||
// Truncate table to protect from unbounded memory growth | ||
// Shift oldest elements out of the table (FIFO queue) to prevent unbounded memory growth | ||
if (newData.length > client._maxTableLen) { | ||
newData.length = client._maxTableLen; | ||
newData.splice(0, newData.length - client._maxTableLen); | ||
} | ||
@@ -220,0 +220,0 @@ callback(newData, symbol, table); |
{ | ||
"name": "bitmex-realtime-api", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A library for interacting with BitMEX's websocket API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34786