cozy-client 49.3.0 → 49.3.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 +3 -3
- package/dist/helpers/settings.js +2 -2
- package/package.json +2 -2
- package/types/CozyClient.d.ts +2 -2
package/dist/CozyClient.js
CHANGED
|
@@ -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
|
|
2753
|
-
* @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw
|
|
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.
|
|
3000
|
+
CozyClient.version = "49.3.1";
|
|
3001
3001
|
|
|
3002
3002
|
_microee.default.mixin(CozyClient);
|
|
3003
3003
|
|
package/dist/helpers/settings.js
CHANGED
|
@@ -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
|
|
91
|
-
* @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw
|
|
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.
|
|
3
|
+
"version": "49.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -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": "0024bcd86257c0ba5a932a7b2df3a0b72622f77f"
|
|
79
79
|
}
|
package/types/CozyClient.d.ts
CHANGED
|
@@ -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
|
|
802
|
-
* @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw
|
|
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>;
|