apinow-sdk 0.21.0 → 0.21.1

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/cli.js CHANGED
@@ -7,7 +7,7 @@ const program = new Command();
7
7
  program
8
8
  .name('apinow')
9
9
  .description('CLI for APINow.fun — search, inspect, and call pay-per-request APIs')
10
- .version('0.21.0');
10
+ .version('0.21.1');
11
11
  // ─── Helpers ───
12
12
  function getPrivateKey(opts) {
13
13
  const raw = opts.key || process.env.APINOW_WALLET_PKEY || process.env.PRIVATE_KEY;
package/dist/index.js CHANGED
@@ -326,14 +326,13 @@ export function createClient(config) {
326
326
  * });
327
327
  */
328
328
  async callExternal(url, opts = {}) {
329
- return this.call('/api/x402-proxy', {
329
+ const params = new URLSearchParams({ url });
330
+ if (opts.method)
331
+ params.set('method', opts.method);
332
+ return this.call(`/api/x402-proxy?${params}`, {
330
333
  method: 'POST',
331
- body: {
332
- url,
333
- method: opts.method || 'POST',
334
- body: opts.body,
335
- headers: opts.headers,
336
- },
334
+ body: opts.body,
335
+ headers: opts.headers,
337
336
  });
338
337
  },
339
338
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apinow-sdk",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Pay-per-call API SDK & CLI for APINow.fun — endpoints + workflows, wraps x402 so you don't have to",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",