cozy-harvest-lib 9.32.4 → 9.32.7

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,37 @@
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
+ ## [9.32.7](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.32.6...cozy-harvest-lib@9.32.7) (2022-12-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add empty line to publish new version ([a43101c](https://github.com/cozy/cozy-libs/commit/a43101ca2a73eb683bdf3901e6fba3f3fd0e95e5))
12
+ * Fix some typos ([ce70773](https://github.com/cozy/cozy-libs/commit/ce7077349e943e8a75b1f720adeb2282f1e7997b))
13
+
14
+
15
+
16
+
17
+
18
+ ## [9.32.6](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.32.5...cozy-harvest-lib@9.32.6) (2022-12-08)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * Realtime unsubscribe error on OAuthService ([30551dc](https://github.com/cozy/cozy-libs/commit/30551dca65c21d8f982592fa5e197d2744911e81))
24
+
25
+
26
+
27
+
28
+
29
+ ## [9.32.5](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.32.4...cozy-harvest-lib@9.32.5) (2022-12-06)
30
+
31
+ **Note:** Version bump only for package cozy-harvest-lib
32
+
33
+
34
+
35
+
36
+
6
37
  ## [9.32.4](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@9.32.3...cozy-harvest-lib@9.32.4) (2022-12-05)
7
38
 
8
39
 
package/README.md CHANGED
@@ -9,7 +9,7 @@ With Harvest components, an app is able to:
9
9
  - configure konnectors
10
10
  - setup authentification informations
11
11
  - check for synchronized data
12
- - ..and much more in the future
12
+ - ...and much more in the future
13
13
 
14
14
  # Current version
15
15
 
@@ -362,9 +362,10 @@ function registerRealtime(_ref4) {
362
362
  konnector = _ref4.konnector;
363
363
  return function (resolve) {
364
364
  var realtime = client.plugins.realtime;
365
- realtime.subscribe('notified', 'io.cozy.accounts', OAUTH_REALTIME_CHANNEL, handleRealtime(konnector, resolve));
365
+ var handler = handleRealtime(konnector, resolve);
366
+ realtime.subscribe('notified', 'io.cozy.accounts', OAUTH_REALTIME_CHANNEL, handler);
366
367
  return function () {
367
- return realtime.unsubscribe('notified', 'io.cozy.accounts', OAUTH_REALTIME_CHANNEL, handleRealtime(konnector, resolve));
368
+ return realtime.unsubscribe('notified', 'io.cozy.accounts', OAUTH_REALTIME_CHANNEL, handler);
368
369
  };
369
370
  };
370
371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-harvest-lib",
3
- "version": "9.32.4",
3
+ "version": "9.32.7",
4
4
  "description": "Provides logic, modules and components for Cozy's harvest applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -29,7 +29,7 @@
29
29
  "@cozy/minilog": "^1.0.0",
30
30
  "@sentry/browser": "^6.0.1",
31
31
  "cozy-bi-auth": "0.0.25",
32
- "cozy-doctypes": "^1.85.4",
32
+ "cozy-doctypes": "^1.86.0",
33
33
  "cozy-logger": "^1.9.1",
34
34
  "date-fns": "^1.30.1",
35
35
  "final-form": "^4.18.5",
@@ -91,5 +91,5 @@
91
91
  "react-router-dom": "^5.0.1"
92
92
  },
93
93
  "sideEffects": false,
94
- "gitHead": "e05c102ddedafe5162d5f01f398c0d9655340321"
94
+ "gitHead": "dbc62005907b90378bbe2f60adb4e0cdfb869c24"
95
95
  }
@@ -250,18 +250,19 @@ function openIntentsApiInAppBrowser({
250
250
  function registerRealtime({ client, konnector }) {
251
251
  return resolve => {
252
252
  const realtime = client.plugins.realtime
253
+ const handler = handleRealtime(konnector, resolve)
253
254
  realtime.subscribe(
254
255
  'notified',
255
256
  'io.cozy.accounts',
256
257
  OAUTH_REALTIME_CHANNEL,
257
- handleRealtime(konnector, resolve)
258
+ handler
258
259
  )
259
260
  return () =>
260
261
  realtime.unsubscribe(
261
262
  'notified',
262
263
  'io.cozy.accounts',
263
264
  OAUTH_REALTIME_CHANNEL,
264
- handleRealtime(konnector, resolve)
265
+ handler
265
266
  )
266
267
  }
267
268
  }