contentful
Advanced tools
Comparing version 4.2.0 to 4.2.1
// Type definitions for contentful | ||
// Definitions by: Miika Hänninen <https://github.com/googol> | ||
export interface AxiosProxyConfig { | ||
host: string; | ||
port?: number; | ||
auth?: { | ||
username: string; | ||
password: string; | ||
}; | ||
} | ||
export interface CreateClientParams { | ||
@@ -9,3 +18,5 @@ space: string; | ||
host?: string; | ||
agent?: any; | ||
httpAgent?: any; | ||
httpsAgent?: any; | ||
proxy?: AxiosProxyConfig; | ||
headers?: any; | ||
@@ -68,3 +79,3 @@ resolveLinks?: boolean; | ||
displayField: string; | ||
Array: string; | ||
fields: Array<Field>; | ||
toPlainObject(): ContentType; | ||
@@ -109,2 +120,13 @@ } | ||
export interface Field { | ||
disabled: boolean; | ||
id: string; | ||
linkType?: string; | ||
localized: boolean; | ||
name: string; | ||
omitted: boolean; | ||
required: boolean; | ||
type: string; | ||
} | ||
export function createClient(params: CreateClientParams): ContentfulClientApi; |
{ | ||
"name": "contentful", | ||
"description": "Client for Contentful's Content Delivery API", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/", | ||
@@ -6,0 +6,0 @@ "main": "./dist/contentful.node.js", |
@@ -226,5 +226,5 @@ [![npm](https://img.shields.io/npm/v/contentful.svg)](https://www.npmjs.com/package/contentful) | ||
- Yes, there is also a type definition file | ||
- **Is there a caching done by the SDK ?** | ||
- **Is the SDK doing any caching?** | ||
- No, check this [issue](https://github.com/contentful/contentful.js/issues/83) for more infos | ||
- 😱 **something is wrong what should I do?** | ||
- 😱 **Something is wrong what should I do?** | ||
- If it is a bug related to the code create a Github issue and make sure to remove any credential for your code before sharing it. | ||
@@ -231,0 +231,0 @@ - If you need to share your credentials, for example you have an issue with your space, please create a support ticket in the [support page](parameters). |
@@ -1,1 +0,1 @@ | ||
module.exports = '4.2.0' | ||
module.exports = '4.2.1' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
823509
19703