Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #6

Merged
merged 50 commits into from Mar 7, 2024
Merged

V2 #6

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
799effd
update
axetroy Oct 28, 2021
15b20a1
update
axetroy Feb 19, 2022
b9e558c
refactor
axetroy Feb 19, 2022
a82901e
update
axetroy Feb 19, 2022
41d65b9
update
axetroy Feb 19, 2022
1a3b385
update deps
axetroy Feb 19, 2022
6b3e9e7
update
axetroy Feb 19, 2022
80e7bb6
update
axetroy Feb 20, 2022
7d0f668
updat
axetroy Feb 20, 2022
b508128
fix
axetroy Feb 20, 2022
dad04fb
update
axetroy Feb 20, 2022
bf0565e
fix: lint
axetroy Feb 21, 2022
f8498e0
fix: format
axetroy Feb 21, 2022
5f50ed8
fix: format
axetroy Feb 21, 2022
d7343ef
update
axetroy Feb 21, 2022
2f8656c
update
axetroy Feb 21, 2022
0466063
update
axetroy Feb 21, 2022
52a3e77
update
axetroy Feb 21, 2022
bbde37b
update
axetroy Feb 2, 2024
7a57382
fix: 更新 query ,兼容某些情况下 query 是 Object 和 Array
axetroy Feb 22, 2024
3214ef2
0.2.25
axetroy Feb 22, 2024
11f38e7
0.2.25
axetroy Feb 22, 2024
9ddc3fc
test: fix
axetroy Feb 22, 2024
819819f
0.2.26
axetroy Feb 22, 2024
60ad7b3
0.2.26
axetroy Feb 22, 2024
53e1deb
test: fix
axetroy Feb 22, 2024
f33d876
update
axetroy Feb 22, 2024
54c23a6
0.2.27
axetroy Feb 22, 2024
7d3c8ff
update
axetroy Feb 22, 2024
6bcb43e
update test
axetroy Feb 22, 2024
fba4006
0.2.28
axetroy Feb 22, 2024
a25f67d
fix: 修复 Form 表单的提交
axetroy Feb 23, 2024
dd1369c
fix: 调整请求拦截器的位置
axetroy Feb 23, 2024
4ec4156
test: fix
axetroy Feb 23, 2024
7a72594
0.2.29
axetroy Feb 23, 2024
c775fff
update
axetroy Feb 23, 2024
1da98a3
0.2.30
axetroy Feb 23, 2024
13db35f
update
axetroy Feb 23, 2024
8485580
0.2.31
axetroy Feb 23, 2024
c7bf78f
update
axetroy Feb 23, 2024
3f5abe0
update
axetroy Feb 23, 2024
04c29fc
0.2.32
axetroy Feb 23, 2024
584bab3
Serialize
axetroy Feb 26, 2024
f89113e
0.2.33
axetroy Feb 26, 2024
28959ab
update
axetroy Feb 27, 2024
ac6b1c1
update
axetroy Feb 29, 2024
cc8a0bd
update
axetroy Mar 1, 2024
39a3572
update test
axetroy Mar 4, 2024
d701ecc
0.2.34
axetroy Mar 4, 2024
044babb
updadte
axetroy Mar 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,5 @@ swagger.json
.DS_Store
swagger
swagger.exe
dist/*.js
dist/*.js
dist/*.mjs
2 changes: 1 addition & 1 deletion .vscode/settings.json
@@ -1,7 +1,7 @@
{
"deno.enable": true,
"deno.unstable": true,
"deno.lint": false,
"deno.lint": true,
"deno.suggest.imports.hosts": {
"https://deno.land": false
}
Expand Down
10 changes: 5 additions & 5 deletions Makefile
@@ -1,11 +1,11 @@
default:
@deno compile --unstable --lite --target x86_64-pc-windows-msvc -A mod.ts
@deno compile --unstable --lite --target x86_64-unknown-linux-gnu -A mod.ts
@deno compile --unstable --lite --target x86_64-apple-darwin -A mod.ts
@deno compile --unstable --lite --target aarch64-apple-darwin -A mod.ts
@deno compile --unstable --target x86_64-pc-windows-msvc -A mod.ts
@deno compile --unstable --target x86_64-unknown-linux-gnu -A mod.ts
@deno compile --unstable --target x86_64-apple-darwin -A mod.ts
@deno compile --unstable --target aarch64-apple-darwin -A mod.ts

bundle:
@deno bundle ./v3/index.ts ./dist/v3.mjs
@deno bundle ./v3/mod.ts ./dist/v3.mjs

format-ceck:
@deno fmt --check
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -20,7 +20,7 @@ deno install \
--no-check \
--reload \
-f \
https://github.com/axetroy/swagger2ts/raw/v0.2.24/swagger2ts.ts
https://github.com/axetroy/swagger2ts/raw/v0.2.26/swagger2ts.ts
```

或者通过 [npm](https://npmjs.com) 安装
Expand Down Expand Up @@ -52,7 +52,7 @@ console.log(output);
#### 通过 Deno 函数调用

```ts
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.24/generate.ts";
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.26/generate.ts";

const output = await generate("/path/to/swagger.json");
// const output = await generate("https://example.com/swagger.json");
Expand Down
4 changes: 2 additions & 2 deletions README_en-US.md
Expand Up @@ -20,7 +20,7 @@ deno install \
--no-check \
--reload \
-f \
https://github.com/axetroy/swagger2ts/raw/v0.2.24/swagger2ts.ts
https://github.com/axetroy/swagger2ts/raw/v0.2.26/swagger2ts.ts
```

or install via [npm](https://npmjs.com)
Expand Down Expand Up @@ -52,7 +52,7 @@ console.log(output);
#### Use it in Deno api

```ts
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.24/generate.ts";
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.26/generate.ts";

const output = await generate("/path/to/swagger.json");
// const output = await generate("https://example.com/swagger.json");
Expand Down