@crowdin/app-project-module 0.28.0-2 → 0.28.0-4
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/CONTRIBUTING.md +19 -1
- package/README.md +1 -984
- package/out/handlers/form-data-display.js +6 -2
- package/out/handlers/form-data-save.js +5 -1
- package/out/index.js +6 -2
- package/out/middlewares/render-ui-module.js +1 -0
- package/out/models/index.d.ts +10 -6
- package/out/static/js/form.js +9 -9
- package/out/util/cron.js +5 -1
- package/out/util/defaults.js +5 -1
- package/out/util/index.js +5 -1
- package/out/util/webhooks.js +6 -2
- package/out/views/form.handlebars +1 -0
- package/package.json +8 -8
package/out/util/cron.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/out/util/defaults.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/out/util/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/out/util/webhooks.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -249,7 +253,7 @@ function updateCrowdinFromWebhookRequest(integration, webhookData, req) {
|
|
|
249
253
|
let filesToSync = [];
|
|
250
254
|
const { projectId, crowdinClient, preparedIntegrationCredentials, rootFolder, appSettings, syncSettings } = webhookData;
|
|
251
255
|
if ((_a = integration.webhooks) === null || _a === void 0 ? void 0 : _a.integrationWebhookInterceptor) {
|
|
252
|
-
filesToSync = yield ((_b = integration.webhooks) === null || _b === void 0 ? void 0 : _b.integrationWebhookInterceptor(projectId, crowdinClient.client, rootFolder, appSettings, syncSettings, req));
|
|
256
|
+
filesToSync = yield ((_b = integration.webhooks) === null || _b === void 0 ? void 0 : _b.integrationWebhookInterceptor(projectId, crowdinClient.client, preparedIntegrationCredentials, rootFolder, appSettings, syncSettings, req));
|
|
253
257
|
}
|
|
254
258
|
return yield integration.updateCrowdin(projectId, crowdinClient.client, preparedIntegrationCredentials, filesToSync, rootFolder, appSettings);
|
|
255
259
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crowdin/app-project-module",
|
|
3
|
-
"version": "0.28.0-
|
|
3
|
+
"version": "0.28.0-4",
|
|
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",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@crowdin/crowdin-apps-functions": "0.3.1",
|
|
17
|
-
"@types/pg": "^8.6.
|
|
17
|
+
"@types/pg": "^8.6.6",
|
|
18
18
|
"amqplib": "^0.10.3",
|
|
19
19
|
"crypto-js": "^4.0.0",
|
|
20
20
|
"express": "4.17.1",
|
|
21
21
|
"express-handlebars": "^5.3.4",
|
|
22
22
|
"mysql2": "^2.3.3",
|
|
23
|
-
"node-cron": "^3.0.
|
|
24
|
-
"pg": "^8.
|
|
25
|
-
"sqlite3": "^5.
|
|
23
|
+
"node-cron": "^3.0.2",
|
|
24
|
+
"pg": "^8.10.0",
|
|
25
|
+
"sqlite3": "^5.1.6",
|
|
26
26
|
"uuid": "^8.3.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@types/express-handlebars": "^5.3.1",
|
|
48
48
|
"@types/jest": "^29.2.5",
|
|
49
49
|
"@types/node": "^12.0.10",
|
|
50
|
-
"@types/node-cron": "^3.0.
|
|
50
|
+
"@types/node-cron": "^3.0.7",
|
|
51
51
|
"@typescript-eslint/eslint-plugin": "^2.3.1",
|
|
52
52
|
"@typescript-eslint/parser": "^2.3.1",
|
|
53
53
|
"eslint": "^6.4.0",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0",
|
|
61
61
|
"rollup": "^3.18.0",
|
|
62
|
-
"ts-jest": "^29.0.
|
|
63
|
-
"typescript": "^4.
|
|
62
|
+
"ts-jest": "^29.0.5",
|
|
63
|
+
"typescript": "^4.9.5"
|
|
64
64
|
},
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|