binance-api-node
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -29,3 +29,3 @@ 'use strict'; | ||
var depth = function depth(payload, cb) { | ||
var cache = (Array.isArray(payload) ? payload : [payload]).forEach(function (symbol) { | ||
var cache = (Array.isArray(payload) ? payload : [payload]).map(function (symbol) { | ||
var w = new _ws2.default(BASE + '/' + symbol.toLowerCase() + '@depth'); | ||
@@ -54,2 +54,4 @@ w.on('message', function (msg) { | ||
}); | ||
return w; | ||
}); | ||
@@ -56,0 +58,0 @@ |
{ | ||
"name": "binance-api-node", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "A node API wrapper for Binance", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -9,3 +9,3 @@ import WebSocket from 'ws' | ||
const depth = (payload, cb) => { | ||
const cache = (Array.isArray(payload) ? payload : [payload]).forEach(symbol => { | ||
const cache = (Array.isArray(payload) ? payload : [payload]).map(symbol => { | ||
const w = new WebSocket(`${BASE}/${symbol.toLowerCase()}@depth`) | ||
@@ -31,2 +31,4 @@ w.on('message', msg => { | ||
}) | ||
return w | ||
}) | ||
@@ -33,0 +35,0 @@ |
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
227634
1727