lifecycleion 0.0.16 → 0.0.18
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/README.md +1 -1
- package/dist/lib/deep-clone.cjs.map +1 -1
- package/dist/lib/deep-clone.js.map +1 -1
- package/dist/lib/error-to-string.cjs +4 -2
- package/dist/lib/error-to-string.cjs.map +1 -1
- package/dist/lib/error-to-string.js +4 -2
- package/dist/lib/error-to-string.js.map +1 -1
- package/dist/lib/event-emitter.cjs +4 -2
- package/dist/lib/event-emitter.cjs.map +1 -1
- package/dist/lib/event-emitter.js +4 -2
- package/dist/lib/event-emitter.js.map +1 -1
- package/dist/lib/http-client/index.cjs +6 -2
- package/dist/lib/http-client/index.cjs.map +1 -1
- package/dist/lib/http-client/index.d.cts +3 -3
- package/dist/lib/http-client/index.d.ts +3 -3
- package/dist/lib/http-client/index.js +6 -2
- package/dist/lib/http-client/index.js.map +1 -1
- package/dist/lib/http-client-mock/index.cjs.map +1 -1
- package/dist/lib/http-client-mock/index.d.cts +2 -2
- package/dist/lib/http-client-mock/index.d.ts +2 -2
- package/dist/lib/http-client-mock/index.js.map +1 -1
- package/dist/lib/http-client-node/index.cjs +3 -0
- package/dist/lib/http-client-node/index.cjs.map +1 -1
- package/dist/lib/http-client-node/index.d.cts +16 -2
- package/dist/lib/http-client-node/index.d.ts +16 -2
- package/dist/lib/http-client-node/index.js +3 -0
- package/dist/lib/http-client-node/index.js.map +1 -1
- package/dist/lib/http-client-xhr/index.d.cts +2 -2
- package/dist/lib/http-client-xhr/index.d.ts +2 -2
- package/dist/lib/lifecycle-manager/index.cjs +5 -2
- package/dist/lib/lifecycle-manager/index.cjs.map +1 -1
- package/dist/lib/lifecycle-manager/index.js +5 -2
- package/dist/lib/lifecycle-manager/index.js.map +1 -1
- package/dist/lib/logger/index.cjs +5 -2
- package/dist/lib/logger/index.cjs.map +1 -1
- package/dist/lib/logger/index.js +5 -2
- package/dist/lib/logger/index.js.map +1 -1
- package/dist/lib/lru-cache/index.cjs +4 -2
- package/dist/lib/lru-cache/index.cjs.map +1 -1
- package/dist/lib/lru-cache/index.js +4 -2
- package/dist/lib/lru-cache/index.js.map +1 -1
- package/dist/lib/process-signal-manager.cjs +4 -2
- package/dist/lib/process-signal-manager.cjs.map +1 -1
- package/dist/lib/process-signal-manager.js +4 -2
- package/dist/lib/process-signal-manager.js.map +1 -1
- package/dist/lib/promise-protected-resolver.cjs +4 -2
- package/dist/lib/promise-protected-resolver.cjs.map +1 -1
- package/dist/lib/promise-protected-resolver.js +4 -2
- package/dist/lib/promise-protected-resolver.js.map +1 -1
- package/dist/lib/retry-utils/index.cjs +20 -2
- package/dist/lib/retry-utils/index.cjs.map +1 -1
- package/dist/lib/retry-utils/index.d.cts +2 -2
- package/dist/lib/retry-utils/index.d.ts +2 -2
- package/dist/lib/retry-utils/index.js +20 -2
- package/dist/lib/retry-utils/index.js.map +1 -1
- package/dist/lib/safe-handle-callback.cjs +4 -2
- package/dist/lib/safe-handle-callback.cjs.map +1 -1
- package/dist/lib/safe-handle-callback.js +4 -2
- package/dist/lib/safe-handle-callback.js.map +1 -1
- package/dist/lib/single-event-observer.cjs +4 -2
- package/dist/lib/single-event-observer.cjs.map +1 -1
- package/dist/lib/single-event-observer.js +4 -2
- package/dist/lib/single-event-observer.js.map +1 -1
- package/dist/{types-D_MywcG0.d.cts → types-BW0vnSzd.d.cts} +1 -1
- package/dist/{types-D_MywcG0.d.ts → types-BW0vnSzd.d.ts} +1 -1
- package/dist/{types-CUPvmYQ8.d.cts → types-CWw885iO.d.cts} +2 -2
- package/dist/{types-Hw2PUTIT.d.ts → types-Mso0dYOS.d.ts} +2 -2
- package/package.json +22 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RequestState, c as HTTPMethod, d as HTTPRequestOptions, e as HTTPResponse, f as HTTPClientError, g as HTTPProgressEvent, h as AttemptStartEvent, i as AttemptEndEvent, S as StreamResponseFactory, j as HTTPClientConfig, A as AdapterType, k as RequestInterceptor, l as RequestInterceptorFilter, m as ResponseObserver, n as ResponseObserverFilter, E as ErrorObserver, o as ErrorObserverFilter, p as SubClientConfig, H as HTTPAdapter, a as AdapterRequest, b as AdapterResponse } from '../../types-
|
|
2
|
-
export {
|
|
3
|
-
import { R as RetryPolicyOptions } from '../../types-
|
|
1
|
+
import { R as RequestState, c as HTTPMethod, d as HTTPRequestOptions, e as HTTPResponse, f as HTTPClientError, g as HTTPProgressEvent, h as AttemptStartEvent, i as AttemptEndEvent, S as StreamResponseFactory, j as HTTPClientConfig, A as AdapterType, k as RequestInterceptor, l as RequestInterceptorFilter, m as ResponseObserver, n as ResponseObserverFilter, E as ErrorObserver, o as ErrorObserverFilter, p as SubClientConfig, H as HTTPAdapter, a as AdapterRequest, b as AdapterResponse } from '../../types-CWw885iO.cjs';
|
|
2
|
+
export { q as AttemptRequest, C as ContentType, r as Cookie, s as CookieInput, t as CookieJar, u as CookieJarJSON, v as ErrorCode, w as ErrorObserverPhase, x as ErrorObserverPhaseName, I as InterceptedRequest, y as InterceptorCancel, z as InterceptorPhase, B as InterceptorPhaseName, Q as QueryObject, D as QueryValue, F as RedirectHopInfo, G as RequestInterceptorContext, J as RequestPhase, K as RequestPhaseName, L as ResponseObserverPhase, M as ResponseObserverPhaseName, N as StreamResponseCancel, O as StreamResponseContext, P as StreamResponseInfo, W as WritableLike } from '../../types-CWw885iO.cjs';
|
|
3
|
+
import { R as RetryPolicyOptions } from '../../types-BW0vnSzd.cjs';
|
|
4
4
|
|
|
5
5
|
interface TrackedRequest {
|
|
6
6
|
requestID: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RequestState, c as HTTPMethod, d as HTTPRequestOptions, e as HTTPResponse, f as HTTPClientError, g as HTTPProgressEvent, h as AttemptStartEvent, i as AttemptEndEvent, S as StreamResponseFactory, j as HTTPClientConfig, A as AdapterType, k as RequestInterceptor, l as RequestInterceptorFilter, m as ResponseObserver, n as ResponseObserverFilter, E as ErrorObserver, o as ErrorObserverFilter, p as SubClientConfig, H as HTTPAdapter, a as AdapterRequest, b as AdapterResponse } from '../../types-
|
|
2
|
-
export {
|
|
3
|
-
import { R as RetryPolicyOptions } from '../../types-
|
|
1
|
+
import { R as RequestState, c as HTTPMethod, d as HTTPRequestOptions, e as HTTPResponse, f as HTTPClientError, g as HTTPProgressEvent, h as AttemptStartEvent, i as AttemptEndEvent, S as StreamResponseFactory, j as HTTPClientConfig, A as AdapterType, k as RequestInterceptor, l as RequestInterceptorFilter, m as ResponseObserver, n as ResponseObserverFilter, E as ErrorObserver, o as ErrorObserverFilter, p as SubClientConfig, H as HTTPAdapter, a as AdapterRequest, b as AdapterResponse } from '../../types-Mso0dYOS.js';
|
|
2
|
+
export { q as AttemptRequest, C as ContentType, r as Cookie, s as CookieInput, t as CookieJar, u as CookieJarJSON, v as ErrorCode, w as ErrorObserverPhase, x as ErrorObserverPhaseName, I as InterceptedRequest, y as InterceptorCancel, z as InterceptorPhase, B as InterceptorPhaseName, Q as QueryObject, D as QueryValue, F as RedirectHopInfo, G as RequestInterceptorContext, J as RequestPhase, K as RequestPhaseName, L as ResponseObserverPhase, M as ResponseObserverPhaseName, N as StreamResponseCancel, O as StreamResponseContext, P as StreamResponseInfo, W as WritableLike } from '../../types-Mso0dYOS.js';
|
|
3
|
+
import { R as RetryPolicyOptions } from '../../types-BW0vnSzd.js';
|
|
4
4
|
|
|
5
5
|
interface TrackedRequest {
|
|
6
6
|
requestID: string;
|
|
@@ -170,6 +170,8 @@ var RetryUtilsErrPolicyConfigInvalidStrategy = class extends Error {
|
|
|
170
170
|
this.validStrategies = validStrategies;
|
|
171
171
|
this.name = "RetryUtilsErrPolicyConfigInvalidStrategy";
|
|
172
172
|
}
|
|
173
|
+
strategyProvided;
|
|
174
|
+
validStrategies;
|
|
173
175
|
};
|
|
174
176
|
|
|
175
177
|
// src/lib/clamp.ts
|
|
@@ -1077,8 +1079,10 @@ function safeStringify(value) {
|
|
|
1077
1079
|
return "[Function]";
|
|
1078
1080
|
case "symbol":
|
|
1079
1081
|
return value.toString();
|
|
1080
|
-
default:
|
|
1081
|
-
|
|
1082
|
+
default: {
|
|
1083
|
+
const fallback = value;
|
|
1084
|
+
return String(fallback);
|
|
1085
|
+
}
|
|
1082
1086
|
}
|
|
1083
1087
|
}
|
|
1084
1088
|
function errorToString(error, maxRowLength = 80) {
|