@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.
@@ -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
- const isCurrent = updateSet.sys_id === currentUpdateSetId;
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 name = isCurrent ? chalk_1.default.green(updateSet.name) : updateSet.name;
137
- console.log(`${marker}${name}`);
138
- if (updateSet.description) {
139
- console.log(` Description: ${updateSet.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 ((_a = updateSet.application) === null || _a === void 0 ? void 0 : _a.display_value) {
142
- console.log(` Scope: ${updateSet.application.display_value}`);
147
+ if (applicationName) {
148
+ console.log(` Scope: ${applicationName}`);
143
149
  }
144
- console.log(` Created: ${formatDate(updateSet.sys_created_on)} by ${updateSet.sys_created_by}`);
145
- console.log(` ID: ${updateSet.sys_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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenonhq/sincronia-core",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Next-gen file syncer",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./dist/index.js",