@crowdin/app-project-module 0.32.0 → 0.32.2

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.
@@ -194,7 +194,7 @@ function handle(config) {
194
194
  events['subscription_paid'] = '/subscription-paid';
195
195
  }
196
196
  return (_req, res) => {
197
- const manifest = Object.assign(Object.assign({ identifier: config.identifier, name: config.name, logo: (0, util_1.getLogoUrl)(config), baseUrl: config.baseUrl, authentication: {
197
+ const manifest = Object.assign(Object.assign({ identifier: config.identifier, name: config.name, logo: (0, util_1.getLogoUrl)(), baseUrl: config.baseUrl, authentication: {
198
198
  type: config.authenticationType || models_1.AuthenticationType.APP,
199
199
  clientId: config.clientId,
200
200
  }, events, scopes: config.scopes ? config.scopes : [models_1.Scope.PROJECTS] }, (config.defaultPermissions && { default_permissions: config.defaultPermissions })), { modules });
@@ -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.2",
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",