fastify-flux-cli 2.19.4 → 2.19.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.
|
@@ -11,17 +11,17 @@ const input = {
|
|
|
11
11
|
};
|
|
12
12
|
test('convert anyOf to nullable', () => {
|
|
13
13
|
expect(convertEmptyObject(input)).toMatchInlineSnapshot(`
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
{
|
|
15
|
+
"UpdateTodo": {
|
|
16
|
+
"properties": {
|
|
17
|
+
"anyObject": {
|
|
18
|
+
"additionalProperties": true,
|
|
19
|
+
"type": "object",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
19
22
|
"type": "object",
|
|
20
23
|
},
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
}
|
|
25
|
-
`);
|
|
24
|
+
}
|
|
25
|
+
`);
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=emptObject.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emptObject.test.js","sourceRoot":"","sources":["../../../src/schema/__tests__/emptObject.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,KAAK,GAAG;IACZ,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACrC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"emptObject.test.js","sourceRoot":"","sources":["../../../src/schema/__tests__/emptObject.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,KAAK,GAAG;IACZ,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACrC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;;;GAYvD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -52,31 +52,31 @@ const input = {
|
|
|
52
52
|
};
|
|
53
53
|
test('convert anyOf to nullable', () => {
|
|
54
54
|
expect(convertNullToNullable(input)).toMatchInlineSnapshot(`
|
|
55
|
-
|
|
56
|
-
"UpdateTodo":
|
|
57
|
-
"properties":
|
|
58
|
-
"foo":
|
|
59
|
-
"anyOf":
|
|
60
|
-
|
|
55
|
+
{
|
|
56
|
+
"UpdateTodo": {
|
|
57
|
+
"properties": {
|
|
58
|
+
"foo": {
|
|
59
|
+
"anyOf": [
|
|
60
|
+
{
|
|
61
61
|
"type": "null",
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
{
|
|
64
64
|
"type": "string",
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
{
|
|
67
67
|
"type": "number",
|
|
68
68
|
},
|
|
69
69
|
],
|
|
70
70
|
},
|
|
71
|
-
"text":
|
|
71
|
+
"text": {
|
|
72
72
|
"type": "string",
|
|
73
73
|
},
|
|
74
|
-
"user":
|
|
74
|
+
"user": {
|
|
75
75
|
"nullable": true,
|
|
76
|
-
"properties":
|
|
76
|
+
"properties": {
|
|
77
77
|
"nullable": true,
|
|
78
|
-
"properties":
|
|
79
|
-
"id":
|
|
78
|
+
"properties": {
|
|
79
|
+
"id": {
|
|
80
80
|
"type": "number",
|
|
81
81
|
},
|
|
82
82
|
},
|
|
@@ -110,25 +110,25 @@ const input2 = {
|
|
|
110
110
|
};
|
|
111
111
|
test('convert anyOf to nullable', () => {
|
|
112
112
|
expect(convertNullToNullable(input2)).toMatchInlineSnapshot(`
|
|
113
|
-
|
|
114
|
-
"AnyResponse":
|
|
113
|
+
{
|
|
114
|
+
"AnyResponse": {
|
|
115
115
|
"$id": "AnyResponse",
|
|
116
116
|
"additionalProperties": false,
|
|
117
|
-
"properties":
|
|
118
|
-
"multiNull":
|
|
117
|
+
"properties": {
|
|
118
|
+
"multiNull": {
|
|
119
119
|
"nullable": true,
|
|
120
|
-
"type":
|
|
120
|
+
"type": [
|
|
121
121
|
"number",
|
|
122
122
|
"string",
|
|
123
123
|
],
|
|
124
124
|
},
|
|
125
|
-
"multiNull2":
|
|
126
|
-
"type":
|
|
125
|
+
"multiNull2": {
|
|
126
|
+
"type": [
|
|
127
127
|
"number",
|
|
128
128
|
"string",
|
|
129
129
|
],
|
|
130
130
|
},
|
|
131
|
-
"multiNull3":
|
|
131
|
+
"multiNull3": {
|
|
132
132
|
"nullable": true,
|
|
133
133
|
"type": "string",
|
|
134
134
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastify-flux-cli",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
14
|
-
"@types/lodash": "^4.14.
|
|
14
|
+
"@types/lodash": "^4.14.184",
|
|
15
15
|
"chalk": "^5.0.1",
|
|
16
16
|
"chokidar": "^3.5.3",
|
|
17
17
|
"commander": "^9.4.0",
|
|
18
|
-
"esbuild": "^0.
|
|
18
|
+
"esbuild": "^0.15.6",
|
|
19
19
|
"execa": "^6.1.0",
|
|
20
20
|
"fast-glob": "^3.2.11",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"swagger-typescript-api": "^9.3.1",
|
|
27
27
|
"ts-json-schema-generator": "^1.0.0",
|
|
28
28
|
"ts-morph": "^15.1.0",
|
|
29
|
-
"typescript": "4.
|
|
29
|
+
"typescript": "4.8.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/fs-extra": "^9.0.13",
|
|
33
|
-
"@types/jest": "^
|
|
34
|
-
"@types/node": "^18.
|
|
35
|
-
"jest": "^
|
|
36
|
-
"ts-jest": "^28.0.
|
|
33
|
+
"@types/jest": "^29.0.0",
|
|
34
|
+
"@types/node": "^18.7.14",
|
|
35
|
+
"jest": "^29.0.1",
|
|
36
|
+
"ts-jest": "^28.0.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"esbuild": "0.x"
|
|
@@ -119,7 +119,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
return result.data;
|
|
122
|
-
} catch(err) {
|
|
122
|
+
} catch(err: any) {
|
|
123
123
|
if (axios.isAxiosError(err)) {
|
|
124
124
|
err.message += ` [${err.config.method}] ${err.config.url}`;
|
|
125
125
|
if (err.response) {
|