vovk-hello-world 0.0.60 → 0.0.62
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 +5 -5
- package/index.cjs +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!-- Generated by vovk-cli v0.0.1-draft.
|
|
1
|
+
<!-- Generated by vovk-cli v0.0.1-draft.399 at 2025-11-07T10:09:57.478Z -->
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
# vovk-hello-world v0.0.
|
|
4
|
+
# vovk-hello-world v0.0.62 [](https://www.typescriptlang.org/) [](https://vovk.dev)
|
|
5
5
|
|
|
6
6
|
> A showcase for Next.js + Vovk.ts + Zod, demonstrating its capabilities with TypeScript, Rust, and Python RPC.
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ npm install vovk-hello-world
|
|
|
22
22
|
Update user by ID
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
`POST
|
|
25
|
+
`POST https://hello-world.vovk.dev/api/users/{id}`
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
28
|
import { UserRPC } from 'vovk-hello-world';
|
|
@@ -84,7 +84,7 @@ console.log(response);
|
|
|
84
84
|
Stream tokens to the client
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
`GET
|
|
87
|
+
`GET https://hello-world.vovk.dev/api/streams/tokens`
|
|
88
88
|
|
|
89
89
|
```ts
|
|
90
90
|
import { StreamRPC } from 'vovk-hello-world';
|
|
@@ -116,7 +116,7 @@ for await (const item of response) {
|
|
|
116
116
|
Get the OpenAPI spec for the "Hello World" app API
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
`GET
|
|
119
|
+
`GET https://hello-world.vovk.dev/api/static/openapi.json`
|
|
120
120
|
|
|
121
121
|
```ts
|
|
122
122
|
import { OpenApiRPC } from 'vovk-hello-world';
|
package/index.cjs
CHANGED
|
@@ -196,15 +196,15 @@ const schema = {
|
|
|
196
196
|
//#region tmp_prebundle/index.ts
|
|
197
197
|
const UserRPC = (0, vovk.createRPC)(schema, "", "UserRPC", import("vovk"), {
|
|
198
198
|
validateOnClient: import("vovk-ajv"),
|
|
199
|
-
apiRoot: "
|
|
199
|
+
apiRoot: "https://hello-world.vovk.dev/api"
|
|
200
200
|
});
|
|
201
201
|
const StreamRPC = (0, vovk.createRPC)(schema, "", "StreamRPC", import("vovk"), {
|
|
202
202
|
validateOnClient: import("vovk-ajv"),
|
|
203
|
-
apiRoot: "
|
|
203
|
+
apiRoot: "https://hello-world.vovk.dev/api"
|
|
204
204
|
});
|
|
205
205
|
const OpenApiRPC = (0, vovk.createRPC)(schema, "static", "OpenApiRPC", import("vovk"), {
|
|
206
206
|
validateOnClient: import("vovk-ajv"),
|
|
207
|
-
apiRoot: "
|
|
207
|
+
apiRoot: "https://hello-world.vovk.dev/api"
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
//#endregion
|
package/index.mjs
CHANGED
|
@@ -196,15 +196,15 @@ const schema = {
|
|
|
196
196
|
//#region tmp_prebundle/index.ts
|
|
197
197
|
const UserRPC = createRPC(schema, "", "UserRPC", import("vovk"), {
|
|
198
198
|
validateOnClient: import("vovk-ajv"),
|
|
199
|
-
apiRoot: "
|
|
199
|
+
apiRoot: "https://hello-world.vovk.dev/api"
|
|
200
200
|
});
|
|
201
201
|
const StreamRPC = createRPC(schema, "", "StreamRPC", import("vovk"), {
|
|
202
202
|
validateOnClient: import("vovk-ajv"),
|
|
203
|
-
apiRoot: "
|
|
203
|
+
apiRoot: "https://hello-world.vovk.dev/api"
|
|
204
204
|
});
|
|
205
205
|
const OpenApiRPC = createRPC(schema, "static", "OpenApiRPC", import("vovk"), {
|
|
206
206
|
validateOnClient: import("vovk-ajv"),
|
|
207
|
-
apiRoot: "
|
|
207
|
+
apiRoot: "https://hello-world.vovk.dev/api"
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
//#endregion
|
package/package.json
CHANGED