openapi-ts-request 1.7.2 → 1.7.3

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,15 +39,13 @@ function generateService(_a) {
39
39
  priorityRule === config_1.PriorityRule.both
40
40
  ? [/.*/g]
41
41
  : null, includePaths: includePaths
42
- ? (0, lodash_1.map)(includePaths, (item) => (0, lodash_1.isString)(item) ? item.toLowerCase() : item)
42
+ ? includePaths
43
43
  : priorityRule === config_1.PriorityRule.include ||
44
44
  priorityRule === config_1.PriorityRule.both
45
45
  ? [/.*/g]
46
46
  : null, excludeTags: excludeTags
47
47
  ? (0, lodash_1.map)(excludeTags, (item) => (0, lodash_1.isString)(item) ? item.toLowerCase() : item)
48
- : null, excludePaths: excludePaths
49
- ? (0, lodash_1.map)(excludePaths, (item) => (0, lodash_1.isString)(item) ? item.toLowerCase() : item)
50
- : null, requestOptionsType: '{[key: string]: unknown}', namespace: 'API', isGenReactQuery: false, reactQueryMode, isGenJavaScript: false, isDisplayTypeLabel: false, isGenJsonSchemas: false, nullable: false, isOnlyGenTypeScriptType: false, isCamelCase: true, isSupportParseEnumDesc: false, full: true }, rest), openAPI);
48
+ : null, excludePaths: excludePaths ? excludePaths : null, requestOptionsType: '{[key: string]: unknown}', namespace: 'API', isGenReactQuery: false, reactQueryMode, isGenJavaScript: false, isDisplayTypeLabel: false, isGenJsonSchemas: false, nullable: false, isOnlyGenTypeScriptType: false, isCamelCase: true, isSupportParseEnumDesc: false, full: true }, rest), openAPI);
51
49
  serviceGenerator.genFile();
52
50
  if (mockFolder) {
53
51
  (0, mockGenarator_1.mockGenerator)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-ts-request",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Swagger2/OpenAPI3/Apifox to TypeScript/JavaScript, request client(support any client), request mock service, enum and enum translation, react-query/vue-query, type field label, JSON Schemas",
5
5
  "engines": {
6
6
  "node": ">=18.0.0",