@speedkit/cli 2.64.0 → 2.66.0-alpha.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.
- package/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/dist/services/customer-config/templates/config_SpeedKit.js.hbs +1 -0
- package/dist/services/onboarding/browser/extension/extension-validator.d.ts +1 -0
- package/dist/services/onboarding/browser/extension/extension-validator.js +17 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [2.66.0-alpha.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.65.0...v2.66.0-alpha.1) (2024-11-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* allow prerelease from alpha and beta branch ([365e480](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/365e480347a9efadc764a1aa6c907908259338d6))
|
|
7
|
+
* embed devtools ([def9d97](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/def9d97f686b905e6db8d9db2df3510493bd00e2))
|
|
8
|
+
|
|
9
|
+
# [2.65.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.64.0...v2.65.0) (2024-11-01)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* adding success to default blacklist as requested by Sven ([7e9cc40](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/7e9cc4020b4a564044ea4817905bd3450586e623))
|
|
15
|
+
|
|
1
16
|
# [2.64.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.63.0...v2.64.0) (2024-11-01)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -6,5 +6,6 @@ export declare class ExtensionValidator {
|
|
|
6
6
|
private cli;
|
|
7
7
|
constructor(cliConfig: UserCliConfig, cliBasePath: string, cli: CliServiceInterface);
|
|
8
8
|
getValidBrowserExtensionPaths(): Promise<string[]>;
|
|
9
|
+
private loadEmbeddedDevtoolsExtension;
|
|
9
10
|
private getManifestConfig;
|
|
10
11
|
}
|
|
@@ -44,15 +44,29 @@ class ExtensionValidator {
|
|
|
44
44
|
});
|
|
45
45
|
validPaths.push(cleanedExtensionPath);
|
|
46
46
|
}
|
|
47
|
+
if (addIncludedExtension) {
|
|
48
|
+
await this.loadEmbeddedDevtoolsExtension(validExtensions, validPaths);
|
|
49
|
+
}
|
|
47
50
|
this.cli.endAction(cli_1.CliActionStatus.COMPLETED);
|
|
48
51
|
if (validExtensions.length > 0) {
|
|
49
52
|
this.cli.table(validExtensions, { name: {}, version: {}, path: {} });
|
|
50
53
|
}
|
|
51
|
-
if (addIncludedExtension) {
|
|
52
|
-
validPaths.push(node_path_1.default.resolve(this.cliBasePath, "chrome-dist", "devtools"));
|
|
53
|
-
}
|
|
54
54
|
return validPaths;
|
|
55
55
|
}
|
|
56
|
+
async loadEmbeddedDevtoolsExtension(validExtensions, validPaths) {
|
|
57
|
+
const defaultDevelopmentToolsExtensionPath = node_path_1.default.resolve(this.cliBasePath, "dist", "devtools");
|
|
58
|
+
const manifestConfigResult = await (0, safe_1.safe)(this.getManifestConfig(defaultDevelopmentToolsExtensionPath));
|
|
59
|
+
if (manifestConfigResult.success !== true) {
|
|
60
|
+
this.cli.writeError("could not find manifestFile for embedded extension");
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
validExtensions.push({
|
|
64
|
+
path: defaultDevelopmentToolsExtensionPath,
|
|
65
|
+
name: manifestConfigResult.data.name + "[embedded]",
|
|
66
|
+
version: manifestConfigResult.data.version,
|
|
67
|
+
});
|
|
68
|
+
validPaths.push(defaultDevelopmentToolsExtensionPath);
|
|
69
|
+
}
|
|
56
70
|
async getManifestConfig(cleanedExtensionPath) {
|
|
57
71
|
const manifestPath = node_path_1.default.resolve(cleanedExtensionPath, "manifest.json");
|
|
58
72
|
if (!(0, node_fs_1.existsSync)(manifestPath)) {
|
package/oclif.manifest.json
CHANGED