@crowdin/app-project-module 0.28.0-12 → 0.28.0-13

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.
@@ -44,7 +44,7 @@ function handle(baseConfig, config, folderName) {
44
44
  switch (body.jobType) {
45
45
  case models_1.ProcessFileJobType.PRE_IMPORT:
46
46
  case models_1.ProcessFileJobType.POST_EXPORT:
47
- const { contentFile, fileName, error: contentFileError } = fileProcessResult;
47
+ const { contentFile, fileName, fileType, error: contentFileError, } = fileProcessResult;
48
48
  if (contentFile) {
49
49
  const contentFileEncoded = Buffer.from(contentFile).toString('base64');
50
50
  if (Buffer.byteLength(contentFileEncoded, 'utf8') < files_1.MAX_BODY_SIZE) {
@@ -65,6 +65,9 @@ function handle(baseConfig, config, folderName) {
65
65
  if (fileName) {
66
66
  response.fileName = fileName;
67
67
  }
68
+ if (fileType) {
69
+ response.fileType = fileType;
70
+ }
68
71
  processingError = contentFileError;
69
72
  break;
70
73
  case models_1.ProcessFileJobType.POST_IMPORT:
@@ -601,6 +601,7 @@ export interface BuildFileResponse {
601
601
  contentFile: string;
602
602
  error?: string;
603
603
  fileName?: string;
604
+ fileType?: string;
604
605
  }
605
606
  export interface ProcessFileString {
606
607
  previewId?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.28.0-12",
3
+ "version": "0.28.0-13",
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",