@vkontakte/vk-miniapps-deploy 0.1.9-rc.1 → 0.1.9
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/.github/ISSUE_TEMPLATE/bug_report.yml +7 -0
- package/index.js +20 -2
- package/package.json +1 -1
|
@@ -42,6 +42,13 @@ body:
|
|
|
42
42
|
description: Если считаете, что из описания ожидаемое поведение непонятно.
|
|
43
43
|
validations:
|
|
44
44
|
required: true
|
|
45
|
+
- type: textarea
|
|
46
|
+
id: actual-behavior
|
|
47
|
+
attributes:
|
|
48
|
+
label: Фактическое поведение
|
|
49
|
+
description: Результат выполнения в текущей реализации.
|
|
50
|
+
validations:
|
|
51
|
+
required: true
|
|
45
52
|
- type: textarea
|
|
46
53
|
id: screenshots
|
|
47
54
|
attributes:
|
package/index.js
CHANGED
|
@@ -428,14 +428,32 @@ async function run(cfg) {
|
|
|
428
428
|
const params = {
|
|
429
429
|
app_id: cfg.app_id,
|
|
430
430
|
environment: environment,
|
|
431
|
-
update_prod: +cfg.update_prod,
|
|
432
|
-
update_dev: +cfg.update_dev,
|
|
433
431
|
};
|
|
434
432
|
|
|
435
433
|
if ('test_group_name' in cfg) {
|
|
436
434
|
params.test_group_name = cfg.test_group_name;
|
|
437
435
|
}
|
|
438
436
|
|
|
437
|
+
if ('update_prod' in cfg) {
|
|
438
|
+
const update_prod = Number(cfg.update_prod);
|
|
439
|
+
|
|
440
|
+
if (update_prod !== 0 && update_prod !== 1) {
|
|
441
|
+
throw new Error('update_prod must be 0 or 1 or boolean.');
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
params.update_prod = update_prod;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
if ('update_dev' in cfg) {
|
|
448
|
+
const update_dev = Number(cfg.update_dev);
|
|
449
|
+
|
|
450
|
+
if (update_dev !== 0 && update_dev !== 1) {
|
|
451
|
+
throw new Error('update_dev must be 0 or 1 or boolean.');
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
params.update_dev = update_dev;
|
|
455
|
+
}
|
|
456
|
+
|
|
439
457
|
const endpointPlatformKeys = Object.keys(cfg.endpoints);
|
|
440
458
|
if (endpointPlatformKeys.length) {
|
|
441
459
|
for (let i = 0; i < endpointPlatformKeys.length; i++) {
|