Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 1ed7d6c

Browse files
committed
Bump version to 0.24.0 and update changelog
1 parent 5b49187 commit 1ed7d6c

File tree

5 files changed

+33
-2
lines changed

5 files changed

+33
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
*.swp
2+
/*.tgz
3+
release.zip
4+
release.tar.gz
15
dist/
26
node_modules
37
npm-debug.log*

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.24.0] - 2022-11-02
5+
Custom release from Aptos, the CHANGELOG has forked at this point.
6+
- Generated code now attaches headers to output of `request`
7+
48
## [0.23.0] - 2022-06-02
59
### Fixed
610
- Upgraded dependencies

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,24 @@ Support
9393
[downloads-image]: http://img.shields.io/npm/dm/openapi-typescript-codegen.svg
9494
[build-url]: https://circleci.com/gh/ferdikoomen/openapi-typescript-codegen/tree/master
9595
[build-image]: https://circleci.com/gh/ferdikoomen/openapi-typescript-codegen/tree/master.svg?style=svg
96+
97+
## Release instructions
98+
This is for the aptos-labs fork.
99+
100+
First, build and bundle the release:
101+
```
102+
yarn pack
103+
```
104+
105+
Make a release on GH:
106+
```
107+
gh release create
108+
```
109+
Follow the information on https://github.com/aptos-labs/openapi-typescript-codegen/releases/tag/v0.24.0 as a guide.
110+
111+
Upload the release asset:
112+
```
113+
gh release upload v0.24.0 openapi-typescript-codegen-v0.24.0.tgz
114+
```
115+
116+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-typescript-codegen",
3-
"version": "0.23.0",
3+
"version": "0.24.0",
44
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
66
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",

src/templates/core/axios/request.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): C
200200
// Attach the response headers to the output. This is a hack to fix
201201
// https://github.com/ferdikoomen/openapi-typescript-codegen/issues/1295
202202
const out = result.body;
203-
out["__headers"] = response.headers;
203+
try {
204+
out["__headers"] = response.headers;
205+
} catch (_) {}
204206

205207
resolve(out);
206208
}

0 commit comments

Comments
 (0)