cozy-client 49.3.0 → 49.4.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.
@@ -2749,8 +2749,8 @@ var CozyClient = /*#__PURE__*/function () {
2749
2749
  * @template {string} T
2750
2750
  *
2751
2751
  * @param {string} slug - the cozy-app's slug containing the setting (can be 'instance' for global settings)
2752
- * @param {Record<string, any> | ((oldValue) => Record<T, any>)} itemsOrSetter - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
2753
- * @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
2752
+ * @param {Record<string, any> | ((oldValue) => Record<T, any>)} itemsOrSetter - The new values of the settings to save. It can be a raw dictionary, or a callback that should return a new dictionary
2753
+ * @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionary, or a callback that should return a new dictionary
2754
2754
  * @returns {Promise<any>} - The result of the `client.save()` call
2755
2755
  */
2756
2756
 
@@ -2997,7 +2997,7 @@ var CozyClient = /*#__PURE__*/function () {
2997
2997
  CozyClient.hooks = CozyClient.hooks || {};
2998
2998
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2999
2999
 
3000
- CozyClient.version = "49.3.0";
3000
+ CozyClient.version = "49.4.0";
3001
3001
 
3002
3002
  _microee.default.mixin(CozyClient);
3003
3003
 
@@ -87,9 +87,9 @@ var RealTimeQueries = function RealTimeQueries(_ref) {
87
87
 
88
88
  subscribe();
89
89
  return function () {
90
- realtime.unsubscribe('created', doctype, _realtime.dispatchCreate);
91
- realtime.unsubscribe('updated', doctype, _realtime.dispatchUpdate);
92
- realtime.unsubscribe('deleted', doctype, _realtime.dispatchDelete);
90
+ realtime.unsubscribe('created', doctype, handleCreated);
91
+ realtime.unsubscribe('updated', doctype, handleUpdated);
92
+ realtime.unsubscribe('deleted', doctype, handleDeleted);
93
93
  };
94
94
  }, [client, doctype]);
95
95
  return null;
@@ -87,8 +87,8 @@ var getSettings = /*#__PURE__*/function () {
87
87
  *
88
88
  * @param {CozyClient} client - Cozy client instance
89
89
  * @param {string} slug - the cozy-app's slug containing the setting (special cases are: 'instance' for global settings and 'bitwarden' for cozy-pass)
90
- * @param {Record<string, any> | ((oldValue) => Record<T, any>)} itemsOrSetter - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
91
- * @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
90
+ * @param {Record<string, any> | ((oldValue) => Record<T, any>)} itemsOrSetter - The new values of the settings to save. It can be a raw dictionary, or a callback that should return a new dictionary
91
+ * @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionary, or a callback that should return a new dictionary
92
92
  * @returns {Promise<any>} - The result of the `client.save()` call
93
93
  */
94
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "49.3.0",
3
+ "version": "49.4.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": "^49.0.0",
21
+ "cozy-stack-client": "^49.4.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": "d4e710d23db0b18a50f17bd1b2e22e5f082a7635"
78
+ "gitHead": "88fd1bdc2873a7c326326ead1beef006bc31a6cb"
79
79
  }
@@ -798,8 +798,8 @@ declare class CozyClient {
798
798
  * @template {string} T
799
799
  *
800
800
  * @param {string} slug - the cozy-app's slug containing the setting (can be 'instance' for global settings)
801
- * @param {Record<string, any> | ((oldValue) => Record<T, any>)} itemsOrSetter - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
802
- * @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
801
+ * @param {Record<string, any> | ((oldValue) => Record<T, any>)} itemsOrSetter - The new values of the settings to save. It can be a raw dictionary, or a callback that should return a new dictionary
802
+ * @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionary, or a callback that should return a new dictionary
803
803
  * @returns {Promise<any>} - The result of the `client.save()` call
804
804
  */
805
805
  saveAfterFetchSettings<T_2 extends string>(slug: string, itemsOrSetter: Record<string, any> | ((oldValue: any) => Record<T_2, any>), setterKeys?: T_2[]): Promise<any>;