orval 7.1.1 → 7.3.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 +17 -17
- package/dist/bin/orval.js.map +1 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -3593,7 +3593,7 @@ var getApiSchemas = ({
|
|
|
3593
3593
|
}) => {
|
|
3594
3594
|
return Object.entries(specs).reduce(
|
|
3595
3595
|
(acc, [specKey, spec]) => {
|
|
3596
|
-
var _a, _b, _c, _d
|
|
3596
|
+
var _a, _b, _c, _d;
|
|
3597
3597
|
const context = {
|
|
3598
3598
|
specKey,
|
|
3599
3599
|
target,
|
|
@@ -3606,20 +3606,20 @@ var getApiSchemas = ({
|
|
|
3606
3606
|
parsedSchemas,
|
|
3607
3607
|
context,
|
|
3608
3608
|
output.override.components.schemas.suffix,
|
|
3609
|
-
|
|
3609
|
+
input.filters
|
|
3610
3610
|
);
|
|
3611
3611
|
const responseDefinition = (0, import_core3.generateComponentDefinition)(
|
|
3612
|
-
(
|
|
3612
|
+
(_b = spec.components) == null ? void 0 : _b.responses,
|
|
3613
3613
|
context,
|
|
3614
3614
|
output.override.components.responses.suffix
|
|
3615
3615
|
);
|
|
3616
3616
|
const bodyDefinition = (0, import_core3.generateComponentDefinition)(
|
|
3617
|
-
(
|
|
3617
|
+
(_c = spec.components) == null ? void 0 : _c.requestBodies,
|
|
3618
3618
|
context,
|
|
3619
3619
|
output.override.components.requestBodies.suffix
|
|
3620
3620
|
);
|
|
3621
3621
|
const parameters = (0, import_core3.generateParameterDefinition)(
|
|
3622
|
-
(
|
|
3622
|
+
(_d = spec.components) == null ? void 0 : _d.parameters,
|
|
3623
3623
|
context,
|
|
3624
3624
|
output.override.components.parameters.suffix
|
|
3625
3625
|
);
|
|
@@ -3752,7 +3752,7 @@ var import_chalk2 = __toESM(require("chalk"));
|
|
|
3752
3752
|
var package_default = {
|
|
3753
3753
|
name: "orval",
|
|
3754
3754
|
description: "A swagger client generator for typescript",
|
|
3755
|
-
version: "7.
|
|
3755
|
+
version: "7.3.0",
|
|
3756
3756
|
license: "MIT",
|
|
3757
3757
|
files: [
|
|
3758
3758
|
"dist"
|
|
@@ -3806,19 +3806,19 @@ var package_default = {
|
|
|
3806
3806
|
},
|
|
3807
3807
|
dependencies: {
|
|
3808
3808
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
3809
|
-
"@orval/angular": "7.
|
|
3810
|
-
"@orval/axios": "7.
|
|
3811
|
-
"@orval/core": "7.
|
|
3812
|
-
"@orval/fetch": "7.
|
|
3813
|
-
"@orval/hono": "7.
|
|
3814
|
-
"@orval/mock": "7.
|
|
3815
|
-
"@orval/query": "7.
|
|
3816
|
-
"@orval/swr": "7.
|
|
3817
|
-
"@orval/zod": "7.
|
|
3809
|
+
"@orval/angular": "7.3.0",
|
|
3810
|
+
"@orval/axios": "7.3.0",
|
|
3811
|
+
"@orval/core": "7.3.0",
|
|
3812
|
+
"@orval/fetch": "7.3.0",
|
|
3813
|
+
"@orval/hono": "7.3.0",
|
|
3814
|
+
"@orval/mock": "7.3.0",
|
|
3815
|
+
"@orval/query": "7.3.0",
|
|
3816
|
+
"@orval/swr": "7.3.0",
|
|
3817
|
+
"@orval/zod": "7.3.0",
|
|
3818
3818
|
ajv: "^8.12.0",
|
|
3819
3819
|
cac: "^6.7.14",
|
|
3820
3820
|
chalk: "^4.1.2",
|
|
3821
|
-
chokidar: "^
|
|
3821
|
+
chokidar: "^4.0.1",
|
|
3822
3822
|
enquirer: "^2.4.1",
|
|
3823
3823
|
execa: "^5.1.1",
|
|
3824
3824
|
"find-up": "5.0.0",
|
|
@@ -4248,7 +4248,7 @@ var normalizeOptions = async (optionsExport, workspace = process.cwd(), globalOp
|
|
|
4248
4248
|
provideIn: (_Nb = (_Mb = (_Lb = outputOptions.override) == null ? void 0 : _Lb.angular) == null ? void 0 : _Mb.provideIn) != null ? _Nb : "root"
|
|
4249
4249
|
},
|
|
4250
4250
|
fetch: {
|
|
4251
|
-
|
|
4251
|
+
includeHttpResponseReturnType: (_Qb = (_Pb = (_Ob = outputOptions.override) == null ? void 0 : _Ob.fetch) == null ? void 0 : _Pb.includeHttpResponseReturnType) != null ? _Qb : true,
|
|
4252
4252
|
...(_Sb = (_Rb = outputOptions.override) == null ? void 0 : _Rb.fetch) != null ? _Sb : {}
|
|
4253
4253
|
},
|
|
4254
4254
|
useDates: ((_Tb = outputOptions.override) == null ? void 0 : _Tb.useDates) || false,
|