cozy-harvest-lib 6.15.2 → 7.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
|
+
# [7.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.15.2...cozy-harvest-lib@7.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
|
## [6.15.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@6.15.1...cozy-harvest-lib@6.15.2) (2022-01-06)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package cozy-harvest-lib
|
package/dist/cli/cli.js
CHANGED
|
@@ -334,11 +334,13 @@ var main = /*#__PURE__*/function () {
|
|
|
334
334
|
return function main() {
|
|
335
335
|
return _ref5.apply(this, arguments);
|
|
336
336
|
};
|
|
337
|
-
}();
|
|
337
|
+
}(); // eslint-disable-next-line promise/catch-or-return
|
|
338
|
+
|
|
338
339
|
|
|
339
340
|
main().catch(function (e) {
|
|
340
341
|
logger.error(e);
|
|
341
342
|
process.exit(1);
|
|
342
|
-
})
|
|
343
|
+
}) // eslint-disable-next-line promise/always-return
|
|
344
|
+
.then(function () {
|
|
343
345
|
process.exit(0);
|
|
344
346
|
});
|
|
@@ -60,7 +60,8 @@ export var OAuthForm = /*#__PURE__*/function (_PureComponent) {
|
|
|
60
60
|
if (konnectorPolicy.fetchExtraOAuthUrlParams) {
|
|
61
61
|
this.setState({
|
|
62
62
|
needExtraParams: true
|
|
63
|
-
});
|
|
63
|
+
}); // eslint-disable-next-line promise/catch-or-return
|
|
64
|
+
|
|
64
65
|
konnectorPolicy.fetchExtraOAuthUrlParams({
|
|
65
66
|
flow: flow,
|
|
66
67
|
account: account,
|
|
@@ -319,7 +319,8 @@ export var ConnectionFlow = /*#__PURE__*/function () {
|
|
|
319
319
|
|
|
320
320
|
if (this.jobWatcher) {
|
|
321
321
|
this.jobWatcher.disableSuccessTimer();
|
|
322
|
-
}
|
|
322
|
+
} // eslint-disable-next-line promise/param-names
|
|
323
|
+
|
|
323
324
|
|
|
324
325
|
return new Promise(function (rawResolve) {
|
|
325
326
|
var accountId = _this.account._id;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-harvest-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Provides logic, modules and components for Cozy's harvest applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"cozy-device-helper": "^1.15.0",
|
|
57
57
|
"cozy-flags": "^2.8.3",
|
|
58
58
|
"cozy-keys-lib": "3.8.0",
|
|
59
|
-
"cozy-realtime": "^
|
|
59
|
+
"cozy-realtime": "^4.0.0",
|
|
60
60
|
"cozy-ui": "^57.6.0",
|
|
61
61
|
"enzyme": "3.11.0",
|
|
62
62
|
"enzyme-adapter-react-16": "1.15.6",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"react-router-dom": "^5.0.1"
|
|
86
86
|
},
|
|
87
87
|
"sideEffects": false,
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "d0157461fc7919473be52fa994fed99c23b24ec2"
|
|
89
89
|
}
|
package/src/cli/cli.js
CHANGED
|
@@ -201,11 +201,13 @@ const main = async () => {
|
|
|
201
201
|
await args.handler(args, client)
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
// eslint-disable-next-line promise/catch-or-return
|
|
204
205
|
main()
|
|
205
206
|
.catch(e => {
|
|
206
207
|
logger.error(e)
|
|
207
208
|
process.exit(1)
|
|
208
209
|
})
|
|
210
|
+
// eslint-disable-next-line promise/always-return
|
|
209
211
|
.then(() => {
|
|
210
212
|
process.exit(0)
|
|
211
213
|
})
|
|
@@ -255,6 +255,7 @@ export class ConnectionFlow {
|
|
|
255
255
|
this.jobWatcher.disableSuccessTimer()
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
// eslint-disable-next-line promise/param-names
|
|
258
259
|
return new Promise(rawResolve => {
|
|
259
260
|
const accountId = this.account._id
|
|
260
261
|
assert(accountId, 'Cannot wait for two fa on account without id')
|