@stackone/transport 1.12.0 → 1.13.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.
package/dist/index.d.mts CHANGED
@@ -374,7 +374,7 @@ interface IHttpClient {
374
374
  maxRedirects?: number;
375
375
  responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
376
376
  cacheTTL?: number;
377
- context?: unknown;
377
+ context?: RequestContext;
378
378
  payload?: P;
379
379
  httpsAgent?: https.Agent;
380
380
  httpAgent?: http.Agent;
@@ -395,7 +395,7 @@ interface IHttpClient {
395
395
  queryParams?: HttpQueryParams;
396
396
  maxRedirects?: number;
397
397
  cacheTTL?: number;
398
- context?: unknown;
398
+ context?: RequestContext;
399
399
  requestConfig?: RequestConfig;
400
400
  }): Promise<HttpResponse<T>>;
401
401
  post<P, T>({
@@ -411,7 +411,7 @@ interface IHttpClient {
411
411
  url: string;
412
412
  maxRedirects?: number;
413
413
  cacheTTL?: number;
414
- context?: unknown;
414
+ context?: RequestContext;
415
415
  payload?: P;
416
416
  requestConfig?: RequestConfig;
417
417
  }): Promise<HttpResponse<T>>;
@@ -876,4 +876,4 @@ type LockEntry = {
876
876
  unlock: Unlock;
877
877
  };
878
878
  //#endregion
879
- export { CUSTOM_ERROR_CONFIG_SCHEMA, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters };
879
+ export { CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters };
package/dist/index.d.ts CHANGED
@@ -374,7 +374,7 @@ interface IHttpClient {
374
374
  maxRedirects?: number;
375
375
  responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
376
376
  cacheTTL?: number;
377
- context?: unknown;
377
+ context?: RequestContext;
378
378
  payload?: P;
379
379
  httpsAgent?: https.Agent;
380
380
  httpAgent?: http.Agent;
@@ -395,7 +395,7 @@ interface IHttpClient {
395
395
  queryParams?: HttpQueryParams;
396
396
  maxRedirects?: number;
397
397
  cacheTTL?: number;
398
- context?: unknown;
398
+ context?: RequestContext;
399
399
  requestConfig?: RequestConfig;
400
400
  }): Promise<HttpResponse<T>>;
401
401
  post<P, T>({
@@ -411,7 +411,7 @@ interface IHttpClient {
411
411
  url: string;
412
412
  maxRedirects?: number;
413
413
  cacheTTL?: number;
414
- context?: unknown;
414
+ context?: RequestContext;
415
415
  payload?: P;
416
416
  requestConfig?: RequestConfig;
417
417
  }): Promise<HttpResponse<T>>;
@@ -876,4 +876,4 @@ type LockEntry = {
876
876
  unlock: Unlock;
877
877
  };
878
878
  //#endregion
879
- export { CUSTOM_ERROR_CONFIG_SCHEMA, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters };
879
+ export { CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/transport",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",