vovk-client 0.0.4-draft.98 → 1.0.0

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 CHANGED
@@ -1,24 +1,33 @@
1
- <p align="center">
2
- <picture>
3
- <source width="300" media="(prefers-color-scheme: dark)" srcset="https://vovk.dev/vovk-logo-white.svg">
4
- <source width="300" media="(prefers-color-scheme: light)" srcset="https://vovk.dev/vovk-logo.svg">
5
- <img width="300" alt="vovk" src="https://vovk.dev/vovk-logo.svg">
6
- </picture><br>
7
- <strong>RESTful + RPC = ♥️</strong>
8
- </p>
9
-
10
1
  <p align="center">
11
- Back-end meta-framework for <a href="https://nextjs.org/docs/app">Next.js</a>
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>
12
17
  </p>
13
18
 
14
19
  ---
15
20
 
16
21
  ## vovk-client [![npm version](https://badge.fury.io/js/vovk-client.svg)](https://www.npmjs.com/package/vovk-client)
17
22
 
18
- The module that re-exports generated client from **node_modules/.vovk-client** (can be configured in [config](https://vovk.dev/config)).
23
+ A module that re-exports generated client from **node_modules/.vovk-client**.
19
24
 
20
25
  ```sh
21
26
  npm install vovk-client
22
27
  ```
23
28
 
24
- For more information, please visit the [getting started guide](https://vovk.dev/getting-started) or check out the [Vovk.ts examples](https://vovk-examples.vercel.app/).
29
+ ```ts
30
+ import { UserRPC } from 'vovk-client';
31
+
32
+ await UserRPC.updateUser({ body, query, params });
33
+ ```
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '../.vovk-client/index.d.ts';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from '../.vovk-client/index.js';
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,22 +1,22 @@
1
1
  {
2
2
  "name": "vovk-client",
3
- "version": "0.0.4-draft.98",
4
- "description": "Vovk.ts client",
3
+ "version": "1.0.0",
4
+ "description": "Re-exports of composed TypeScript client for Vovk.ts",
5
5
  "scripts": {
6
6
  "npm-publish": "npm publish"
7
7
  },
8
- "main": "./index.cjs",
9
- "module": "./index.mjs",
10
- "types": "./index.d.mts",
11
8
  "exports": {
12
9
  ".": {
13
- "import": "./index.mjs",
14
- "require": "./index.cjs"
10
+ "default": "./index.js",
11
+ "types": "./index.d.ts"
15
12
  },
16
13
  "./schema": {
17
- "import": "./schema.cjs",
18
- "require": "./schema.cjs",
19
- "types": "./schema.d.cts"
14
+ "default": "./schema.js",
15
+ "types": "./schema.d.ts"
16
+ },
17
+ "./openapi": {
18
+ "default": "./openapi.js",
19
+ "types": "./openapi.d.ts"
20
20
  }
21
21
  },
22
22
  "type": "module",
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/.eslintrc.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- extends: '../../.eslintrc.js',
3
- rules: {
4
- '@typescript-eslint/no-unsafe-assignment': 'off',
5
- },
6
- };
package/index.cjs DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- ...require('../.vovk-client/index.cjs'),
3
- };
package/index.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from '../.vovk-client/index.d.cts';
package/index.d.mts DELETED
@@ -1 +0,0 @@
1
- export * from '../.vovk-client/index.d.mts';
package/index.mjs DELETED
@@ -1 +0,0 @@
1
- export * from '../.vovk-client/index.mjs';
package/schema.cjs DELETED
@@ -1 +0,0 @@
1
- module.exports.schema = require('../.vovk-client/schema.cjs').schema ?? {};
package/schema.d.cts DELETED
@@ -1 +0,0 @@
1
- export { schema } from '../.vovk-client/schema.d.cts';