tardis-dev
Advanced tools
Comparing version 10.1.12 to 10.1.13
@@ -28,2 +28,5 @@ "use strict"; | ||
const isRealTime = (date) => { | ||
if (process.env.__NO_REAL_TIME__) { | ||
return false; | ||
} | ||
return date.valueOf() + THREE_MINUTES_IN_MS > new Date().valueOf(); | ||
@@ -70,3 +73,3 @@ }; | ||
'binance-futures': (localTimestamp) => new binance_1.BinanceFuturesBookChangeMapper('binance-futures', isRealTime(localTimestamp) === false), | ||
'binance-delivery': () => new binance_1.BinanceFuturesBookChangeMapper('binance-delivery', false), | ||
'binance-delivery': (localTimestamp) => new binance_1.BinanceFuturesBookChangeMapper('binance-delivery', isRealTime(localTimestamp) === false), | ||
'binance-dex': () => binancedex_1.binanceDexBookChangeMapper, | ||
@@ -73,0 +76,0 @@ bitfinex: () => new bitfinex_1.BitfinexBookChangeMapper('bitfinex'), |
{ | ||
"name": "tardis-dev", | ||
"version": "10.1.12", | ||
"version": "10.1.13", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -33,2 +33,5 @@ import { ONE_SEC_IN_MS } from '../handy' | ||
const isRealTime = (date: Date) => { | ||
if (process.env.__NO_REAL_TIME__) { | ||
return false | ||
} | ||
return date.valueOf() + THREE_MINUTES_IN_MS > new Date().valueOf() | ||
@@ -77,3 +80,4 @@ } | ||
'binance-futures': (localTimestamp: Date) => new BinanceFuturesBookChangeMapper('binance-futures', isRealTime(localTimestamp) === false), | ||
'binance-delivery': () => new BinanceFuturesBookChangeMapper('binance-delivery', false), | ||
'binance-delivery': (localTimestamp: Date) => | ||
new BinanceFuturesBookChangeMapper('binance-delivery', isRealTime(localTimestamp) === false), | ||
'binance-dex': () => binanceDexBookChangeMapper, | ||
@@ -80,0 +84,0 @@ bitfinex: () => new BitfinexBookChangeMapper('bitfinex'), |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
771164
13745
6