@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.
Files changed (2) hide show
  1. package/dist/appUtils.js +1 -19
  2. 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([...metadataPromises, ...regularPromises]);
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenonhq/sincronia-core",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "Next-gen file syncer",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./dist/index.js",