contentful-export 7.19.165 → 7.19.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -204,6 +204,9 @@ Download actual asset files
204
204
  #### `host` [string] [default: 'api.contentful.com']
205
205
  The Management API host
206
206
 
207
+ #### `hostDelivery` [string] [default: 'cdn.contentful.com']
208
+ The Delivery API host
209
+
207
210
  #### `proxy` [string]
208
211
  Proxy configuration in HTTP auth format: `host:port` or `user:password@host:port`
209
212
 
@@ -25,7 +25,8 @@ function initClient(opts, useCda = false) {
25
25
  const cdaConfig = {
26
26
  space: config.spaceId,
27
27
  accessToken: config.deliveryToken,
28
- environment: config.environmentId
28
+ environment: config.environmentId,
29
+ host: config.hostDelivery
29
30
  };
30
31
  return (0, _contentful.createClient)(cdaConfig).withoutLinkResolution;
31
32
  }
@@ -72,6 +72,10 @@ var _default = exports.default = _yargs.default.version(_package.default.version
72
72
  describe: 'Management API host',
73
73
  type: 'string',
74
74
  default: 'api.contentful.com'
75
+ }).option('host-delivery', {
76
+ describe: 'Delivery API host',
77
+ type: 'string',
78
+ default: 'cdn.contentful.com'
75
79
  }).option('proxy', {
76
80
  describe: 'Proxy configuration in HTTP auth format: [http|https]://host:port or [http|https]://user:password@host:port',
77
81
  type: 'string'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.19.165",
3
+ "version": "7.19.167",
4
4
  "description": "this tool allows you to export a space to a JSON dump",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",