From cd549d9aeecde9038564406efc1f4ec42d4423c4 Mon Sep 17 00:00:00 2001 From: "loong.woo" Date: Mon, 26 Aug 2024 09:58:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20action=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/path.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.ts b/src/path.ts index d7de13a..b10c6a0 100644 --- a/src/path.ts +++ b/src/path.ts @@ -263,7 +263,7 @@ export const getApiPath = ( // 添加请求方式标识,如 GET,POST 等,防止重名。设置了 operationId,以 operationId 为准 if ( !currentMethod.operationId && - !/^(get|post|put|delete|options|head|patch)$/i.test( + !/^(get|post|put|delete|options|head|patch)/i.test( name.slice(0, method.length), ) ) { From 7515659955b4590b62ad2e402945c49459eed165 Mon Sep 17 00:00:00 2001 From: "loong.woo" Date: Mon, 26 Aug 2024 10:03:56 +0800 Subject: [PATCH 2/2] chore: v1.6.3 --- deno.json | 4 ++-- src/npm/pkg.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index 125f55b..26b1c3d 100644 --- a/deno.json +++ b/deno.json @@ -1,11 +1,11 @@ { "name": "@loongwoo/stc", - "version": "1.6.2", + "version": "1.6.3", "exports": "./mod.ts", "tasks": { "dev": "deno run -A --watch=src src/main.ts --url 'https://petstore3.swagger.io/api/v3/openapi.json'", "serve": "deno run -A --watch=src src/service.ts", - "version": "echo '1.6.2' > release/version", + "version": "echo '1.6.3' > release/version", "build:npm": "deno run -A src/npm/index.ts", "build:mac": "deno compile -A --target x86_64-apple-darwin --output release/stc src/main.ts", "build:mac-m": "deno compile -A --target aarch64-apple-darwin --output release/stc-m src/main.ts", diff --git a/src/npm/pkg.json b/src/npm/pkg.json index c8cbb5e..593504f 100644 --- a/src/npm/pkg.json +++ b/src/npm/pkg.json @@ -1,6 +1,6 @@ { "name": "@loongwoo/stc", - "version": "1.6.2", + "version": "1.6.3", "description": "OpenApi/Swagger/Apifox document conversion tool.\nOpenAPI(Swagger)、Apifox 文档转换为接口文件。", "type": "module", "module": "esm/mod.js",