@t2000/sdk 0.19.0 → 0.19.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/index.cjs CHANGED
@@ -57122,10 +57122,12 @@ var T2000 = class _T2000 extends eventemitter3.EventEmitter {
57122
57122
  polyfill: false,
57123
57123
  methods: [sui({ client: this.client, signer: this.keypair })]
57124
57124
  });
57125
+ const method = (options.method ?? "GET").toUpperCase();
57126
+ const canHaveBody = method !== "GET" && method !== "HEAD";
57125
57127
  const response = await mppx.fetch(options.url, {
57126
- method: options.method,
57128
+ method,
57127
57129
  headers: options.headers,
57128
- body: options.body
57130
+ body: canHaveBody ? options.body : void 0
57129
57131
  });
57130
57132
  const contentType = response.headers.get("content-type") ?? "";
57131
57133
  let body;