@crowdin/app-project-module 0.28.5 → 0.28.6

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/out/util/cron.js CHANGED
@@ -121,7 +121,12 @@ function filesCron(config, integration, period) {
121
121
  (0, _1.log)(`updateIntegration task for files cron job with period [${period}] for project ${projectId} completed`, config.logger);
122
122
  }
123
123
  else {
124
- const intFiles = files;
124
+ const intFiles = files.map((file) => ({
125
+ id: file.id,
126
+ name: file.name,
127
+ parentId: file.parent_id,
128
+ type: file.type,
129
+ }));
125
130
  (0, _1.log)(`Executing updateCrowdin task for files cron job with period [${period}] for project ${projectId}. Files ${intFiles.length}`, config.logger);
126
131
  for (let i = 0; i < intFiles.length; i += chunkSize) {
127
132
  const chunk = intFiles.slice(i, i + chunkSize);
package/out/util/index.js CHANGED
@@ -133,13 +133,10 @@ function isExtendedResultType(data) {
133
133
  return !!dataTyped && !Array.isArray(dataTyped);
134
134
  }
135
135
  exports.isExtendedResultType = isExtendedResultType;
136
- function getFileExtension(filePath) {
137
- return filePath.split('.').pop();
138
- }
139
136
  function getLogoUrl(config, moduleConfig, modulePath) {
140
137
  if (!moduleConfig && !modulePath) {
141
- return `/logo.${getFileExtension(config.imagePath)}`;
138
+ return '/logo.png';
142
139
  }
143
- return `/logo${modulePath}/logo.${getFileExtension((moduleConfig === null || moduleConfig === void 0 ? void 0 : moduleConfig.imagePath) || config.imagePath)}`;
140
+ return `/logo${modulePath}/logo.png`;
144
141
  }
145
142
  exports.getLogoUrl = getLogoUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.28.5",
3
+ "version": "0.28.6",
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",