cryptomarket
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -345,3 +345,5 @@ /* eslint-disable no-param-reassign */ | ||
const cleanResult = _.mapValues(result, (obj) => { | ||
const cloneResult = this._deepClone(result); | ||
const cleanResult = _.mapValues(cloneResult, (obj) => { | ||
if (_.has(obj, '1')) { | ||
@@ -360,3 +362,3 @@ obj.buy = obj['1']; | ||
this.eventBus.emit('candles', null, this._deepClone(cleanResult)); | ||
this.eventBus.emit('candles', null, cleanResult); | ||
}); | ||
@@ -388,3 +390,5 @@ | ||
const cleanResult = _.mapValues(result, (obj) => { | ||
const cloneResult = this._deepClone(result); | ||
const cleanResult = _.mapValues(cloneResult, (obj) => { | ||
if (_.has(obj, '1')) { | ||
@@ -403,3 +407,3 @@ obj.buy = obj['1']; | ||
this.eventBus.emit('candles', null, this._deepClone(cleanResult)); | ||
this.eventBus.emit('candles', null, cleanResult); | ||
} else { | ||
@@ -406,0 +410,0 @@ this.socketClient.emit('candles', { |
{ | ||
"name": "cryptomarket", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The CryptoMarket for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.cryptomkt.com", |
@@ -28,5 +28,3 @@ # cryptomkt-node | ||
**Using the functions** | ||
Client functions returns Promises(ECMAScript 2015), these functions can be called by three different ways: Then method, Await operator or a Callback function. | ||
***Example*** | ||
```javascript | ||
@@ -82,3 +80,2 @@ async function example(){ | ||
**Listing available markets** | ||
```javascript | ||
@@ -85,0 +82,0 @@ var { Client } = require('cryptomarket'); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
976
1
57619
795