swaggie 0.7.7 → 0.8.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ClientOptions } from '../../types';
|
|
2
|
-
export declare function generateBarrelFile(clients: any[], clientOptions: ClientOptions): Promise<
|
|
2
|
+
export declare function generateBarrelFile(clients: any[], clientOptions: ClientOptions): Promise<string>;
|
|
@@ -7,7 +7,7 @@ export declare function prepareOperations(operations: ApiOperation[], options: C
|
|
|
7
7
|
* @param operations
|
|
8
8
|
*/
|
|
9
9
|
export declare function fixDuplicateOperations(operations: ApiOperation[]): ApiOperation[];
|
|
10
|
-
export declare function getOperationName(opId: string, group?: string): string;
|
|
10
|
+
export declare function getOperationName(opId: string | null, group?: string | null): string;
|
|
11
11
|
export declare function renderOperationGroup(group: any[], func: any, spec: ApiSpec, options: ClientOptions): string[];
|
|
12
12
|
/**
|
|
13
13
|
* Escapes param names to more safe form
|
|
@@ -14,4 +14,4 @@ export default function genTypes(spec: ApiSpec, queryDefinitions: IQueryDefiniti
|
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
export declare function renderQueryStringParameters(def: any, options: ClientOptions): string[];
|
|
17
|
-
export declare function renderComment(comment: string): string;
|
|
17
|
+
export declare function renderComment(comment: string | null): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function loadAllTemplateFiles(templateName: string): void;
|
|
2
|
-
export declare function renderFile(templateFile: string, data?: object):
|
|
1
|
+
export declare function loadAllTemplateFiles(templateName: string | null): void;
|
|
2
|
+
export declare function renderFile(templateFile: string, data?: object): string;
|
package/dist/gen/util.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare function saveFile(filePath: string, contents: string): Promise<un
|
|
|
6
6
|
export declare function groupOperationsByGroupName(operations: any): any;
|
|
7
7
|
export declare function join(parent: string[], child: string[]): string[];
|
|
8
8
|
export declare function getBestResponse(op: ApiOperation): ApiOperationResponse;
|
|
9
|
-
export declare function escapeReservedWords(name: string): string;
|
|
9
|
+
export declare function escapeReservedWords(name: string | null): string;
|
|
10
10
|
/** This method tries to fix potentially wrong out parameter given from commandline */
|
|
11
|
-
export declare function prepareOutputFilename(out: string): string;
|
|
11
|
+
export declare function prepareOutputFilename(out: string | null): string;
|
|
12
12
|
export declare function uniq<T>(arr?: T[]): T[];
|
|
13
13
|
export declare function orderBy<T>(arr: T[] | null | undefined, key: string): T[];
|
|
14
14
|
export declare function upperFirst(str?: string | null): string;
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swaggie",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Generate ES6 or TypeScript service integration code from an OpenAPI spec",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Piotr Dabrowski",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/yhnavein/swaggie/issues"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">=14.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "dist/index.js",
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"case": "^1.6.3",
|
|
47
|
-
"commander": "^
|
|
47
|
+
"commander": "^10.0.0",
|
|
48
48
|
"dset": "^3.1.2",
|
|
49
|
-
"eta": "^
|
|
49
|
+
"eta": "^2.0.1",
|
|
50
50
|
"js-yaml": "^4.1.0",
|
|
51
51
|
"nanocolors": "^0.2.0",
|
|
52
52
|
"node-fetch": "^2.6.7"
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@types/chai": "4.3.4",
|
|
56
56
|
"@types/js-yaml": "4.0.5",
|
|
57
57
|
"@types/mocha": "10.0.1",
|
|
58
|
-
"@types/node-fetch": "2.6.
|
|
58
|
+
"@types/node-fetch": "2.6.3",
|
|
59
59
|
"@types/sinon": "^10.0.13",
|
|
60
60
|
"chai": "4.3.7",
|
|
61
61
|
"mocha": "10.2.0",
|
|
62
|
-
"sinon": "^15.0.
|
|
63
|
-
"sucrase": "3.
|
|
64
|
-
"typescript": "
|
|
62
|
+
"sinon": "^15.0.3",
|
|
63
|
+
"sucrase": "3.32.0",
|
|
64
|
+
"typescript": "5.0.4"
|
|
65
65
|
}
|
|
66
66
|
}
|