@tenonhq/sincronia-core 0.0.24 → 0.0.25
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/dist/updateSetCommands.js +15 -9
- package/package.json +1 -1
|
@@ -131,18 +131,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
131
131
|
Logger_1.logger.info("─".repeat(80));
|
|
132
132
|
updateSets.forEach((updateSet) => {
|
|
133
133
|
var _a;
|
|
134
|
-
|
|
134
|
+
// Handle both plain values and display_value objects
|
|
135
|
+
const sysId = typeof updateSet.sys_id === 'object' && updateSet.sys_id !== null ? updateSet.sys_id.value : updateSet.sys_id;
|
|
136
|
+
const name = typeof updateSet.name === 'object' && updateSet.name !== null ? updateSet.name.value : updateSet.name;
|
|
137
|
+
const description = typeof updateSet.description === 'object' && updateSet.description !== null ? updateSet.description.value : updateSet.description;
|
|
138
|
+
const createdBy = typeof updateSet.sys_created_by === 'object' && updateSet.sys_created_by !== null ? updateSet.sys_created_by.display_value || updateSet.sys_created_by.value : updateSet.sys_created_by;
|
|
139
|
+
const applicationName = ((_a = updateSet.application) === null || _a === void 0 ? void 0 : _a.display_value) || (typeof updateSet.application === 'object' && updateSet.application !== null ? updateSet.application.value : updateSet.application);
|
|
140
|
+
const isCurrent = sysId === currentUpdateSetId;
|
|
135
141
|
const marker = isCurrent ? chalk_1.default.green("► ") : " ";
|
|
136
|
-
const
|
|
137
|
-
console.log(`${marker}${
|
|
138
|
-
if (
|
|
139
|
-
console.log(` Description: ${
|
|
142
|
+
const displayName = isCurrent ? chalk_1.default.green(name) : name;
|
|
143
|
+
console.log(`${marker}${displayName}`);
|
|
144
|
+
if (description) {
|
|
145
|
+
console.log(` Description: ${description}`);
|
|
140
146
|
}
|
|
141
|
-
if (
|
|
142
|
-
console.log(` Scope: ${
|
|
147
|
+
if (applicationName) {
|
|
148
|
+
console.log(` Scope: ${applicationName}`);
|
|
143
149
|
}
|
|
144
|
-
console.log(` Created: ${formatDate(updateSet.sys_created_on)} by ${
|
|
145
|
-
console.log(` ID: ${
|
|
150
|
+
console.log(` Created: ${formatDate(updateSet.sys_created_on)} by ${createdBy}`);
|
|
151
|
+
console.log(` ID: ${sysId}`);
|
|
146
152
|
console.log("");
|
|
147
153
|
});
|
|
148
154
|
if (currentUpdateSetId) {
|