@ng-openapi/http-resource 0.0.34-pr-91-bugfix-nested-objects-parameter-fb5e988.0 → 0.0.34-pr-92-feature-single-request-parameter-0b340a2.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/index.cjs +6 -2
- package/index.d.ts +1 -0
- package/index.js +6 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -40,11 +40,11 @@ var import_ts_morph = require("ts-morph");
|
|
|
40
40
|
|
|
41
41
|
// ../../shared/src/utils/string.utils.ts
|
|
42
42
|
function camelCase(str2) {
|
|
43
|
-
return str2.replace(/[-_
|
|
43
|
+
return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
|
|
44
44
|
}
|
|
45
45
|
__name(camelCase, "camelCase");
|
|
46
46
|
function pascalCase(str2) {
|
|
47
|
-
return str2.replace(/[-_
|
|
47
|
+
return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
|
|
48
48
|
}
|
|
49
49
|
__name(pascalCase, "pascalCase");
|
|
50
50
|
function pascalCaseForEnums(str2) {
|
|
@@ -340,6 +340,10 @@ var SERVICE_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated
|
|
|
340
340
|
* Do not edit this file manually
|
|
341
341
|
*/
|
|
342
342
|
`;
|
|
343
|
+
var REQUEST_PARAMS_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated request parameter interfaces
|
|
344
|
+
* Do not edit this file manually
|
|
345
|
+
*/
|
|
346
|
+
`;
|
|
343
347
|
var MAIN_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Entrypoint for the client
|
|
344
348
|
* Do not edit this file manually
|
|
345
349
|
*/
|
package/index.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ interface GeneratorConfig {
|
|
|
127
127
|
[contentType: string]: "json" | "blob" | "arraybuffer" | "text";
|
|
128
128
|
};
|
|
129
129
|
customizeMethodName?: (operationId: string) => string;
|
|
130
|
+
useSingleRequestParameter?: boolean;
|
|
130
131
|
};
|
|
131
132
|
compilerOptions?: {
|
|
132
133
|
declaration?: boolean;
|
package/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import { Scope } from "ts-morph";
|
|
|
6
6
|
|
|
7
7
|
// ../../shared/src/utils/string.utils.ts
|
|
8
8
|
function camelCase(str2) {
|
|
9
|
-
return str2.replace(/[-_
|
|
9
|
+
return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
|
|
10
10
|
}
|
|
11
11
|
__name(camelCase, "camelCase");
|
|
12
12
|
function pascalCase(str2) {
|
|
13
|
-
return str2.replace(/[-_
|
|
13
|
+
return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
|
|
14
14
|
}
|
|
15
15
|
__name(pascalCase, "pascalCase");
|
|
16
16
|
function pascalCaseForEnums(str2) {
|
|
@@ -306,6 +306,10 @@ var SERVICE_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated
|
|
|
306
306
|
* Do not edit this file manually
|
|
307
307
|
*/
|
|
308
308
|
`;
|
|
309
|
+
var REQUEST_PARAMS_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated request parameter interfaces
|
|
310
|
+
* Do not edit this file manually
|
|
311
|
+
*/
|
|
312
|
+
`;
|
|
309
313
|
var MAIN_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Entrypoint for the client
|
|
310
314
|
* Do not edit this file manually
|
|
311
315
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-openapi/http-resource",
|
|
3
|
-
"version": "0.0.34-pr-
|
|
3
|
+
"version": "0.0.34-pr-92-feature-single-request-parameter-0b340a2.0",
|
|
4
4
|
"description": "HTTP Resource plugin for ng-openapi - Angular HTTP utilities with caching and state management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|