@lufycz/sushi-data
Advanced tools
Comparing version 2.0.0-canary-24 to 2.0.0-canary-25
@@ -78,3 +78,3 @@ "use strict"; | ||
.map(key => (Object.assign(Object.assign({}, result[key]), { timestamp: Number(key.split("timestamp")[1]) }))) | ||
.sort((a, b) => (a.timestamp) - (b.timestamp)) | ||
.sort((a, b) => (b.timestamp) - (a.timestamp)) | ||
.filter(e => Object.keys(e).length > 1); | ||
@@ -81,0 +81,0 @@ return pair_callbackChart(result).slice(undefined, max); |
@@ -56,3 +56,3 @@ "use strict"; | ||
.map(key => ({ priceUSD: ethPrice_callback(result[key]), timestamp: Number(key.split("timestamp")[1]) })) | ||
.sort((a, b) => a.timestamp - b.timestamp) | ||
.sort((a, b) => b.timestamp - a.timestamp) | ||
.filter(e => Object.keys(e).length > 1); // Filters empty results (1 because there will always be a timestamp present) | ||
@@ -59,0 +59,0 @@ return ethPriceChart_callback(result).slice(1).slice(undefined, max); |
@@ -79,3 +79,3 @@ "use strict"; | ||
.map(key => (Object.assign(Object.assign({}, factory_callback(result[key][0])), { timestamp: Number(key.split("timestamp")[1]) }))) | ||
.sort((a, b) => (a.timestamp) - (b.timestamp)) | ||
.sort((a, b) => (b.timestamp) - (a.timestamp)) | ||
.filter(e => Object.keys(e).length > 1); // Filters empty results (1 because there will always be a timestamp present) | ||
@@ -82,0 +82,0 @@ return factoryChart_callback(result).slice(2).slice(undefined, max); |
@@ -95,3 +95,3 @@ "use strict"; | ||
.map(key => (Object.assign(Object.assign({}, pair_callback([result[key]])[0]), { timestamp: Number(key.split("timestamp")[1]) }))) | ||
.sort((a, b) => (a.timestamp) - (b.timestamp)) | ||
.sort((a, b) => (b.timestamp) - (a.timestamp)) | ||
.filter(e => Object.keys(e).length > 1); // Filters empty results (1 because there will always be a timestamp present) | ||
@@ -98,0 +98,0 @@ return pairChart_callback(result, ethPrices).slice(2).slice(undefined, max); |
@@ -95,3 +95,3 @@ "use strict"; | ||
.map(key => (Object.assign(Object.assign({}, token_callback([result[key]])[0]), { timestamp: Number(key.split("timestamp")[1]) }))) | ||
.sort((a, b) => (a.timestamp) - (b.timestamp)) | ||
.sort((a, b) => (b.timestamp) - (a.timestamp)) | ||
.filter(e => Object.keys(e).length > 1); // Filters empty results (1 because there will always be a timestamp present) | ||
@@ -98,0 +98,0 @@ return tokenChart_callback(result, ethPrices).slice(2).slice(undefined, max); |
{ | ||
"name": "@lufycz/sushi-data", | ||
"name": "@sushiswap/sushi-data", | ||
"license": "MIT", | ||
"version": "2.0.0-canary-24", | ||
"version": "2.0.0", | ||
"author": "SushiSwap", | ||
@@ -6,0 +6,0 @@ "main": "dist/index", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 2 instances in 1 package
264210
2