cozy-client 35.4.0 → 35.4.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/CozyClient.js +1 -1
- package/dist/context.js +1 -1
- package/dist/hooks/useClient.js +1 -1
- package/package.json +2 -2
- package/types/context.d.ts +2 -2
- package/types/hooks/useClient.d.ts +2 -2
package/dist/CozyClient.js
CHANGED
|
@@ -2669,7 +2669,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2669
2669
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2670
2670
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2671
2671
|
|
|
2672
|
-
CozyClient.version = "35.4.
|
|
2672
|
+
CozyClient.version = "35.4.1";
|
|
2673
2673
|
|
|
2674
2674
|
_microee.default.mixin(CozyClient);
|
|
2675
2675
|
|
package/dist/context.js
CHANGED
|
@@ -12,7 +12,7 @@ var _react = require("react");
|
|
|
12
12
|
var _CozyClient = _interopRequireDefault(require("./CozyClient"));
|
|
13
13
|
|
|
14
14
|
var clientContext = /*#__PURE__*/(0, _react.createContext)({
|
|
15
|
-
/** @type {CozyClient} */
|
|
15
|
+
/** @type {CozyClient|null} */
|
|
16
16
|
client: null,
|
|
17
17
|
store: null
|
|
18
18
|
});
|
package/dist/hooks/useClient.js
CHANGED
|
@@ -16,7 +16,7 @@ var _CozyClient = _interopRequireDefault(require("../CozyClient"));
|
|
|
16
16
|
/**
|
|
17
17
|
* Returns the cozy client from the context
|
|
18
18
|
*
|
|
19
|
-
* @returns {CozyClient} - Current cozy client
|
|
19
|
+
* @returns {CozyClient|null} - Current cozy client
|
|
20
20
|
*/
|
|
21
21
|
var useClient = function useClient() {
|
|
22
22
|
var _useContext = (0, _react.useContext)(_context.default),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "35.4.
|
|
3
|
+
"version": "35.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
74
74
|
},
|
|
75
75
|
"sideEffects": false,
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "b15f653503e442f163ef356dbf31ae1adc6f42bf"
|
|
77
77
|
}
|
package/types/context.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export default useClient;
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns the cozy client from the context
|
|
4
4
|
*
|
|
5
|
-
* @returns {CozyClient} - Current cozy client
|
|
5
|
+
* @returns {CozyClient|null} - Current cozy client
|
|
6
6
|
*/
|
|
7
|
-
declare function useClient(): CozyClient;
|
|
7
|
+
declare function useClient(): CozyClient | null;
|
|
8
8
|
import CozyClient from "../CozyClient";
|