Skip to content

Commit

Permalink
Merge pull request #69 from long-woo/fix/action_name
Browse files Browse the repository at this point in the history
Fix: 修复 action 名称问题
  • Loading branch information
long-woo authored Aug 26, 2024
2 parents f910527 + 7515659 commit ff6a4f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/npm/pkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
) {
Expand Down

0 comments on commit ff6a4f9

Please sign in to comment.