vovk-client 0.0.4-beta.0 → 0.0.4-beta.10

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023-present Andrii Gubanov
3
+ Copyright (c) 2023-present Andrey Gubanov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,7 +1,33 @@
1
- # Vovk Client
1
+ <p align="center">
2
+ <a href="https://vovk.dev">
3
+ <picture>
4
+ <source width="300" media="(prefers-color-scheme: dark)" srcset="https://vovk.dev/vovk-logo-white.svg">
5
+ <source width="300" media="(prefers-color-scheme: light)" srcset="https://vovk.dev/vovk-logo.svg">
6
+ <img width="300" alt="vovk" src="https://vovk.dev/vovk-logo.svg">
7
+ </picture>
8
+ </a>
9
+ <br>
10
+ <strong>Back-end Framework for Next.js App Router</strong>
11
+ <br />
12
+ <a href="https://vovk.dev/">Documentation</a>
13
+ &nbsp;&nbsp;
14
+ <a href="https://vovk.dev/quick-install">Quick Start</a>
15
+ &nbsp;&nbsp;
16
+ <a href="https://vovk.dev/performance">Performance</a>
17
+ </p>
2
18
 
3
- This package re-exports files that are generated at **node_modules/.vovk**. See [documentation](https://vovk.dev/) for more info.
19
+ ---
4
20
 
21
+ ## vovk-client [![npm version](https://badge.fury.io/js/vovk-client.svg)](https://www.npmjs.com/package/vovk-client)
22
+
23
+ A module that re-exports generated client from **node_modules/.vovk-client**.
24
+
25
+ ```sh
26
+ npm install vovk-client
27
+ ```
28
+
29
+ ```ts
30
+ import { UserRPC } from 'vovk-client';
31
+
32
+ await UserRPC.updateUser({ body, query, params });
5
33
  ```
6
- npm i vovk-client
7
- ```
package/index.d.mts ADDED
@@ -0,0 +1 @@
1
+ export * from '../.vovk-client/index.d.mts';
package/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from '../.vovk-client/index.mjs';
package/openapi.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { openapi } from '../.vovk-client/openapi.d.ts';
package/openapi.js ADDED
@@ -0,0 +1 @@
1
+ export { openapi } from '../.vovk-client/openapi.js';
package/package.json CHANGED
@@ -1,11 +1,25 @@
1
1
  {
2
2
  "name": "vovk-client",
3
- "version": "0.0.4-beta.0",
4
- "description": "Vovk.ts Client",
5
- "main": "index.js",
3
+ "version": "0.0.4-beta.10",
4
+ "description": "Re-exports of composed TypeScript client for Vovk.ts",
6
5
  "scripts": {
7
6
  "npm-publish": "npm publish"
8
7
  },
8
+ "exports": {
9
+ ".": {
10
+ "default": "./index.mjs",
11
+ "types": "./index.d.mts"
12
+ },
13
+ "./schema": {
14
+ "default": "./schema.mjs",
15
+ "types": "./schema.d.mts"
16
+ },
17
+ "./openapi": {
18
+ "default": "./openapi.mjs",
19
+ "types": "./openapi.d.mts"
20
+ }
21
+ },
22
+ "type": "module",
9
23
  "repository": {
10
24
  "type": "git",
11
25
  "url": "git+https://github.com/finom/vovk.git"
@@ -13,9 +27,8 @@
13
27
  "keywords": [
14
28
  "Vovk"
15
29
  ],
16
- "author": "Andrii Gubanov",
30
+ "author": "Andrey Gubanov",
17
31
  "license": "MIT",
18
- "types": "./index.d.ts",
19
32
  "bugs": {
20
33
  "url": "https://github.com/finom/vovk/issues"
21
34
  },
package/schema.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { schema } from '../.vovk-client/schema.d.ts';
package/schema.js ADDED
@@ -0,0 +1 @@
1
+ export { schema } from '../.vovk-client/schema.js';
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '.vovk-client/client';
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- ...require('.vovk-client/client'),
3
- };