@tenonhq/sincronia-core 0.0.42 → 0.0.43
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/appUtils.js +1 -19
- package/package.json +1 -1
package/dist/appUtils.js
CHANGED
|
@@ -68,27 +68,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
68
68
|
regularFiles.push(file);
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
// Write metadata files with updated _lastUpdatedOn field
|
|
72
|
-
const metadataPromises = metadataFiles.map(async (file) => {
|
|
73
|
-
if (file.content) {
|
|
74
|
-
try {
|
|
75
|
-
const metadata = JSON.parse(file.content);
|
|
76
|
-
// Update _lastUpdatedOn with sys_updated_on value if it exists
|
|
77
|
-
if (metadata.sys_updated_on && metadata.sys_updated_on.value) {
|
|
78
|
-
metadata._lastUpdatedOn = metadata.sys_updated_on.value;
|
|
79
|
-
}
|
|
80
|
-
// Write the updated metadata
|
|
81
|
-
file.content = JSON.stringify(metadata, null, 2);
|
|
82
|
-
}
|
|
83
|
-
catch (e) {
|
|
84
|
-
// If parsing fails, just write as-is
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return fileWrite(file, recPath);
|
|
88
|
-
});
|
|
89
71
|
// Write regular files
|
|
90
72
|
const regularPromises = regularFiles.map((file) => fileWrite(file, recPath));
|
|
91
|
-
await Promise.all([...
|
|
73
|
+
await Promise.all([...regularPromises]);
|
|
92
74
|
// Remove content from ALL files and exclude metadata from manifest
|
|
93
75
|
rec.files = regularFiles.map((file) => {
|
|
94
76
|
const fileCopy = { ...file };
|