orval 7.6.0 → 7.7.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/dist/bin/orval.js +18 -13
- package/dist/bin/orval.js.map +1 -1
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/bin/orval.js
CHANGED
|
@@ -3236,7 +3236,7 @@ var import_chalk2 = __toESM(require("chalk"));
|
|
|
3236
3236
|
var package_default = {
|
|
3237
3237
|
name: "orval",
|
|
3238
3238
|
description: "A swagger client generator for typescript",
|
|
3239
|
-
version: "7.
|
|
3239
|
+
version: "7.7.0",
|
|
3240
3240
|
license: "MIT",
|
|
3241
3241
|
files: [
|
|
3242
3242
|
"dist"
|
|
@@ -3290,16 +3290,16 @@ var package_default = {
|
|
|
3290
3290
|
"typedoc-plugin-coverage": "^3.4.1"
|
|
3291
3291
|
},
|
|
3292
3292
|
dependencies: {
|
|
3293
|
-
"@apidevtools/swagger-parser": "^10.1.
|
|
3294
|
-
"@orval/angular": "7.
|
|
3295
|
-
"@orval/axios": "7.
|
|
3296
|
-
"@orval/core": "7.
|
|
3297
|
-
"@orval/fetch": "7.
|
|
3298
|
-
"@orval/hono": "7.
|
|
3299
|
-
"@orval/mock": "7.
|
|
3300
|
-
"@orval/query": "7.
|
|
3301
|
-
"@orval/swr": "7.
|
|
3302
|
-
"@orval/zod": "7.
|
|
3293
|
+
"@apidevtools/swagger-parser": "^10.1.1",
|
|
3294
|
+
"@orval/angular": "7.7.0",
|
|
3295
|
+
"@orval/axios": "7.7.0",
|
|
3296
|
+
"@orval/core": "7.7.0",
|
|
3297
|
+
"@orval/fetch": "7.7.0",
|
|
3298
|
+
"@orval/hono": "7.7.0",
|
|
3299
|
+
"@orval/mock": "7.7.0",
|
|
3300
|
+
"@orval/query": "7.7.0",
|
|
3301
|
+
"@orval/swr": "7.7.0",
|
|
3302
|
+
"@orval/zod": "7.7.0",
|
|
3303
3303
|
ajv: "^8.17.1",
|
|
3304
3304
|
cac: "^6.7.14",
|
|
3305
3305
|
chalk: "^4.1.2",
|
|
@@ -3312,7 +3312,7 @@ var package_default = {
|
|
|
3312
3312
|
"openapi3-ts": "4.2.2",
|
|
3313
3313
|
"string-argv": "^0.3.2",
|
|
3314
3314
|
tsconfck: "^2.0.1",
|
|
3315
|
-
typedoc: "^0.27.
|
|
3315
|
+
typedoc: "^0.27.9",
|
|
3316
3316
|
"typedoc-plugin-markdown": "^4.4.2",
|
|
3317
3317
|
typescript: "^5.6.3"
|
|
3318
3318
|
}
|
|
@@ -3573,6 +3573,7 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
|
|
|
3573
3573
|
shouldExportMutatorHooks: true,
|
|
3574
3574
|
shouldExportHttpClient: true,
|
|
3575
3575
|
shouldExportQueryKey: true,
|
|
3576
|
+
shouldSplitQueryKey: false,
|
|
3576
3577
|
...normalizeQueryOptions((_b = outputOptions.override) == null ? void 0 : _b.query, workspace)
|
|
3577
3578
|
};
|
|
3578
3579
|
const normalizedOptions = {
|
|
@@ -3999,6 +4000,10 @@ var normalizeQueryOptions = (queryOptions = {}, outputWorkspace, globalOptions =
|
|
|
3999
4000
|
shouldExportMutatorHooks: globalOptions.shouldExportMutatorHooks
|
|
4000
4001
|
} : {},
|
|
4001
4002
|
...!(0, import_core7.isUndefined)(queryOptions.shouldExportMutatorHooks) ? { shouldExportMutatorHooks: queryOptions.shouldExportMutatorHooks } : {},
|
|
4003
|
+
...!(0, import_core7.isUndefined)(globalOptions.shouldSplitQueryKey) ? {
|
|
4004
|
+
shouldSplitQueryKey: globalOptions.shouldSplitQueryKey
|
|
4005
|
+
} : {},
|
|
4006
|
+
...!(0, import_core7.isUndefined)(queryOptions.shouldSplitQueryKey) ? { shouldSplitQueryKey: queryOptions.shouldSplitQueryKey } : {},
|
|
4002
4007
|
...!(0, import_core7.isUndefined)(globalOptions.signal) ? {
|
|
4003
4008
|
signal: globalOptions.signal
|
|
4004
4009
|
} : {},
|
|
@@ -4314,7 +4319,7 @@ var generateSpecs = async (config, workspace, projectName) => {
|
|
|
4314
4319
|
return;
|
|
4315
4320
|
}
|
|
4316
4321
|
let hasErrors;
|
|
4317
|
-
const accumulate = (0, import_core11.asyncReduce)(
|
|
4322
|
+
const accumulate = await (0, import_core11.asyncReduce)(
|
|
4318
4323
|
Object.entries(config),
|
|
4319
4324
|
async (acc, [projectName2, options]) => {
|
|
4320
4325
|
try {
|