@9of9solutions/replikator 1.0.18 → 1.0.19

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/main.js +1 -1
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -344,7 +344,7 @@ async function syncFile(event, filePath, srcDir, targets, include) {
344
344
  if (patterns.filter(p => (rel).startsWith(p)).length > 0) {
345
345
  await fs.ensureDir(path.dirname(destPath));
346
346
  await fs.copy(filePath, destPath, { overwrite: true });
347
- if ((await fs.lstat(filePath)).isFile()) {
347
+ if ((await fs.lstat(filePath)).isFile() && !filePath.endsWith('.svg') && !filePath.endsWith('.png') && !filePath.endsWith('.jpg') && !filePath.endsWith('.jpeg') && !filePath.endsWith('.gif')) {
348
348
  const data = await fs.readFile(filePath);
349
349
  const fd = await fs.open(destPath, 'w+');
350
350
  const buffer = Buffer.from(await getReplicatedFileHeader(filePath));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@9of9solutions/replikator",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "type": "module",
5
5
  "main": "main.js",
6
6
  "bin": {