@lidofinance/api-rpc-proxy 0.0.0-stage → 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 +53 -2
- package/README.mdx +4 -0
- package/dist/index.cjs +558 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +147 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +524 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +59 -4
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lidofinance/api-rpc-proxy",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"description": "Fastify RPC proxy: JSON-RPC validation/allowlisting, per-IP rate limiting, chain health probing and prom-client metrics",
|
|
4
|
+
"repository": "https://github.com/lidofinance/warehouse.git",
|
|
5
|
+
"homepage": "https://github.com/lidofinance/warehouse/tree/main/packages/api/rpc-proxy",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/lidofinance/warehouse/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"version": "1.0.0",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">= 18"
|
|
16
|
+
},
|
|
17
|
+
"source": "./src/index.ts",
|
|
18
|
+
"main": "dist/index.cjs",
|
|
19
|
+
"module": "dist/index.mjs",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "parcel build",
|
|
30
|
+
"lint": "eslint . && prettier --check src",
|
|
31
|
+
"lint:fix": "eslint --fix . && prettier --check src --write",
|
|
32
|
+
"types": "tsc --noEmit",
|
|
33
|
+
"test": "vitest run"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@lidofinance/api-metrics": "*",
|
|
37
|
+
"@lidofinance/api-rpc": "*",
|
|
38
|
+
"@lidofinance/rpc": "*",
|
|
39
|
+
"fastify": "^5.0.0",
|
|
40
|
+
"prom-client": "^14.0.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"memory-cache": "^0.2.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@lidofinance/api-metrics": "*",
|
|
47
|
+
"@lidofinance/api-rpc": "*",
|
|
48
|
+
"@lidofinance/config-prettier": "*",
|
|
49
|
+
"@lidofinance/rpc": "*",
|
|
50
|
+
"@types/memory-cache": "^0.2.6",
|
|
51
|
+
"@types/node": "^20.0.0",
|
|
52
|
+
"fastify": "^5.10.0",
|
|
53
|
+
"prom-client": "^14.1.0",
|
|
54
|
+
"vite": "^8.3.2",
|
|
55
|
+
"vitest": "^5.0.3"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"packageManager": "yarn@4.9.0"
|
|
61
|
+
}
|