@alleyboss/micropay-solana-x402-paywall 3.0.5 → 3.0.6

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 CHANGED
@@ -66,7 +66,9 @@ import { createX402Middleware } from '@alleyboss/micropay-solana-x402-paywall/ne
66
66
 
67
67
  const withMicropay = createX402Middleware({
68
68
  walletAddress: 'YOUR_WALLET_ADDRESS',
69
- network: 'devnet'
69
+ network: 'devnet',
70
+ // Optional: Custom Facilitator (e.g. for Mainnet Pro)
71
+ // facilitatorUrl: 'https://facilitator.pro-provider.com/v1/MY_KEY'
70
72
  });
71
73
 
72
74
  const handler = (req) => {
@@ -8,7 +8,9 @@ var server$1 = require('@x402/svm/exact/server');
8
8
  // src/next/index.ts
9
9
  function createX402Middleware(config) {
10
10
  const facilitatorUrl = config.facilitatorUrl || "https://x402.org/facilitator";
11
- const client = new http.HTTPFacilitatorClient({ url: facilitatorUrl });
11
+ const client = new http.HTTPFacilitatorClient({
12
+ url: facilitatorUrl
13
+ });
12
14
  const server$2 = new server.x402ResourceServer(client);
13
15
  server$1.registerExactSvmScheme(server$2, {});
14
16
  return function withMicropay(handler, routeConfig) {
@@ -7,7 +7,9 @@ import { registerExactSvmScheme } from '@x402/svm/exact/server';
7
7
  // src/next/index.ts
8
8
  function createX402Middleware(config) {
9
9
  const facilitatorUrl = config.facilitatorUrl || "https://x402.org/facilitator";
10
- const client = new HTTPFacilitatorClient({ url: facilitatorUrl });
10
+ const client = new HTTPFacilitatorClient({
11
+ url: facilitatorUrl
12
+ });
11
13
  const server = new x402ResourceServer(client);
12
14
  registerExactSvmScheme(server, {});
13
15
  return function withMicropay(handler, routeConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alleyboss/micropay-solana-x402-paywall",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Production-ready Solana micropayments library wrapper for official x402 SDK",
5
5
  "author": "AlleyBoss",
6
6
  "license": "MIT",