|
1 | 1 | # @httpx/exception
|
2 | 2 |
|
| 3 | +## 1.6.2 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- [#28](https://github.com/belgattitude/httpx/pull/28) [`3ddb181`](https://github.com/belgattitude/httpx/commit/3ddb181783b6e3822005172070a0e3d1219c141b) Thanks [@belgattitude](https://github.com/belgattitude)! - Increase legacy browsers usage (+ include latest babel upstream fixes) |
| 8 | + |
3 | 9 | ## 1.6.1
|
4 | 10 |
|
5 | 11 | ### Patch Changes
|
|
68 | 74 |
|
69 | 75 | ```typescript
|
70 | 76 | const err = new HttpRequestTimeout({
|
71 |
| - url: "https://api.dev/user/belgattitude", |
72 |
| - method: "GET", |
73 |
| - code: "NETWORK_FAILURE", |
| 77 | + url: 'https://api.dev/user/belgattitude', |
| 78 | + method: 'GET', |
| 79 | + code: 'NETWORK_FAILURE', |
74 | 80 | errorId: nanoid(), // can be shared by frontend/backend
|
75 | 81 | });
|
76 | 82 | console.log(err.url, err.method, err.code, err.errorId);
|
|
90 | 96 | import {
|
91 | 97 | convertToSerializable,
|
92 | 98 | createFromSerializable,
|
93 |
| - } from "@httpx/exception/serializer"; |
| 99 | + } from '@httpx/exception/serializer'; |
94 | 100 |
|
95 | 101 | const serializableObject = convertToSerializable(new HttpForbidden());
|
96 | 102 | const exception = createFromSerializable(serializableObject);
|
|
127 | 133 | import {
|
128 | 134 | HttpForbidden,
|
129 | 135 | HttpUnavailableForLegalReasons,
|
130 |
| - } from "@httpx/exception"; |
131 |
| - import { fromJson, toJson } from "@httpx/exception/serializer"; |
| 136 | + } from '@httpx/exception'; |
| 137 | + import { fromJson, toJson } from '@httpx/exception/serializer'; |
132 | 138 |
|
133 | 139 | const e = new HttpForbidden({
|
134 |
| - url: "https://www.cool.me", |
| 140 | + url: 'https://www.cool.me', |
135 | 141 | /*
|
136 | 142 | cause: new HttpUnavailableForLegalReasons({
|
137 | 143 | cause: new Error('example with cause')
|
|
0 commit comments