wallaby-cash 3.2.0 → 3.3.0

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.
@@ -0,0 +1,4 @@
1
+ export declare function extractErrorStatus(error: any): number | undefined;
2
+ export declare function extractErrorCode(error: any): string | undefined;
3
+ export declare function shouldAttemptTokenRefresh(error: any): boolean;
4
+ export declare function shouldClearTokensAfterRefreshFailure(error: any): boolean;
@@ -0,0 +1,18 @@
1
+ export declare class DedupeManagerService {
2
+ private inFlightOperations;
3
+ /**
4
+ * Executes an operation once per key while returning the same in-flight promise
5
+ * to all concurrent callers.
6
+ * @param key - Unique identifier for dedupe scope.
7
+ * @param operation - The async operation to execute.
8
+ */
9
+ withDedupe<T>(key: string, operation: () => Promise<T>): Promise<T>;
10
+ /**
11
+ * Check if a specific operation is currently in flight.
12
+ */
13
+ isInFlight(key: string): boolean;
14
+ /**
15
+ * Clear all tracked in-flight operations (primarily for tests/cleanup).
16
+ */
17
+ clearAll(): void;
18
+ }