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