vovk-hello-world 0.0.51 → 0.0.52
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.392 at 2025-11-
|
|
1
|
+
<!-- Generated by vovk-cli v0.0.1-draft.392 at 2025-11-03T12:11:15.967Z -->
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
# vovk-hello-world v0.0.
|
|
4
|
+
# vovk-hello-world v0.0.52 [](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 http://localhost:3000/api/users/{id}`
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
28
|
import { UserRPC } from 'vovk-hello-world';
|
|
@@ -80,7 +80,7 @@ console.log(response);
|
|
|
80
80
|
Stream tokens to the client
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
`GET
|
|
83
|
+
`GET http://localhost:3000/api/streams/tokens`
|
|
84
84
|
|
|
85
85
|
```ts
|
|
86
86
|
import { StreamRPC } from 'vovk-hello-world';
|
|
@@ -112,7 +112,7 @@ for await (const item of response) {
|
|
|
112
112
|
Get the OpenAPI spec for the "Hello World" app API
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
`GET
|
|
115
|
+
`GET http://localhost:3000/api/static/openapi.json`
|
|
116
116
|
|
|
117
117
|
```ts
|
|
118
118
|
import { OpenApiRPC } from 'vovk-hello-world';
|
package/index.cjs
CHANGED
|
@@ -451,15 +451,15 @@ var openapi_default = {
|
|
|
451
451
|
//#region tmp_prebundle/index.ts
|
|
452
452
|
const UserRPC = (0, vovk.createRPC)(schema, "", "UserRPC", import("vovk"), {
|
|
453
453
|
validateOnClient: import("vovk-ajv"),
|
|
454
|
-
apiRoot: "
|
|
454
|
+
apiRoot: "http://localhost:3000/api"
|
|
455
455
|
});
|
|
456
456
|
const StreamRPC = (0, vovk.createRPC)(schema, "", "StreamRPC", import("vovk"), {
|
|
457
457
|
validateOnClient: import("vovk-ajv"),
|
|
458
|
-
apiRoot: "
|
|
458
|
+
apiRoot: "http://localhost:3000/api"
|
|
459
459
|
});
|
|
460
460
|
const OpenApiRPC = (0, vovk.createRPC)(schema, "static", "OpenApiRPC", import("vovk"), {
|
|
461
461
|
validateOnClient: import("vovk-ajv"),
|
|
462
|
-
apiRoot: "
|
|
462
|
+
apiRoot: "http://localhost:3000/api"
|
|
463
463
|
});
|
|
464
464
|
|
|
465
465
|
//#endregion
|
package/index.mjs
CHANGED
|
@@ -427,15 +427,15 @@ var openapi_default = {
|
|
|
427
427
|
//#region tmp_prebundle/index.ts
|
|
428
428
|
const UserRPC = createRPC(schema, "", "UserRPC", import("vovk"), {
|
|
429
429
|
validateOnClient: import("vovk-ajv"),
|
|
430
|
-
apiRoot: "
|
|
430
|
+
apiRoot: "http://localhost:3000/api"
|
|
431
431
|
});
|
|
432
432
|
const StreamRPC = createRPC(schema, "", "StreamRPC", import("vovk"), {
|
|
433
433
|
validateOnClient: import("vovk-ajv"),
|
|
434
|
-
apiRoot: "
|
|
434
|
+
apiRoot: "http://localhost:3000/api"
|
|
435
435
|
});
|
|
436
436
|
const OpenApiRPC = createRPC(schema, "static", "OpenApiRPC", import("vovk"), {
|
|
437
437
|
validateOnClient: import("vovk-ajv"),
|
|
438
|
-
apiRoot: "
|
|
438
|
+
apiRoot: "http://localhost:3000/api"
|
|
439
439
|
});
|
|
440
440
|
|
|
441
441
|
//#endregion
|
package/package.json
CHANGED