New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

bitfinex-api-node

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitfinex-api-node - npm Package Compare versions

Comparing version
5.0.0
to
5.0.1
+2
-1
lib/ws2_manager.js

@@ -204,6 +204,7 @@ 'use strict'

if (_isFinite(dms)) this._authArgs.dms = dms
if (apiKey) this._authArgs.apiKey = apiKey
if (apiSecret) this._authArgs.apiSecret = apiSecret
this._sockets.forEach(s => {
if (!s.ws.isAuthenticated()) {
s.ws.setAPICredentials(apiKey, apiSecret)
s.ws.updateAuthArgs(this._authArgs)

@@ -210,0 +211,0 @@ s.ws.auth()

{
"name": "bitfinex-api-node",
"version": "5.0.0",
"version": "5.0.1",
"description": "Node reference library for Bitfinex API",

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

@@ -108,5 +108,5 @@ /* eslint-env mocha */

assert.strictEqual(ws1._apiKey, 'k')
assert.strictEqual(ws2._apiKey, 'k')
assert.strictEqual(ws2._authArgs.apiKey, 'k')
assert.strictEqual(ws1._apiSecret, 's')
assert.strictEqual(ws2._apiSecret, 's')
assert.strictEqual(ws2._authArgs.apiSecret, 's')
assert.strictEqual(ws1._url, 'wss://')

@@ -113,0 +113,0 @@ assert.strictEqual(ws2._url, 'wss://')

@@ -192,4 +192,3 @@ /* eslint-env mocha */

isAuthenticated: () => false,
setAPICredentials: (key, secret) => { cred = `${key}:${secret}` },
updateAuthArgs: () => {},
updateAuthArgs: ({ apiKey: key, apiSecret: secret }) => { cred = `${key}:${secret}` },
auth: () => {

@@ -289,4 +288,4 @@ assert.strictEqual(cred, '41:42')

ws.auth = async () => {
assert.strictEqual(ws._apiKey, 'key', 'api key not set')
assert.strictEqual(ws._apiSecret, 'secret', 'api secret not set')
assert.strictEqual(ws._authArgs.apiKey, 'key', 'api key not set')
assert.strictEqual(ws._authArgs.apiSecret, 'secret', 'api secret not set')

@@ -293,0 +292,0 @@ await ws.close()

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display