coinbase-pro-node
Advanced tools
Comparing version 2.13.1 to 2.13.2
@@ -238,3 +238,5 @@ "use strict"; | ||
}); | ||
const matches = candles.filter(candle => candle.openTimeInISO === expectedTimestampISO); | ||
// Also handles the case when candles are skipped by the exchange | ||
// @see https://github.com/bennycode/coinbase-pro-node/issues/306 | ||
const matches = candles.filter(candle => candle.openTimeInMillis >= new Date(expectedTimestampISO).getTime()); | ||
if (matches.length > 0) { | ||
@@ -241,0 +243,0 @@ const matchedCandle = matches[0]; |
@@ -14,12 +14,12 @@ { | ||
"utf-8-validate": "5.0.3", | ||
"ws": "7.3.1" | ||
"ws": "7.4.0" | ||
}, | ||
"description": "Coinbase Pro API for Node.js, written in TypeScript and covered by tests.", | ||
"devDependencies": { | ||
"@types/jasmine": "3.6.0", | ||
"@typescript-eslint/eslint-plugin": "4.6.0", | ||
"@typescript-eslint/parser": "4.6.0", | ||
"@types/jasmine": "3.6.1", | ||
"@typescript-eslint/eslint-plugin": "4.6.1", | ||
"@typescript-eslint/parser": "4.6.1", | ||
"cross-env": "7.0.2", | ||
"dotenv-defaults": "2.0.1", | ||
"eslint": "7.12.1", | ||
"eslint": "7.13.0", | ||
"eslint-config-prettier": "6.15.0", | ||
@@ -106,3 +106,3 @@ "eslint-plugin-prettier": "3.1.4", | ||
}, | ||
"version": "2.13.1" | ||
"version": "2.13.2" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
406980
4871
0