@t402/fetch 2.3.1 → 2.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/README.md +8 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# t402
|
|
1
|
+
# @t402/fetch
|
|
2
2
|
|
|
3
3
|
A utility package that extends the native `fetch` API to automatically handle 402 Payment Required responses using the t402 payment protocol v2. This package enables seamless integration of payment functionality into your applications when making HTTP requests.
|
|
4
4
|
|
|
@@ -194,3 +194,10 @@ const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
|
|
|
194
194
|
});
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
+
## Related Packages
|
|
198
|
+
|
|
199
|
+
- `@t402/core` - Core protocol types and client
|
|
200
|
+
- `@t402/axios` - Axios interceptor with automatic payment handling
|
|
201
|
+
- `@t402/evm` - EVM mechanism implementation
|
|
202
|
+
- `@t402/svm` - Solana mechanism implementation
|
|
203
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t402/fetch",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
"repository": "https://github.com/t402-io/t402",
|
|
11
11
|
"description": "t402 Payment Protocol Fetch Extension",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@eslint/js": "^9.
|
|
14
|
-
"@types/node": "^
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
16
|
-
"@typescript-eslint/parser": "^8.
|
|
13
|
+
"@eslint/js": "^9.39.2",
|
|
14
|
+
"@types/node": "^25.2.2",
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
16
|
+
"@typescript-eslint/parser": "^8.55.0",
|
|
17
17
|
"eslint": "^9.24.0",
|
|
18
18
|
"eslint-plugin-import": "^2.31.0",
|
|
19
|
-
"eslint-plugin-jsdoc": "^
|
|
20
|
-
"eslint-plugin-prettier": "^5.
|
|
19
|
+
"eslint-plugin-jsdoc": "^62.5.4",
|
|
20
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
21
21
|
"glob": "^13.0.0",
|
|
22
|
-
"prettier": "3.
|
|
23
|
-
"tsup": "^8.
|
|
22
|
+
"prettier": "3.8.1",
|
|
23
|
+
"tsup": "^8.5.1",
|
|
24
24
|
"tsx": "^4.21.0",
|
|
25
|
-
"typescript": "^5.
|
|
25
|
+
"typescript": "^5.9.3",
|
|
26
26
|
"vite": "^7.3.1",
|
|
27
|
-
"vite-tsconfig-paths": "^
|
|
27
|
+
"vite-tsconfig-paths": "^6.1.0",
|
|
28
28
|
"vitest": "^3.2.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"zod": "^3.24.2",
|
|
32
|
-
"@t402/core": "2.
|
|
32
|
+
"@t402/core": "2.5.0"
|
|
33
33
|
},
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|