make-service 4.0.1 → 4.0.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 +6 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -74,6 +74,12 @@ Or you can use it with Deno:
|
|
|
74
74
|
import { makeService } from "https://deno.land/x/make_service/mod.ts";
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
If you want to use it with a schema parser - such as [zod](https://zod.dev/), [arktype](https://arktype.dev/), [valibot](https://valibot.dev/), or other [standard-schema](https://standardschema.dev) libraries -, you need to install it as a peer dependency:
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npm install make-service @standard-schema/spec
|
|
81
|
+
```
|
|
82
|
+
|
|
77
83
|
# API
|
|
78
84
|
|
|
79
85
|
This library exports the `makeService` function and some primitives used to build it. You can use the primitives as you wish but the `makeService` will have all the features combined.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "make-service",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Some utilities to extend the 'fetch' API to better interact with external APIs.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"vitest": "latest",
|
|
44
44
|
"zod": "3.25.67"
|
|
45
45
|
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@standard-schema/spec": "^1.0.0"
|
|
48
|
+
},
|
|
46
49
|
"files": [
|
|
47
50
|
"README.md",
|
|
48
51
|
"./dist/*"
|