@psalomo/jsonrpc-client 0.4.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psalomo/jsonrpc-client",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript client for NEAR Protocol JSON-RPC API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -10,6 +10,11 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.mjs",
12
12
  "require": "./dist/index.js"
13
+ },
14
+ "./mini": {
15
+ "types": "./dist/index.mini.d.ts",
16
+ "import": "./dist/index.mini.mjs",
17
+ "require": "./dist/index.mini.cjs"
13
18
  }
14
19
  },
15
20
  "files": [
@@ -17,7 +22,9 @@
17
22
  ],
18
23
  "scripts": {
19
24
  "prebuild": "cd ../../tools/codegen && npx tsx generate-client-interface.ts",
20
- "build": "tsup",
25
+ "build": "tsup && rollup -c",
26
+ "build:node": "tsup",
27
+ "build:browser": "rollup -c",
21
28
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
22
29
  "clean": "rm -rf dist",
23
30
  "typecheck": "tsc --noEmit",
@@ -28,15 +35,17 @@
28
35
  "test:coverage": "vitest run --coverage"
29
36
  },
30
37
  "dependencies": {
31
- "@psalomo/jsonrpc-types": "^0.1.0",
32
- "cross-fetch": "^4.0.0",
33
- "zod": "^3.22.4"
38
+ "@psalomo/jsonrpc-types": "^0.1.0"
34
39
  },
35
40
  "devDependencies": {
41
+ "@rollup/plugin-node-resolve": "^16.0.1",
42
+ "@rollup/plugin-terser": "^0.4.4",
43
+ "@rollup/plugin-typescript": "^12.1.4",
44
+ "@types/node": "^20.11.0",
36
45
  "prettier": "^3.2.5",
46
+ "rollup": "^4.45.1",
37
47
  "tsup": "^8.0.2",
38
48
  "typescript": "^5.3.3",
39
- "@types/node": "^20.11.0",
40
49
  "vitest": "^1.2.2"
41
50
  },
42
51
  "publishConfig": {