cozy-client 51.3.1 → 51.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.
- package/dist/CozyClient.js +8 -14
- package/package.json +2 -2
package/dist/CozyClient.js
CHANGED
|
@@ -2607,32 +2607,26 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2607
2607
|
key: "loadInstanceOptionsFromStack",
|
|
2608
2608
|
value: function () {
|
|
2609
2609
|
var _loadInstanceOptionsFromStack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20() {
|
|
2610
|
-
var
|
|
2611
|
-
|
|
2610
|
+
var results, capabilitiesData, instanceData;
|
|
2612
2611
|
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
2613
2612
|
while (1) {
|
|
2614
2613
|
switch (_context20.prev = _context20.next) {
|
|
2615
2614
|
case 0:
|
|
2616
2615
|
_context20.next = 2;
|
|
2617
|
-
return this.query((0, _dsl.Q)('io.cozy.settings').getById('io.cozy.settings.capabilities'));
|
|
2616
|
+
return Promise.all([this.query((0, _dsl.Q)('io.cozy.settings').getById('io.cozy.settings.capabilities')), this.query((0, _dsl.Q)('io.cozy.settings').getById('io.cozy.settings.instance'))]);
|
|
2618
2617
|
|
|
2619
2618
|
case 2:
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
return this.query((0, _dsl.Q)('io.cozy.settings').getById('io.cozy.settings.instance'));
|
|
2624
|
-
|
|
2625
|
-
case 6:
|
|
2626
|
-
_yield$this$query2 = _context20.sent;
|
|
2627
|
-
instanceData = _yield$this$query2.data;
|
|
2619
|
+
results = _context20.sent;
|
|
2620
|
+
capabilitiesData = results[0].data;
|
|
2621
|
+
instanceData = results[1].data;
|
|
2628
2622
|
this.instanceOptions = {
|
|
2629
|
-
capabilities:
|
|
2623
|
+
capabilities: capabilitiesData,
|
|
2630
2624
|
locale: instanceData.locale,
|
|
2631
2625
|
tracking: instanceData.tracking
|
|
2632
2626
|
};
|
|
2633
2627
|
this.capabilities = this.instanceOptions.capabilities || null;
|
|
2634
2628
|
|
|
2635
|
-
case
|
|
2629
|
+
case 7:
|
|
2636
2630
|
case "end":
|
|
2637
2631
|
return _context20.stop();
|
|
2638
2632
|
}
|
|
@@ -3032,7 +3026,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
3032
3026
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
3033
3027
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
3034
3028
|
|
|
3035
|
-
CozyClient.version = "51.
|
|
3029
|
+
CozyClient.version = "51.4.0";
|
|
3036
3030
|
|
|
3037
3031
|
_microee.default.mixin(CozyClient);
|
|
3038
3032
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "51.
|
|
3
|
+
"version": "51.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
73
73
|
},
|
|
74
74
|
"sideEffects": false,
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "f13f75f38ad792fef00b574c27d46a99c0c294a2"
|
|
76
76
|
}
|