@speedkit/cli 3.1.1 → 3.1.2
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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.1.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.1.1...v3.1.2) (2025-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **onboarding:** resolvePath to broswserExecutable ([81a7744](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/81a7744bcc3920b78b09c6680862f774684866ce))
|
|
7
|
+
|
|
1
8
|
## [3.1.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.1.0...v3.1.1) (2025-08-11)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ export declare class BrowserContext {
|
|
|
39
39
|
readonly chromePath: string;
|
|
40
40
|
readonly browserDetails: string;
|
|
41
41
|
constructor(domain: string, chromeFlags?: string[], userConfig?: UserCliConfig, userAgent?: string);
|
|
42
|
+
private cleanPath;
|
|
42
43
|
private checkBrowserDetails;
|
|
43
44
|
private isChromeBrowser;
|
|
44
45
|
private getBrowserExtensionPath;
|
|
@@ -75,6 +75,9 @@ class BrowserContext {
|
|
|
75
75
|
...this.chromeFlags,
|
|
76
76
|
];
|
|
77
77
|
}
|
|
78
|
+
cleanPath(path) {
|
|
79
|
+
return path.trim().replaceAll(" ", "\\ ");
|
|
80
|
+
}
|
|
78
81
|
checkBrowserDetails(browserExecutablePath) {
|
|
79
82
|
if (!(0, node_fs_1.existsSync)(browserExecutablePath)) {
|
|
80
83
|
throw new application_error_1.default(`No executable found in ${browserExecutablePath}`, [
|
|
@@ -84,7 +87,7 @@ class BrowserContext {
|
|
|
84
87
|
]);
|
|
85
88
|
}
|
|
86
89
|
const result = (0, safe_1.safe)(() => {
|
|
87
|
-
return (0, node_child_process_1.execSync)(`${browserExecutablePath} --version`).toString();
|
|
90
|
+
return (0, node_child_process_1.execSync)(`${this.cleanPath(browserExecutablePath)} --version`).toString();
|
|
88
91
|
});
|
|
89
92
|
if (result.success === false) {
|
|
90
93
|
throw new application_error_1.default(result.error, [
|
package/oclif.manifest.json
CHANGED