@speedkit/cli 3.1.2 → 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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [3.1.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.1.1...v3.1.2) (2025-08-12)
|
|
2
9
|
|
|
3
10
|
|
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() {
|
package/oclif.manifest.json
CHANGED