bulltrackers-module 1.0.192 → 1.0.193

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.
@@ -382,9 +382,14 @@ async function runBatchPriceComputation(config, deps, dateStrings, calcs, target
382
382
 
383
383
  // Optional Filtering for Subset Mode
384
384
  if (targetInstrumentIds.length > 0) {
385
- // (Logic omitted for brevity, but safe to include if strictly needed)
385
+ const requestedSet = new Set(targetInstrumentIds);
386
+ // Iterate over the loaded data and delete anything we didn't ask for
387
+ for (const loadedInstrumentId in pricesData) {
388
+ if (!requestedSet.has(loadedInstrumentId)) {
389
+ delete pricesData[loadedInstrumentId];
390
+ }
391
+ }
386
392
  }
387
-
388
393
  const writes = [];
389
394
 
390
395
  // --- CALCULATION PHASE ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.192",
3
+ "version": "1.0.193",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [