openapi-ts-request 1.1.0 → 1.1.2

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/cli.js CHANGED
@@ -9,7 +9,7 @@ const cosmiconfig_typescript_loader_1 = require("cosmiconfig-typescript-loader")
9
9
  const index_1 = require("../index");
10
10
  const explorerSync = (0, cosmiconfig_1.cosmiconfigSync)('openapi-ts-request', {
11
11
  loaders: {
12
- '.ts': (0, cosmiconfig_typescript_loader_1.TypeScriptLoader)(),
12
+ '.ts': (0, cosmiconfig_typescript_loader_1.TypeScriptLoaderSync)(),
13
13
  },
14
14
  });
15
15
  const config = (_a = explorerSync.search()) === null || _a === void 0 ? void 0 : _a.config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-ts-request",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
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",
@@ -92,6 +92,7 @@
92
92
  "lint": "eslint ./src --report-unused-disable-directives --max-warnings=0",
93
93
  "lint:fix": "eslint ./src --report-unused-disable-directives --max-warnings=0 --fix",
94
94
  "test": "rm -rf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd ..",
95
- "test:windows": "rimraf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd .."
95
+ "test:windows": "rimraf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd ..",
96
+ "openapi-ts-request": "openapi-ts"
96
97
  }
97
98
  }
@@ -5,7 +5,8 @@
5
5
  import { queryOptions, useMutation } from '{{ reactQueryModePackageName }}';
6
6
  {%- if genType === "ts" %}
7
7
  import type { DefaultError } from '{{ reactQueryModePackageName }}';
8
- {% endif %}
8
+ {% endif -%}
9
+ {{ requestImportStatement }}
9
10
 
10
11
  import * as apis from './{{ className }}';
11
12
  {%- if genType === "ts" %}