@crowdin/app-project-module 0.20.8 → 0.20.9
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.
|
@@ -40,7 +40,7 @@ function handleBuildFile(baseUrl, dataFolder, config, req, client, context, proj
|
|
|
40
40
|
strings = req.strings;
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
|
-
strings = (yield axios_1.default.get(req.stringsUrl)).data;
|
|
43
|
+
strings = JSON.parse((yield axios_1.default.get(req.stringsUrl)).data);
|
|
44
44
|
}
|
|
45
45
|
let res;
|
|
46
46
|
if ((req.file.id || !file) && config.exportStrings) {
|
|
@@ -135,7 +135,8 @@ function handle(baseConfig, baseUrl, folder, config) {
|
|
|
135
135
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
const baseFilesUrl = `${baseUrl}/file/download`;
|
|
137
137
|
const body = req.body;
|
|
138
|
-
|
|
138
|
+
const logData = Object.assign({}, body, { strings: body.strings.slice(0, 5) });
|
|
139
|
+
(0, util_1.log)(`Received request to process file ${JSON.stringify(logData, null, 2)}`, baseConfig.logger);
|
|
139
140
|
let file;
|
|
140
141
|
if (body.file.content) {
|
|
141
142
|
file = Buffer.from(body.file.content, 'base64').toString();
|
package/package.json
CHANGED