@placeos/ts-client 4.8.1 → 4.8.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.8.1",
2
+ "version": "4.8.2",
3
3
  "license": "MIT",
4
4
  "name": "@placeos/ts-client",
5
5
  "author": "Alex Sorafumo <alex@place.tech>",
@@ -4,7 +4,6 @@ import { apiEndpoint } from '../auth/functions';
4
4
  import { get } from '../http/functions';
5
5
  import { create, query, remove, show, update } from '../resources/functions';
6
6
  import { PlaceResourceQueryOptions } from '../resources/interface';
7
- import { HashMap } from '../utilities/types';
8
7
  import { PlaceDomain } from './domain';
9
8
 
10
9
  /**
@@ -73,10 +72,10 @@ export function removeDomain(id: string) {
73
72
  }
74
73
 
75
74
  /**
76
- * Find the domain name by looking into domain registered email domains
75
+ * Find the domain associated with a user's email address
77
76
  * @param email Email address to lookup
78
77
  */
79
- export function lookupDomainByEmail(email: string): Observable<PlaceDomain> {
78
+ export function lookupDomainByEmail(email: string): Observable<string> {
80
79
  const url = `${apiEndpoint()}${PATH}/lookup/${encodeURIComponent(email)}`;
81
- return get(url).pipe(map((resp: HashMap) => process(resp as Partial<PlaceDomain>)));
80
+ return get(url).pipe(map((resp) => `${resp}`));
82
81
  }