@tramvai/papi 1.15.1 → 1.25.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 (2) hide show
  1. package/README.en.md +28 -0
  2. package/package.json +1 -1
package/README.en.md ADDED
@@ -0,0 +1,28 @@
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
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/papi",
3
- "version": "1.15.1",
3
+ "version": "1.25.0",
4
4
  "description": "",
5
5
  "main": "lib/server.js",
6
6
  "browser": "lib/browser.js",