@fractary/codex 0.12.19 → 0.12.22
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/index.cjs +7 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4829,31 +4829,13 @@ function createSyncPlan(sourceFiles, targetFiles, options, config) {
|
|
|
4829
4829
|
} else {
|
|
4830
4830
|
const isDifferent = sourceFile.hash !== void 0 && targetFile.hash !== void 0 ? sourceFile.hash !== targetFile.hash : sourceFile.size !== targetFile.size;
|
|
4831
4831
|
if (isDifferent) {
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
});
|
|
4840
|
-
} else if (targetFile.mtime > sourceFile.mtime) {
|
|
4841
|
-
conflicts.push({
|
|
4842
|
-
path: sourceFile.path,
|
|
4843
|
-
operation: "conflict",
|
|
4844
|
-
size: sourceFile.size,
|
|
4845
|
-
mtime: sourceFile.mtime,
|
|
4846
|
-
reason: "Target file is newer than source"
|
|
4847
|
-
});
|
|
4848
|
-
} else {
|
|
4849
|
-
files.push({
|
|
4850
|
-
path: sourceFile.path,
|
|
4851
|
-
operation: "update",
|
|
4852
|
-
size: sourceFile.size,
|
|
4853
|
-
mtime: sourceFile.mtime,
|
|
4854
|
-
hash: sourceFile.hash
|
|
4855
|
-
});
|
|
4856
|
-
}
|
|
4832
|
+
files.push({
|
|
4833
|
+
path: sourceFile.path,
|
|
4834
|
+
operation: "update",
|
|
4835
|
+
size: sourceFile.size,
|
|
4836
|
+
mtime: sourceFile.mtime,
|
|
4837
|
+
hash: sourceFile.hash
|
|
4838
|
+
});
|
|
4857
4839
|
} else {
|
|
4858
4840
|
skipped.push({
|
|
4859
4841
|
path: sourceFile.path,
|