react-native-mosquito-transport 0.0.43 → 0.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mosquito-transport",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "React native javascript sdk for mosquito-transport (https://github.com/brainbehindx/mosquito-transport)",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -143,7 +143,7 @@ export const mfetch = async (input = '', init, config) => {
143
143
  const [reqBuilder, [privateKey]] = uglified ? await serializeE2E(body, mtoken, serverE2E_PublicKey) : [null, []];
144
144
 
145
145
  const f = await fetch(isLink ? input : `${projectUrl}/${normalizeRoute(input)}`, {
146
- ...hasBody ? { method: 'POST' } : {},
146
+ ...(encodeBody || uglified) ? { method: 'POST' } : {},
147
147
  credentials: 'omit',
148
148
  ...init,
149
149
  ...uglified ? { body: reqBuilder } : encodeBody ? { body: serialize(body) } : {},