@crowdin/app-project-module 0.32.0 → 0.32.1

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.
@@ -828,7 +828,7 @@ export interface ApiModule {
828
828
  }
829
829
  export interface Logger {
830
830
  enabled: boolean;
831
- log?: (message: string) => void;
831
+ log?: (message: string, context?: LogContext) => void;
832
832
  }
833
833
  export interface Pricing {
834
834
  planType: 'free' | 'recurring';
@@ -19,7 +19,7 @@ exports.withContextError = withContextError;
19
19
  function log(message, context) {
20
20
  if (logConfig === null || logConfig === void 0 ? void 0 : logConfig.enabled) {
21
21
  if (logConfig.log) {
22
- logConfig.log(message);
22
+ logConfig.log(message, context);
23
23
  }
24
24
  else {
25
25
  let prefix = `[${new Date().toISOString()}]`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
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",