openapi-typescript
Advanced tools
Comparing version 6.4.0 to 6.4.1
# openapi-typescript | ||
## 6.4.1 | ||
### Patch Changes | ||
- [#1269](https://github.com/drwpow/openapi-typescript/pull/1269) [`e735ff2`](https://github.com/drwpow/openapi-typescript/commit/e735ff2b9307eaec1959d0d3bf733a240a880c48) Thanks [@pimveldhuisen](https://github.com/pimveldhuisen)! - Stop trimming whitespace other than linebreaks in string values | ||
## 6.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -197,3 +197,3 @@ import c from "ansi-colors"; | ||
return JSON.stringify(input); | ||
return `"${input.trim().replace(DOUBLE_QUOTE_RE, '\\"')}"`; | ||
return `"${input.replace(LB_RE, "").replace(DOUBLE_QUOTE_RE, '\\"')}"`; | ||
} | ||
@@ -200,0 +200,0 @@ export function escObjKey(input) { |
{ | ||
"name": "openapi-typescript", | ||
"description": "Generate TypeScript types from Swagger OpenAPI specs", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Drew Powers", |
@@ -276,3 +276,3 @@ import c from "ansi-colors"; | ||
if (typeof input !== "string") return JSON.stringify(input); | ||
return `"${input.trim().replace(DOUBLE_QUOTE_RE, '\\"')}"`; | ||
return `"${input.replace(LB_RE, "").replace(DOUBLE_QUOTE_RE, '\\"')}"`; | ||
} | ||
@@ -279,0 +279,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
394610