@7nohe/openapi-react-query-codegen 2.0.0-beta.1 → 2.0.0-beta.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/dist/cli.mjs CHANGED
@@ -23,7 +23,7 @@ async function setupProgram() {
23
23
  .default("@hey-api/client-fetch"))
24
24
  .addOption(new Option("--format <value>", "Process output folder with formatter?").choices(["biome", "prettier"]))
25
25
  .addOption(new Option("--lint <value>", "Process output folder with linter?").choices(["biome", "eslint"]))
26
- .option("--operationId", "Use operation ID to generate operation names?")
26
+ .option("--noOperationId", "Do not use operationId to generate operation names")
27
27
  .addOption(new Option("--enums <value>", "Generate JavaScript objects from enum definitions?").choices(["javascript", "typescript"]))
28
28
  .option("--useDateType", "Use Date type instead of string for date types for models, this will not convert the data to a Date object")
29
29
  .option("--debug", "Run in debug mode?")
package/dist/generate.mjs CHANGED
@@ -24,9 +24,7 @@ export async function generate(options, version) {
24
24
  services: {
25
25
  export: true,
26
26
  asClass: false,
27
- operationId: formattedOptions.operationId !== undefined
28
- ? formattedOptions.operationId
29
- : true,
27
+ operationId: !formattedOptions.noOperationId,
30
28
  },
31
29
  types: {
32
30
  dates: formattedOptions.useDateType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7nohe/openapi-react-query-codegen",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "OpenAPI React Query Codegen",
5
5
  "bin": {
6
6
  "openapi-rq": "dist/cli.mjs"