diff --git a/README.md b/README.md index 17b445dc..ec20c35a 100644 --- a/README.md +++ b/README.md @@ -452,8 +452,8 @@ If you want to generate the Axios based client then you can specify `--client ax `openapi --input ./spec.json --output ./dist --client axios` -The only downside is that this client needs some additional dependencies to work, due to the missing Blob and FormData -classes in NodeJS. +The only downside is that this client needs some additional dependencies to work (due to the missing Blob and FormData +classes in NodeJS). ``` npm install axios --save-dev diff --git a/package.json b/package.json index a00c6e17..e5e868b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openapi-typescript-codegen", - "version": "0.12.0-beta", + "version": "0.12.0", "description": "Library that generates Typescript clients based on the OpenAPI specification.", "author": "Ferdi Koomen", "homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen", diff --git a/src/utils/postProcessServiceImports.ts b/src/utils/postProcessServiceImports.ts index 008dd2b4..50598a41 100644 --- a/src/utils/postProcessServiceImports.ts +++ b/src/utils/postProcessServiceImports.ts @@ -7,8 +7,5 @@ import { unique } from './unique'; * @param service */ export function postProcessServiceImports(service: Service): string[] { - return service.imports - .filter(unique) - .sort(sort) - .filter(name => service.name !== name); + return service.imports.filter(unique).sort(sort); }