aiden-shared-calculations-unified 1.0.49 → 1.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiden-shared-calculations-unified",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Shared calculation modules for the BullTrackers Computation System.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * @fileoverview Provides a resilient retry wrapper for Firestore operations.
3
3
  */
4
- const { logger } = require("sharedsetup")(__filename); // Note: In the package, you might need to adjust how the logger is obtained if sharedsetup isn't a direct dependency or passed in.
4
+ const { logger } = require("sharedsetup")(__filename);
5
5
 
6
6
  // Firestore error codes that are safe to retry
7
7
  const RETRYABLE_ERROR_CODES = new Set([
8
- 'DEADLINE_EXCEEDED',
9
- 'UNAVAILABLE',
10
- 'INTERNAL',
11
- 'RESOURCE_EXHAUSTED', // Can indicate contention
8
+ 'DEADLINE_EXCEEDED', 4,
9
+ 'UNAVAILABLE', 14,
10
+ 'INTERNAL', 13,
11
+ 'RESOURCE_EXHAUSTED', 8, // Can indicate contention
12
12
  ]);
13
13
 
14
14
  const MAX_RETRIES = 5;