contentful 10.6.0 → 10.6.2

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.
@@ -2,7 +2,7 @@
2
2
  * Contentful Delivery API SDK. Allows you to create instances of a client
3
3
  * with access to the Contentful Content Delivery API.
4
4
  */
5
- import type { AxiosAdapter, AxiosRequestConfig } from 'axios';
5
+ import type { AxiosAdapter, AxiosRequestConfig, AxiosResponse } from 'axios';
6
6
  import { ContentfulClientApi } from './types';
7
7
  /**
8
8
  * @category Client
@@ -93,6 +93,14 @@ export interface CreateClientParams {
93
93
  * @defaultValue 5
94
94
  */
95
95
  retryLimit?: number;
96
+ /**
97
+ * Interceptor called on every request. Takes Axios request config as an arg.
98
+ */
99
+ requestLogger?: (request: AxiosRequestConfig | Error) => unknown;
100
+ /**
101
+ * Interceptor called on every response. Takes Axios response object as an arg.
102
+ */
103
+ responseLogger?: (response: AxiosResponse<any> | Error) => unknown;
96
104
  }
97
105
  /**
98
106
  * Create a client instance
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "contentful",
3
3
  "description": "Client for Contentful's Content Delivery API",
4
- "version": "10.6.0",
4
+ "version": "10.6.2",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/",
6
6
  "main": "./dist/contentful.node.min.js",
7
7
  "browser": "./dist/contentful.browser.min.js",