bulltrackers-module 1.0.191 → 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.
@@ -169,12 +169,13 @@ async function runComputationPass(config, dependencies, computationManifest) {
169
169
  const prevDateStr = prevDate.toISOString().slice(0, 10);
170
170
  const previousResults = await fetchExistingResults(prevDateStr, calcsRunning, computationManifest, config, dependencies, true);
171
171
 
172
+ // Changed skipstatus write to false to ensure updates are recorded
172
173
  if (finalStandardToRun.length) {
173
- const updates = await runStandardComputationPass(dateToProcess, finalStandardToRun, `Pass ${passToRun} (Std)`, config, dependencies, rootData, existingResults, previousResults, true);
174
+ const updates = await runStandardComputationPass(dateToProcess, finalStandardToRun, `Pass ${passToRun} (Std)`, config, dependencies, rootData, existingResults, previousResults, false);
174
175
  Object.assign(dateUpdates, updates);
175
176
  }
176
177
  if (finalMetaToRun.length) {
177
- const updates = await runMetaComputationPass(dateToProcess, finalMetaToRun, `Pass ${passToRun} (Meta)`, config, dependencies, existingResults, previousResults, rootData, true);
178
+ const updates = await runMetaComputationPass(dateToProcess, finalMetaToRun, `Pass ${passToRun} (Meta)`, config, dependencies, existingResults, previousResults, rootData, false);
178
179
  Object.assign(dateUpdates, updates);
179
180
  }
180
181
  } catch (err) {
@@ -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.191",
3
+ "version": "1.0.193",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [