@celonis/content-cli 0.8.2 → 0.8.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.
|
@@ -42,16 +42,14 @@ export interface PackageKeyAndVersionPair {
|
|
|
42
42
|
export interface NodeExportTransport {
|
|
43
43
|
key: string;
|
|
44
44
|
parentNodeKey: string;
|
|
45
|
-
packageNodeKey: string;
|
|
46
45
|
name: string;
|
|
47
46
|
type: string;
|
|
48
47
|
exportSerializationType: string;
|
|
49
|
-
|
|
48
|
+
configuration: string;
|
|
50
49
|
schemaVersion: number;
|
|
51
|
-
|
|
52
|
-
versionedMetdata: object;
|
|
50
|
+
spaceId: string;
|
|
53
51
|
invalidContent?: boolean;
|
|
54
|
-
serializedDocument
|
|
52
|
+
serializedDocument?: Buffer;
|
|
55
53
|
}
|
|
56
54
|
export interface NodeSerializedContent {
|
|
57
55
|
variables: VariableDefinition[];
|
package/package.json
CHANGED
|
@@ -129,10 +129,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
129
129
|
}
|
|
130
130
|
const packageEntry = packageZip.getEntry("package.yml");
|
|
131
131
|
const exportedNode = (0, yaml_1.parse)(packageEntry.getData().toString());
|
|
132
|
-
const nodeContent = (0, yaml_1.parse)(exportedNode.
|
|
132
|
+
const nodeContent = (0, yaml_1.parse)(exportedNode.configuration);
|
|
133
133
|
nodeContent.variables = nodeContent.variables.map(variable => (Object.assign(Object.assign({}, variable), { metadata: variable.type === package_manager_interfaces_1.PackageManagerVariableType.CONNECTION ?
|
|
134
134
|
connectionVariablesByKey.get(variable.key).metadata : variable.metadata })));
|
|
135
|
-
exportedNode.
|
|
135
|
+
exportedNode.configuration = (0, yaml_1.stringify)(nodeContent);
|
|
136
136
|
packageZip.updateFile(packageEntry, Buffer.from((0, yaml_1.stringify)(exportedNode)));
|
|
137
137
|
}
|
|
138
138
|
getPackageKeyAndVersion(zipName) {
|
|
@@ -211,7 +211,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
211
211
|
}
|
|
212
212
|
updateSpaceIdForNode(nodeContent, spaceId) {
|
|
213
213
|
const exportedNode = (0, yaml_1.parse)(nodeContent);
|
|
214
|
-
const oldSpaceId = exportedNode.
|
|
214
|
+
const oldSpaceId = exportedNode.spaceId;
|
|
215
215
|
nodeContent = nodeContent.replace(new RegExp(oldSpaceId, "g"), spaceId);
|
|
216
216
|
return nodeContent;
|
|
217
217
|
}
|