@crowdin/app-project-module 0.88.0 → 0.88.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.
|
@@ -69,7 +69,7 @@ function webhookHandler(config, webhooks) {
|
|
|
69
69
|
const json = JSON.parse(req.body.toString());
|
|
70
70
|
for (const webhook of webhooks) {
|
|
71
71
|
if (webhook.key === moduleKey) {
|
|
72
|
-
yield webhook.callback({
|
|
72
|
+
yield webhook.callback({ events: json.events, client });
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleKey } from '../../types';
|
|
2
2
|
import Crowdin from '@crowdin/crowdin-api-client';
|
|
3
3
|
export interface Webhook extends ModuleKey {
|
|
4
4
|
/**
|
|
@@ -9,7 +9,6 @@ export interface Webhook extends ModuleKey {
|
|
|
9
9
|
* handle function
|
|
10
10
|
*/
|
|
11
11
|
callback: (data: {
|
|
12
|
-
credentials: CrowdinCredentials;
|
|
13
12
|
events: Event[];
|
|
14
13
|
client: Crowdin;
|
|
15
14
|
}) => Promise<void>;
|
package/package.json
CHANGED