@crowdin/app-project-module 1.6.1 → 1.6.2

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.
@@ -515,9 +515,9 @@ function getAllNewFiles(_a) {
515
515
  function getNewFoldersFile(folders, snapshotFiles) {
516
516
  let files = [];
517
517
  for (const folder of folders) {
518
- const newFiles = snapshotFiles.find((file) => file.parentId === folder.id);
519
- if (newFiles) {
520
- files = files.concat(newFiles);
518
+ const folderFiles = snapshotFiles.filter((file) => Number(file.parentId) === Number(folder.id));
519
+ if (folderFiles.length) {
520
+ files = files.concat(folderFiles);
521
521
  }
522
522
  }
523
523
  files = files.filter((file) => 'type' in file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",