@connectedxm/client 6.5.2 → 6.5.3
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.d.ts +0 -2
- package/dist/index.js +16 -12
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -7967,21 +7967,25 @@ var useConnectedMutation = (mutation, options) => {
|
|
|
7967
7967
|
} = useConnected();
|
|
7968
7968
|
const queryClient = useQueryClient2();
|
|
7969
7969
|
return useMutation({
|
|
7970
|
-
mutationFn: (data) => mutation(
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7970
|
+
mutationFn: (data, context) => mutation(
|
|
7971
|
+
{
|
|
7972
|
+
queryClient,
|
|
7973
|
+
clientApiParams: {
|
|
7974
|
+
apiUrl,
|
|
7975
|
+
getToken,
|
|
7976
|
+
organizationId,
|
|
7977
|
+
getExecuteAs,
|
|
7978
|
+
locale
|
|
7979
|
+
},
|
|
7980
|
+
...data
|
|
7978
7981
|
},
|
|
7979
|
-
|
|
7980
|
-
|
|
7982
|
+
context
|
|
7983
|
+
),
|
|
7981
7984
|
...options,
|
|
7982
|
-
onError: (error, variables, context) => {
|
|
7985
|
+
onError: (error, variables, onMutateResult, context) => {
|
|
7983
7986
|
if (onMutationError) onMutationError(error, variables, context);
|
|
7984
|
-
if (options?.onError)
|
|
7987
|
+
if (options?.onError)
|
|
7988
|
+
options.onError(error, variables, onMutateResult, context);
|
|
7985
7989
|
}
|
|
7986
7990
|
});
|
|
7987
7991
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectedxm/client",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.3",
|
|
4
4
|
"description": "Client API javascript SDK",
|
|
5
5
|
"author": "ConnectedXM Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"upgrade": "ncu -i --format group"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"axios": "^1.
|
|
27
|
-
"immer": "^10.1.
|
|
26
|
+
"axios": "^1.12.2",
|
|
27
|
+
"immer": "^10.1.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@swc/core": "^1.13.
|
|
51
|
-
"@tanstack/react-query": "^5.
|
|
52
|
-
"@types/react": "^19.
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
54
|
-
"@typescript-eslint/parser": "^8.
|
|
55
|
-
"eslint": "^9.
|
|
50
|
+
"@swc/core": "^1.13.5",
|
|
51
|
+
"@tanstack/react-query": "^5.90.5",
|
|
52
|
+
"@types/react": "^19.2.2",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
54
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
55
|
+
"eslint": "^9.38.0",
|
|
56
56
|
"eslint-plugin-react": "^7.37.5",
|
|
57
57
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
-
"react": "^19.
|
|
58
|
+
"react": "^19.2.0",
|
|
59
59
|
"react-use-websocket": "^4.13.0",
|
|
60
60
|
"tsup": "^8.5.0",
|
|
61
|
-
"typescript": "^5.
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
62
|
"vitest": "^3.2.4"
|
|
63
63
|
},
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
65
|
+
"@rollup/rollup-linux-x64-gnu": "4.52.5"
|
|
66
66
|
}
|
|
67
67
|
}
|