Skip to content

Commit

Permalink
release: v2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
long-woo committed Dec 10, 2024
1 parent e0a202a commit b0597da
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ Create a `myPlugin.ts` file:

```ts
// 引用模块
// import { start } from 'https://deno.land/x/stc@2.7.0/mod.ts'
import { start } from 'jsr:@loongwoo/stc@^2.7.0'
// import { start } from 'https://deno.land/x/stc@2.7.1/mod.ts'
import { start } from 'jsr:@loongwoo/stc@^2.7.1'

// 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": "@loongwoo/stc",
"version": "2.7.0",
"version": "2.7.1",
"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' --lang=ts",
"serve": "deno run -A --watch=src src/service.ts",
"version": "echo '2.7.0' > release/version",
"version": "echo '2.7.1' > 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
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": "2.7.0",
"version": "2.7.1",
"description": "A tool for converting OpenApi/Swagger/Apifox into code.",
"type": "module",
"module": "esm/mod.js",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/javascript/oxc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import oxc from "npm:oxc-transform@^0.30.5";
import oxc from "npm:oxc-transform@^0.39";

import Logs from "../../console.ts";

Expand Down
4 changes: 2 additions & 2 deletions test/swagger-4.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://petstore3.swagger.io/api/v3/openapi.json
import { assertEquals } from "@std/assert";

Deno.test("测试 解决动态路径生成方法被覆盖的问题", async () => {
Deno.test("解决动态路径生成方法被覆盖的问题", async () => {
const command = new Deno.Command("deno", {
args: [
"run",
Expand All @@ -17,7 +17,7 @@ Deno.test("测试 解决动态路径生成方法被覆盖的问题", async () =>
assertEquals(0, code);
});

Deno.test("测试 支持URL路径Query参数解析", async () => {
Deno.test("支持URL路径Query参数解析", async () => {
const command = new Deno.Command("deno", {
args: [
"run",
Expand Down

0 comments on commit b0597da

Please sign in to comment.