@tramvai/papi 1.59.0 → 1.62.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.
Files changed (3) hide show
  1. package/README.md +10 -5
  2. package/package.json +1 -1
  3. package/README.en.md +0 -28
package/README.md CHANGED
@@ -1,16 +1,21 @@
1
- # @tramvai/papi
1
+ ---
2
+ title: '@tramvai/papi'
3
+ sidebar_position: 4
4
+ ---
2
5
 
3
- Библиотека для создания и работы с методами papi.
6
+ # Papi
4
7
 
5
- ## Подключение
8
+ Library for creating and working with papi handlers.
6
9
 
7
- Необходимо установить `@tramvai/papi`
10
+ ## Installation
11
+
12
+ You need to install `@tramvai/papi`
8
13
 
9
14
  ```bash
10
15
  yarn add @tramvai/module-papi
11
16
  ```
12
17
 
13
- ## Использование
18
+ ## Usage
14
19
 
15
20
  ```tsx
16
21
  import { createPapiMethod } from '@tramvai/papi';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/papi",
3
- "version": "1.59.0",
3
+ "version": "1.62.0",
4
4
  "description": "",
5
5
  "main": "lib/server.js",
6
6
  "browser": "lib/browser.js",
package/README.en.md DELETED
@@ -1,28 +0,0 @@
1
- # @tramvai/papi
2
-
3
- Library for creating and working with papi handlers.
4
-
5
- ## Installation
6
-
7
- You need to install `@tramvai/papi`
8
-
9
- ```bash
10
- yarn add @tramvai/module-papi
11
- ```
12
-
13
- ## Usage
14
-
15
- ```tsx
16
- import { createPapiMethod } from '@tramvai/papi';
17
-
18
- export const papi = createPapiMethod({
19
- path: '/my/papi',
20
- method: 'post',
21
- async handler(deps) {
22
- return 'test';
23
- },
24
- deps: {
25
- tinkoffApiService: TINKOFF_API_SERVICE,
26
- },
27
- });
28
- ```