@speedkit/cli 4.29.0 → 4.30.0
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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/helpers/evaluate-speed-kit-config.d.ts +5 -0
- package/dist/helpers/evaluate-speed-kit-config.js +14 -7
- package/dist/services/customer-config/customer-config-service-model.d.ts +6 -0
- package/dist/services/customer-config/customer-config-service-model.js +1 -0
- package/dist/services/customer-config/customer-config-service.d.ts +5 -0
- package/dist/services/customer-config/customer-config-service.js +15 -0
- package/dist/services/deploy/checks/activation/customer-approval-check.d.ts +21 -0
- package/dist/services/deploy/checks/activation/customer-approval-check.js +59 -0
- package/dist/services/deploy/checks/activation/customer-approval-check.spec.d.ts +1 -0
- package/dist/services/deploy/checks/activation/customer-approval-check.spec.js +64 -0
- package/dist/services/deploy/deploy-service-factory.js +2 -1
- package/dist/services/deploy/handler/install-resource-handler.d.ts +7 -1
- package/dist/services/deploy/handler/install-resource-handler.js +40 -19
- package/dist/services/deploy/handler/testing-installation-links.d.ts +10 -0
- package/dist/services/deploy/handler/testing-installation-links.js +27 -0
- package/dist/services/deploy/handler/testing-installation-links.spec.d.ts +1 -0
- package/dist/services/deploy/handler/testing-installation-links.spec.js +43 -0
- package/dist/services/integration-api/struct/customer-config.d.ts +7 -1
- package/dist/services/integration-api/struct/customer-config.js +10 -3
- package/oclif.manifest.json +112 -112
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [4.30.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.29.0...v4.30.0) (2026-09-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **deploy:** require customer approval before activating a rollout ([e87d217](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/e87d2170315a4d601597cfbc2c656a227569c184))
|
|
7
|
+
|
|
1
8
|
# [4.29.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.28.0...v4.29.0) (2026-09-17)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -5,6 +5,11 @@ import { InstallResourceFile } from "../services/integration-api/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export type EvaluatedSpeedKitConfig = Record<string, any>;
|
|
7
7
|
export declare function evaluateLocalSpeedKitConfig(app: string, origin: string, speedKitConfigFile: InstallResourceFile): Promise<EvaluatedSpeedKitConfig>;
|
|
8
|
+
/**
|
|
9
|
+
* The same evaluation for a config that is not on disk — the one an install
|
|
10
|
+
* resource carries, for instance.
|
|
11
|
+
*/
|
|
12
|
+
export declare function evaluateSpeedKitConfig(app: string, origin: string, content: string, filename?: string): Promise<EvaluatedSpeedKitConfig>;
|
|
8
13
|
export declare function evaluateLocalAndRemoteSpeedKit(app: string, origin: string, speedKitConfigFile: InstallResourceFile, activeSpeedKitConfig: string): Promise<{
|
|
9
14
|
localSpeedKit: EvaluatedSpeedKitConfig;
|
|
10
15
|
remoteSpeedKit: EvaluatedSpeedKitConfig;
|
|
@@ -3,17 +3,24 @@ import * as vm from "node:vm";
|
|
|
3
3
|
import { BundleServiceFactory } from "../services/bundler/index.js";
|
|
4
4
|
import ApplicationError from "../services/error-handling/error/application-error.js";
|
|
5
5
|
export async function evaluateLocalSpeedKitConfig(app, origin, speedKitConfigFile) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
return evaluateSpeedKitConfig(app, origin, speedKitConfigFile.getContent(), speedKitConfigFile.path);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The same evaluation for a config that is not on disk — the one an install
|
|
10
|
+
* resource carries, for instance.
|
|
11
|
+
*/
|
|
12
|
+
export async function evaluateSpeedKitConfig(app, origin, content, filename) {
|
|
13
|
+
const browserContext = buildBrowserMock(origin, app);
|
|
14
|
+
const fileContent = safeFileContentWrapper(await bundle(content, app));
|
|
15
|
+
vm.runInNewContext(fileContent, browserContext, {
|
|
16
|
+
filename,
|
|
10
17
|
displayErrors: false,
|
|
11
18
|
breakOnSigint: true,
|
|
12
19
|
});
|
|
13
|
-
if (
|
|
14
|
-
throw new EvaluateSkConfigError(`[config_Speedkit.js] ${
|
|
20
|
+
if (browserContext.vmError !== null) {
|
|
21
|
+
throw new EvaluateSkConfigError(`[config_Speedkit.js] ${browserContext.vmError?.message}`);
|
|
15
22
|
}
|
|
16
|
-
return
|
|
23
|
+
return browserContext.window.speedKit;
|
|
17
24
|
}
|
|
18
25
|
export async function evaluateLocalAndRemoteSpeedKit(app, origin, speedKitConfigFile, activeSpeedKitConfig) {
|
|
19
26
|
const localBrowserContext = buildBrowserMock(origin, app);
|
|
@@ -51,6 +51,12 @@ export interface CustomerConfigSettings {
|
|
|
51
51
|
handleUsercentrics?: boolean;
|
|
52
52
|
isPOV?: boolean;
|
|
53
53
|
useDisabledSitesApproach?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Written to config_customer.json. Makes `sk deploy` ask whether the customer
|
|
56
|
+
* approved the change before it offers to activate an installation with a
|
|
57
|
+
* split greater than 0.
|
|
58
|
+
*/
|
|
59
|
+
needsCustomerApproval?: boolean;
|
|
54
60
|
shopSystemName?: string;
|
|
55
61
|
isShopify?: boolean;
|
|
56
62
|
isShopware?: boolean;
|
|
@@ -18,6 +18,11 @@ export declare class CustomerConfigService {
|
|
|
18
18
|
private getPathWithChangedDir;
|
|
19
19
|
private isDirNotEmpty;
|
|
20
20
|
private chooseNewOutputDirectoryName;
|
|
21
|
+
/**
|
|
22
|
+
* Japanese customers sign off every rollout themselves, so the approval flag
|
|
23
|
+
* is preselected for them. A `.jp` host is the signal we have at this point.
|
|
24
|
+
*/
|
|
25
|
+
private isJapaneseHost;
|
|
21
26
|
/** A pre-PoC config marks itself via splitTestId "pre_poc" in config_SpeedKit.js. */
|
|
22
27
|
private isPrePocConfig;
|
|
23
28
|
/** Parks every config_* file as *_pre-poc (suffix before the extension). */
|
|
@@ -58,6 +58,13 @@ export class CustomerConfigService {
|
|
|
58
58
|
});
|
|
59
59
|
return this.selectOutputDirectory(this.getPathWithChangedDir(directoryPath, newDirectoryName));
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Japanese customers sign off every rollout themselves, so the approval flag
|
|
63
|
+
* is preselected for them. A `.jp` host is the signal we have at this point.
|
|
64
|
+
*/
|
|
65
|
+
isJapaneseHost(host) {
|
|
66
|
+
return /\.jp$/i.test(host.trim().replace(/\/.*$/, ""));
|
|
67
|
+
}
|
|
61
68
|
/** A pre-PoC config marks itself via splitTestId "pre_poc" in config_SpeedKit.js. */
|
|
62
69
|
isPrePocConfig(directoryPath) {
|
|
63
70
|
const speedKitConfigPath = path.join(directoryPath, "config_SpeedKit.js");
|
|
@@ -270,12 +277,19 @@ export class CustomerConfigService {
|
|
|
270
277
|
}
|
|
271
278
|
this.cli.spacer();
|
|
272
279
|
}
|
|
280
|
+
// 6. Customer approval. Its own question rather than a feature toggle: it
|
|
281
|
+
// decides whether sk deploy may ever activate a rollout unattended, which
|
|
282
|
+
// is too easy to miss in a multi-select. The question is the same for every
|
|
283
|
+
// customer — only the default answer follows the domain.
|
|
284
|
+
const needsCustomerApproval = await this.cli.confirm("[Approval] Must the customer approve a change before it may be activated?", this.isJapaneseHost(productionHost));
|
|
285
|
+
this.cli.spacer();
|
|
273
286
|
// Pre-PoC: the tracking-only set uses no acceleration answers — stop asking here.
|
|
274
287
|
if (this.context.mode === "pre-poc") {
|
|
275
288
|
return {
|
|
276
289
|
appName: this.appName,
|
|
277
290
|
production,
|
|
278
291
|
staging,
|
|
292
|
+
needsCustomerApproval,
|
|
279
293
|
shopSystemName: selectedShopSystem === ShopSystem.OTHER
|
|
280
294
|
? undefined
|
|
281
295
|
: selectedShopSystem,
|
|
@@ -453,6 +467,7 @@ export class CustomerConfigService {
|
|
|
453
467
|
isPlentymarkets,
|
|
454
468
|
isPOV,
|
|
455
469
|
addDowntimeDetection,
|
|
470
|
+
needsCustomerApproval,
|
|
456
471
|
};
|
|
457
472
|
}
|
|
458
473
|
async logWarnings(configSettings) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CliServiceInterface } from "../../../cli/index.js";
|
|
2
|
+
import { CustomerConfig } from "../../../integration-api/index.js";
|
|
3
|
+
import Install from "../../interface/install.js";
|
|
4
|
+
/**
|
|
5
|
+
* Some customers reserve the go-live decision for themselves: nothing may reach
|
|
6
|
+
* their real users before they signed it off. `needsCustomerApproval` in
|
|
7
|
+
* config_customer.json marks such a customer, and this check asks for that
|
|
8
|
+
* sign-off before `sk deploy` offers to activate an installation that would
|
|
9
|
+
* serve a share of the traffic (split > 0 for at least one origin).
|
|
10
|
+
*/
|
|
11
|
+
export declare class CustomerApprovalCheck {
|
|
12
|
+
private cli;
|
|
13
|
+
private customer;
|
|
14
|
+
constructor(cli: CliServiceInterface, customer: CustomerConfig);
|
|
15
|
+
/**
|
|
16
|
+
* Whether the installation may be offered for regular activation. `false`
|
|
17
|
+
* means the deploy is limited to a testing installation.
|
|
18
|
+
*/
|
|
19
|
+
isActivationApproved(install: Install): Promise<boolean>;
|
|
20
|
+
private getSplitsGreaterZero;
|
|
21
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { evaluateSpeedKitConfig } from "../../../../helpers/evaluate-speed-kit-config.js";
|
|
2
|
+
import { safe } from "../../../../helpers/safe.js";
|
|
3
|
+
/** The install resource key config_SpeedKit.js is stored under. */
|
|
4
|
+
const SPEED_KIT_CONFIG_KEY = "config";
|
|
5
|
+
/**
|
|
6
|
+
* Some customers reserve the go-live decision for themselves: nothing may reach
|
|
7
|
+
* their real users before they signed it off. `needsCustomerApproval` in
|
|
8
|
+
* config_customer.json marks such a customer, and this check asks for that
|
|
9
|
+
* sign-off before `sk deploy` offers to activate an installation that would
|
|
10
|
+
* serve a share of the traffic (split > 0 for at least one origin).
|
|
11
|
+
*/
|
|
12
|
+
export class CustomerApprovalCheck {
|
|
13
|
+
cli;
|
|
14
|
+
customer;
|
|
15
|
+
constructor(cli, customer) {
|
|
16
|
+
this.cli = cli;
|
|
17
|
+
this.customer = customer;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Whether the installation may be offered for regular activation. `false`
|
|
21
|
+
* means the deploy is limited to a testing installation.
|
|
22
|
+
*/
|
|
23
|
+
async isActivationApproved(install) {
|
|
24
|
+
if (!this.customer.needsCustomerApproval) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
const splits = await this.getSplitsGreaterZero(install);
|
|
28
|
+
// Nothing reaches real users — no approval needed.
|
|
29
|
+
if (splits.length === 0) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
this.cli.writeWarning("This customer approves every rollout themselves and the configuration " +
|
|
33
|
+
"to be activated has a split greater than 0:");
|
|
34
|
+
this.cli.table(splits, { origin: {}, split: {} });
|
|
35
|
+
return this.cli.confirm("Was this change approved by customer?", false);
|
|
36
|
+
}
|
|
37
|
+
async getSplitsGreaterZero(install) {
|
|
38
|
+
const speedKitConfig = install[SPEED_KIT_CONFIG_KEY];
|
|
39
|
+
// No Speed Kit config at all means nothing is accelerated.
|
|
40
|
+
if (!speedKitConfig) {
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
const splits = [];
|
|
44
|
+
for (const origin of this.customer.origins) {
|
|
45
|
+
const result = await safe(evaluateSpeedKitConfig(this.customer.app, origin, speedKitConfig));
|
|
46
|
+
if (result.success === false) {
|
|
47
|
+
// An unreadable config is not proof that the split is 0, so keep the
|
|
48
|
+
// approval question rather than skipping it.
|
|
49
|
+
this.cli.writeError(`Unable to evaluate the split for ${origin}: ${result.error}`);
|
|
50
|
+
splits.push({ origin, split: "unknown" });
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (result.data.split > 0) {
|
|
54
|
+
splits.push({ origin, split: result.data.split });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return splits;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { describe, it } from "mocha";
|
|
3
|
+
import { CustomerApprovalCheck } from "./customer-approval-check.js";
|
|
4
|
+
import { CustomerConfig } from "../../../integration-api/index.js";
|
|
5
|
+
function customer(needsCustomerApproval) {
|
|
6
|
+
return CustomerConfig.createFrom({
|
|
7
|
+
app: "test-app",
|
|
8
|
+
origins: ["https://www.example.com", "https://www.example.de"],
|
|
9
|
+
swPath: "/sw.js",
|
|
10
|
+
scope: "/",
|
|
11
|
+
needsCustomerApproval,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function installWithSplit(split) {
|
|
15
|
+
return {
|
|
16
|
+
domain: "production",
|
|
17
|
+
config: `window.speedKit = { appName: APP, split: ${split} };`,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** Records every question asked and answers all of them with `answer`. */
|
|
21
|
+
function cliAsking(answer) {
|
|
22
|
+
const questions = [];
|
|
23
|
+
const cli = {
|
|
24
|
+
confirm: async (message) => {
|
|
25
|
+
questions.push(message);
|
|
26
|
+
return answer;
|
|
27
|
+
},
|
|
28
|
+
table: () => undefined,
|
|
29
|
+
writeWarning: () => undefined,
|
|
30
|
+
writeError: () => undefined,
|
|
31
|
+
};
|
|
32
|
+
return { cli, questions };
|
|
33
|
+
}
|
|
34
|
+
describe("CustomerApprovalCheck", () => {
|
|
35
|
+
it("approves without asking when the customer does not need to approve", async () => {
|
|
36
|
+
const { cli, questions } = cliAsking(false);
|
|
37
|
+
const approved = await new CustomerApprovalCheck(cli, customer(false)).isActivationApproved(installWithSplit("1"));
|
|
38
|
+
expect(approved).to.equal(true);
|
|
39
|
+
expect(questions).to.deep.equal([]);
|
|
40
|
+
});
|
|
41
|
+
it("approves without asking while no origin serves traffic", async () => {
|
|
42
|
+
const { cli, questions } = cliAsking(false);
|
|
43
|
+
const approved = await new CustomerApprovalCheck(cli, customer(true)).isActivationApproved(installWithSplit("0"));
|
|
44
|
+
expect(approved).to.equal(true);
|
|
45
|
+
expect(questions).to.deep.equal([]);
|
|
46
|
+
});
|
|
47
|
+
it("asks once a single origin has a split greater than 0", async () => {
|
|
48
|
+
const { cli, questions } = cliAsking(true);
|
|
49
|
+
const approved = await new CustomerApprovalCheck(cli, customer(true)).isActivationApproved(installWithSplit('window.location.hostname === "www.example.com" ? 0.5 : 0'));
|
|
50
|
+
expect(approved).to.equal(true);
|
|
51
|
+
expect(questions).to.deep.equal(["Was this change approved by customer?"]);
|
|
52
|
+
});
|
|
53
|
+
it("withholds the approval when the question is answered with no", async () => {
|
|
54
|
+
const { cli } = cliAsking(false);
|
|
55
|
+
const approved = await new CustomerApprovalCheck(cli, customer(true)).isActivationApproved(installWithSplit("0.1"));
|
|
56
|
+
expect(approved).to.equal(false);
|
|
57
|
+
});
|
|
58
|
+
it("asks when the split cannot be evaluated", async () => {
|
|
59
|
+
const { cli, questions } = cliAsking(false);
|
|
60
|
+
const approved = await new CustomerApprovalCheck(cli, customer(true)).isActivationApproved(installWithSplit("({}).missing.split"));
|
|
61
|
+
expect(approved).to.equal(false);
|
|
62
|
+
expect(questions).to.deep.equal(["Was this change approved by customer?"]);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -15,6 +15,7 @@ import { ConfigApiContext, ConfigApiServiceFactory, } from "../config-api/index.
|
|
|
15
15
|
import { DeprecatedDeploymentDetectionCheck } from "./checks/post-deploy/deprecated-deployment-detection-check.js";
|
|
16
16
|
import { DeviceDetectionChangedCheck } from "./checks/pre-deploy/device-detection-changed-check.js";
|
|
17
17
|
import { RefreshDeploymentJobCheck } from "./checks/post-deploy/refresh-deployment-job-check.js";
|
|
18
|
+
import { CustomerApprovalCheck } from "./checks/activation/customer-approval-check.js";
|
|
18
19
|
export default class DeployServiceFactory {
|
|
19
20
|
context;
|
|
20
21
|
cliConfig;
|
|
@@ -40,7 +41,7 @@ export default class DeployServiceFactory {
|
|
|
40
41
|
const deletedFilesChecker = new DeletedFileCheck(cliService, this.context.hasArtifacts());
|
|
41
42
|
this.service = new DeployService(files, [
|
|
42
43
|
new CustomerConfigHandler(customer, configApi, configName, diffService, cliService, installResourceBuilder),
|
|
43
|
-
new InstallResourceHandler(customer, configApi, configName, diffService, cliService, installResourceBuilder, deletedFilesChecker),
|
|
44
|
+
new InstallResourceHandler(customer, configApi, configName, diffService, cliService, installResourceBuilder, deletedFilesChecker, new CustomerApprovalCheck(cliService, customer)),
|
|
44
45
|
new ModuleHandler(configApi, diffService, cliService, []),
|
|
45
46
|
new ServerConfigHandler(configApi, diffService, cliService),
|
|
46
47
|
], cliService, [
|
|
@@ -5,6 +5,7 @@ import InstallResourceBuilder from "../builder/install-resource-builder.js";
|
|
|
5
5
|
import DeletedFileCheck from "./install-resource-modifier/deleted-file-check.js";
|
|
6
6
|
import { CustomerConfig, FILE_TYPE, InstallResourceInterface } from "../../integration-api/index.js";
|
|
7
7
|
import { ConfigApiService } from "../../config-api/index.js";
|
|
8
|
+
import { CustomerApprovalCheck } from "../checks/activation/customer-approval-check.js";
|
|
8
9
|
export default class InstallResourceHandler implements DeployHandlerInterface {
|
|
9
10
|
private readonly customer;
|
|
10
11
|
private readonly configApi;
|
|
@@ -13,10 +14,15 @@ export default class InstallResourceHandler implements DeployHandlerInterface {
|
|
|
13
14
|
private cli;
|
|
14
15
|
private builder;
|
|
15
16
|
private deletedFilesChecker;
|
|
16
|
-
|
|
17
|
+
private customerApprovalCheck;
|
|
18
|
+
constructor(customer: CustomerConfig, configApi: ConfigApiService, configName: string, diffService: DiffService, cli: CliService, builder: InstallResourceBuilder, deletedFilesChecker: DeletedFileCheck, customerApprovalCheck: CustomerApprovalCheck);
|
|
17
19
|
canHandle(type: FILE_TYPE): boolean;
|
|
18
20
|
handle(files: InstallResourceInterface[]): Promise<void>;
|
|
19
21
|
upload(files: InstallResourceInterface[]): Promise<void>;
|
|
22
|
+
private activate;
|
|
23
|
+
private activateAsTesting;
|
|
24
|
+
/** The origins with the debug parameter attached, ready to be clicked. */
|
|
25
|
+
private writeTestingInstallationLinks;
|
|
20
26
|
private processFile;
|
|
21
27
|
private confirm;
|
|
22
28
|
private getInstallResource;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FILE_TYPE, } from "../../integration-api/index.js";
|
|
2
|
-
import { copyToClipboard } from "../../../helpers/clipboard.js";
|
|
3
2
|
import { safe } from "../../../helpers/safe.js";
|
|
3
|
+
import { buildTestingInstallationLinks } from "./testing-installation-links.js";
|
|
4
4
|
export default class InstallResourceHandler {
|
|
5
5
|
customer;
|
|
6
6
|
configApi;
|
|
@@ -9,7 +9,8 @@ export default class InstallResourceHandler {
|
|
|
9
9
|
cli;
|
|
10
10
|
builder;
|
|
11
11
|
deletedFilesChecker;
|
|
12
|
-
|
|
12
|
+
customerApprovalCheck;
|
|
13
|
+
constructor(customer, configApi, configName, diffService, cli, builder, deletedFilesChecker, customerApprovalCheck) {
|
|
13
14
|
this.customer = customer;
|
|
14
15
|
this.configApi = configApi;
|
|
15
16
|
this.diffService = diffService;
|
|
@@ -17,6 +18,7 @@ export default class InstallResourceHandler {
|
|
|
17
18
|
this.cli = cli;
|
|
18
19
|
this.builder = builder;
|
|
19
20
|
this.deletedFilesChecker = deletedFilesChecker;
|
|
21
|
+
this.customerApprovalCheck = customerApprovalCheck;
|
|
20
22
|
}
|
|
21
23
|
canHandle(type) {
|
|
22
24
|
return type === FILE_TYPE.INSTALL_FILE;
|
|
@@ -57,25 +59,16 @@ export default class InstallResourceHandler {
|
|
|
57
59
|
throw updateResult.errorObj;
|
|
58
60
|
}
|
|
59
61
|
this.cli.successAction("DEPLOY:UPDATE:INSTALL_RESOURCE");
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
this.cli.failAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE_TEST", activateTestingResult.error);
|
|
66
|
-
throw activateTestingResult.errorObj;
|
|
67
|
-
}
|
|
68
|
-
this.cli.successAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE_TEST");
|
|
69
|
-
const debugParameter = `?debugSpeedKit=${install.id.split("/").pop()}`;
|
|
70
|
-
if (await copyToClipboard(debugParameter)) {
|
|
71
|
-
this.cli.writeSuccess("Query parameter to activate the testing installation has been copied to the clipboard 📋");
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
this.cli.writeSuccess(`Use the following parameter to active the testing installation in your browser: ${debugParameter}`);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
62
|
+
// Without the customer's approval the installation may only go live as a
|
|
63
|
+
// testing installation, so the regular activation is not even offered.
|
|
64
|
+
const approved = await this.customerApprovalCheck.isActivationApproved(install);
|
|
65
|
+
if (approved && (await this.cli.confirm("Activate new installation?"))) {
|
|
66
|
+
await this.activate(install);
|
|
77
67
|
return;
|
|
78
68
|
}
|
|
69
|
+
await this.activateAsTesting(install, approved);
|
|
70
|
+
}
|
|
71
|
+
async activate(install) {
|
|
79
72
|
this.cli.startAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE", "activate installResource");
|
|
80
73
|
const activateResult = await safe(this.configApi.activateInstall(install));
|
|
81
74
|
if (activateResult.success === false) {
|
|
@@ -84,6 +77,34 @@ export default class InstallResourceHandler {
|
|
|
84
77
|
}
|
|
85
78
|
this.cli.successAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE");
|
|
86
79
|
}
|
|
80
|
+
async activateAsTesting(install, wasActivationOffered) {
|
|
81
|
+
const question = wasActivationOffered
|
|
82
|
+
? "Activate as testing installation instead?"
|
|
83
|
+
: "Activate as testing installation?";
|
|
84
|
+
if (!(await this.cli.confirm(question))) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.cli.startAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE_TEST", "activate testing installResource");
|
|
88
|
+
const activateTestingResult = await safe(this.configApi.activateInstallTesting(install));
|
|
89
|
+
if (activateTestingResult.success === false) {
|
|
90
|
+
this.cli.failAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE_TEST", activateTestingResult.error);
|
|
91
|
+
throw activateTestingResult.errorObj;
|
|
92
|
+
}
|
|
93
|
+
this.cli.successAction("DEPLOY:ACTIVATE:INSTALL_RESOURCE_TEST");
|
|
94
|
+
this.writeTestingInstallationLinks(install);
|
|
95
|
+
}
|
|
96
|
+
/** The origins with the debug parameter attached, ready to be clicked. */
|
|
97
|
+
writeTestingInstallationLinks(install) {
|
|
98
|
+
const { links, hidden } = buildTestingInstallationLinks(this.customer.origins, install.id.split("/").pop());
|
|
99
|
+
this.cli.write("");
|
|
100
|
+
this.cli.write("Open the testing installation:");
|
|
101
|
+
for (const link of links) {
|
|
102
|
+
this.cli.write(` ${link}`);
|
|
103
|
+
}
|
|
104
|
+
if (hidden > 0) {
|
|
105
|
+
this.cli.comment(` … and ${hidden} more origin${hidden === 1 ? "" : "s"}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
87
108
|
async processFile(file, installResource) {
|
|
88
109
|
if (!installResource) {
|
|
89
110
|
await this.confirm(file, true);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** How many origins are listed before the rest is summarised as a count. */
|
|
2
|
+
export declare const MAX_LISTED_ORIGINS = 10;
|
|
3
|
+
/**
|
|
4
|
+
* The links that open a testing installation — one per origin, capped so a
|
|
5
|
+
* customer with dozens of origins does not bury the rest of the deploy output.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildTestingInstallationLinks(origins: string[], testInstallationId: string): {
|
|
8
|
+
links: string[];
|
|
9
|
+
hidden: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { safe } from "../../../helpers/safe.js";
|
|
2
|
+
/** How many origins are listed before the rest is summarised as a count. */
|
|
3
|
+
export const MAX_LISTED_ORIGINS = 10;
|
|
4
|
+
/** The query parameter that switches a browser to a testing installation. */
|
|
5
|
+
const DEBUG_PARAMETER = "debugSpeedKit";
|
|
6
|
+
/**
|
|
7
|
+
* The links that open a testing installation — one per origin, capped so a
|
|
8
|
+
* customer with dozens of origins does not bury the rest of the deploy output.
|
|
9
|
+
*/
|
|
10
|
+
export function buildTestingInstallationLinks(origins, testInstallationId) {
|
|
11
|
+
const links = origins
|
|
12
|
+
.slice(0, MAX_LISTED_ORIGINS)
|
|
13
|
+
.map((origin) => buildLink(origin, testInstallationId));
|
|
14
|
+
return { links, hidden: Math.max(origins.length - MAX_LISTED_ORIGINS, 0) };
|
|
15
|
+
}
|
|
16
|
+
function buildLink(origin, testInstallationId) {
|
|
17
|
+
const parsed = safe(() => {
|
|
18
|
+
const url = new URL(origin);
|
|
19
|
+
url.searchParams.set(DEBUG_PARAMETER, testInstallationId);
|
|
20
|
+
return url.toString();
|
|
21
|
+
});
|
|
22
|
+
// An origin the URL parser rejects is still worth printing — the deploy has
|
|
23
|
+
// happened by now, and a slightly off link beats no link at all.
|
|
24
|
+
return parsed.success
|
|
25
|
+
? parsed.data
|
|
26
|
+
: `${origin}?${DEBUG_PARAMETER}=${testInstallationId}`;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { describe, it } from "mocha";
|
|
3
|
+
import { buildTestingInstallationLinks, MAX_LISTED_ORIGINS, } from "./testing-installation-links.js";
|
|
4
|
+
function origins(count) {
|
|
5
|
+
return Array.from({ length: count }, (_, i) => `https://shop-${i}.example.com`);
|
|
6
|
+
}
|
|
7
|
+
describe("buildTestingInstallationLinks", () => {
|
|
8
|
+
it("attaches the debug parameter to every origin", () => {
|
|
9
|
+
const { links, hidden } = buildTestingInstallationLinks(["https://www.example.com", "https://www.example.de"], "hJ3kP9qw");
|
|
10
|
+
expect(links).to.deep.equal([
|
|
11
|
+
"https://www.example.com/?debugSpeedKit=hJ3kP9qw",
|
|
12
|
+
"https://www.example.de/?debugSpeedKit=hJ3kP9qw",
|
|
13
|
+
]);
|
|
14
|
+
expect(hidden).to.equal(0);
|
|
15
|
+
});
|
|
16
|
+
it("keeps a port and an existing query on the origin", () => {
|
|
17
|
+
const { links } = buildTestingInstallationLinks(["https://staging.example.com:8443?preview=1"], "id");
|
|
18
|
+
expect(links).to.deep.equal([
|
|
19
|
+
"https://staging.example.com:8443/?preview=1&debugSpeedKit=id",
|
|
20
|
+
]);
|
|
21
|
+
});
|
|
22
|
+
it("still builds a link for an origin the URL parser rejects", () => {
|
|
23
|
+
const { links } = buildTestingInstallationLinks(["www.example.com"], "id");
|
|
24
|
+
expect(links).to.deep.equal(["www.example.com?debugSpeedKit=id"]);
|
|
25
|
+
});
|
|
26
|
+
it("lists everything while the cap is not reached", () => {
|
|
27
|
+
const { links, hidden } = buildTestingInstallationLinks(origins(MAX_LISTED_ORIGINS), "id");
|
|
28
|
+
expect(links).to.have.lengthOf(MAX_LISTED_ORIGINS);
|
|
29
|
+
expect(hidden).to.equal(0);
|
|
30
|
+
});
|
|
31
|
+
it("caps the list and reports how many origins it left out", () => {
|
|
32
|
+
const { links, hidden } = buildTestingInstallationLinks(origins(MAX_LISTED_ORIGINS + 3), "id");
|
|
33
|
+
expect(links).to.have.lengthOf(MAX_LISTED_ORIGINS);
|
|
34
|
+
expect(links[0]).to.equal("https://shop-0.example.com/?debugSpeedKit=id");
|
|
35
|
+
expect(hidden).to.equal(3);
|
|
36
|
+
});
|
|
37
|
+
it("handles a config without origins", () => {
|
|
38
|
+
expect(buildTestingInstallationLinks([], "id")).to.deep.equal({
|
|
39
|
+
links: [],
|
|
40
|
+
hidden: 0,
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
});
|
|
@@ -15,6 +15,12 @@ export declare class CustomerConfig {
|
|
|
15
15
|
readonly forceInstall?: boolean;
|
|
16
16
|
readonly chromeFlags?: string[];
|
|
17
17
|
readonly dependencies?: Record<string, string>;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The customer has to sign off every rollout to real users. With this set,
|
|
20
|
+
* `sk deploy` asks for that approval before it offers to activate an
|
|
21
|
+
* installation whose split is greater than 0 for any origin.
|
|
22
|
+
*/
|
|
23
|
+
readonly needsCustomerApproval?: boolean;
|
|
24
|
+
constructor(app: string, origins: string[], domain: string, swPath: string, scope: string, appDomain?: string, installPath?: string, installParameters?: string, name?: string, forceInstall?: boolean, chromeFlags?: string[], dependencies?: Record<string, string>, needsCustomerApproval?: boolean);
|
|
19
25
|
static createFrom(configFile: Partial<CustomerConfig>, configName?: string): CustomerConfig;
|
|
20
26
|
}
|
|
@@ -12,7 +12,13 @@ export class CustomerConfig {
|
|
|
12
12
|
forceInstall;
|
|
13
13
|
chromeFlags;
|
|
14
14
|
dependencies;
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The customer has to sign off every rollout to real users. With this set,
|
|
17
|
+
* `sk deploy` asks for that approval before it offers to activate an
|
|
18
|
+
* installation whose split is greater than 0 for any origin.
|
|
19
|
+
*/
|
|
20
|
+
needsCustomerApproval;
|
|
21
|
+
constructor(app, origins, domain, swPath, scope, appDomain, installPath, installParameters, name, forceInstall, chromeFlags, dependencies, needsCustomerApproval) {
|
|
16
22
|
this.app = app;
|
|
17
23
|
this.origins = origins;
|
|
18
24
|
this.domain = domain;
|
|
@@ -25,11 +31,12 @@ export class CustomerConfig {
|
|
|
25
31
|
this.forceInstall = forceInstall;
|
|
26
32
|
this.chromeFlags = chromeFlags;
|
|
27
33
|
this.dependencies = dependencies;
|
|
34
|
+
this.needsCustomerApproval = needsCustomerApproval;
|
|
28
35
|
}
|
|
29
36
|
static createFrom(configFile, configName) {
|
|
30
|
-
const { app, origins, domain, swPath, scope, appDomain, installPath, installParams, name, forceInstall, chromeFlags, dependencies, } = configFile;
|
|
37
|
+
const { app, origins, domain, swPath, scope, appDomain, installPath, installParams, name, forceInstall, chromeFlags, dependencies, needsCustomerApproval, } = configFile;
|
|
31
38
|
return new CustomerConfig(new RequiredParameter("app", app).isString().getValue(), new RequiredParameter("origins", origins).isArray().getValue(), domain, new RequiredParameter("swPath", swPath).isString().getValue(), new RequiredParameter("scope", scope).isString().getValue(), appDomain || `${app}.app.baqend.com`, installPath ||
|
|
32
|
-
`https://${app}.app.baqend.com/v1/speedkit/install.js?d=${name || configName}`, installParams || 'async="" crossorigin="anonymous"', name, forceInstall || false, chromeFlags, dependencies || {});
|
|
39
|
+
`https://${app}.app.baqend.com/v1/speedkit/install.js?d=${name || configName}`, installParams || 'async="" crossorigin="anonymous"', name, forceInstall || false, chromeFlags, dependencies || {}, needsCustomerApproval || false);
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
class RequiredParameter {
|
package/oclif.manifest.json
CHANGED
|
@@ -1228,117 +1228,6 @@
|
|
|
1228
1228
|
"setup.js"
|
|
1229
1229
|
]
|
|
1230
1230
|
},
|
|
1231
|
-
"extension:add": {
|
|
1232
|
-
"aliases": [],
|
|
1233
|
-
"args": {
|
|
1234
|
-
"ref": {
|
|
1235
|
-
"description": "Chrome Web Store link or extension id",
|
|
1236
|
-
"name": "ref",
|
|
1237
|
-
"required": false
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
"description": "Install a Chrome extension into the onboarding browser by Web Store link or id",
|
|
1241
|
-
"examples": [
|
|
1242
|
-
"$ sk extension add fmkadmapgofadopljbjfkapdkoienihi",
|
|
1243
|
-
"$ sk extension add https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi",
|
|
1244
|
-
"$ sk extension add"
|
|
1245
|
-
],
|
|
1246
|
-
"flags": {},
|
|
1247
|
-
"hasDynamicHelp": false,
|
|
1248
|
-
"hiddenAliases": [],
|
|
1249
|
-
"id": "extension:add",
|
|
1250
|
-
"pluginAlias": "@speedkit/cli",
|
|
1251
|
-
"pluginName": "@speedkit/cli",
|
|
1252
|
-
"pluginType": "core",
|
|
1253
|
-
"strict": true,
|
|
1254
|
-
"enableJsonFlag": false,
|
|
1255
|
-
"isESM": true,
|
|
1256
|
-
"relativePath": [
|
|
1257
|
-
"dist",
|
|
1258
|
-
"commands",
|
|
1259
|
-
"extension",
|
|
1260
|
-
"add.js"
|
|
1261
|
-
]
|
|
1262
|
-
},
|
|
1263
|
-
"extension:list": {
|
|
1264
|
-
"aliases": [],
|
|
1265
|
-
"args": {},
|
|
1266
|
-
"description": "List Chrome extensions managed by the setup wizard",
|
|
1267
|
-
"examples": [
|
|
1268
|
-
"$ sk extension list"
|
|
1269
|
-
],
|
|
1270
|
-
"flags": {},
|
|
1271
|
-
"hasDynamicHelp": false,
|
|
1272
|
-
"hiddenAliases": [],
|
|
1273
|
-
"id": "extension:list",
|
|
1274
|
-
"pluginAlias": "@speedkit/cli",
|
|
1275
|
-
"pluginName": "@speedkit/cli",
|
|
1276
|
-
"pluginType": "core",
|
|
1277
|
-
"strict": true,
|
|
1278
|
-
"enableJsonFlag": false,
|
|
1279
|
-
"isESM": true,
|
|
1280
|
-
"relativePath": [
|
|
1281
|
-
"dist",
|
|
1282
|
-
"commands",
|
|
1283
|
-
"extension",
|
|
1284
|
-
"list.js"
|
|
1285
|
-
]
|
|
1286
|
-
},
|
|
1287
|
-
"extension:remove": {
|
|
1288
|
-
"aliases": [],
|
|
1289
|
-
"args": {
|
|
1290
|
-
"ref": {
|
|
1291
|
-
"description": "Chrome Web Store link or extension id",
|
|
1292
|
-
"name": "ref",
|
|
1293
|
-
"required": false
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
"description": "Remove a managed Chrome extension",
|
|
1297
|
-
"examples": [
|
|
1298
|
-
"$ sk extension remove",
|
|
1299
|
-
"$ sk extension remove <id>"
|
|
1300
|
-
],
|
|
1301
|
-
"flags": {},
|
|
1302
|
-
"hasDynamicHelp": false,
|
|
1303
|
-
"hiddenAliases": [],
|
|
1304
|
-
"id": "extension:remove",
|
|
1305
|
-
"pluginAlias": "@speedkit/cli",
|
|
1306
|
-
"pluginName": "@speedkit/cli",
|
|
1307
|
-
"pluginType": "core",
|
|
1308
|
-
"strict": true,
|
|
1309
|
-
"enableJsonFlag": false,
|
|
1310
|
-
"isESM": true,
|
|
1311
|
-
"relativePath": [
|
|
1312
|
-
"dist",
|
|
1313
|
-
"commands",
|
|
1314
|
-
"extension",
|
|
1315
|
-
"remove.js"
|
|
1316
|
-
]
|
|
1317
|
-
},
|
|
1318
|
-
"extension:update": {
|
|
1319
|
-
"aliases": [],
|
|
1320
|
-
"args": {},
|
|
1321
|
-
"description": "Check managed Chrome extensions for updates and install them",
|
|
1322
|
-
"examples": [
|
|
1323
|
-
"$ sk extension update"
|
|
1324
|
-
],
|
|
1325
|
-
"flags": {},
|
|
1326
|
-
"hasDynamicHelp": false,
|
|
1327
|
-
"hiddenAliases": [],
|
|
1328
|
-
"id": "extension:update",
|
|
1329
|
-
"pluginAlias": "@speedkit/cli",
|
|
1330
|
-
"pluginName": "@speedkit/cli",
|
|
1331
|
-
"pluginType": "core",
|
|
1332
|
-
"strict": true,
|
|
1333
|
-
"enableJsonFlag": false,
|
|
1334
|
-
"isESM": true,
|
|
1335
|
-
"relativePath": [
|
|
1336
|
-
"dist",
|
|
1337
|
-
"commands",
|
|
1338
|
-
"extension",
|
|
1339
|
-
"update.js"
|
|
1340
|
-
]
|
|
1341
|
-
},
|
|
1342
1231
|
"query:parameter": {
|
|
1343
1232
|
"aliases": [
|
|
1344
1233
|
"build-parameter-query"
|
|
@@ -1649,7 +1538,118 @@
|
|
|
1649
1538
|
"query",
|
|
1650
1539
|
"prewarm.js"
|
|
1651
1540
|
]
|
|
1541
|
+
},
|
|
1542
|
+
"extension:add": {
|
|
1543
|
+
"aliases": [],
|
|
1544
|
+
"args": {
|
|
1545
|
+
"ref": {
|
|
1546
|
+
"description": "Chrome Web Store link or extension id",
|
|
1547
|
+
"name": "ref",
|
|
1548
|
+
"required": false
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
"description": "Install a Chrome extension into the onboarding browser by Web Store link or id",
|
|
1552
|
+
"examples": [
|
|
1553
|
+
"$ sk extension add fmkadmapgofadopljbjfkapdkoienihi",
|
|
1554
|
+
"$ sk extension add https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi",
|
|
1555
|
+
"$ sk extension add"
|
|
1556
|
+
],
|
|
1557
|
+
"flags": {},
|
|
1558
|
+
"hasDynamicHelp": false,
|
|
1559
|
+
"hiddenAliases": [],
|
|
1560
|
+
"id": "extension:add",
|
|
1561
|
+
"pluginAlias": "@speedkit/cli",
|
|
1562
|
+
"pluginName": "@speedkit/cli",
|
|
1563
|
+
"pluginType": "core",
|
|
1564
|
+
"strict": true,
|
|
1565
|
+
"enableJsonFlag": false,
|
|
1566
|
+
"isESM": true,
|
|
1567
|
+
"relativePath": [
|
|
1568
|
+
"dist",
|
|
1569
|
+
"commands",
|
|
1570
|
+
"extension",
|
|
1571
|
+
"add.js"
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1574
|
+
"extension:list": {
|
|
1575
|
+
"aliases": [],
|
|
1576
|
+
"args": {},
|
|
1577
|
+
"description": "List Chrome extensions managed by the setup wizard",
|
|
1578
|
+
"examples": [
|
|
1579
|
+
"$ sk extension list"
|
|
1580
|
+
],
|
|
1581
|
+
"flags": {},
|
|
1582
|
+
"hasDynamicHelp": false,
|
|
1583
|
+
"hiddenAliases": [],
|
|
1584
|
+
"id": "extension:list",
|
|
1585
|
+
"pluginAlias": "@speedkit/cli",
|
|
1586
|
+
"pluginName": "@speedkit/cli",
|
|
1587
|
+
"pluginType": "core",
|
|
1588
|
+
"strict": true,
|
|
1589
|
+
"enableJsonFlag": false,
|
|
1590
|
+
"isESM": true,
|
|
1591
|
+
"relativePath": [
|
|
1592
|
+
"dist",
|
|
1593
|
+
"commands",
|
|
1594
|
+
"extension",
|
|
1595
|
+
"list.js"
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
"extension:remove": {
|
|
1599
|
+
"aliases": [],
|
|
1600
|
+
"args": {
|
|
1601
|
+
"ref": {
|
|
1602
|
+
"description": "Chrome Web Store link or extension id",
|
|
1603
|
+
"name": "ref",
|
|
1604
|
+
"required": false
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
"description": "Remove a managed Chrome extension",
|
|
1608
|
+
"examples": [
|
|
1609
|
+
"$ sk extension remove",
|
|
1610
|
+
"$ sk extension remove <id>"
|
|
1611
|
+
],
|
|
1612
|
+
"flags": {},
|
|
1613
|
+
"hasDynamicHelp": false,
|
|
1614
|
+
"hiddenAliases": [],
|
|
1615
|
+
"id": "extension:remove",
|
|
1616
|
+
"pluginAlias": "@speedkit/cli",
|
|
1617
|
+
"pluginName": "@speedkit/cli",
|
|
1618
|
+
"pluginType": "core",
|
|
1619
|
+
"strict": true,
|
|
1620
|
+
"enableJsonFlag": false,
|
|
1621
|
+
"isESM": true,
|
|
1622
|
+
"relativePath": [
|
|
1623
|
+
"dist",
|
|
1624
|
+
"commands",
|
|
1625
|
+
"extension",
|
|
1626
|
+
"remove.js"
|
|
1627
|
+
]
|
|
1628
|
+
},
|
|
1629
|
+
"extension:update": {
|
|
1630
|
+
"aliases": [],
|
|
1631
|
+
"args": {},
|
|
1632
|
+
"description": "Check managed Chrome extensions for updates and install them",
|
|
1633
|
+
"examples": [
|
|
1634
|
+
"$ sk extension update"
|
|
1635
|
+
],
|
|
1636
|
+
"flags": {},
|
|
1637
|
+
"hasDynamicHelp": false,
|
|
1638
|
+
"hiddenAliases": [],
|
|
1639
|
+
"id": "extension:update",
|
|
1640
|
+
"pluginAlias": "@speedkit/cli",
|
|
1641
|
+
"pluginName": "@speedkit/cli",
|
|
1642
|
+
"pluginType": "core",
|
|
1643
|
+
"strict": true,
|
|
1644
|
+
"enableJsonFlag": false,
|
|
1645
|
+
"isESM": true,
|
|
1646
|
+
"relativePath": [
|
|
1647
|
+
"dist",
|
|
1648
|
+
"commands",
|
|
1649
|
+
"extension",
|
|
1650
|
+
"update.js"
|
|
1651
|
+
]
|
|
1652
1652
|
}
|
|
1653
1653
|
},
|
|
1654
|
-
"version": "4.
|
|
1654
|
+
"version": "4.30.0"
|
|
1655
1655
|
}
|