cozy-pouch-link 25.0.0 → 25.0.4

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
+ ## [25.0.4](https://github.com/cozy/cozy-client/compare/v25.0.3...v25.0.4) (2021-10-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Allow 401 errors for expired tokens ([cdd785d](https://github.com/cozy/cozy-client/commit/cdd785d93015ac8ec2a37e4b80fa77482d788ccf))
12
+
13
+
14
+
15
+
16
+
17
+ ## [25.0.3](https://github.com/cozy/cozy-client/compare/v25.0.2...v25.0.3) (2021-10-21)
18
+
19
+ **Note:** Version bump only for package cozy-pouch-link
20
+
21
+
22
+
23
+
24
+
25
+ ## [25.0.2](https://github.com/cozy/cozy-client/compare/v25.0.1...v25.0.2) (2021-10-14)
26
+
27
+ **Note:** Version bump only for package cozy-pouch-link
28
+
29
+
30
+
31
+
32
+
33
+ ## [25.0.1](https://github.com/cozy/cozy-client/compare/v25.0.0...v25.0.1) (2021-10-13)
34
+
35
+ **Note:** Version bump only for package cozy-pouch-link
36
+
37
+
38
+
39
+
40
+
6
41
  # [25.0.0](https://github.com/cozy/cozy-client/compare/v24.10.2...v25.0.0) (2021-10-12)
7
42
 
8
43
  **Note:** Version bump only for package cozy-pouch-link
@@ -107,8 +107,10 @@ exports.getReplicationURL = _getReplicationURL;
107
107
 
108
108
  var doNothing = function doNothing() {};
109
109
 
110
+ var expiredTokenError = /Expired token/;
111
+
110
112
  var isExpiredTokenError = function isExpiredTokenError(pouchError) {
111
- return pouchError.error === 'code=400, message=Expired token';
113
+ return expiredTokenError.test(pouchError.error);
112
114
  };
113
115
 
114
116
  exports.isExpiredTokenError = isExpiredTokenError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-pouch-link",
3
- "version": "25.0.0",
3
+ "version": "25.0.4",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@cozy/minilog": "1.0.0",
15
- "cozy-client": "^25.0.0",
15
+ "cozy-client": "^25.0.3",
16
16
  "cozy-device-helper": "^1.12.0",
17
17
  "pouchdb-browser": "^7.2.2",
18
18
  "pouchdb-find": "^7.2.2"
@@ -31,5 +31,5 @@
31
31
  "prepublishOnly": "yarn run build"
32
32
  },
33
33
  "sideEffects": false,
34
- "gitHead": "54512a84286eb95c617eaeb1dcb5dd2385ca9ac6"
34
+ "gitHead": "7a043fc6b05963fbffba691a09f8612bb01f457f"
35
35
  }