cozy-sharing 3.12.10 → 4.0.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@3.12.10...cozy-sharing@4.0.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint:** Propose Eslint plugin promise ([1fded18](https://github.com/cozy/cozy-libs/commit/1fded18))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **eslint:** Most errors are not auto fixable,
|
|
17
|
+
if needed, use // disable-next-line
|
|
18
|
+
|
|
19
|
+
Or insert in .eslintrc:
|
|
20
|
+
{
|
|
21
|
+
"rules": {
|
|
22
|
+
"promise/always-return": "warn",
|
|
23
|
+
"promise/no-return-wrap": "warn",
|
|
24
|
+
"promise/param-names": "warn",
|
|
25
|
+
"promise/catch-or-return": "warn",
|
|
26
|
+
"promise/no-native": "warn",
|
|
27
|
+
"promise/no-nesting": "warn",
|
|
28
|
+
"promise/no-promise-in-callback": "warn",
|
|
29
|
+
"promise/no-callback-in-promise": "warn",
|
|
30
|
+
"promise/avoid-new": "warn",
|
|
31
|
+
"promise/no-new-statics": "warn",
|
|
32
|
+
"promise/no-return-in-finally": "warn",
|
|
33
|
+
"promise/valid-params": "warn"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.12.10](https://github.com/cozy/cozy-libs/compare/cozy-sharing@3.12.9...cozy-sharing@3.12.10) (2022-01-06)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package cozy-sharing
|
package/dist/SharingProvider.js
CHANGED
|
@@ -636,7 +636,8 @@ export var SharingProvider = /*#__PURE__*/function (_Component) {
|
|
|
636
636
|
}));
|
|
637
637
|
this.setState({
|
|
638
638
|
hasLoadedAtLeastOnePage: true
|
|
639
|
-
});
|
|
639
|
+
}); // eslint-disable-next-line promise/catch-or-return
|
|
640
|
+
|
|
640
641
|
fetchNextPermissions(permissions, this.dispatch, client).then(function () {
|
|
641
642
|
return _this2.setState({
|
|
642
643
|
allLoaded: true
|
|
@@ -207,13 +207,15 @@ var ShareDialogTwoStepsConfirmationContainer = function ShareDialogTwoStepsConfi
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
var onConfirmRecipient = function onConfirmRecipient() {
|
|
210
|
+
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
210
211
|
confirmRecipient(recipientConfirmationData).then(function () {
|
|
211
212
|
getRecipientsToBeConfirmed();
|
|
212
213
|
});
|
|
213
214
|
};
|
|
214
215
|
|
|
215
216
|
var onRejectRecipient = function onRejectRecipient() {
|
|
216
|
-
setStatus('loading');
|
|
217
|
+
setStatus('loading'); // eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
218
|
+
|
|
217
219
|
rejectRecipient(recipientConfirmationData).then(function () {
|
|
218
220
|
getRecipientsToBeConfirmed();
|
|
219
221
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"sideEffects": [
|
|
62
62
|
"*.css"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d0157461fc7919473be52fa994fed99c23b24ec2"
|
|
65
65
|
}
|
package/src/SharingProvider.jsx
CHANGED
|
@@ -185,6 +185,7 @@ export class SharingProvider extends Component {
|
|
|
185
185
|
})
|
|
186
186
|
)
|
|
187
187
|
this.setState({ hasLoadedAtLeastOnePage: true })
|
|
188
|
+
// eslint-disable-next-line promise/catch-or-return
|
|
188
189
|
fetchNextPermissions(permissions, this.dispatch, client).then(() =>
|
|
189
190
|
this.setState({ allLoaded: true })
|
|
190
191
|
)
|
|
@@ -173,6 +173,7 @@ const ShareDialogTwoStepsConfirmationContainer = ({
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
const onConfirmRecipient = () => {
|
|
176
|
+
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
176
177
|
confirmRecipient(recipientConfirmationData).then(() => {
|
|
177
178
|
getRecipientsToBeConfirmed()
|
|
178
179
|
})
|
|
@@ -180,6 +181,7 @@ const ShareDialogTwoStepsConfirmationContainer = ({
|
|
|
180
181
|
|
|
181
182
|
const onRejectRecipient = () => {
|
|
182
183
|
setStatus('loading')
|
|
184
|
+
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
183
185
|
rejectRecipient(recipientConfirmationData).then(() => {
|
|
184
186
|
getRecipientsToBeConfirmed()
|
|
185
187
|
})
|