@celonis/content-cli 0.4.7 → 0.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celonis/content-cli",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "CLI Tool to help manage content in Celonis EMS",
5
5
  "main": "content-cli.js",
6
6
  "bin": {
@@ -88,7 +88,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
88
88
  yield fs.mkdirSync(importedFilePath);
89
89
  yield zip.extractAllTo(importedFilePath);
90
90
  const manifestNodes = yield file_service_1.fileService.readManifestFile(importedFilePath);
91
- let dmTargetIdsBySourceIds;
91
+ let dmTargetIdsBySourceIds = new Map();
92
92
  if (dataModelMappingsFilePath) {
93
93
  const dataModelMappings = yield file_service_1.fileService.readFileToJson(dataModelMappingsFilePath);
94
94
  dmTargetIdsBySourceIds = new Map(Object.entries(dataModelMappings.dataModelIdMappings));
@@ -166,7 +166,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
166
166
  if (this.isLatestVersion(versionOfPackageBeingImported, [...packageToImport.dependenciesByVersion.keys()])) {
167
167
  const variableAssignments = packageToImport.variables
168
168
  .filter(variable => variable.type === "DATA_MODEL").map(variable => {
169
- variable.value = dmTargetIdsBySourceIds.get(variable.value.toString());
169
+ var _a;
170
+ variable.value = dmTargetIdsBySourceIds.get((_a = variable.value) === null || _a === void 0 ? void 0 : _a.toString());
170
171
  return variable;
171
172
  });
172
173
  yield variable_service_1.variableService.assignVariableValues(nodeInTargetTeam.key, variableAssignments);