ngx-http-resilience
Advanced tools
Comparing version 0.3.5 to 0.4.0
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http'; | ||
import { Observable, Subject } from 'rxjs'; | ||
import { RetryInterceptorEvent, RetryPolicy } from '../types'; | ||
export declare function retryRequestWithStrategy(req: HttpRequest<unknown>, next: HttpHandlerFn, strategy: RetryPolicy, events$: Subject<RetryInterceptorEvent>): Observable<HttpEvent<unknown>>; | ||
import { RetryState } from './types'; | ||
export declare function retryRequestWithStrategy(req: HttpRequest<unknown>, next: HttpHandlerFn, strategy: RetryPolicy, state: RetryState, events$: Subject<RetryInterceptorEvent>): Observable<HttpEvent<unknown>>; |
@@ -20,5 +20,5 @@ import { HttpRequest } from '@angular/common/http'; | ||
} | ||
export type RetryInterceptorRequestType = 'Ignored' | 'UnhandledError' | 'FailedTryingAgain' | 'FailedMaxAttemptsExceeded' | 'MaxDelayExceeded' | 'Succeeded'; | ||
export type RetryInterceptorRequestType = 'RequestIgnored' | 'UnhandledError' | 'FailedTryingAgain' | 'FailedMaxAttemptsExceeded' | 'MaxDelayExceeded' | 'Succeeded'; | ||
export declare const RetryInterceptorRequestTypes: { | ||
readonly Ignored: "Ignored"; | ||
readonly RequestIgnored: "RequestIgnored"; | ||
readonly UnhandledError: "UnhandledError"; | ||
@@ -35,7 +35,7 @@ readonly FailedTryingAgain: "FailedTryingAgain"; | ||
export interface RetryInterceptorRequestIgnoredEvent extends BaseRetryInterceptorRequest { | ||
type: 'Ignored'; | ||
type: 'RequestIgnored'; | ||
} | ||
export interface RetryInterceptorUnhandledErrorEvent extends BaseRetryInterceptorRequest { | ||
type: 'UnhandledError'; | ||
error: unknown; | ||
err: unknown; | ||
attempt: number; | ||
@@ -45,3 +45,3 @@ } | ||
type: 'FailedTryingAgain'; | ||
error: unknown; | ||
err: unknown; | ||
attempt: number; | ||
@@ -51,3 +51,3 @@ } | ||
type: 'FailedMaxAttemptsExceeded'; | ||
error: unknown; | ||
err: unknown; | ||
attempt: number; | ||
@@ -57,2 +57,3 @@ } | ||
type: 'MaxDelayExceeded'; | ||
attempt: number; | ||
} | ||
@@ -59,0 +60,0 @@ export interface RetryInterceptorRequestSucceededEvent extends BaseRetryInterceptorRequest { |
{ | ||
"name": "ngx-http-resilience", | ||
"version": "0.3.5", | ||
"version": "0.4.0", | ||
"description": "Angular HttpInterceptors that provide resiliency capabilities ", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162705
1524