@toktokhan-dev/cli-plugin-gen-api-react-query 0.1.6 → 0.1.7

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 +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -199,6 +199,9 @@ const genApi = defineCommand({
199
199
  ],
200
200
  },
201
201
  run: async (config) => {
202
+ if (config.swaggerSchemaUrls && config.swaggerSchemaUrls.length === 0) {
203
+ throw new Error('No URLs provided');
204
+ }
202
205
  const isWebUrl = (string) => string.startsWith('http://') || string.startsWith('https://');
203
206
  // 다중 URL 처리 로직 추가
204
207
  const urls = (() => {
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.6",
3
+ "version": "0.1.7",
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",