@contentstack/cli-cm-export 1.16.1 → 1.16.3

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
@@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
48
48
  $ csdx COMMAND
49
49
  running command...
50
50
  $ csdx (--version)
51
- @contentstack/cli-cm-export/1.16.1 linux-x64 node-v22.14.0
51
+ @contentstack/cli-cm-export/1.16.3 linux-x64 node-v22.16.0
52
52
  $ csdx --help [COMMAND]
53
53
  USAGE
54
54
  $ csdx COMMAND
@@ -16,7 +16,8 @@ class ExportCommand extends cli_command_1.Command {
16
16
  // Note setting host to create cma client
17
17
  exportConfig.host = this.cmaHost;
18
18
  exportConfig.region = this.region;
19
- exportConfig.developerHubBaseUrl = this.developerHubUrl;
19
+ if (this.developerHubUrl)
20
+ exportConfig.developerHubBaseUrl = this.developerHubUrl;
20
21
  if (this.personalizeUrl)
21
22
  exportConfig.modules.personalize.baseURL[exportConfig.region.name] = this.personalizeUrl;
22
23
  exportDir = (0, cli_utilities_1.sanitizePath)(exportConfig.cliLogsPath || exportConfig.data || exportConfig.exportDir);
@@ -114,7 +114,7 @@ class ExportAssets extends base_class_1.default {
114
114
  indexFileName: 'assets.json',
115
115
  basePath: this.assetsRootPath,
116
116
  chunkFileSize: this.assetConfig.chunkFileSize,
117
- metaPickKeys: (0, merge_1.default)(['uid', 'url', 'filename'], this.assetConfig.assetsMetaKeys),
117
+ metaPickKeys: (0, merge_1.default)(['uid', 'url', 'filename', 'parent_uid'], this.assetConfig.assetsMetaKeys),
118
118
  });
119
119
  }
120
120
  if (!(0, isEmpty_1.default)(items))
@@ -169,7 +169,7 @@ class ExportAssets extends base_class_1.default {
169
169
  indexFileName: 'versioned-assets.json',
170
170
  chunkFileSize: this.assetConfig.chunkFileSize,
171
171
  basePath: (0, node_path_1.resolve)(this.assetsRootPath, 'versions'),
172
- metaPickKeys: (0, merge_1.default)(['uid', 'url', 'filename', '_version'], this.assetConfig.assetsMetaKeys),
172
+ metaPickKeys: (0, merge_1.default)(['uid', 'url', 'filename', '_version', 'parent_uid'], this.assetConfig.assetsMetaKeys),
173
173
  });
174
174
  }
175
175
  if (!(0, isEmpty_1.default)(response))
@@ -15,6 +15,7 @@ class GlobalFieldsExport extends base_class_1.default {
15
15
  asc: 'updated_at',
16
16
  include_count: true,
17
17
  limit: this.globalFieldsConfig.limit,
18
+ include_global_field_schema: true
18
19
  };
19
20
  this.globalFieldsDirPath = path.resolve((0, cli_utilities_1.sanitizePath)(exportConfig.data), (0, cli_utilities_1.sanitizePath)(exportConfig.branchName || ''), (0, cli_utilities_1.sanitizePath)(this.globalFieldsConfig.dirName));
20
21
  this.globalFields = [];
@@ -36,7 +37,7 @@ class GlobalFieldsExport extends base_class_1.default {
36
37
  if (skip) {
37
38
  this.qs.skip = skip;
38
39
  }
39
- let globalFieldsFetchResponse = await this.stackAPIClient.globalField().query(this.qs).find();
40
+ let globalFieldsFetchResponse = await this.stackAPIClient.globalField({ api_version: '3.2' }).query(this.qs).find();
40
41
  if (Array.isArray(globalFieldsFetchResponse.items) && globalFieldsFetchResponse.items.length > 0) {
41
42
  this.sanitizeAttribs(globalFieldsFetchResponse.items);
42
43
  skip += this.globalFieldsConfig.limit || 100;
@@ -138,5 +138,5 @@
138
138
  ]
139
139
  }
140
140
  },
141
- "version": "1.16.1"
141
+ "version": "1.16.3"
142
142
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-export",
3
3
  "description": "Contentstack CLI plugin to export content from stack",
4
- "version": "1.16.1",
4
+ "version": "1.16.3",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "~1.5.0",
9
- "@contentstack/cli-variants": "~1.2.0",
10
- "@oclif/core": "^4.2.7",
11
- "@contentstack/cli-utilities": "~1.11.0",
8
+ "@contentstack/cli-command": "~1.5.1",
9
+ "@contentstack/cli-variants": "~1.2.2",
10
+ "@oclif/core": "^4.3.3",
11
+ "@contentstack/cli-utilities": "~1.12.0",
12
12
  "async": "^3.2.6",
13
13
  "big-json": "^3.2.0",
14
14
  "bluebird": "^3.7.2",
@@ -21,21 +21,21 @@
21
21
  "winston": "^3.17.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@contentstack/cli-auth": "~1.4.0",
25
- "@contentstack/cli-config": "~1.12.0",
26
- "@contentstack/cli-dev-dependencies": "~1.3.0",
27
- "@oclif/plugin-help": "^6.2.25",
28
- "@oclif/test": "^4.1.6",
24
+ "@contentstack/cli-auth": "~1.4.1",
25
+ "@contentstack/cli-config": "~1.12.1",
26
+ "@contentstack/cli-dev-dependencies": "~1.3.1",
27
+ "@oclif/plugin-help": "^6.2.28",
28
+ "@oclif/test": "^4.1.13",
29
29
  "@types/big-json": "^3.2.5",
30
30
  "@types/mkdirp": "^1.0.2",
31
31
  "@types/progress-stream": "^2.0.5",
32
- "dotenv": "^16.4.7",
32
+ "dotenv": "^16.5.0",
33
33
  "dotenv-expand": "^9.0.0",
34
34
  "eslint": "^8.57.1",
35
- "eslint-config-oclif": "^6.0.15",
35
+ "eslint-config-oclif": "^6.0.68",
36
36
  "mocha": "10.8.2",
37
37
  "nyc": "^15.1.0",
38
- "oclif": "^4.17.30",
38
+ "oclif": "^4.17.46",
39
39
  "ts-node": "^10.9.2",
40
40
  "typescript": "^4.9.5"
41
41
  },