@alleyboss/micropay-solana-x402-paywall 3.1.3 → 3.2.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/dist/agent/index.cjs +12 -5
- package/dist/agent/index.js +8 -5
- package/dist/client/index.cjs +1605 -0
- package/dist/client/index.d.cts +94 -1
- package/dist/client/index.d.ts +94 -1
- package/dist/client/index.js +1604 -1
- package/dist/index.cjs +1615 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1611 -8
- package/dist/next/index.cjs +1 -2
- package/dist/next/index.js +1 -2
- package/package.json +5 -1
package/dist/next/index.cjs
CHANGED
|
@@ -161,8 +161,7 @@ function createX402Middleware(config) {
|
|
|
161
161
|
scheme: "exact",
|
|
162
162
|
payTo: config.walletAddress,
|
|
163
163
|
amount: config.price?.toString() || "0",
|
|
164
|
-
network: config.network === "mainnet-beta" ? "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" : "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
165
|
-
asset: "native"
|
|
164
|
+
network: config.network === "mainnet-beta" ? "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" : "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
166
165
|
}
|
|
167
166
|
};
|
|
168
167
|
return next.withX402(handler, finalConfig, server$2);
|
package/dist/next/index.js
CHANGED
|
@@ -160,8 +160,7 @@ function createX402Middleware(config) {
|
|
|
160
160
|
scheme: "exact",
|
|
161
161
|
payTo: config.walletAddress,
|
|
162
162
|
amount: config.price?.toString() || "0",
|
|
163
|
-
network: config.network === "mainnet-beta" ? "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" : "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
164
|
-
asset: "native"
|
|
163
|
+
network: config.network === "mainnet-beta" ? "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" : "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
165
164
|
}
|
|
166
165
|
};
|
|
167
166
|
return withX402$1(handler, finalConfig, server);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alleyboss/micropay-solana-x402-paywall",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Production-ready Solana micropayments library wrapper for official x402 SDK",
|
|
5
5
|
"author": "AlleyBoss",
|
|
6
6
|
"license": "MIT",
|
|
@@ -108,9 +108,11 @@
|
|
|
108
108
|
"prepublishOnly": "npm run test && npm run build"
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
|
+
"@types/bs58": "^4.0.4",
|
|
111
112
|
"@x402/core": "^2.1.0",
|
|
112
113
|
"@x402/next": "^2.1.0",
|
|
113
114
|
"@x402/svm": "^2.1.0",
|
|
115
|
+
"bs58": "^6.0.0",
|
|
114
116
|
"jose": "^6.1.3"
|
|
115
117
|
},
|
|
116
118
|
"peerDependencies": {
|
|
@@ -120,8 +122,10 @@
|
|
|
120
122
|
"@solana/web3.js": "^1.98.4",
|
|
121
123
|
"@types/express": "^5.0.6",
|
|
122
124
|
"@types/node": "^20",
|
|
125
|
+
"@types/react": "^19.2.7",
|
|
123
126
|
"@types/uuid": "^10.0.0",
|
|
124
127
|
"express": "^5.2.1",
|
|
128
|
+
"react": "^19.2.3",
|
|
125
129
|
"tsup": "^8.0.0",
|
|
126
130
|
"typescript": "^5",
|
|
127
131
|
"vitest": "^3.0.0"
|