cozy-pouch-link 25.0.3 → 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 +11 -0
- package/dist/CozyPouchLink.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
17
|
## [25.0.3](https://github.com/cozy/cozy-client/compare/v25.0.2...v25.0.3) (2021-10-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package cozy-pouch-link
|
package/dist/CozyPouchLink.js
CHANGED
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "25.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"prepublishOnly": "yarn run build"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7a043fc6b05963fbffba691a09f8612bb01f457f"
|
|
35
35
|
}
|