cozy-client 46.5.0 → 46.6.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
|
@@ -2705,7 +2705,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2705
2705
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2706
2706
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2707
2707
|
|
|
2708
|
-
CozyClient.version = "46.
|
|
2708
|
+
CozyClient.version = "46.6.0";
|
|
2709
2709
|
|
|
2710
2710
|
_microee.default.mixin(CozyClient);
|
|
2711
2711
|
|
|
@@ -42,6 +42,8 @@ var authenticateWithReactNativeInAppBrowser = /*#__PURE__*/function () {
|
|
|
42
42
|
switch (_context.prev = _context.next) {
|
|
43
43
|
case 0:
|
|
44
44
|
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
45
|
+
var linkingSubscription = null;
|
|
46
|
+
|
|
45
47
|
_reactNativeInappbrowserReborn.InAppBrowser.open(url, {
|
|
46
48
|
// iOS Properties
|
|
47
49
|
readerMode: false,
|
|
@@ -72,10 +74,6 @@ var authenticateWithReactNativeInAppBrowser = /*#__PURE__*/function () {
|
|
|
72
74
|
}
|
|
73
75
|
});
|
|
74
76
|
|
|
75
|
-
var removeListener = function removeListener() {
|
|
76
|
-
_reactNative.Linking.removeEventListener('url', linkListener);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
77
|
var linkListener = function linkListener(_ref2) {
|
|
80
78
|
var url = _ref2.url;
|
|
81
79
|
var sanitizedUrl = url;
|
|
@@ -99,7 +97,7 @@ var authenticateWithReactNativeInAppBrowser = /*#__PURE__*/function () {
|
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
resolve(sanitizedUrl);
|
|
102
|
-
|
|
100
|
+
linkingSubscription.remove();
|
|
103
101
|
|
|
104
102
|
_reactNativeInappbrowserReborn.InAppBrowser.close();
|
|
105
103
|
} else if (closeSignal) {
|
|
@@ -107,7 +105,7 @@ var authenticateWithReactNativeInAppBrowser = /*#__PURE__*/function () {
|
|
|
107
105
|
}
|
|
108
106
|
};
|
|
109
107
|
|
|
110
|
-
_reactNative.Linking.addEventListener('url', linkListener);
|
|
108
|
+
linkingSubscription = _reactNative.Linking.addEventListener('url', linkListener);
|
|
111
109
|
}));
|
|
112
110
|
|
|
113
111
|
case 1:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "46.
|
|
3
|
+
"version": "46.6.0",
|
|
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": "2db9ddc1efab3585cb6be5539e1b40df1a0f57da"
|
|
79
79
|
}
|