@speedkit/cli 3.1.1 → 3.2.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 +14 -0
- package/README.md +1 -1
- package/dist/services/document-handler-runtime/document-handler-server.js +12 -2
- package/dist/services/onboarding/onboarding-model.d.ts +1 -0
- package/dist/services/onboarding/onboarding-model.js +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [3.2.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.1.2...v3.2.0) (2025-08-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **onboarding:** visualize completion of fetchRequests ([9b95f5e](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/9b95f5e5f46e54aeb4e09e72007dd5ec8e188bd2))
|
|
7
|
+
|
|
8
|
+
## [3.1.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.1.1...v3.1.2) (2025-08-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **onboarding:** resolvePath to broswserExecutable ([81a7744](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/81a7744bcc3920b78b09c6680862f774684866ce))
|
|
14
|
+
|
|
1
15
|
## [3.1.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.1.0...v3.1.1) (2025-08-11)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ const document_handler_runtime_context_1 = require("./context/document-handler-r
|
|
|
6
6
|
const required_file_not_found_error_1 = tslib_1.__importDefault(require("./error/required-file-not-found-error"));
|
|
7
7
|
const database_mock_1 = tslib_1.__importDefault(require("./templates/database-mock"));
|
|
8
8
|
const vm = tslib_1.__importStar(require("node:vm"));
|
|
9
|
+
const cli_1 = require("../cli");
|
|
9
10
|
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
10
11
|
const files_1 = require("../../models/files");
|
|
11
12
|
// documentHandlerDependencies
|
|
@@ -216,9 +217,18 @@ class DocumentHandlerServer {
|
|
|
216
217
|
createFetchMock() {
|
|
217
218
|
return async (url, options) => {
|
|
218
219
|
if (this.verboseLevel) {
|
|
219
|
-
this.cli.
|
|
220
|
+
this.cli.startAction(this.cli.style.yellow(`[documentHandler.fetch]: ${url}`));
|
|
220
221
|
}
|
|
221
|
-
|
|
222
|
+
const result = await (0, safe_1.safe)((0, node_fetch_1.default)(url, options));
|
|
223
|
+
if (result.success === true) {
|
|
224
|
+
this.cli.endAction(cli_1.CliActionStatus.COMPLETED);
|
|
225
|
+
return result.data;
|
|
226
|
+
}
|
|
227
|
+
this.cli.endAction(cli_1.CliActionStatus.FAILED);
|
|
228
|
+
if (result.errorObj) {
|
|
229
|
+
throw result.errorObj;
|
|
230
|
+
}
|
|
231
|
+
throw new Error(result.error);
|
|
222
232
|
};
|
|
223
233
|
}
|
|
224
234
|
createProcessPartial() {
|
|
@@ -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