react-native-mosquito-transport 0.0.40 → 0.0.41

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.40",
3
+ "version": "0.0.41",
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",
@@ -70,13 +70,15 @@ export const mfetch = async (input = '', init, config) => {
70
70
  !Validator.JSON(body)
71
71
  ) throw `"body" must be any of string, buffer, object`;
72
72
  }
73
+ await awaitStore();
73
74
 
74
75
  const reqId = await niceHash(
75
76
  serialize([
76
77
  rawHeader,
77
78
  body,
78
79
  !!disableAuth,
79
- input
80
+ input,
81
+ disableAuth ? '' : (Scoped.AuthJWTToken[projectUrl] || '')
80
82
  ]).toString('base64')
81
83
  );
82
84
  const processReqId = `${reqId}_${disableCache}_${retrieval}`;
@@ -104,7 +106,6 @@ export const mfetch = async (input = '', init, config) => {
104
106
  }
105
107
  };
106
108
 
107
- await awaitStore();
108
109
  const resolveCache = (reqData) => {
109
110
  finalize(reqData, undefined, { fromCache: true });
110
111
  };