vovk-client 0.0.4-draft.2 → 0.0.4-draft.20

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/.eslintrc.js ADDED
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ extends: '../../.eslintrc.js',
3
+ rules: {
4
+ '@typescript-eslint/no-unsafe-assignment': 'off',
5
+ },
6
+ };
package/README.md CHANGED
@@ -1,7 +1,24 @@
1
- # Vovk Client
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>REST + RPC = ♥️</strong>
8
+ </p>
2
9
 
3
- This package re-exports files that are generated at **node_modules/.vovk**. See [documentation](https://vovk.dev/) for more info.
10
+ <p align="center">
11
+ Back-end meta-framework for <a href="https://nextjs.org/docs/app">Next.js</a>
12
+ </p>
4
13
 
14
+ ---
15
+
16
+ ## vovk-client [![npm version](https://badge.fury.io/js/vovk-client.svg)](https://www.npmjs.com/package/vovk-client)
17
+
18
+ The module that re-exports generated client from **node_modules/.vovk-client** (can be configured in [config](https://vovk.dev/config)).
19
+
20
+ ```sh
21
+ npm install vovk-client
5
22
  ```
6
- npm i vovk-client
7
- ```
23
+
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/).
package/index.cjs ADDED
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ ...require('.vovk-client/main'),
3
+ };
package/index.d.cts ADDED
@@ -0,0 +1 @@
1
+ export * from '.vovk-client/main';
package/module.d.mts ADDED
@@ -0,0 +1 @@
1
+ export * from '.vovk-client/module';
package/module.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import main from './vovk-client/module';
2
+ export default main;
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "vovk-client",
3
- "version": "0.0.4-draft.2",
4
- "description": "Vovk.ts Client",
5
- "main": "index.js",
3
+ "version": "0.0.4-draft.20",
4
+ "description": "Vovk.ts client",
6
5
  "scripts": {
7
6
  "npm-publish": "npm publish"
8
7
  },
8
+ "main": "./index.cjs",
9
+ "module": "./module.mjs",
10
+ "types": "./module.d.mts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./module.mjs",
14
+ "require": "./index.cjs"
15
+ }
16
+ },
17
+ "type": "module",
9
18
  "repository": {
10
19
  "type": "git",
11
20
  "url": "git+https://github.com/finom/vovk.git"
@@ -15,7 +24,6 @@
15
24
  ],
16
25
  "author": "Andrii Gubanov",
17
26
  "license": "MIT",
18
- "types": "./index.d.ts",
19
27
  "bugs": {
20
28
  "url": "https://github.com/finom/vovk/issues"
21
29
  },
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
- };