@crowdin/app-project-module 0.20.7 → 0.20.8

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/README.md CHANGED
@@ -775,7 +775,7 @@ crowdinModule.createApp(configuration);
775
775
 
776
776
  ```js
777
777
  configuration.jwtValidationOptions = {
778
- jwtValidationOptions: false, //ignore check if jwt is expired or not
778
+ ignoreExpiration: false, //ignore check if jwt is expired or not
779
779
  };
780
780
  ```
781
781
 
@@ -135,7 +135,7 @@ 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
- (0, util_1.log)(`Recieved request to process file ${JSON.stringify(body, null, 2)}`, baseConfig.logger);
138
+ (0, util_1.log)(`Received request to process file ${JSON.stringify(body, null, 2)}`, baseConfig.logger);
139
139
  let file;
140
140
  if (body.file.content) {
141
141
  file = Buffer.from(body.file.content, 'base64').toString();
@@ -157,7 +157,8 @@ function handle(baseConfig, baseUrl, folder, config) {
157
157
  error = parseFileResult.error;
158
158
  break;
159
159
  }
160
- (0, util_1.log)(`Returning response from process file action ${JSON.stringify(response, null, 2)}`, baseConfig.logger);
160
+ const responseLength = Buffer.byteLength(JSON.stringify(response), 'utf8');
161
+ (0, util_1.log)(`Returning response (${responseLength} bytes) from process file action`, baseConfig.logger);
161
162
  res.send({ data: response, error: error ? { message: error } : undefined });
162
163
  }), baseConfig.onError);
163
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.20.7",
3
+ "version": "0.20.8",
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",