@autometa/http 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/esm/index.js +921 -427
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +1053 -86
- package/dist/index.d.ts +1053 -86
- package/dist/index.js +936 -429
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
- package/src/axios-client.ts +35 -0
- package/src/default-client-factory.axios.spec.ts +9 -0
- package/src/default-client-factory.other.spec.ts +13 -0
- package/src/default-client-factory.ts +7 -0
- package/src/default-schema.spec.ts +74 -0
- package/src/default-schema.ts +128 -0
- package/src/http-client.ts +20 -0
- package/src/http-request.spec.ts +141 -0
- package/src/http-request.ts +164 -0
- package/src/http-response.ts +107 -0
- package/src/http.spec.ts +169 -0
- package/src/http.ts +867 -0
- package/src/index.ts +13 -0
- package/src/request-meta.config.spec.ts +81 -0
- package/src/request-meta.config.ts +117 -0
- package/src/request.config.ts +19 -0
- package/src/schema.map.spec.ts +50 -0
- package/src/schema.map.ts +68 -0
- package/src/transform-response.ts +43 -0
- package/src/types.ts +37 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @autometa/http
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 82168a2: fix: `onRecievedResponse` hook not running when response failed schema validation
|
|
8
|
+
|
|
9
|
+
- Renamed hooks to `onSend` and `onRecieve`
|
|
10
|
+
- Rewrote HTTP fixture logic to be constructable and derivable.
|
|
11
|
+
- `new HTTP().sharedRoute('v1')` constructs a single instance of HTTP with route `v1`
|
|
12
|
+
- `new HTTP().sharedRoute('v1').route('user') derives a new HTTP fixture which inherits 'v1' and adds 'user' locally.
|
|
13
|
+
- Support for list based params with `paramList` and `sharedParamList`
|
|
14
|
+
- Added default schemas for use with simple response types like null, boolean, number etc
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [d563916]
|
|
19
|
+
- @autometa/dto-builder@0.12.0
|
|
20
|
+
- @autometa/injection@0.1.1
|
|
21
|
+
- @autometa/app@0.3.2
|
|
22
|
+
|
|
23
|
+
## 1.2.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [6c4bb8d]
|
|
28
|
+
- @autometa/app@0.3.1
|
|
29
|
+
|
|
3
30
|
## 1.2.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|