@jungvonmatt/contentful-migrations 5.5.3 → 5.6.1

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/lib/contentful.js CHANGED
@@ -63,16 +63,22 @@ const getContentName = (node, displayField) => {
63
63
  };
64
64
 
65
65
  const getClient = async (options) => {
66
- const { accessToken } = options || {};
66
+ const { accessToken, host } = options || {};
67
67
 
68
68
  if (client) {
69
69
  return client;
70
70
  }
71
71
 
72
+ const params = {
73
+ accessToken,
74
+ };
75
+
76
+ if (host) {
77
+ params.host = host;
78
+ }
79
+
72
80
  if (accessToken) {
73
- client = await contentful.createClient({
74
- accessToken,
75
- });
81
+ client = await contentful.createClient(params);
76
82
  return client;
77
83
  }
78
84
 
package/lib/migration.js CHANGED
@@ -6,7 +6,7 @@ const runMigration = require('contentful-migration/built/bin/cli').runMigration;
6
6
  const {
7
7
  getContentTypes,
8
8
  generateMigrationScript,
9
- } = require('contentful-cli/lib/cmds/space_cmds/generate_cmds/migration');
9
+ } = require('contentful-cli/dist/lib/cmds/space_cmds/generate_cmds/migration');
10
10
  const pc = require('picocolors');
11
11
  const { getEnvironment } = require('./contentful');
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungvonmatt/contentful-migrations",
3
- "version": "5.5.3",
3
+ "version": "5.6.1",
4
4
  "description": "Helper to handle migrations in contentful",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -35,15 +35,15 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@contentful/rich-text-plain-text-renderer": "^15.12.1",
38
- "array.prototype.flatmap": "^1.3.0",
38
+ "array.prototype.flatmap": "^1.3.3",
39
39
  "ascii-tree": "^0.3.0",
40
40
  "cli-progress": "^3.11.2",
41
41
  "commander": "^8.3.0",
42
42
  "common-tags": "^1.8.2",
43
- "contentful-cli": "^1.14.21",
44
- "contentful-import": "^8.3.6",
45
- "contentful-management": "^10.40.0",
46
- "contentful-migration": "^4.17.2",
43
+ "contentful-cli": "^3.7.11",
44
+ "contentful-import": "^9.4.91",
45
+ "contentful-management": "^11.48.0",
46
+ "contentful-migration": "^4.28.1",
47
47
  "cosmiconfig": "^8.0.0",
48
48
  "deep-diff": "^1.0.2",
49
49
  "diff": "^5.1.0",
@@ -51,7 +51,7 @@
51
51
  "fs-extra": "^10.1.0",
52
52
  "globby": "^12.0.2",
53
53
  "inquirer": "^8.2.0",
54
- "markdown-table": "^3.0.2",
54
+ "markdown-table": "^3.0.4",
55
55
  "merge-options": "^3.0.4",
56
56
  "mustache": "^4.2.0",
57
57
  "node-fetch": "^3.2.8",