@agentcash/router 1.1.5 → 1.1.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/dist/index.cjs CHANGED
@@ -2284,12 +2284,14 @@ function createRouter(config) {
2284
2284
  }
2285
2285
  let builder = new RouteBuilder(key, registry, deps);
2286
2286
  builder = builder.path(normalizedPath);
2287
+ if (config.protocols) {
2288
+ builder._protocols = [...config.protocols];
2289
+ }
2287
2290
  if (definition.method) {
2288
2291
  builder = builder.method(definition.method);
2289
2292
  }
2290
2293
  if (config.prices && key in config.prices) {
2291
- const options = config.protocols ? { protocols: config.protocols } : void 0;
2292
- return builder.paid(config.prices[key], options);
2294
+ return builder.paid(config.prices[key]);
2293
2295
  }
2294
2296
  return builder;
2295
2297
  },
package/dist/index.js CHANGED
@@ -2245,12 +2245,14 @@ function createRouter(config) {
2245
2245
  }
2246
2246
  let builder = new RouteBuilder(key, registry, deps);
2247
2247
  builder = builder.path(normalizedPath);
2248
+ if (config.protocols) {
2249
+ builder._protocols = [...config.protocols];
2250
+ }
2248
2251
  if (definition.method) {
2249
2252
  builder = builder.method(definition.method);
2250
2253
  }
2251
2254
  if (config.prices && key in config.prices) {
2252
- const options = config.protocols ? { protocols: config.protocols } : void 0;
2253
- return builder.paid(config.prices[key], options);
2255
+ return builder.paid(config.prices[key]);
2254
2256
  }
2255
2257
  return builder;
2256
2258
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentcash/router",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Unified route builder for Next.js App Router APIs with x402, MPP, SIWX, and API key auth",
5
5
  "type": "module",
6
6
  "exports": {