@tenonhq/sincronia-core 0.0.40 → 0.0.42

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.
Files changed (2) hide show
  1. package/dist/appUtils.js +6 -6
  2. package/package.json +1 -1
package/dist/appUtils.js CHANGED
@@ -61,21 +61,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
61
61
  const metadataFiles = [];
62
62
  const regularFiles = [];
63
63
  rec.files.forEach((file) => {
64
- if (file.name === 'metaData' && file.type === 'json') {
64
+ if (file.name === "metaData" && file.type === "json") {
65
65
  metadataFiles.push(file);
66
66
  }
67
67
  else {
68
68
  regularFiles.push(file);
69
69
  }
70
70
  });
71
- // Write metadata files with updated _generatedAt field
71
+ // Write metadata files with updated _lastUpdatedOn field
72
72
  const metadataPromises = metadataFiles.map(async (file) => {
73
73
  if (file.content) {
74
74
  try {
75
75
  const metadata = JSON.parse(file.content);
76
- // Update _generatedAt with sys_updated_on value if it exists
76
+ // Update _lastUpdatedOn with sys_updated_on value if it exists
77
77
  if (metadata.sys_updated_on && metadata.sys_updated_on.value) {
78
- metadata._generatedAt = metadata.sys_updated_on.value;
78
+ metadata._lastUpdatedOn = metadata.sys_updated_on.value;
79
79
  }
80
80
  // Write the updated metadata
81
81
  file.content = JSON.stringify(metadata, null, 2);
@@ -147,14 +147,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
147
147
  Logger_1.logger.info("Finding and creating missing files...");
148
148
  await (0, exports.processMissingFiles)(newManifest);
149
149
  // Update the in-memory manifest for this scope
150
- if (typeof curManifest === 'object' && !curManifest.tables) {
150
+ if (typeof curManifest === "object" && !curManifest.tables) {
151
151
  curManifest[scope] = newManifest;
152
152
  ConfigManager.updateManifest(curManifest);
153
153
  }
154
154
  }
155
155
  else {
156
156
  // Sync all scopes if manifest has multiple scopes
157
- if (typeof curManifest === 'object' && !curManifest.tables) {
157
+ if (typeof curManifest === "object" && !curManifest.tables) {
158
158
  // Multiple scopes detected
159
159
  for (const scopeName of Object.keys(curManifest)) {
160
160
  await (0, exports.syncManifest)(scopeName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenonhq/sincronia-core",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "Next-gen file syncer",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./dist/index.js",