@tahanabavi/typefetch 1.6.0 → 1.6.2
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/README.md +2 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# TypeFetch
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
3
5
|
**TypeFetch** is a strongly typed HTTP client for TypeScript projects, built around **Zod** contracts.
|
|
4
6
|
|
|
5
7
|
Define your API once with Zod schemas, then TypeFetch generates a fully typed client with request validation, response validation, middleware support, retries, mock data, response wrappers, token handling, structured request support, contract-driven API testing, CLI workflows, and report generation.
|
|
@@ -1150,30 +1152,6 @@ Invalid input fails at compile time when possible and at runtime through Zod val
|
|
|
1150
1152
|
|
|
1151
1153
|
---
|
|
1152
1154
|
|
|
1153
|
-
## Recommended Project Structure
|
|
1154
|
-
|
|
1155
|
-
```txt
|
|
1156
|
-
src/
|
|
1157
|
-
api/
|
|
1158
|
-
contracts.ts
|
|
1159
|
-
client.ts
|
|
1160
|
-
middlewares/
|
|
1161
|
-
logging.ts
|
|
1162
|
-
retry.ts
|
|
1163
|
-
cache.ts
|
|
1164
|
-
auth.ts
|
|
1165
|
-
encryption.ts
|
|
1166
|
-
|
|
1167
|
-
typefetch.test.config.ts
|
|
1168
|
-
typefetch.env.example
|
|
1169
|
-
typefetch-report/
|
|
1170
|
-
test-fixtures/
|
|
1171
|
-
|
|
1172
|
-
docs/
|
|
1173
|
-
releases/
|
|
1174
|
-
v1.6.0-cli-testing.md
|
|
1175
|
-
```
|
|
1176
|
-
|
|
1177
1155
|
Example:
|
|
1178
1156
|
|
|
1179
1157
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tahanabavi/typefetch",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "A strongly typed TypeScript HTTP client powered by Zod contracts, middleware, retries, auth, mock data, response wrappers, and validation.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|