@npora/request 1.17.4 → 1.18.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.
Files changed (88) hide show
  1. package/README.md +88 -86
  2. package/dist/{MockAdapter-5CFrxv9q.d.ts → MockAdapter--6ZwMMQ8.d.ts} +2 -2
  3. package/dist/{MockAdapter-mR3CWESj.d.cts → MockAdapter-BrXOqgTA.d.cts} +2 -2
  4. package/dist/{Plugin-C9ZQzyF6.d.ts → Plugin-C5P_tBXo.d.ts} +1 -1
  5. package/dist/{Plugin-Cxb-obdZ.d.cts → Plugin-DYSeSZ6O.d.cts} +1 -1
  6. package/dist/{SchemaValidationError-Bls3Uxwj.d.cts → SchemaValidationError-BANH6INo.d.cts} +3 -3
  7. package/dist/{SchemaValidationError-DRSiM7h7.d.ts → SchemaValidationError-ljhan6YH.d.ts} +3 -3
  8. package/dist/{adapter-YnK7Xzw4.d.ts → adapter-CBaLHCEm.d.ts} +1 -1
  9. package/dist/{adapter-Bshqh0DY.d.cts → adapter-DlZ5Qbou.d.cts} +1 -1
  10. package/dist/{authPlugin-BXi6WjtM.d.cts → authPlugin-DpE4afbz.d.cts} +1 -1
  11. package/dist/{authPlugin-DdzlLQVo.d.ts → authPlugin-USKx_XNX.d.ts} +1 -1
  12. package/dist/{cachePlugin-Bk7V57oZ.d.cts → cachePlugin-BMcLP92z.d.cts} +82 -80
  13. package/dist/cachePlugin-ComdU-Tb.cjs +1 -0
  14. package/dist/{cachePlugin-BZ0lLFOx.d.ts → cachePlugin-D5iyPREK.d.ts} +82 -80
  15. package/dist/cachePlugin-kcIdZe02.js +1 -0
  16. package/dist/{circuitBreakerPlugin-CX7s4iAe.d.ts → circuitBreakerPlugin-D12NHWon.d.ts} +2 -2
  17. package/dist/{circuitBreakerPlugin-BG2PlHSo.d.cts → circuitBreakerPlugin-tbwS-j5u.d.cts} +2 -2
  18. package/dist/{concurrencyPlugin-DeDnm7ND.d.cts → concurrencyPlugin-Dvsgel94.d.cts} +2 -2
  19. package/dist/{concurrencyPlugin-HvGuOA2p.d.ts → concurrencyPlugin-W84oJyJP.d.ts} +2 -2
  20. package/dist/core.cjs +1 -1
  21. package/dist/core.d.cts +5 -5
  22. package/dist/core.d.ts +5 -5
  23. package/dist/core.js +1 -1
  24. package/dist/createClient-BJInwX7D.js +1 -0
  25. package/dist/createClient-ICkQQqcE.cjs +1 -0
  26. package/dist/{downloadPlugin-BlA-z0Pj.d.cts → downloadPlugin-DJDuMLwT.d.cts} +1 -1
  27. package/dist/{downloadPlugin-BrXcygGo.d.ts → downloadPlugin-DjCZgsVL.d.ts} +1 -1
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.d.cts +17 -17
  30. package/dist/index.d.ts +17 -17
  31. package/dist/index.js +1 -1
  32. package/dist/loggerPlugin-DFIXW1B1.d.ts +6 -0
  33. package/dist/loggerPlugin-DZlxRUT0.d.cts +6 -0
  34. package/dist/{openTelemetryMetricsPlugin-fQOtuYJX.d.ts → openTelemetryMetricsPlugin-0UQ5jqvv.d.ts} +2 -2
  35. package/dist/{openTelemetryMetricsPlugin-D6y3KC4M.d.cts → openTelemetryMetricsPlugin-BqUiYPda.d.cts} +2 -2
  36. package/dist/{openTelemetryPlugin-FAngP8jc.d.cts → openTelemetryPlugin-Cuap7zKx.d.cts} +2 -2
  37. package/dist/{openTelemetryPlugin-CiRMppHI.d.ts → openTelemetryPlugin-w3t3yoCr.d.ts} +2 -2
  38. package/dist/plugins/auth.d.cts +1 -1
  39. package/dist/plugins/auth.d.ts +1 -1
  40. package/dist/plugins/cache.cjs +1 -1
  41. package/dist/plugins/cache.d.cts +2 -2
  42. package/dist/plugins/cache.d.ts +2 -2
  43. package/dist/plugins/cache.js +1 -1
  44. package/dist/plugins/circuit-breaker.d.cts +1 -1
  45. package/dist/plugins/circuit-breaker.d.ts +1 -1
  46. package/dist/plugins/concurrency.d.cts +1 -1
  47. package/dist/plugins/concurrency.d.ts +1 -1
  48. package/dist/plugins/download.d.cts +1 -1
  49. package/dist/plugins/download.d.ts +1 -1
  50. package/dist/plugins/logger.d.cts +1 -1
  51. package/dist/plugins/logger.d.ts +1 -1
  52. package/dist/plugins/memory-cache.cjs +1 -0
  53. package/dist/plugins/memory-cache.d.cts +19 -0
  54. package/dist/plugins/memory-cache.d.ts +19 -0
  55. package/dist/plugins/memory-cache.js +1 -0
  56. package/dist/plugins/opentelemetry-metrics.d.cts +1 -1
  57. package/dist/plugins/opentelemetry-metrics.d.ts +1 -1
  58. package/dist/plugins/opentelemetry.d.cts +1 -1
  59. package/dist/plugins/opentelemetry.d.ts +1 -1
  60. package/dist/plugins/rate-limit.d.cts +1 -1
  61. package/dist/plugins/rate-limit.d.ts +1 -1
  62. package/dist/plugins/retry.d.cts +1 -1
  63. package/dist/plugins/retry.d.ts +1 -1
  64. package/dist/plugins/upload.d.cts +1 -1
  65. package/dist/plugins/upload.d.ts +1 -1
  66. package/dist/plugins.cjs +1 -1
  67. package/dist/plugins.d.cts +13 -13
  68. package/dist/plugins.d.ts +13 -13
  69. package/dist/plugins.js +1 -1
  70. package/dist/{rateLimitPlugin-1rbZeJmP.d.cts → rateLimitPlugin-KOSUTbvE.d.cts} +2 -2
  71. package/dist/{rateLimitPlugin-D5t-8kzP.d.ts → rateLimitPlugin-cU0qI8TH.d.ts} +2 -2
  72. package/dist/{response-B6Z3qxyO.d.cts → response-BmBc0r8_.d.cts} +8 -1
  73. package/dist/{response-B6Z3qxyO.d.ts → response-BmBc0r8_.d.ts} +8 -1
  74. package/dist/retryPlugin-Df4T3WEv.d.ts +6 -0
  75. package/dist/retryPlugin-Ir1VPUHq.d.cts +6 -0
  76. package/dist/testing.d.cts +1 -1
  77. package/dist/testing.d.ts +1 -1
  78. package/dist/{uploadPlugin-BrzbWtAN.d.ts → uploadPlugin-C8CgYCKh.d.ts} +1 -1
  79. package/dist/{uploadPlugin-Ci0ys-ng.d.cts → uploadPlugin-CAHUGiz4.d.cts} +1 -1
  80. package/package.json +11 -2
  81. package/dist/cachePlugin-B-5paXgx.cjs +0 -1
  82. package/dist/cachePlugin-CV1r0vZB.js +0 -1
  83. package/dist/createClient-Bl9NkFlS.cjs +0 -1
  84. package/dist/createClient-DoNjfuKQ.js +0 -1
  85. package/dist/loggerPlugin-CBbwGZme.d.ts +0 -6
  86. package/dist/loggerPlugin-CZpdXtBt.d.cts +0 -6
  87. package/dist/retryPlugin-C0dORYIQ.d.cts +0 -6
  88. package/dist/retryPlugin-CVelhp0f.d.ts +0 -6
package/dist/index.d.cts CHANGED
@@ -1,18 +1,18 @@
1
- import { A as OpenTelemetryMetricsOptions, B as UploadOptions, C as DownloadOptions, D as LoggerEntry, E as ErrorLogEntry, F as ResponseLogEntry, H as StandardSchemaV1, I as RetryEvent, L as RetryOptions, M as RateLimitOptions, N as RequestLogEntry, O as LoggerOptions, P as RequestLogger, R as TransferProgress, S as ConcurrencyOptions, T as DownloadProgress, U as HttpMethod, V as UploadProgress, _ as AuthOptions, a as FetchOptions, b as CircuitBreakerStateChange, c as JsonStringifier, d as QueryValue, f as RequestConfig, g as ResponseType, h as RequestURL, i as FetchFunction, j as OpenTelemetryOptions, k as OpenTelemetryAttributeValue, l as QueryParams, m as RequestInputConfig, n as ServerSentEvent, o as JsonParser, p as RequestExtensions, r as StreamingSchemaLocation, s as JsonParserContext, t as NporaResponse, u as QuerySerializer, v as CacheOptions, w as DownloadOutput, x as CircuitState, y as CircuitBreakerOptions, z as UploadData } from "./response-B6Z3qxyO.cjs";
2
- import { t as Adapter } from "./adapter-Bshqh0DY.cjs";
3
- import { a as RequestErrorOptions, c as createClient, i as RequestErrorCode, l as Client, n as isSchemaValidationError, o as isRequestError, r as RequestError, s as FetchAdapter, t as SchemaValidationError, u as ClientOptions } from "./SchemaValidationError-Bls3Uxwj.cjs";
4
- import { a as MockReplyHandler, c as MockRoute, i as MockReply, l as MockURLMatcher, n as MockAdapterOptions, o as MockRequestMatcher, r as MockHandler, s as MockResponseOptions, t as MockAdapter } from "./MockAdapter-mR3CWESj.cjs";
5
- import { a as PluginInterceptorManager, c as InterceptorOptions, i as PluginHookManager, n as PluginCleanup, o as Interceptor, r as PluginContext, s as InterceptorManager, t as Plugin } from "./Plugin-Cxb-obdZ.cjs";
1
+ import { A as OpenTelemetryAttributeValue, B as UploadData, C as DownloadOptions, D as LoggerEntry, E as ErrorLogEntry, F as RequestLogger, H as UploadProgress, I as ResponseLogEntry, L as RetryEvent, M as OpenTelemetryOptions, N as RateLimitOptions, O as LoggerOptions, P as RequestLogEntry, R as RetryOptions, S as ConcurrencyOptions, T as DownloadProgress, U as StandardSchemaV1, V as UploadOptions, W as HttpMethod, _ as AuthOptions, a as FetchOptions, b as CircuitBreakerStateChange, c as JsonStringifier, d as QueryValue, f as RequestConfig, g as ResponseType, h as RequestURL, i as FetchFunction, j as OpenTelemetryMetricsOptions, k as MemoryCacheOptions, l as QueryParams, m as RequestInputConfig, n as ServerSentEvent, o as JsonParser, p as RequestExtensions, r as StreamingSchemaLocation, s as JsonParserContext, t as NporaResponse, u as QuerySerializer, v as CacheOptions, w as DownloadOutput, x as CircuitState, y as CircuitBreakerOptions, z as TransferProgress } from "./response-BmBc0r8_.cjs";
2
+ import { t as Adapter } from "./adapter-DlZ5Qbou.cjs";
3
+ import { a as RequestErrorOptions, c as createClient, i as RequestErrorCode, l as Client, n as isSchemaValidationError, o as isRequestError, r as RequestError, s as FetchAdapter, t as SchemaValidationError, u as ClientOptions } from "./SchemaValidationError-BANH6INo.cjs";
4
+ import { a as MockReplyHandler, c as MockRoute, i as MockReply, l as MockURLMatcher, n as MockAdapterOptions, o as MockRequestMatcher, r as MockHandler, s as MockResponseOptions, t as MockAdapter } from "./MockAdapter-BrXOqgTA.cjs";
5
+ import { a as PluginInterceptorManager, c as InterceptorOptions, i as PluginHookManager, n as PluginCleanup, o as Interceptor, r as PluginContext, s as InterceptorManager, t as Plugin } from "./Plugin-DYSeSZ6O.cjs";
6
6
  import { n as PluginErrorCode, r as PluginErrorOptions, t as PluginError } from "./PluginError-DVP3pUt_.cjs";
