@naturali/cli 0.127.4 → 0.127.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -8
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
14
14
  };
15
15
  //#endregion
16
16
  //#region package.json
17
- var version = "0.127.4";
17
+ var version = "0.127.5";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -365,9 +365,7 @@ async function setAuthParams(options) {
365
365
  case "cookie":
366
366
  options.headers.append("Cookie", `${name}=${token}`);
367
367
  break;
368
- default:
369
- options.headers.set(name, token);
370
- break;
368
+ default: options.headers.set(name, token);
371
369
  }
372
370
  }
373
371
  }
@@ -524,9 +522,7 @@ const createClient = (config = {}) => {
524
522
  case "stream":
525
523
  emptyData = response.body;
526
524
  break;
527
- default:
528
- emptyData = {};
529
- break;
525
+ default: emptyData = {};
530
526
  }
531
527
  return opts.responseStyle === "data" ? emptyData : {
532
528
  data: emptyData,
@@ -17263,10 +17259,11 @@ const addDynamicDispatch = (program) => {
17263
17259
  process.exit(1);
17264
17260
  }
17265
17261
  const commandIdx = process.argv.indexOf(commandName);
17262
+ const rawArgs = commandIdx >= 0 ? process.argv.slice(commandIdx + 1) : [];
17266
17263
  await dispatchCommand({
17267
17264
  commandName,
17268
17265
  route,
17269
- rawArgs: commandIdx >= 0 ? process.argv.slice(commandIdx + 1) : []
17266
+ rawArgs
17270
17267
  });
17271
17268
  });
17272
17269
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.127.4",
3
+ "version": "0.127.5",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,13 +24,13 @@
24
24
  "commander": "^15.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@ttoss/openapi-codegen": "^0.2.0",
28
- "@types/node": "^26.1.1",
29
- "tsdown": "^0.22.7",
30
- "tsx": "^4.23.1",
27
+ "@ttoss/openapi-codegen": "^0.3.0",
28
+ "@types/node": "^26.5.1",
29
+ "tsdown": "^0.23.0",
30
+ "tsx": "^4.23.13",
31
31
  "typescript": "~6.0.3",
32
- "vitest": "^4.1.10",
33
- "@naturali/sdk": "0.127.4"
32
+ "vitest": "^5.0.0",
33
+ "@naturali/sdk": "0.127.5"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",