-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
123 lines (123 loc) · 3.67 KB
/
Copy pathpackage.json
File metadata and controls
123 lines (123 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "d402",
"version": "0.4.1",
"description": "HTTP 402 payment agreement SDK backed by on-chain state.",
"type": "module",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/programmaman/d402.git"
},
"sideEffects": false,
"engines": {
"node": ">=20.19.0"
},
"keywords": [
"http-payments",
"402-payment-required",
"d402",
"x402",
"micropayments",
"agent-payments",
"machine-payments",
"programmable-payments",
"escrow",
"settlement",
"payment-proofs",
"refunds"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./core": {
"types": "./dist/core/index.d.ts",
"import": "./dist/core/index.js"
},
"./client": {
"types": "./dist/client/index.d.ts",
"import": "./dist/client/index.js"
},
"./server": {
"types": "./dist/server/index.d.ts",
"import": "./dist/server/index.js"
},
"./autosigner": {
"types": "./dist/autosigner/index.d.ts",
"import": "./dist/autosigner/index.js"
}
},
"files": [
"dist/",
"docs/advanced.md",
"docs/api.md",
"docs/comparisons.md",
"docs/disputes.md",
"docs/http-integration.md",
"docs/protocol.md",
"docs/refunds.md",
"docs/scaling.md",
"docs/schemes.md",
"docs/signing.md",
"docs/testing.md",
"docs/upcoming-features.md",
"examples/README.md",
"examples/express-native/README.md",
"examples/express-native/tsconfig.json",
"examples/express-native/src/",
"examples/next-route-handler/README.md",
"examples/next-route-handler/tsconfig.json",
"examples/next-route-handler/next-env.d.ts",
"examples/next-route-handler/app/",
"examples/next-route-handler/scripts/",
"examples/one-shot-access/README.md",
"examples/one-shot-access/tsconfig.json",
"examples/one-shot-access/src/",
"README.md",
"ELI5.md",
"CHANGELOG.md",
"LICENSE"
],
"scripts": {
"build": "npm run clean && npm run build:core && npm run build:adapters",
"build:core": "tsc -p tsconfig.json",
"build:adapters": "npm --prefix adapters/ethers run build && npm --prefix adapters/viem run build",
"clean": "node -e \"const { rmSync } = require('node:fs'); for (const dir of ['dist', 'adapters/ethers/dist', 'adapters/viem/dist']) rmSync(dir, { recursive: true, force: true });\"",
"dev": "tsx src/index.ts",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"prepack": "npm run build",
"test": "npm run build && npm run test:unit && npm run test:adapters && npm --prefix e2e_tests run test:adapter:ethers && npm --prefix e2e_tests run test:adapter:viem",
"test:unit": "vitest run --dir test",
"test:adapters": "npm --prefix adapters/ethers run test && npm --prefix adapters/viem run test",
"test:ethers": "npm run build && npm --prefix e2e_tests run test:adapter:ethers",
"test:viem": "npm run build && npm --prefix e2e_tests run test:adapter:viem",
"typecheck": "tsc -p tsconfig.json --noEmit",
"pack:check": "npm pack --dry-run"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@noble/hashes": "^2.0.1",
"@rakelabs/dpayments-sdk": "^0.2.1",
"canonicalize": "^3.0.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@emnapi/core": "1.11.1",
"@emnapi/runtime": "1.11.1",
"@eslint/js": "^10.0.1",
"@types/node": "^26.0.1",
"eslint": "^10.6.0",
"ethers": "^6.17.0",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.0",
"viem": "^2.55.19",
"vitest": "^4.1.9"
}
}