7
- import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-BXi6WjtM.cjs";
8
- import { C as IndexedDBCacheStoreOptions, S as IndexedDBCacheStoreEvent, _ as TieredCacheStore, a as CachePluginOptions, b as IndexedDBCacheCompactionResult, c as CacheStats, d as MemoryCacheStoreOptions, f as WebStorageCacheStore, g as TieredCacheCoordinationOptions, h as TieredCacheBroadcastOptions, i as CachePlugin, l as CacheStore, m as cachePlugin, n as CacheEvent, o as CacheRefreshLease, p as WebStorageCacheStoreOptions, r as CacheEventType, s as CacheSetOptions, t as CacheEntry, u as MemoryCacheStore, v as TieredCacheStoreOptions, w as IndexedDBCacheUsage, x as IndexedDBCacheStore, y as IndexedDBCacheCompactionOptions } from "./cachePlugin-Bk7V57oZ.cjs";
9
- import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-BG2PlHSo.cjs";
10
- import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-DeDnm7ND.cjs";
11
- import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-BlA-z0Pj.cjs";
12
- import { t as loggerPlugin } from "./loggerPlugin-CZpdXtBt.cjs";
13
- import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-FAngP8jc.cjs";
14
- import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-D6y3KC4M.cjs";
15
- import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-1rbZeJmP.cjs";
16
- import { t as retryPlugin } from "./retryPlugin-C0dORYIQ.cjs";
17
- import { t as uploadPlugin } from "./uploadPlugin-Ci0ys-ng.cjs";
18
- export { Adapter, AuthOptions, AuthPluginOptions, AuthTokenStorage, CacheEntry, CacheEvent, CacheEventType, CacheOptions, CachePlugin, CachePluginOptions, CacheRefreshLease, CacheSetOptions, CacheStats, CacheStore, CircuitBreakerOptions, CircuitBreakerPlugin, CircuitBreakerPluginOptions, CircuitBreakerStateChange, CircuitState, Client, ClientOptions, ConcurrencyOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadOptions, DownloadOutput, DownloadPluginOptions, DownloadProgress, DownloadTransport, ErrorLogEntry, FetchAdapter, FetchFunction, FetchOptions, HttpMethod, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, Interceptor, InterceptorManager, InterceptorOptions, JsonParser, JsonParserContext, JsonStringifier, LoggerEntry, LoggerOptions, MemoryCacheStore, MemoryCacheStoreOptions, MockAdapter, MockAdapterOptions, MockHandler, MockReply, MockReplyHandler, MockRequestMatcher, MockResponseOptions, MockRoute, MockURLMatcher, NporaResponse, OpenTelemetryAttributeValue, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsOptions, OpenTelemetryMetricsPluginOptions, OpenTelemetryOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, QueryParams, QuerySerializer, QueryValue, RateLimitOptions, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, RequestConfig, RequestError, RequestErrorCode, RequestErrorOptions, RequestExtensions, RequestInputConfig, RequestLogEntry, RequestLogger, RequestURL, ResponseLogEntry, ResponseType, RetryEvent, RetryOptions, SchemaValidationError, ServerSentEvent, StandardSchemaV1, StreamingSchemaLocation, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, TransferProgress, UploadData, UploadOptions, UploadProgress, WebStorageCacheStore, WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, createClient, downloadPlugin, isRequestError, isSchemaValidationError, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
7
+ import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-DpE4afbz.cjs";
8
+ import { C as WebStorageCacheStore, S as MemoryCacheStoreOptions, _ as IndexedDBCacheUsage, a as CacheSetOptions, b as CacheStore, c as TieredCacheBroadcastOptions, d as TieredCacheStoreOptions, f as IndexedDBCacheCompactionOptions, g as IndexedDBCacheStoreOptions, h as IndexedDBCacheStoreEvent, i as CachePluginOptions, l as TieredCacheCoordinationOptions, m as IndexedDBCacheStore, n as CacheEventType, o as CacheStats, p as IndexedDBCacheCompactionResult, r as CachePlugin, s as cachePlugin, t as CacheEvent, u as TieredCacheStore, v as CacheEntry, w as WebStorageCacheStoreOptions, x as MemoryCacheStore, y as CacheRefreshLease } from "./cachePlugin-BMcLP92z.cjs";
9
+ import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-tbwS-j5u.cjs";
10
+ import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-Dvsgel94.cjs";
11
+ import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-DJDuMLwT.cjs";
12
+ import { t as loggerPlugin } from "./loggerPlugin-DZlxRUT0.cjs";
13
+ import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-Cuap7zKx.cjs";
14
+ import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-BqUiYPda.cjs";
15
+ import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-KOSUTbvE.cjs";
16
+ import { t as retryPlugin } from "./retryPlugin-Ir1VPUHq.cjs";
17
+ import { t as uploadPlugin } from "./uploadPlugin-CAHUGiz4.cjs";
18
+ export { Adapter, AuthOptions, AuthPluginOptions, AuthTokenStorage, type CacheEntry, CacheEvent, CacheEventType, CacheOptions, CachePlugin, CachePluginOptions, type CacheRefreshLease, CacheSetOptions, CacheStats, type CacheStore, CircuitBreakerOptions, CircuitBreakerPlugin, CircuitBreakerPluginOptions, CircuitBreakerStateChange, CircuitState, Client, ClientOptions, ConcurrencyOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadOptions, DownloadOutput, DownloadPluginOptions, DownloadProgress, DownloadTransport, ErrorLogEntry, FetchAdapter, FetchFunction, FetchOptions, HttpMethod, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, Interceptor, InterceptorManager, InterceptorOptions, JsonParser, JsonParserContext, JsonStringifier, LoggerEntry, LoggerOptions, MemoryCacheOptions, MemoryCacheStore, type MemoryCacheStoreOptions, MockAdapter, MockAdapterOptions, MockHandler, MockReply, MockReplyHandler, MockRequestMatcher, MockResponseOptions, MockRoute, MockURLMatcher, NporaResponse, OpenTelemetryAttributeValue, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsOptions, OpenTelemetryMetricsPluginOptions, OpenTelemetryOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, QueryParams, QuerySerializer, QueryValue, RateLimitOptions, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, RequestConfig, RequestError, RequestErrorCode, RequestErrorOptions, RequestExtensions, RequestInputConfig, RequestLogEntry, RequestLogger, RequestURL, ResponseLogEntry, ResponseType, RetryEvent, RetryOptions, SchemaValidationError, ServerSentEvent, StandardSchemaV1, StreamingSchemaLocation, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, TransferProgress, UploadData, UploadOptions, UploadProgress, WebStorageCacheStore, type WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, createClient, downloadPlugin, isRequestError, isSchemaValidationError, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { A as OpenTelemetryMetricsOptions, B as UploadOptions, C as DownloadOptions, D as LoggerEntry, E as ErrorLogEntry, F as ResponseLogEntry, H as StandardSchemaV1, I as RetryEvent, L as RetryOptions, M as RateLimitOptions, N as RequestLogEntry, O as LoggerOptions, P as RequestLogger, R as TransferProgress, S as ConcurrencyOptions, T as DownloadProgress, U as HttpMethod, V as UploadProgress, _ as AuthOptions, a as FetchOptions, b as CircuitBreakerStateChange, c as JsonStringifier, d as QueryValue, f as RequestConfig, g as ResponseType, h as RequestURL, i as FetchFunction, j as OpenTelemetryOptions, k as OpenTelemetryAttributeValue, l as QueryParams, m as RequestInputConfig, n as ServerSentEvent, o as JsonParser, p as RequestExtensions, r as StreamingSchemaLocation, s as JsonParserContext, t as NporaResponse, u as QuerySerializer, v as CacheOptions, w as DownloadOutput, x as CircuitState, y as CircuitBreakerOptions, z as UploadData } from "./response-B6Z3qxyO.js";
2
- import { t as Adapter } from "./adapter-YnK7Xzw4.js";
3
- import { a as RequestErrorOptions, c as createClient, i as RequestErrorCode, l as Client, n as isSchemaValidationError, o as isRequestError, r as RequestError, s as FetchAdapter, t as SchemaValidationError, u as ClientOptions } from "./SchemaValidationError-DRSiM7h7.js";
4
- import { a as MockReplyHandler, c as MockRoute, i as MockReply, l as MockURLMatcher, n as MockAdapterOptions, o as MockRequestMatcher, r as MockHandler, s as MockResponseOptions, t as MockAdapter } from "./MockAdapter-5CFrxv9q.js";
5
- import { a as PluginInterceptorManager, c as InterceptorOptions, i as PluginHookManager, n as PluginCleanup, o as Interceptor, r as PluginContext, s as InterceptorManager, t as Plugin } from "./Plugin-C9ZQzyF6.js";
1
+ import { A as OpenTelemetryAttributeValue, B as UploadData, C as DownloadOptions, D as LoggerEntry, E as ErrorLogEntry, F as RequestLogger, H as UploadProgress, I as ResponseLogEntry, L as RetryEvent, M as OpenTelemetryOptions, N as RateLimitOptions, O as LoggerOptions, P as RequestLogEntry, R as RetryOptions, S as ConcurrencyOptions, T as DownloadProgress, U as StandardSchemaV1, V as UploadOptions, W as HttpMethod, _ as AuthOptions, a as FetchOptions, b as CircuitBreakerStateChange, c as JsonStringifier, d as QueryValue, f as RequestConfig, g as ResponseType, h as RequestURL, i as FetchFunction, j as OpenTelemetryMetricsOptions, k as MemoryCacheOptions, l as QueryParams, m as RequestInputConfig, n as ServerSentEvent, o as JsonParser, p as RequestExtensions, r as StreamingSchemaLocation, s as JsonParserContext, t as NporaResponse, u as QuerySerializer, v as CacheOptions, w as DownloadOutput, x as CircuitState, y as CircuitBreakerOptions, z as TransferProgress } from "./response-BmBc0r8_.js";
2
+ import { t as Adapter } from "./adapter-CBaLHCEm.js";
3
+ import { a as RequestErrorOptions, c as createClient, i as RequestErrorCode, l as Client, n as isSchemaValidationError, o as isRequestError, r as RequestError, s as FetchAdapter, t as SchemaValidationError, u as ClientOptions } from "./SchemaValidationError-ljhan6YH.js";
4
+ import { a as MockReplyHandler, c as MockRoute, i as MockReply, l as MockURLMatcher, n as MockAdapterOptions, o as MockRequestMatcher, r as MockHandler, s as MockResponseOptions, t as MockAdapter } from "./MockAdapter--6ZwMMQ8.js";
5
+ import { a as PluginInterceptorManager, c as InterceptorOptions, i as PluginHookManager, n as PluginCleanup, o as Interceptor, r as PluginContext, s as InterceptorManager, t as Plugin } from "./Plugin-C5P_tBXo.js";
6
6
  import { n as PluginErrorCode, r as PluginErrorOptions, t as PluginError } from "./PluginError-DVP3pUt_.js";
7
- import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-DdzlLQVo.js";
8
- import { C as IndexedDBCacheStoreOptions, S as IndexedDBCacheStoreEvent, _ as TieredCacheStore, a as CachePluginOptions, b as IndexedDBCacheCompactionResult, c as CacheStats, d as MemoryCacheStoreOptions, f as WebStorageCacheStore, g as TieredCacheCoordinationOptions, h as TieredCacheBroadcastOptions, i as CachePlugin, l as CacheStore, m as cachePlugin, n as CacheEvent, o as CacheRefreshLease, p as WebStorageCacheStoreOptions, r as CacheEventType, s as CacheSetOptions, t as CacheEntry, u as MemoryCacheStore, v as TieredCacheStoreOptions, w as IndexedDBCacheUsage, x as IndexedDBCacheStore, y as IndexedDBCacheCompactionOptions } from "./cachePlugin-BZ0lLFOx.js";
9
- import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-CX7s4iAe.js";
10
- import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-HvGuOA2p.js";
11
- import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-BrXcygGo.js";
12
- import { t as loggerPlugin } from "./loggerPlugin-CBbwGZme.js";
13
- import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-CiRMppHI.js";
14
- import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-fQOtuYJX.js";
15
- import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-D5t-8kzP.js";
16
- import { t as retryPlugin } from "./retryPlugin-CVelhp0f.js";
17
- import { t as uploadPlugin } from "./uploadPlugin-BrzbWtAN.js";
18
- export { Adapter, AuthOptions, AuthPluginOptions, AuthTokenStorage, CacheEntry, CacheEvent, CacheEventType, CacheOptions, CachePlugin, CachePluginOptions, CacheRefreshLease, CacheSetOptions, CacheStats, CacheStore, CircuitBreakerOptions, CircuitBreakerPlugin, CircuitBreakerPluginOptions, CircuitBreakerStateChange, CircuitState, Client, ClientOptions, ConcurrencyOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadOptions, DownloadOutput, DownloadPluginOptions, DownloadProgress, DownloadTransport, ErrorLogEntry, FetchAdapter, FetchFunction, FetchOptions, HttpMethod, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, Interceptor, InterceptorManager, InterceptorOptions, JsonParser, JsonParserContext, JsonStringifier, LoggerEntry, LoggerOptions, MemoryCacheStore, MemoryCacheStoreOptions, MockAdapter, MockAdapterOptions, MockHandler, MockReply, MockReplyHandler, MockRequestMatcher, MockResponseOptions, MockRoute, MockURLMatcher, NporaResponse, OpenTelemetryAttributeValue, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsOptions, OpenTelemetryMetricsPluginOptions, OpenTelemetryOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, QueryParams, QuerySerializer, QueryValue, RateLimitOptions, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, RequestConfig, RequestError, RequestErrorCode, RequestErrorOptions, RequestExtensions, RequestInputConfig, RequestLogEntry, RequestLogger, RequestURL, ResponseLogEntry, ResponseType, RetryEvent, RetryOptions, SchemaValidationError, ServerSentEvent, StandardSchemaV1, StreamingSchemaLocation, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, TransferProgress, UploadData, UploadOptions, UploadProgress, WebStorageCacheStore, WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, createClient, downloadPlugin, isRequestError, isSchemaValidationError, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
7
+ import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-USKx_XNX.js";
8
+ import { C as WebStorageCacheStore, S as MemoryCacheStoreOptions, _ as IndexedDBCacheUsage, a as CacheSetOptions, b as CacheStore, c as TieredCacheBroadcastOptions, d as TieredCacheStoreOptions, f as IndexedDBCacheCompactionOptions, g as IndexedDBCacheStoreOptions, h as IndexedDBCacheStoreEvent, i as CachePluginOptions, l as TieredCacheCoordinationOptions, m as IndexedDBCacheStore, n as CacheEventType, o as CacheStats, p as IndexedDBCacheCompactionResult, r as CachePlugin, s as cachePlugin, t as CacheEvent, u as TieredCacheStore, v as CacheEntry, w as WebStorageCacheStoreOptions, x as MemoryCacheStore, y as CacheRefreshLease } from "./cachePlugin-D5iyPREK.js";
9
+ import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-D12NHWon.js";
10
+ import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-W84oJyJP.js";
11
+ import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-DjCZgsVL.js";
12
+ import { t as loggerPlugin } from "./loggerPlugin-DFIXW1B1.js";
13
+ import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-w3t3yoCr.js";
14
+ import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-0UQ5jqvv.js";
15
+ import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-cU0qI8TH.js";
16
+ import { t as retryPlugin } from "./retryPlugin-Df4T3WEv.js";
17
+ import { t as uploadPlugin } from "./uploadPlugin-C8CgYCKh.js";
18
+ export { Adapter, AuthOptions, AuthPluginOptions, AuthTokenStorage, type CacheEntry, CacheEvent, CacheEventType, CacheOptions, CachePlugin, CachePluginOptions, type CacheRefreshLease, CacheSetOptions, CacheStats, type CacheStore, CircuitBreakerOptions, CircuitBreakerPlugin, CircuitBreakerPluginOptions, CircuitBreakerStateChange, CircuitState, Client, ClientOptions, ConcurrencyOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadOptions, DownloadOutput, DownloadPluginOptions, DownloadProgress, DownloadTransport, ErrorLogEntry, FetchAdapter, FetchFunction, FetchOptions, HttpMethod, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, Interceptor, InterceptorManager, InterceptorOptions, JsonParser, JsonParserContext, JsonStringifier, LoggerEntry, LoggerOptions, MemoryCacheOptions, MemoryCacheStore, type MemoryCacheStoreOptions, MockAdapter, MockAdapterOptions, MockHandler, MockReply, MockReplyHandler, MockRequestMatcher, MockResponseOptions, MockRoute, MockURLMatcher, NporaResponse, OpenTelemetryAttributeValue, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsOptions, OpenTelemetryMetricsPluginOptions, OpenTelemetryOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, QueryParams, QuerySerializer, QueryValue, RateLimitOptions, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, RequestConfig, RequestError, RequestErrorCode, RequestErrorOptions, RequestExtensions, RequestInputConfig, RequestLogEntry, RequestLogger, RequestURL, ResponseLogEntry, ResponseType, RetryEvent, RetryOptions, SchemaValidationError, ServerSentEvent, StandardSchemaV1, StreamingSchemaLocation, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, TransferProgress, UploadData, UploadOptions, UploadProgress, WebStorageCacheStore, type WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, createClient, downloadPlugin, isRequestError, isSchemaValidationError, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{n as e,t}from"./RequestError-B0HIY1zK.js";import{d as n,f as r}from"./validateResponseStatus-JYSqdThE.js";import{i,n as a,r as o,t as s}from"./createClient-DoNjfuKQ.js";import{MockAdapter as c}from"./testing.js";import{t as l}from"./PluginError-CcuPSIRv.js";import{authPlugin as u}from"./plugins/auth.js";import{a as d,i as f,n as p,r as m,t as h}from"./cachePlugin-CV1r0vZB.js";import{circuitBreakerPlugin as g}from"./plugins/circuit-breaker.js";import{concurrencyPlugin as _}from"./plugins/concurrency.js";import{downloadPlugin as v}from"./plugins/download.js";import{loggerPlugin as y}from"./plugins/logger.js";import{openTelemetryPlugin as b}from"./plugins/opentelemetry.js";import{openTelemetryMetricsPlugin as x}from"./plugins/opentelemetry-metrics.js";import{t as S}from"./rateLimitPlugin-EyoriWyF.js";import{retryPlugin as C}from"./plugins/retry.js";import{uploadPlugin as w}from"./plugins/upload.js";import"./plugins.js";export{a as Client,i as FetchAdapter,d as IndexedDBCacheStore,o as InterceptorManager,h as MemoryCacheStore,c as MockAdapter,l as PluginError,t as RequestError,n as SchemaValidationError,f as TieredCacheStore,p as WebStorageCacheStore,u as authPlugin,m as cachePlugin,g as circuitBreakerPlugin,_ as concurrencyPlugin,s as createClient,v as downloadPlugin,e as isRequestError,r as isSchemaValidationError,y as loggerPlugin,x as openTelemetryMetricsPlugin,b as openTelemetryPlugin,S as rateLimitPlugin,C as retryPlugin,w as uploadPlugin};
1
+ import{n as e,t}from"./RequestError-B0HIY1zK.js";import{d as n,f as r}from"./validateResponseStatus-JYSqdThE.js";import{i,n as a,r as o,t as s}from"./createClient-BJInwX7D.js";import{MockAdapter as c}from"./testing.js";import{t as l}from"./PluginError-CcuPSIRv.js";import{authPlugin as u}from"./plugins/auth.js";import{a as d,i as f,n as p,r as m,t as h}from"./cachePlugin-kcIdZe02.js";import{circuitBreakerPlugin as g}from"./plugins/circuit-breaker.js";import{concurrencyPlugin as _}from"./plugins/concurrency.js";import{downloadPlugin as v}from"./plugins/download.js";import{loggerPlugin as y}from"./plugins/logger.js";import{openTelemetryPlugin as b}from"./plugins/opentelemetry.js";import{openTelemetryMetricsPlugin as x}from"./plugins/opentelemetry-metrics.js";import{t as S}from"./rateLimitPlugin-EyoriWyF.js";import{retryPlugin as C}from"./plugins/retry.js";import{uploadPlugin as w}from"./plugins/upload.js";import"./plugins.js";export{a as Client,i as FetchAdapter,m as IndexedDBCacheStore,o as InterceptorManager,f as MemoryCacheStore,c as MockAdapter,l as PluginError,t as RequestError,n as SchemaValidationError,p as TieredCacheStore,d as WebStorageCacheStore,u as authPlugin,h as cachePlugin,g as circuitBreakerPlugin,_ as concurrencyPlugin,s as createClient,v as downloadPlugin,e as isRequestError,r as isSchemaValidationError,y as loggerPlugin,x as openTelemetryMetricsPlugin,b as openTelemetryPlugin,S as rateLimitPlugin,C as retryPlugin,w as uploadPlugin};
@@ -0,0 +1,6 @@
1
+ import { O as LoggerOptions } from "./response-BmBc0r8_.js";
2
+ import { t as Plugin } from "./Plugin-C5P_tBXo.js";
3
+ //#region src/plugins/loggerPlugin.d.ts
4
+ declare function loggerPlugin(defaultOptions?: LoggerOptions): Plugin;
5
+ //#endregion
6
+ export { loggerPlugin as t };
@@ -0,0 +1,6 @@
1
+ import { O as LoggerOptions } from "./response-BmBc0r8_.cjs";
2
+ import { t as Plugin } from "./Plugin-DYSeSZ6O.cjs";
3
+ //#region src/plugins/loggerPlugin.d.ts
4
+ declare function loggerPlugin(defaultOptions?: LoggerOptions): Plugin;
5
+ //#endregion
6
+ export { loggerPlugin as t };
@@ -1,5 +1,5 @@
1
- import { f as RequestConfig, k as OpenTelemetryAttributeValue } from "./response-B6Z3qxyO.js";
2
- import { t as Plugin } from "./Plugin-C9ZQzyF6.js";
1
+ import { A as OpenTelemetryAttributeValue, f as RequestConfig } from "./response-BmBc0r8_.js";
2
+ import { t as Plugin } from "./Plugin-C5P_tBXo.js";
3
3
  //#region src/plugins/openTelemetryMetricsPlugin.d.ts
4
4
  type OpenTelemetryMetricAttributes = Readonly<Record<string, OpenTelemetryAttributeValue>>;
5
5
  interface OpenTelemetryCounter {
@@ -1,5 +1,5 @@
1
- import { f as RequestConfig, k as OpenTelemetryAttributeValue } from "./response-B6Z3qxyO.cjs";
2
- import { t as Plugin } from "./Plugin-Cxb-obdZ.cjs";
1
+ import { A as OpenTelemetryAttributeValue, f as RequestConfig } from "./response-BmBc0r8_.cjs";
2
+ import { t as Plugin } from "./Plugin-DYSeSZ6O.cjs";
3
3
  //#region src/plugins/openTelemetryMetricsPlugin.d.ts
4
4
  type OpenTelemetryMetricAttributes = Readonly<Record<string, OpenTelemetryAttributeValue>>;
5
5
  interface OpenTelemetryCounter {
@@ -1,5 +1,5 @@
1
- import { f as RequestConfig, k as OpenTelemetryAttributeValue } from "./response-B6Z3qxyO.cjs";
2
- import { t as Plugin } from "./Plugin-Cxb-obdZ.cjs";
1
+ import { A as OpenTelemetryAttributeValue, f as RequestConfig } from "./response-BmBc0r8_.cjs";
2
+ import { t as Plugin } from "./Plugin-DYSeSZ6O.cjs";
3
3
  //#region src/plugins/openTelemetryPlugin.d.ts
4
4
  interface OpenTelemetrySpan {
5
5
  setAttribute(name: string, value: OpenTelemetryAttributeValue): this;
@@ -1,5 +1,5 @@
1
- import { f as RequestConfig, k as OpenTelemetryAttributeValue } from "./response-B6Z3qxyO.js";
2
- import { t as Plugin } from "./Plugin-C9ZQzyF6.js";
1
+ import { A as OpenTelemetryAttributeValue, f as RequestConfig } from "./response-BmBc0r8_.js";
2
+ import { t as Plugin } from "./Plugin-C5P_tBXo.js";
3
3
  //#region src/plugins/openTelemetryPlugin.d.ts
4
4
  interface OpenTelemetrySpan {
5
5
  setAttribute(name: string, value: OpenTelemetryAttributeValue): this;
@@ -1,2 +1,2 @@
1
- import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "../authPlugin-BXi6WjtM.cjs";
1
+ import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "../authPlugin-DpE4afbz.cjs";
2
2
  export { AuthPluginOptions, AuthTokenStorage, authPlugin };
@@ -1,2 +1,2 @@
1
- import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "../authPlugin-DdzlLQVo.js";
1
+ import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "../authPlugin-USKx_XNX.js";
2
2
  export { AuthPluginOptions, AuthTokenStorage, authPlugin };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cachePlugin-B-5paXgx.cjs");exports.IndexedDBCacheStore=e.a,exports.MemoryCacheStore=e.t,exports.TieredCacheStore=e.i,exports.WebStorageCacheStore=e.n,exports.cachePlugin=e.r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cachePlugin-ComdU-Tb.cjs");exports.IndexedDBCacheStore=e.r,exports.MemoryCacheStore=e.i,exports.TieredCacheStore=e.n,exports.WebStorageCacheStore=e.a,exports.cachePlugin=e.t;
@@ -1,2 +1,2 @@
1
- import { C as IndexedDBCacheStoreOptions, S as IndexedDBCacheStoreEvent, _ as TieredCacheStore, a as CachePluginOptions, b as IndexedDBCacheCompactionResult, c as CacheStats, d as MemoryCacheStoreOptions, f as WebStorageCacheStore, g as TieredCacheCoordinationOptions, h as TieredCacheBroadcastOptions, i as CachePlugin, l as CacheStore, m as cachePlugin, n as CacheEvent, o as CacheRefreshLease, p as WebStorageCacheStoreOptions, r as CacheEventType, s as CacheSetOptions, t as CacheEntry, u as MemoryCacheStore, v as TieredCacheStoreOptions, w as IndexedDBCacheUsage, x as IndexedDBCacheStore, y as IndexedDBCacheCompactionOptions } from "../cachePlugin-Bk7V57oZ.cjs";
2
- export { CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, CacheRefreshLease, CacheSetOptions, CacheStats, CacheStore, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, MemoryCacheStoreOptions, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, WebStorageCacheStoreOptions, cachePlugin };
1
+ import { C as WebStorageCacheStore, S as MemoryCacheStoreOptions, _ as IndexedDBCacheUsage, a as CacheSetOptions, b as CacheStore, c as TieredCacheBroadcastOptions, d as TieredCacheStoreOptions, f as IndexedDBCacheCompactionOptions, g as IndexedDBCacheStoreOptions, h as IndexedDBCacheStoreEvent, i as CachePluginOptions, l as TieredCacheCoordinationOptions, m as IndexedDBCacheStore, n as CacheEventType, o as CacheStats, p as IndexedDBCacheCompactionResult, r as CachePlugin, s as cachePlugin, t as CacheEvent, u as TieredCacheStore, v as CacheEntry, w as WebStorageCacheStoreOptions, x as MemoryCacheStore, y as CacheRefreshLease } from "../cachePlugin-BMcLP92z.cjs";
2
+ export { type CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, type CacheRefreshLease, CacheSetOptions, CacheStats, type CacheStore, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, type MemoryCacheStoreOptions, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, type WebStorageCacheStoreOptions, cachePlugin };
@@ -1,2 +1,2 @@
1
- import { C as IndexedDBCacheStoreOptions, S as IndexedDBCacheStoreEvent, _ as TieredCacheStore, a as CachePluginOptions, b as IndexedDBCacheCompactionResult, c as CacheStats, d as MemoryCacheStoreOptions, f as WebStorageCacheStore, g as TieredCacheCoordinationOptions, h as TieredCacheBroadcastOptions, i as CachePlugin, l as CacheStore, m as cachePlugin, n as CacheEvent, o as CacheRefreshLease, p as WebStorageCacheStoreOptions, r as CacheEventType, s as CacheSetOptions, t as CacheEntry, u as MemoryCacheStore, v as TieredCacheStoreOptions, w as IndexedDBCacheUsage, x as IndexedDBCacheStore, y as IndexedDBCacheCompactionOptions } from "../cachePlugin-BZ0lLFOx.js";
2
- export { CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, CacheRefreshLease, CacheSetOptions, CacheStats, CacheStore, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, MemoryCacheStoreOptions, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, WebStorageCacheStoreOptions, cachePlugin };
1
+ import { C as WebStorageCacheStore, S as MemoryCacheStoreOptions, _ as IndexedDBCacheUsage, a as CacheSetOptions, b as CacheStore, c as TieredCacheBroadcastOptions, d as TieredCacheStoreOptions, f as IndexedDBCacheCompactionOptions, g as IndexedDBCacheStoreOptions, h as IndexedDBCacheStoreEvent, i as CachePluginOptions, l as TieredCacheCoordinationOptions, m as IndexedDBCacheStore, n as CacheEventType, o as CacheStats, p as IndexedDBCacheCompactionResult, r as CachePlugin, s as cachePlugin, t as CacheEvent, u as TieredCacheStore, v as CacheEntry, w as WebStorageCacheStoreOptions, x as MemoryCacheStore, y as CacheRefreshLease } from "../cachePlugin-D5iyPREK.js";
2
+ export { type CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, type CacheRefreshLease, CacheSetOptions, CacheStats, type CacheStore, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, type MemoryCacheStoreOptions, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, type WebStorageCacheStoreOptions, cachePlugin };
@@ -1 +1 @@
1
- import{a as e,i as t,n,r,t as i}from"../cachePlugin-CV1r0vZB.js";export{e as IndexedDBCacheStore,i as MemoryCacheStore,t as TieredCacheStore,n as WebStorageCacheStore,r as cachePlugin};
1
+ import{a as e,i as t,n,r,t as i}from"../cachePlugin-kcIdZe02.js";export{r as IndexedDBCacheStore,t as MemoryCacheStore,n as TieredCacheStore,e as WebStorageCacheStore,i as cachePlugin};
@@ -1,2 +1,2 @@
1
- import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "../circuitBreakerPlugin-BG2PlHSo.cjs";
1
+ import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "../circuitBreakerPlugin-tbwS-j5u.cjs";
2
2
  export { CircuitBreakerPlugin, CircuitBreakerPluginOptions, circuitBreakerPlugin };
@@ -1,2 +1,2 @@
1
- import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "../circuitBreakerPlugin-CX7s4iAe.js";
1
+ import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "../circuitBreakerPlugin-D12NHWon.js";
2
2
  export { CircuitBreakerPlugin, CircuitBreakerPluginOptions, circuitBreakerPlugin };
@@ -1,2 +1,2 @@
1
- import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "../concurrencyPlugin-DeDnm7ND.cjs";
1
+ import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "../concurrencyPlugin-Dvsgel94.cjs";
2
2
  export { ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, concurrencyPlugin };
@@ -1,2 +1,2 @@
1
- import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "../concurrencyPlugin-HvGuOA2p.js";
1
+ import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "../concurrencyPlugin-W84oJyJP.js";
2
2
  export { ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, concurrencyPlugin };
@@ -1,2 +1,2 @@
1
- import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "../downloadPlugin-BlA-z0Pj.cjs";
1
+ import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "../downloadPlugin-DJDuMLwT.cjs";
2
2
  export { DownloadPluginOptions, DownloadTransport, downloadPlugin };
@@ -1,2 +1,2 @@
1
- import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "../downloadPlugin-BrXcygGo.js";
1
+ import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "../downloadPlugin-DjCZgsVL.js";
2
2
  export { DownloadPluginOptions, DownloadTransport, downloadPlugin };
@@ -1,2 +1,2 @@
1
- import { t as loggerPlugin } from "../loggerPlugin-CZpdXtBt.cjs";
1
+ import { t as loggerPlugin } from "../loggerPlugin-DZlxRUT0.cjs";
2
2
  export { loggerPlugin };
@@ -1,2 +1,2 @@
1
- import { t as loggerPlugin } from "../loggerPlugin-CBbwGZme.js";
1
+ import { t as loggerPlugin } from "../loggerPlugin-DFIXW1B1.js";
2
2
  export { loggerPlugin };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../RequestError-DrCr_lwO.cjs"),t=require("../resolveExtensionConfig-BHHfQwjF.cjs"),n=new Set([`GET`,`HEAD`]);function memoryCachePlugin(n={}){let r=n.maxEntries??100;if(!Number.isSafeInteger(r)||r<1)throw new e.t(`Memory cache maxEntries must be a positive integer`,{code:`CONFIG_ERROR`});let i=new Map,a=new WeakSet;return{name:`memory-cache`,conflicts:[`cache`],clear(){i.clear()},install(e){e.hooks.onTransport(e=>{let r=e.config,o=t.t(r,`memoryCache`);if(!o?.enabled||e.response||!cacheableRequest(r,o)||(cacheTtl(o.ttl??n.ttl,r),!requestAllowsCache(r)))return;let s=cacheKey(r,o),c=i.get(s);if(!c)return;if(Date.now()>=c.expiresAt){i.delete(s);return}let l=restoreEntry(c,r,e.preserveRaw);if(!l){i.delete(s);return}i.delete(s),i.set(s,c),a.add(e),e.response=l,e.cacheHit=!0}),e.hooks.onResponse(e=>{if(a.delete(e))return;let o=e.config,s=t.t(o,`memoryCache`),c=e.response;if(!s?.enabled||!c||!cacheableRequest(o,s)||!requestAllowsCache(o)||c.status<200||c.status>=300||c.raw.type===`opaque`||c.raw.type===`opaqueredirect`||isAsyncIterable(c.data))return;let l=cacheResponseTtl(c,cacheTtl(s.ttl??n.ttl,o));if(l<=0)return;let u=cacheKey(o,s),d=snapshotResponse(c,Date.now()+l,e.preserveRaw);d&&(i.delete(u),i.set(u,d),i.size>r&&i.delete(i.keys().next().value))},{requiresRawResponse:!1})}}}function cacheableRequest(e,t){return n.has(e.method??`GET`)&&e.body==null&&e.json===void 0&&e.form==null&&e.formData==null&&(!e.parseJson||!!t.key)&&(!e.querySerializer||!!t.key)&&e.responseType!==`stream`&&e.responseType!==`sse`&&e.responseType!==`ndjson`&&e.responseType!==`bytes`&&e.responseType!==`formData`&&e.fetchOptions?.mode!==`no-cors`&&e.fetchOptions?.redirect!==`manual`&&(e.fetchOptions?.credentials===`omit`||!!t.key)}function cacheTtl(t,n){let r=t??3e4;if(r!==1/0&&(!Number.isFinite(r)||r<0))throw new e.t(`Memory cache ttl must be non-negative`,{code:`CONFIG_ERROR`,config:n});return r}function requestAllowsCache(e){let t=new Headers(e.headers);return!t.has(`cache-control`)&&!t.has(`pragma`)}function cacheResponseTtl(e,t){if(e.headers.has(`vary`))return 0;let n=e.headers.get(`cache-control`),r;if(n)for(let e of n.split(`,`)){let t=e.trim().toLowerCase(),n=t.split(`=`,1)[0];if(n===`no-store`||n===`no-cache`||t.startsWith(`max-age=`)&&(r!==void 0||!/^max-age=\d+$/.test(t)||(r=Number(t.slice(8)),!Number.isSafeInteger(r))))return 0}if(r===void 0)return t;let i=e.headers.get(`age`),a=i&&/^\d+$/.test(i)?Number(i):0;return Math.min(t,Math.max(0,r-a)*1e3)}function cacheKey(e,t){if(t.key)return t.key;let n=new Headers(e.headers),r=[];n.forEach((e,t)=>{t!==`cache-control`&&t!==`pragma`&&r.push([t,e])}),r.sort(([e],[t])=>e.localeCompare(t));let i=[];if(e.searchParams)i.push(...e.searchParams.entries());else if(e.query)for(let t of Object.keys(e.query).sort())appendQuery(i,t,e.query[t]);return JSON.stringify({method:e.method??`GET`,baseURL:e.baseURL,url:String(e.url),responseType:e.responseType??`auto`,query:i,headers:r})}function appendQuery(e,t,n){if(n!==void 0){if(Array.isArray(n)){for(let r of n)appendQuery(e,t,r);return}e.push([t,n===null?``:String(n)])}}function snapshotResponse(e,t,n){let r=cloneData(e.data);if(!r)return;let i=n?tryClone(e.raw):void 0;if(!(n&&!i))return{data:r.value,expiresAt:t,status:e.status,statusText:e.statusText,headers:[...e.headers.entries()],raw:i}}function restoreEntry(e,t,n){try{if(n&&!e.raw)return;let r=cloneData(e.data);if(!r)return;let i=e.raw&&tryClone(e.raw);if(n&&!i)return;let a=new Response(i?.body??null,{status:e.status,statusText:e.statusText,headers:e.headers});return{data:r.value,status:e.status,statusText:e.statusText,headers:new Headers(e.headers),config:t,raw:a}}catch{return}}function tryClone(e){try{return e.clone()}catch{return}}function cloneData(e){if(typeof e!=`object`||!e)return{value:e};if(typeof structuredClone==`function`)try{return{value:structuredClone(e)}}catch{return}}function isAsyncIterable(e){return typeof e==`object`&&!!e&&Symbol.asyncIterator in e}exports.memoryCachePlugin=memoryCachePlugin;
@@ -0,0 +1,19 @@
1
+ import { t as Plugin } from "../Plugin-DYSeSZ6O.cjs";
2
+ //#region src/plugins/memoryCachePlugin.d.ts
3
+ interface MemoryCachePluginOptions {
4
+ /** Default lifetime in milliseconds. @default 30000 */
5
+ ttl?: number;
6
+ /** Maximum number of entries retained by this plugin. @default 100 */
7
+ maxEntries?: number;
8
+ }
9
+ interface MemoryCachePlugin extends Plugin {
10
+ clear(): void;
11
+ }
12
+ /**
13
+ * Opt-in memory-only TTL caching for data and complete-response requests.
14
+ * HTTP revalidation, stale serving, shared misses, persistence, and tags
15
+ * remain exclusive to cachePlugin().
16
+ */
17
+ declare function memoryCachePlugin(options?: MemoryCachePluginOptions): MemoryCachePlugin;
18
+ //#endregion
19
+ export { MemoryCachePlugin, MemoryCachePluginOptions, memoryCachePlugin };
@@ -0,0 +1,19 @@
1
+ import { t as Plugin } from "../Plugin-C5P_tBXo.js";
2
+ //#region src/plugins/memoryCachePlugin.d.ts
3
+ interface MemoryCachePluginOptions {
4
+ /** Default lifetime in milliseconds. @default 30000 */
5
+ ttl?: number;
6
+ /** Maximum number of entries retained by this plugin. @default 100 */
7
+ maxEntries?: number;
8
+ }
9
+ interface MemoryCachePlugin extends Plugin {
10
+ clear(): void;
11
+ }
12
+ /**
13
+ * Opt-in memory-only TTL caching for data and complete-response requests.
14
+ * HTTP revalidation, stale serving, shared misses, persistence, and tags
15
+ * remain exclusive to cachePlugin().
16
+ */
17
+ declare function memoryCachePlugin(options?: MemoryCachePluginOptions): MemoryCachePlugin;
18
+ //#endregion
19
+ export { MemoryCachePlugin, MemoryCachePluginOptions, memoryCachePlugin };
@@ -0,0 +1 @@
1
+ import{t as e}from"../RequestError-B0HIY1zK.js";import{t}from"../resolveExtensionConfig-QAFHZVte.js";const n=new Set([`GET`,`HEAD`]);function memoryCachePlugin(n={}){let r=n.maxEntries??100;if(!Number.isSafeInteger(r)||r<1)throw new e(`Memory cache maxEntries must be a positive integer`,{code:`CONFIG_ERROR`});let i=new Map,a=new WeakSet;return{name:`memory-cache`,conflicts:[`cache`],clear(){i.clear()},install(e){e.hooks.onTransport(e=>{let r=e.config,o=t(r,`memoryCache`);if(!o?.enabled||e.response||!cacheableRequest(r,o)||(cacheTtl(o.ttl??n.ttl,r),!requestAllowsCache(r)))return;let s=cacheKey(r,o),c=i.get(s);if(!c)return;if(Date.now()>=c.expiresAt){i.delete(s);return}let l=restoreEntry(c,r,e.preserveRaw);if(!l){i.delete(s);return}i.delete(s),i.set(s,c),a.add(e),e.response=l,e.cacheHit=!0}),e.hooks.onResponse(e=>{if(a.delete(e))return;let o=e.config,s=t(o,`memoryCache`),c=e.response;if(!s?.enabled||!c||!cacheableRequest(o,s)||!requestAllowsCache(o)||c.status<200||c.status>=300||c.raw.type===`opaque`||c.raw.type===`opaqueredirect`||isAsyncIterable(c.data))return;let l=cacheResponseTtl(c,cacheTtl(s.ttl??n.ttl,o));if(l<=0)return;let u=cacheKey(o,s),d=snapshotResponse(c,Date.now()+l,e.preserveRaw);d&&(i.delete(u),i.set(u,d),i.size>r&&i.delete(i.keys().next().value))},{requiresRawResponse:!1})}}}function cacheableRequest(e,t){return n.has(e.method??`GET`)&&e.body==null&&e.json===void 0&&e.form==null&&e.formData==null&&(!e.parseJson||!!t.key)&&(!e.querySerializer||!!t.key)&&e.responseType!==`stream`&&e.responseType!==`sse`&&e.responseType!==`ndjson`&&e.responseType!==`bytes`&&e.responseType!==`formData`&&e.fetchOptions?.mode!==`no-cors`&&e.fetchOptions?.redirect!==`manual`&&(e.fetchOptions?.credentials===`omit`||!!t.key)}function cacheTtl(t,n){let r=t??3e4;if(r!==1/0&&(!Number.isFinite(r)||r<0))throw new e(`Memory cache ttl must be non-negative`,{code:`CONFIG_ERROR`,config:n});return r}function requestAllowsCache(e){let t=new Headers(e.headers);return!t.has(`cache-control`)&&!t.has(`pragma`)}function cacheResponseTtl(e,t){if(e.headers.has(`vary`))return 0;let n=e.headers.get(`cache-control`),r;if(n)for(let e of n.split(`,`)){let t=e.trim().toLowerCase(),n=t.split(`=`,1)[0];if(n===`no-store`||n===`no-cache`||t.startsWith(`max-age=`)&&(r!==void 0||!/^max-age=\d+$/.test(t)||(r=Number(t.slice(8)),!Number.isSafeInteger(r))))return 0}if(r===void 0)return t;let i=e.headers.get(`age`),a=i&&/^\d+$/.test(i)?Number(i):0;return Math.min(t,Math.max(0,r-a)*1e3)}function cacheKey(e,t){if(t.key)return t.key;let n=new Headers(e.headers),r=[];n.forEach((e,t)=>{t!==`cache-control`&&t!==`pragma`&&r.push([t,e])}),r.sort(([e],[t])=>e.localeCompare(t));let i=[];if(e.searchParams)i.push(...e.searchParams.entries());else if(e.query)for(let t of Object.keys(e.query).sort())appendQuery(i,t,e.query[t]);return JSON.stringify({method:e.method??`GET`,baseURL:e.baseURL,url:String(e.url),responseType:e.responseType??`auto`,query:i,headers:r})}function appendQuery(e,t,n){if(n!==void 0){if(Array.isArray(n)){for(let r of n)appendQuery(e,t,r);return}e.push([t,n===null?``:String(n)])}}function snapshotResponse(e,t,n){let r=cloneData(e.data);if(!r)return;let i=n?tryClone(e.raw):void 0;if(!(n&&!i))return{data:r.value,expiresAt:t,status:e.status,statusText:e.statusText,headers:[...e.headers.entries()],raw:i}}function restoreEntry(e,t,n){try{if(n&&!e.raw)return;let r=cloneData(e.data);if(!r)return;let i=e.raw&&tryClone(e.raw);if(n&&!i)return;let a=new Response(i?.body??null,{status:e.status,statusText:e.statusText,headers:e.headers});return{data:r.value,status:e.status,statusText:e.statusText,headers:new Headers(e.headers),config:t,raw:a}}catch{return}}function tryClone(e){try{return e.clone()}catch{return}}function cloneData(e){if(typeof e!=`object`||!e)return{value:e};if(typeof structuredClone==`function`)try{return{value:structuredClone(e)}}catch{return}}function isAsyncIterable(e){return typeof e==`object`&&!!e&&Symbol.asyncIterator in e}export{memoryCachePlugin};
@@ -1,2 +1,2 @@
1
- import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "../openTelemetryMetricsPlugin-D6y3KC4M.cjs";
1
+ import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "../openTelemetryMetricsPlugin-BqUiYPda.cjs";
2
2
  export { OpenTelemetryCounter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsPluginOptions, openTelemetryMetricsPlugin };
@@ -1,2 +1,2 @@
1
- import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "../openTelemetryMetricsPlugin-fQOtuYJX.js";
1
+ import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "../openTelemetryMetricsPlugin-0UQ5jqvv.js";
2
2
  export { OpenTelemetryCounter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsPluginOptions, openTelemetryMetricsPlugin };
@@ -1,2 +1,2 @@
1
- import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "../openTelemetryPlugin-FAngP8jc.cjs";
1
+ import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "../openTelemetryPlugin-Cuap7zKx.cjs";
2
2
  export { OpenTelemetryContextApi, OpenTelemetryHeaderSetter, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, openTelemetryPlugin };
@@ -1,2 +1,2 @@
1
- import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "../openTelemetryPlugin-CiRMppHI.js";
1
+ import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "../openTelemetryPlugin-w3t3yoCr.js";
2
2
  export { OpenTelemetryContextApi, OpenTelemetryHeaderSetter, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, openTelemetryPlugin };
@@ -1,2 +1,2 @@
1
- import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "../rateLimitPlugin-1rbZeJmP.cjs";
1
+ import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "../rateLimitPlugin-KOSUTbvE.cjs";
2
2
  export { RateLimitPlugin, RateLimitPluginOptions, RateLimitState, rateLimitPlugin };
@@ -1,2 +1,2 @@
1
- import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "../rateLimitPlugin-D5t-8kzP.js";
1
+ import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "../rateLimitPlugin-cU0qI8TH.js";
2
2
  export { RateLimitPlugin, RateLimitPluginOptions, RateLimitState, rateLimitPlugin };
@@ -1,2 +1,2 @@
1
- import { t as retryPlugin } from "../retryPlugin-C0dORYIQ.cjs";
1
+ import { t as retryPlugin } from "../retryPlugin-Ir1VPUHq.cjs";
2
2
  export { retryPlugin };
@@ -1,2 +1,2 @@
1
- import { t as retryPlugin } from "../retryPlugin-CVelhp0f.js";
1
+ import { t as retryPlugin } from "../retryPlugin-Df4T3WEv.js";
2
2
  export { retryPlugin };
@@ -1,2 +1,2 @@
1
- import { t as uploadPlugin } from "../uploadPlugin-Ci0ys-ng.cjs";
1
+ import { t as uploadPlugin } from "../uploadPlugin-CAHUGiz4.cjs";
2
2
  export { uploadPlugin };
@@ -1,2 +1,2 @@
1
- import { t as uploadPlugin } from "../uploadPlugin-BrzbWtAN.js";
1
+ import { t as uploadPlugin } from "../uploadPlugin-C8CgYCKh.js";
2
2
  export { uploadPlugin };
package/dist/plugins.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./PluginError-DT3VnlUB.cjs"),t=require("./plugins/auth.cjs"),n=require("./cachePlugin-B-5paXgx.cjs"),r=require("./plugins/circuit-breaker.cjs"),i=require("./plugins/concurrency.cjs"),a=require("./plugins/download.cjs"),o=require("./plugins/logger.cjs"),s=require("./plugins/opentelemetry.cjs"),c=require("./plugins/opentelemetry-metrics.cjs"),l=require("./rateLimitPlugin-CtwD8U0P.cjs"),u=require("./plugins/retry.cjs"),d=require("./plugins/upload.cjs");exports.IndexedDBCacheStore=n.a,exports.MemoryCacheStore=n.t,exports.PluginError=e.t,exports.TieredCacheStore=n.i,exports.WebStorageCacheStore=n.n,exports.authPlugin=t.authPlugin,exports.cachePlugin=n.r,exports.circuitBreakerPlugin=r.circuitBreakerPlugin,exports.concurrencyPlugin=i.concurrencyPlugin,exports.downloadPlugin=a.downloadPlugin,exports.loggerPlugin=o.loggerPlugin,exports.openTelemetryMetricsPlugin=c.openTelemetryMetricsPlugin,exports.openTelemetryPlugin=s.openTelemetryPlugin,exports.rateLimitPlugin=l.t,exports.retryPlugin=u.retryPlugin,exports.uploadPlugin=d.uploadPlugin;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./PluginError-DT3VnlUB.cjs"),t=require("./plugins/auth.cjs"),n=require("./cachePlugin-ComdU-Tb.cjs"),r=require("./plugins/circuit-breaker.cjs"),i=require("./plugins/concurrency.cjs"),a=require("./plugins/download.cjs"),o=require("./plugins/logger.cjs"),s=require("./plugins/opentelemetry.cjs"),c=require("./plugins/opentelemetry-metrics.cjs"),l=require("./rateLimitPlugin-CtwD8U0P.cjs"),u=require("./plugins/retry.cjs"),d=require("./plugins/upload.cjs");exports.IndexedDBCacheStore=n.r,exports.MemoryCacheStore=n.i,exports.PluginError=e.t,exports.TieredCacheStore=n.n,exports.WebStorageCacheStore=n.a,exports.authPlugin=t.authPlugin,exports.cachePlugin=n.t,exports.circuitBreakerPlugin=r.circuitBreakerPlugin,exports.concurrencyPlugin=i.concurrencyPlugin,exports.downloadPlugin=a.downloadPlugin,exports.loggerPlugin=o.loggerPlugin,exports.openTelemetryMetricsPlugin=c.openTelemetryMetricsPlugin,exports.openTelemetryPlugin=s.openTelemetryPlugin,exports.rateLimitPlugin=l.t,exports.retryPlugin=u.retryPlugin,exports.uploadPlugin=d.uploadPlugin;
@@ -1,14 +1,14 @@
1
- import { a as PluginInterceptorManager, i as PluginHookManager, n as PluginCleanup, r as PluginContext, t as Plugin } from "./Plugin-Cxb-obdZ.cjs";
1
+ import { a as PluginInterceptorManager, i as PluginHookManager, n as PluginCleanup, r as PluginContext, t as Plugin } from "./Plugin-DYSeSZ6O.cjs";
2
2
  import { n as PluginErrorCode, r as PluginErrorOptions, t as PluginError } from "./PluginError-DVP3pUt_.cjs";
3
- import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-BXi6WjtM.cjs";
4
- import { C as IndexedDBCacheStoreOptions, S as IndexedDBCacheStoreEvent, _ as TieredCacheStore, a as CachePluginOptions, b as IndexedDBCacheCompactionResult, c as CacheStats, d as MemoryCacheStoreOptions, f as WebStorageCacheStore, g as TieredCacheCoordinationOptions, h as TieredCacheBroadcastOptions, i as CachePlugin, l as CacheStore, m as cachePlugin, n as CacheEvent, o as CacheRefreshLease, p as WebStorageCacheStoreOptions, r as CacheEventType, s as CacheSetOptions, t as CacheEntry, u as MemoryCacheStore, v as TieredCacheStoreOptions, w as IndexedDBCacheUsage, x as IndexedDBCacheStore, y as IndexedDBCacheCompactionOptions } from "./cachePlugin-Bk7V57oZ.cjs";
5
- import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-BG2PlHSo.cjs";
6
- import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-DeDnm7ND.cjs";
7
- import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-BlA-z0Pj.cjs";
8
- import { t as loggerPlugin } from "./loggerPlugin-CZpdXtBt.cjs";
9
- import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-FAngP8jc.cjs";
10
- import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-D6y3KC4M.cjs";
11
- import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-1rbZeJmP.cjs";
12
- import { t as retryPlugin } from "./retryPlugin-C0dORYIQ.cjs";
13
- import { t as uploadPlugin } from "./uploadPlugin-Ci0ys-ng.cjs";
14
- export { AuthPluginOptions, AuthTokenStorage, CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, CacheRefreshLease, CacheSetOptions, CacheStats, CacheStore, CircuitBreakerPlugin, CircuitBreakerPluginOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadPluginOptions, DownloadTransport, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, MemoryCacheStoreOptions, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsPluginOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, downloadPlugin, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
3
+ import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-DpE4afbz.cjs";
4
+ import { C as WebStorageCacheStore, S as MemoryCacheStoreOptions, _ as IndexedDBCacheUsage, a as CacheSetOptions, b as CacheStore, c as TieredCacheBroadcastOptions, d as TieredCacheStoreOptions, f as IndexedDBCacheCompactionOptions, g as IndexedDBCacheStoreOptions, h as IndexedDBCacheStoreEvent, i as CachePluginOptions, l as TieredCacheCoordinationOptions, m as IndexedDBCacheStore, n as CacheEventType, o as CacheStats, p as IndexedDBCacheCompactionResult, r as CachePlugin, s as cachePlugin, t as CacheEvent, u as TieredCacheStore, v as CacheEntry, w as WebStorageCacheStoreOptions, x as MemoryCacheStore, y as CacheRefreshLease } from "./cachePlugin-BMcLP92z.cjs";
5
+ import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-tbwS-j5u.cjs";
6
+ import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-Dvsgel94.cjs";
7
+ import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-DJDuMLwT.cjs";
8
+ import { t as loggerPlugin } from "./loggerPlugin-DZlxRUT0.cjs";
9
+ import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-Cuap7zKx.cjs";
10
+ import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-BqUiYPda.cjs";
11
+ import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-KOSUTbvE.cjs";
12
+ import { t as retryPlugin } from "./retryPlugin-Ir1VPUHq.cjs";
13
+ import { t as uploadPlugin } from "./uploadPlugin-CAHUGiz4.cjs";
14
+ export { AuthPluginOptions, AuthTokenStorage, type CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, type CacheRefreshLease, CacheSetOptions, CacheStats, type CacheStore, CircuitBreakerPlugin, CircuitBreakerPluginOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadPluginOptions, DownloadTransport, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, type MemoryCacheStoreOptions, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsPluginOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, type WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, downloadPlugin, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
package/dist/plugins.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { a as PluginInterceptorManager, i as PluginHookManager, n as PluginCleanup, r as PluginContext, t as Plugin } from "./Plugin-C9ZQzyF6.js";
1
+ import { a as PluginInterceptorManager, i as PluginHookManager, n as PluginCleanup, r as PluginContext, t as Plugin } from "./Plugin-C5P_tBXo.js";
2
2
  import { n as PluginErrorCode, r as PluginErrorOptions, t as PluginError } from "./PluginError-DVP3pUt_.js";
3
- import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-DdzlLQVo.js";
4
- import { C as IndexedDBCacheStoreOptions, S as IndexedDBCacheStoreEvent, _ as TieredCacheStore, a as CachePluginOptions, b as IndexedDBCacheCompactionResult, c as CacheStats, d as MemoryCacheStoreOptions, f as WebStorageCacheStore, g as TieredCacheCoordinationOptions, h as TieredCacheBroadcastOptions, i as CachePlugin, l as CacheStore, m as cachePlugin, n as CacheEvent, o as CacheRefreshLease, p as WebStorageCacheStoreOptions, r as CacheEventType, s as CacheSetOptions, t as CacheEntry, u as MemoryCacheStore, v as TieredCacheStoreOptions, w as IndexedDBCacheUsage, x as IndexedDBCacheStore, y as IndexedDBCacheCompactionOptions } from "./cachePlugin-BZ0lLFOx.js";
5
- import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-CX7s4iAe.js";
6
- import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-HvGuOA2p.js";
7
- import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-BrXcygGo.js";
8
- import { t as loggerPlugin } from "./loggerPlugin-CBbwGZme.js";
9
- import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-CiRMppHI.js";
10
- import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-fQOtuYJX.js";
11
- import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-D5t-8kzP.js";
12
- import { t as retryPlugin } from "./retryPlugin-CVelhp0f.js";
13
- import { t as uploadPlugin } from "./uploadPlugin-BrzbWtAN.js";
14
- export { AuthPluginOptions, AuthTokenStorage, CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, CacheRefreshLease, CacheSetOptions, CacheStats, CacheStore, CircuitBreakerPlugin, CircuitBreakerPluginOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadPluginOptions, DownloadTransport, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, MemoryCacheStoreOptions, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsPluginOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, downloadPlugin, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
3
+ import { n as AuthTokenStorage, r as authPlugin, t as AuthPluginOptions } from "./authPlugin-USKx_XNX.js";
4
+ import { C as WebStorageCacheStore, S as MemoryCacheStoreOptions, _ as IndexedDBCacheUsage, a as CacheSetOptions, b as CacheStore, c as TieredCacheBroadcastOptions, d as TieredCacheStoreOptions, f as IndexedDBCacheCompactionOptions, g as IndexedDBCacheStoreOptions, h as IndexedDBCacheStoreEvent, i as CachePluginOptions, l as TieredCacheCoordinationOptions, m as IndexedDBCacheStore, n as CacheEventType, o as CacheStats, p as IndexedDBCacheCompactionResult, r as CachePlugin, s as cachePlugin, t as CacheEvent, u as TieredCacheStore, v as CacheEntry, w as WebStorageCacheStoreOptions, x as MemoryCacheStore, y as CacheRefreshLease } from "./cachePlugin-D5iyPREK.js";
5
+ import { n as CircuitBreakerPluginOptions, r as circuitBreakerPlugin, t as CircuitBreakerPlugin } from "./circuitBreakerPlugin-D12NHWon.js";
6
+ import { i as concurrencyPlugin, n as ConcurrencyPluginOptions, r as ConcurrencyState, t as ConcurrencyPlugin } from "./concurrencyPlugin-W84oJyJP.js";
7
+ import { n as DownloadTransport, r as downloadPlugin, t as DownloadPluginOptions } from "./downloadPlugin-DjCZgsVL.js";
8
+ import { t as loggerPlugin } from "./loggerPlugin-DFIXW1B1.js";
9
+ import { a as OpenTelemetrySpan, c as openTelemetryPlugin, i as OpenTelemetryPropagationApi, n as OpenTelemetryHeaderSetter, o as OpenTelemetryTraceApi, r as OpenTelemetryPluginOptions, s as OpenTelemetryTracer, t as OpenTelemetryContextApi } from "./openTelemetryPlugin-w3t3yoCr.js";
10
+ import { a as OpenTelemetryMetricsPluginOptions, i as OpenTelemetryMetricAttributes, n as OpenTelemetryHistogram, o as openTelemetryMetricsPlugin, r as OpenTelemetryMeter, t as OpenTelemetryCounter } from "./openTelemetryMetricsPlugin-0UQ5jqvv.js";
11
+ import { i as rateLimitPlugin, n as RateLimitPluginOptions, r as RateLimitState, t as RateLimitPlugin } from "./rateLimitPlugin-cU0qI8TH.js";
12
+ import { t as retryPlugin } from "./retryPlugin-Df4T3WEv.js";
13
+ import { t as uploadPlugin } from "./uploadPlugin-C8CgYCKh.js";
14
+ export { AuthPluginOptions, AuthTokenStorage, type CacheEntry, CacheEvent, CacheEventType, CachePlugin, CachePluginOptions, type CacheRefreshLease, CacheSetOptions, CacheStats, type CacheStore, CircuitBreakerPlugin, CircuitBreakerPluginOptions, ConcurrencyPlugin, ConcurrencyPluginOptions, ConcurrencyState, DownloadPluginOptions, DownloadTransport, type IndexedDBCacheCompactionOptions, type IndexedDBCacheCompactionResult, IndexedDBCacheStore, type IndexedDBCacheStoreEvent, type IndexedDBCacheStoreOptions, type IndexedDBCacheUsage, MemoryCacheStore, type MemoryCacheStoreOptions, OpenTelemetryContextApi, OpenTelemetryCounter, OpenTelemetryHeaderSetter, OpenTelemetryHistogram, OpenTelemetryMeter, OpenTelemetryMetricAttributes, OpenTelemetryMetricsPluginOptions, OpenTelemetryPluginOptions, OpenTelemetryPropagationApi, OpenTelemetrySpan, OpenTelemetryTraceApi, OpenTelemetryTracer, Plugin, PluginCleanup, PluginContext, PluginError, PluginErrorCode, PluginErrorOptions, PluginHookManager, PluginInterceptorManager, RateLimitPlugin, RateLimitPluginOptions, RateLimitState, type TieredCacheBroadcastOptions, type TieredCacheCoordinationOptions, TieredCacheStore, type TieredCacheStoreOptions, WebStorageCacheStore, type WebStorageCacheStoreOptions, authPlugin, cachePlugin, circuitBreakerPlugin, concurrencyPlugin, downloadPlugin, loggerPlugin, openTelemetryMetricsPlugin, openTelemetryPlugin, rateLimitPlugin, retryPlugin, uploadPlugin };
package/dist/plugins.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./PluginError-CcuPSIRv.js";import{authPlugin as t}from"./plugins/auth.js";import{a as n,i as r,n as i,r as a,t as o}from"./cachePlugin-CV1r0vZB.js";import{circuitBreakerPlugin as s}from"./plugins/circuit-breaker.js";import{concurrencyPlugin as c}from"./plugins/concurrency.js";import{downloadPlugin as l}from"./plugins/download.js";import{loggerPlugin as u}from"./plugins/logger.js";import{openTelemetryPlugin as d}from"./plugins/opentelemetry.js";import{openTelemetryMetricsPlugin as f}from"./plugins/opentelemetry-metrics.js";import{t as p}from"./rateLimitPlugin-EyoriWyF.js";import{retryPlugin as m}from"./plugins/retry.js";import{uploadPlugin as h}from"./plugins/upload.js";export{n as IndexedDBCacheStore,o as MemoryCacheStore,e as PluginError,r as TieredCacheStore,i as WebStorageCacheStore,t as authPlugin,a as cachePlugin,s as circuitBreakerPlugin,c as concurrencyPlugin,l as downloadPlugin,u as loggerPlugin,f as openTelemetryMetricsPlugin,d as openTelemetryPlugin,p as rateLimitPlugin,m as retryPlugin,h as uploadPlugin};
1
+ import{t as e}from"./PluginError-CcuPSIRv.js";import{authPlugin as t}from"./plugins/auth.js";import{a as n,i as r,n as i,r as a,t as o}from"./cachePlugin-kcIdZe02.js";import{circuitBreakerPlugin as s}from"./plugins/circuit-breaker.js";import{concurrencyPlugin as c}from"./plugins/concurrency.js";import{downloadPlugin as l}from"./plugins/download.js";import{loggerPlugin as u}from"./plugins/logger.js";import{openTelemetryPlugin as d}from"./plugins/opentelemetry.js";import{openTelemetryMetricsPlugin as f}from"./plugins/opentelemetry-metrics.js";import{t as p}from"./rateLimitPlugin-EyoriWyF.js";import{retryPlugin as m}from"./plugins/retry.js";import{uploadPlugin as h}from"./plugins/upload.js";export{a as IndexedDBCacheStore,r as MemoryCacheStore,e as PluginError,i as TieredCacheStore,n as WebStorageCacheStore,t as authPlugin,o as cachePlugin,s as circuitBreakerPlugin,c as concurrencyPlugin,l as downloadPlugin,u as loggerPlugin,f as openTelemetryMetricsPlugin,d as openTelemetryPlugin,p as rateLimitPlugin,m as retryPlugin,h as uploadPlugin};
@@ -1,5 +1,5 @@
1
- import { f as RequestConfig } from "./response-B6Z3qxyO.cjs";
2
- import { t as Plugin } from "./Plugin-Cxb-obdZ.cjs";
1
+ import { f as RequestConfig } from "./response-BmBc0r8_.cjs";
2
+ import { t as Plugin } from "./Plugin-DYSeSZ6O.cjs";
3
3
  //#region src/plugins/rateLimitPlugin.d.ts
4
4
  interface RateLimitPluginOptions {
5
5
  /** Maximum transport attempts admitted during each rolling interval. */
@@ -1,5 +1,5 @@
1
- import { f as RequestConfig } from "./response-B6Z3qxyO.js";
2
- import { t as Plugin } from "./Plugin-C9ZQzyF6.js";
1
+ import { f as RequestConfig } from "./response-BmBc0r8_.js";
2
+ import { t as Plugin } from "./Plugin-C5P_tBXo.js";
3
3
  //#region src/plugins/rateLimitPlugin.d.ts
4
4
  interface RateLimitPluginOptions {
5
5
  /** Maximum transport attempts admitted during each rolling interval. */
@@ -181,6 +181,12 @@ interface CacheOptions {
181
181
  */
182
182
  dedupe?: boolean;
183
183
  }
184
+ /** Per-request settings for the small in-memory TTL cache. */
185
+ interface MemoryCacheOptions {
186
+ enabled?: boolean;
187
+ ttl?: number;
188
+ key?: string;
189
+ }
184
190
  interface ConcurrencyOptions {
185
191
  /**
186
192
  * Enable concurrency limiting for this request.
@@ -379,6 +385,7 @@ type JsonStringifier = (value: unknown) => string;
379
385
  interface RequestExtensions {
380
386
  auth?: AuthOptions;
381
387
  cache?: CacheOptions;
388
+ memoryCache?: MemoryCacheOptions;
382
389
  circuitBreaker?: CircuitBreakerOptions;
383
390
  concurrency?: ConcurrencyOptions;
384
391
  download?: DownloadOptions;
@@ -563,4 +570,4 @@ interface NporaResponse<T = unknown> {
563
570
  raw: Response;
564
571
  }
565
572
  //#endregion
566
- export { OpenTelemetryMetricsOptions as A, UploadOptions as B, DownloadOptions as C, LoggerEntry as D, ErrorLogEntry as E, ResponseLogEntry as F, StandardSchemaV1 as H, RetryEvent as I, RetryOptions as L, RateLimitOptions as M, RequestLogEntry as N, LoggerOptions as O, RequestLogger as P, TransferProgress as R, ConcurrencyOptions as S, DownloadProgress as T, HttpMethod as U, UploadProgress as V, AuthOptions as _, FetchOptions as a, CircuitBreakerStateChange as b, JsonStringifier as c, QueryValue as d, RequestConfig as f, ResponseType as g, RequestURL as h, FetchFunction as i, OpenTelemetryOptions as j, OpenTelemetryAttributeValue as k, QueryParams as l, RequestInputConfig as m, ServerSentEvent as n, JsonParser as o, RequestExtensions as p, StreamingSchemaLocation as r, JsonParserContext as s, NporaResponse as t, QuerySerializer as u, CacheOptions as v, DownloadOutput as w, CircuitState as x, CircuitBreakerOptions as y, UploadData as z };
573
+ export { OpenTelemetryAttributeValue as A, UploadData as B, DownloadOptions as C, LoggerEntry as D, ErrorLogEntry as E, RequestLogger as F, UploadProgress as H, ResponseLogEntry as I, RetryEvent as L, OpenTelemetryOptions as M, RateLimitOptions as N, LoggerOptions as O, RequestLogEntry as P, RetryOptions as R, ConcurrencyOptions as S, DownloadProgress as T, StandardSchemaV1 as U, UploadOptions as V, HttpMethod as W, AuthOptions as _, FetchOptions as a, CircuitBreakerStateChange as b, JsonStringifier as c, QueryValue as d, RequestConfig as f, ResponseType as g, RequestURL as h, FetchFunction as i, OpenTelemetryMetricsOptions as j, MemoryCacheOptions as k, QueryParams as l, RequestInputConfig as m, ServerSentEvent as n, JsonParser as o, RequestExtensions as p, StreamingSchemaLocation as r, JsonParserContext as s, NporaResponse as t, QuerySerializer as u, CacheOptions as v, DownloadOutput as w, CircuitState as x, CircuitBreakerOptions as y, TransferProgress as z };