rest-on-couch-client
Advanced tools
Comparing version 3.3.0 to 3.3.1
# Changelog | ||
### [3.3.1](https://www.github.com/cheminfo/rest-on-couch-client/compare/v3.3.0...v3.3.1) (2021-09-01) | ||
### Bug Fixes | ||
* make sure param token is always used ([23f0cc0](https://www.github.com/cheminfo/rest-on-couch-client/commit/23f0cc02de1cad8decc94cc0bee9f898f292172e)) | ||
## [3.3.0](https://www.github.com/cheminfo/rest-on-couch-client/compare/v3.2.0...v3.3.0) (2021-08-30) | ||
@@ -4,0 +11,0 @@ |
@@ -11,2 +11,3 @@ import axios from 'axios'; | ||
withCredentials: true, | ||
params: accessToken ? { token: accessToken } : {}, | ||
paramsSerializer(params) { | ||
@@ -24,5 +25,2 @@ const keysToProcess = ['key', 'startkey', 'endkey']; | ||
} | ||
if (accessToken) { | ||
searchParams.append('token', accessToken); | ||
} | ||
return searchParams.toString(); | ||
@@ -29,0 +27,0 @@ }, |
@@ -13,2 +13,3 @@ "use strict"; | ||
withCredentials: true, | ||
params: accessToken ? { token: accessToken } : {}, | ||
paramsSerializer(params) { | ||
@@ -26,5 +27,2 @@ const keysToProcess = ['key', 'startkey', 'endkey']; | ||
} | ||
if (accessToken) { | ||
searchParams.append('token', accessToken); | ||
} | ||
return searchParams.toString(); | ||
@@ -31,0 +29,0 @@ }, |
{ | ||
"name": "rest-on-couch-client", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "A nodejs / browser client for rest-on-couch backend", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
226512
5081