taxtank-core 0.31.25 → 0.31.26
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/esm2020/lib/interceptors/user-switcher-interceptor.mjs +2 -14
- package/esm2020/lib/services/http/user/user.service.mjs +2 -2
- package/fesm2015/taxtank-core.mjs +2 -13
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +2 -13
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15337,7 +15337,7 @@ class UserService extends RestService$1 {
|
|
|
15337
15337
|
* Search existing user
|
|
15338
15338
|
*/
|
|
15339
15339
|
search(email) {
|
|
15340
|
-
return this.http.get(`${this.apiUrl}/search
|
|
15340
|
+
return this.http.get(`${this.apiUrl}/search`, { params: { email } }).pipe(map((userBase) => this.createModelInstance(userBase)));
|
|
15341
15341
|
}
|
|
15342
15342
|
finishOnboarding(user) {
|
|
15343
15343
|
return this.put(user, `${this.apiUrl}/status`);
|
|
@@ -19192,18 +19192,7 @@ class UserSwitcherInterceptor {
|
|
|
19192
19192
|
if (!req.url.includes(this.environment.api_uri) || !username) {
|
|
19193
19193
|
return req;
|
|
19194
19194
|
}
|
|
19195
|
-
|
|
19196
|
-
fromString: req.params.toString(),
|
|
19197
|
-
// custom encoder to encode '+' symbol and other (Problem: TT-2359)
|
|
19198
|
-
// https://stackoverflow.com/questions/49438737/how-to-escape-angular-httpparams
|
|
19199
|
-
encoder: {
|
|
19200
|
-
encodeKey: (key) => encodeURIComponent(key),
|
|
19201
|
-
encodeValue: (value) => encodeURIComponent(value),
|
|
19202
|
-
decodeKey: (key) => decodeURIComponent(key),
|
|
19203
|
-
decodeValue: (value) => decodeURIComponent(value)
|
|
19204
|
-
}
|
|
19205
|
-
}).set('_switch_user', username);
|
|
19206
|
-
return req.clone({ params });
|
|
19195
|
+
return req.clone({ params: req.params.set('_switch_user', username) });
|
|
19207
19196
|
// @TODO move to header solution when backend can support it
|
|
19208
19197
|
// return req.clone({
|
|
19209
19198
|
// setHeaders: {
|