Skip to content

Commit

Permalink
Merge pull request #99 from long-woo/dev
Browse files Browse the repository at this point in the history
release:2.8.2
  • Loading branch information
long-woo authored Jan 7, 2025
2 parents c73f301 + afb6a57 commit 717823b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Create a `myPlugin.ts` file:
```ts
// 引用模块
// import { start } from 'https://deno.land/x/[email protected]/mod.ts'
import { start } from 'jsr:@lonu/stc@^2.8.1'
import { start } from 'jsr:@lonu/stc@^2.8.2'

// Defining plugins
const myPlugin: IPlugin = {
Expand Down
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@lonu/stc",
"version": "2.8.1",
"version": "2.8.2",
"exports": "./mod.ts",
"tasks": {
"pack": "deno run -A src/pack.ts",
"dev": "deno task pack && 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 '2.8.1' > release/version",
"version": "echo '2.8.2' > release/version",
"build:npm": "deno run -A src/npm/build.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
3 changes: 3 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ const getMethodName = (

if (_namePath) {
_name = `${conjunction}_${_namePath}`;
} else {
// 移除动态路径名
_name = _name.replace(regExp, "");
}
}

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": "@lonu/stc",
"version": "2.8.1",
"version": "2.8.2",
"description": "A tool for converting OpenApi/Swagger/Apifox into code.",
"type": "module",
"module": "esm/mod.js",
Expand Down

0 comments on commit 717823b

Please sign in to comment.