@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
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/3.1.2 linux-x64 node-v20.19.4
24
+ @speedkit/cli/3.2.0 linux-x64 node-v20.19.4
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -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.writeWarning(`[documentHandler.fetch]: ${url}`);
220
+ this.cli.startAction(this.cli.style.yellow(`[documentHandler.fetch]: ${url}`));
220
221
  }
221
- return (0, node_fetch_1.default)(url, options);
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() {
@@ -732,5 +732,5 @@
732
732
  ]
733
733
  }
734
734
  },
735
- "version": "3.1.2"
735
+ "version": "3.2.0"
736
736
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "3.1.2",
4
+ "version": "3.2.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"