@trycourier/react-provider 4.10.1 → 4.10.2

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
@@ -236,7 +236,11 @@ var CourierProvider = function CourierProvider(_ref2) {
236
236
  };
237
237
  }, [tenantId, actions, transport, userId]);
238
238
  (0, _react.useEffect)(function () {
239
- if (!_transport && (!clientKey || !userId || !authorization)) {
239
+ var hasClientKeyAuth = clientKey && userId;
240
+ var hasCustomTransport = Boolean(_transport);
241
+ var hasJWTAuth = Boolean(authorization);
242
+
243
+ if (!hasCustomTransport && !hasClientKeyAuth && !hasJWTAuth) {
240
244
  return;
241
245
  }
242
246
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/react-provider",
3
- "version": "4.10.1",
3
+ "version": "4.10.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
- "@trycourier/client-graphql": "^4.10.1",
19
+ "@trycourier/client-graphql": "^4.10.2",
20
20
  "buffer": "^6.0.3",
21
21
  "jwt-decode": "^3.1.2",
22
22
  "react-use": "^17.2.1",
@@ -33,5 +33,5 @@
33
33
  "dist/",
34
34
  "typings/"
35
35
  ],
36
- "gitHead": "5384864a7cfc00bdb2e5e35a6e14889b80689c44"
36
+ "gitHead": "38d2276da57a06fed289ad3b35d5e2c04c14c7ec"
37
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAIZ,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,KAAK,EACL,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,OAAO,EACP,UAAU,EACV,aAAa,EAEb,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB,OA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