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

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

6

dist/websocket.js

@@ -311,3 +311,3 @@ 'use strict';

return function (msg) {
var _JSON$parse5 = JSON.parse(msg),
var _JSON$parse5 = JSON.parse(msg.data),
type = _JSON$parse5.e,

@@ -338,4 +338,4 @@ rest = _objectWithoutProperties(_JSON$parse5, ['e']);

var w = (0, _openWebsocket2.default)(BASE + '/' + listenKey);
w.onmessage = function () {
return userEventHandler(cb);
w.onmessage = function (msg) {
return userEventHandler(cb)(msg);
};

@@ -342,0 +342,0 @@

{
"name": "binance-api-node",
"version": "0.7.2",
"version": "0.7.3",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

@@ -243,3 +243,3 @@ import zip from 'lodash.zipobject'

export const userEventHandler = cb => msg => {
const { e: type, ...rest } = JSON.parse(msg)
const { e: type, ...rest } = JSON.parse(msg.data)
cb(userTransforms[type] ? userTransforms[type](rest) : { type, ...rest })

@@ -255,3 +255,3 @@ }

const w = openWebSocket(`${BASE}/${listenKey}`)
w.onmessage = () => (userEventHandler(cb))
w.onmessage = (msg) => (userEventHandler(cb)(msg))

@@ -258,0 +258,0 @@ const int = setInterval(keepStreamAlive(keepDataStream, listenKey), 50e3)

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