node-pptx-templater 1.1.2 → 1.1.4
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/package.json +3 -1
- package/src/core/OutputWriter.js +5 -5
- package/src/core/PPTXTemplater.js +218 -34
- package/src/managers/ShapeManager.js +288 -85
- package/src/managers/TableManager.js +676 -284
- package/src/managers/ZipManager.js +5 -1
|
@@ -646,7 +646,11 @@ class ZipManager {
|
|
|
646
646
|
await fs.writeFile(targetPath, this.#dirtyBinaryFiles.get(relPath))
|
|
647
647
|
} else {
|
|
648
648
|
const srcPath = path.join(this.#folderRoot, relPath)
|
|
649
|
-
|
|
649
|
+
const resolvedSrc = path.resolve(srcPath)
|
|
650
|
+
const resolvedDest = path.resolve(targetPath)
|
|
651
|
+
if (resolvedSrc !== resolvedDest) {
|
|
652
|
+
await fs.copy(srcPath, targetPath)
|
|
653
|
+
}
|
|
650
654
|
}
|
|
651
655
|
}
|
|
652
656
|
} else {
|