cozy-client 41.1.0 → 41.2.0
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
CHANGED
|
@@ -2695,7 +2695,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2695
2695
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2696
2696
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2697
2697
|
|
|
2698
|
-
CozyClient.version = "41.
|
|
2698
|
+
CozyClient.version = "41.2.0";
|
|
2699
2699
|
|
|
2700
2700
|
_microee.default.mixin(CozyClient);
|
|
2701
2701
|
|
|
@@ -24,9 +24,13 @@ var _useClient = _interopRequireDefault(require("./useClient"));
|
|
|
24
24
|
*
|
|
25
25
|
* @returns {import("../types").UseMutationReturnValue}
|
|
26
26
|
*/
|
|
27
|
-
var useMutation = function useMutation(
|
|
28
|
-
var
|
|
29
|
-
|
|
27
|
+
var useMutation = function useMutation() {
|
|
28
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
29
|
+
_ref$onSuccess = _ref.onSuccess,
|
|
30
|
+
onSuccess = _ref$onSuccess === void 0 ? undefined : _ref$onSuccess,
|
|
31
|
+
_ref$onError = _ref.onError,
|
|
32
|
+
onError = _ref$onError === void 0 ? undefined : _ref$onError;
|
|
33
|
+
|
|
30
34
|
var client = (0, _useClient.default)();
|
|
31
35
|
/** @type {import("../types").useState<import("../types").QueryFetchStatus>} */
|
|
32
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/jest": "^26.0.20",
|
|
19
19
|
"@types/lodash": "^4.14.170",
|
|
20
20
|
"btoa": "^1.2.1",
|
|
21
|
-
"cozy-stack-client": "^41.
|
|
21
|
+
"cozy-stack-client": "^41.2.0",
|
|
22
22
|
"date-fns": "2.29.3",
|
|
23
23
|
"json-stable-stringify": "^1.0.1",
|
|
24
24
|
"lodash": "^4.17.13",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "1be3ded46609044dc31991b58007e33cb25dd462"
|
|
79
79
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @returns {import("../types").UseMutationReturnValue}
|
|
5
5
|
*/
|
|
6
|
-
export function useMutation({ onSuccess, onError }
|
|
7
|
-
onSuccess
|
|
8
|
-
onError
|
|
6
|
+
export function useMutation({ onSuccess, onError }?: {
|
|
7
|
+
onSuccess?: any;
|
|
8
|
+
onError?: any;
|
|
9
9
|
}): import("../types").UseMutationReturnValue;
|
|
10
10
|
export namespace useMutation {
|
|
11
11
|
namespace propTypes {
|