tardis-dev
Advanced tools
Comparing version 10.0.5 to 10.0.6
@@ -7,3 +7,3 @@ "use strict"; | ||
canHandle(message) { | ||
return message.feed === 'trade'; | ||
return message.feed === 'trade' && message.event === undefined; | ||
}, | ||
@@ -37,3 +37,3 @@ getFilters(symbols) { | ||
canHandle(message) { | ||
return message.feed === 'book' || message.feed === 'book_snapshot'; | ||
return message.event === undefined && (message.feed === 'book' || message.feed === 'book_snapshot'); | ||
}, | ||
@@ -91,3 +91,3 @@ getFilters(symbols) { | ||
canHandle(message) { | ||
return message.feed === 'ticker'; | ||
return message.feed === 'ticker' && message.event === undefined; | ||
} | ||
@@ -94,0 +94,0 @@ getFilters(symbols) { |
{ | ||
"name": "tardis-dev", | ||
"version": "10.0.5", | ||
"version": "10.0.6", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -8,3 +8,3 @@ import { BookChange, DerivativeTicker, Trade } from '../types' | ||
canHandle(message: CryptofacilitiesTrade | CryptofacilitiesTicker | CryptofacilitiesBookSnapshot | CryptofacilitiesBookUpdate) { | ||
return message.feed === 'trade' | ||
return message.feed === 'trade' && message.event === undefined | ||
}, | ||
@@ -42,3 +42,3 @@ | ||
canHandle(message: CryptofacilitiesTrade | CryptofacilitiesTicker | CryptofacilitiesBookSnapshot | CryptofacilitiesBookUpdate) { | ||
return message.feed === 'book' || message.feed === 'book_snapshot' | ||
return message.event === undefined && (message.feed === 'book' || message.feed === 'book_snapshot') | ||
}, | ||
@@ -97,3 +97,3 @@ | ||
canHandle(message: CryptofacilitiesTrade | CryptofacilitiesTicker | CryptofacilitiesBookSnapshot | CryptofacilitiesBookUpdate) { | ||
return message.feed === 'ticker' | ||
return message.feed === 'ticker' && message.event === undefined | ||
} | ||
@@ -100,0 +100,0 @@ |
Sorry, the diff of this file is not supported yet
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
650565