backtest-kit 1.5.35 → 1.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -18521,7 +18521,7 @@ class CacheInstance {
|
|
|
18521
18521
|
if (cached) {
|
|
18522
18522
|
const stepMs = step * 60 * 1000;
|
|
18523
18523
|
const elapsed = currentWhen.getTime() - cached.when.getTime();
|
|
18524
|
-
if (elapsed < stepMs) {
|
|
18524
|
+
if (elapsed >= 0 && elapsed < stepMs) {
|
|
18525
18525
|
return cached;
|
|
18526
18526
|
}
|
|
18527
18527
|
}
|
package/build/index.mjs
CHANGED
|
@@ -18519,7 +18519,7 @@ class CacheInstance {
|
|
|
18519
18519
|
if (cached) {
|
|
18520
18520
|
const stepMs = step * 60 * 1000;
|
|
18521
18521
|
const elapsed = currentWhen.getTime() - cached.when.getTime();
|
|
18522
|
-
if (elapsed < stepMs) {
|
|
18522
|
+
if (elapsed >= 0 && elapsed < stepMs) {
|
|
18523
18523
|
return cached;
|
|
18524
18524
|
}
|
|
18525
18525
|
}
|