@toktokhan-dev/cli-plugin-gen-api-react-query 0.1.9 → 0.1.10

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/index.d.ts CHANGED
@@ -58,6 +58,11 @@ type GenerateSwaggerApiConfig = SwaggerSchemaOption & {
58
58
  * infiniteQuery 를 생성할 함수 필터 목록 입니다.
59
59
  * */
60
60
  paginationSets: PaginationConfig[];
61
+ /**
62
+ * SSL 인증서 검증 무시 여부입니다. (self-signed certificate 등 사용 시 true 로 설정)
63
+ * @default false
64
+ */
65
+ ignoreTlsError?: boolean;
61
66
  };
62
67
  /**
63
68
  * @category Commands
package/dist/index.js CHANGED
@@ -205,8 +205,12 @@ const genApi = defineCommand({
205
205
  nextKey: 'cursor',
206
206
  },
207
207
  ],
208
+ ignoreTlsError: false,
208
209
  },
209
210
  run: async (config) => {
211
+ if (config.ignoreTlsError) {
212
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
213
+ }
210
214
  if (config.swaggerSchemaUrls && config.swaggerSchemaUrls.length === 0) {
211
215
  throw new Error('No URLs provided');
212
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toktokhan-dev/cli-plugin-gen-api-react-query",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A CLI plugin for generating API hooks with React Query built by TOKTOKHAN.DEV",
5
5
  "author": "TOKTOKHAN.DEV <fe-system@toktokhan.dev>",
6
6
  "license": "ISC",
@@ -38,8 +38,8 @@
38
38
  "lodash": "^4.17.21",
39
39
  "prettier-plugin-organize-imports": "^3.2.4",
40
40
  "swagger-typescript-api": "13.0.22",
41
- "@toktokhan-dev/cli": "0.0.11",
42
- "@toktokhan-dev/node": "0.0.10"
41
+ "@toktokhan-dev/node": "0.0.10",
42
+ "@toktokhan-dev/cli": "0.0.11"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/lodash": "^4.17.0",