contentful-export 7.19.168 → 7.20.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.
@@ -34,7 +34,9 @@ function parseOptions(params) {
34
34
  useVerboseRenderer: false,
35
35
  rawProxy: false
36
36
  };
37
- const configFile = params.config ? require((0, _path.resolve)(process.cwd(), params.config)) : {};
37
+ const configFile = params.config
38
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
39
+ ? require((0, _path.resolve)(process.cwd(), params.config)) : {};
38
40
  const options = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, defaultOptions), configFile), params), {}, {
39
41
  headers: (0, _contentfulBatchLibs.addSequenceHeader)(params.headers || (0, _headers.getHeadersConfig)(params.header))
40
42
  });
@@ -22,12 +22,12 @@ function initClient(opts, useCda = false) {
22
22
  };
23
23
  const config = _objectSpread(_objectSpread({}, defaultOpts), opts);
24
24
  if (useCda) {
25
- const cdaConfig = {
25
+ const cdaConfig = _objectSpread(_objectSpread({}, config), {}, {
26
26
  space: config.spaceId,
27
27
  accessToken: config.deliveryToken,
28
28
  environment: config.environmentId,
29
29
  host: config.hostDelivery
30
- };
30
+ });
31
31
  return (0, _contentful.createClient)(cdaConfig).withoutLinkResolution;
32
32
  }
33
33
  return (0, _contentfulManagement.createClient)(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.19.168",
3
+ "version": "7.20.0",
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",
@@ -15,6 +15,7 @@
15
15
  "build:watch": "babel lib --out-dir dist --watch",
16
16
  "clean": "rimraf dist && rimraf coverage",
17
17
  "lint": "eslint lib bin/* types.d.ts",
18
+ "lint:fix": "npm run lint -- --fix",
18
19
  "pretest": "npm run lint && npm run build && rimraf ./test/integration/tmp",
19
20
  "test": "npm run test:unit && npm run test:integration",
20
21
  "test:unit": "jest --testPathPattern=test/unit --coverage",