Skip to content

Commit

Permalink
Release 6.4.1 (bugfix) (#204)
Browse files Browse the repository at this point in the history
* fix(template): axios merge request headers issue (#202)

* bump: up version to 6.4.1

Co-authored-by: Dongsen <[email protected]>
  • Loading branch information
js2me and mutoe authored Mar 7, 2021
1 parent d86aca2 commit 8354a4f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# next release

# 6.4.1

Fixes:
- Bug with axios headers (thanks @mutoe)

# 6.4.0

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swagger-typescript-api",
"version": "6.4.0",
"version": "6.4.1",
"description": "Generate typescript/javascript api from swagger schema",
"scripts": {
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
Expand Down
2 changes: 1 addition & 1 deletion templates/base/http-clients/axios-http-client.eta
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class HttpClient<SecurityDataType = unknown> {
...params1,
...(params2 || {}),
headers: {
...this.instance.defaults,
...(this.instance.defaults.headers || {}),
...(params1.headers || {}),
...((params2 && params2.headers) || {}),
},
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/axios/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ export class HttpClient<SecurityDataType = unknown> {
...params1,
...(params2 || {}),
headers: {
...this.instance.defaults,
...(this.instance.defaults.headers || {}),
...(params1.headers || {}),
...((params2 && params2.headers) || {}),
},
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/axiosSingleHttpClient/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ export class HttpClient<SecurityDataType = unknown> {
...params1,
...(params2 || {}),
headers: {
...this.instance.defaults,
...(this.instance.defaults.headers || {}),
...(params1.headers || {}),
...((params2 && params2.headers) || {}),
},
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/jsAxios/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class HttpClient {
...params1,
...(params2 || {}),
headers: {
...this.instance.defaults,
...(this.instance.defaults.headers || {}),
...(params1.headers || {}),
...((params2 && params2.headers) || {}),
},
Expand Down

0 comments on commit 8354a4f

Please sign in to comment.