Skip to content

Commit

Permalink
fix: axios config type import error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Feb 24, 2023
1 parent c4dddff commit 50c920e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 4 deletions.
8 changes: 8 additions & 0 deletions packages/apipgen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen

## 0.2.6

### Patch Changes

- Updated dependencies
- [email protected]
- [email protected]

## 0.2.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/apipgen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen",
"version": "0.2.5",
"version": "0.2.6",
"description": "Generator Api",
"author": "Hairy",
"license": "ISC",
Expand Down
7 changes: 7 additions & 0 deletions packages/swag-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# apipgen-swag-js

## 0.0.6

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-js",
"version": "0.0.5",
"version": "0.0.6",
"description": "",
"main": "src/index.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/swag-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# apipgen-swag-ts

## 0.0.5

### Patch Changes

- fix: axios config type import error

## 0.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-ts",
"version": "0.0.4",
"version": "0.0.5",
"description": "",
"main": "src/index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-ts/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function readConfig(config: ApiPipeline.Config): ApiPipeline.ConfigRead {
names: config.import.http === 'axios' ? ['AxiosRequestConfig'] : undefined,
value: config.import.http,
},
config.import.http === 'axios' && {
config.import.http !== 'axios' && {
names: ['AxiosRequestConfig'],
value: 'axios',
},
Expand Down

0 comments on commit 50c920e

Please sign in to comment.