@equinor/fusion-framework-react-components-people-provider 1.3.8 → 1.4.1

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.
@@ -1 +1 @@
1
- export declare const version = "1.3.8";
1
+ export declare const version = "1.4.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-react-components-people-provider",
3
- "version": "1.3.8",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -23,20 +23,20 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "rxjs": "^7.8.1",
26
- "@equinor/fusion-framework-module-services": "^4.0.2",
27
- "@equinor/fusion-framework-react": "^7.0.8",
28
- "@equinor/fusion-framework-react-module": "^3.1.2",
29
- "@equinor/fusion-framework-react-module-bookmark": "^2.1.8",
30
- "@equinor/fusion-query": "^5.0.3"
26
+ "@equinor/fusion-framework-module-services": "^4.1.0",
27
+ "@equinor/fusion-framework-react": "^7.1.1",
28
+ "@equinor/fusion-framework-react-module-bookmark": "^2.1.10",
29
+ "@equinor/fusion-query": "^5.0.5",
30
+ "@equinor/fusion-framework-react-module": "^3.1.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@equinor/fusion-wc-person": "^2.6.7",
33
+ "@equinor/fusion-wc-person": "^2.6.8",
34
34
  "@types/react": "^18.2.50",
35
35
  "react": "^18.2.0",
36
36
  "typescript": "^5.4.2",
37
- "@equinor/fusion-framework-module-app": "^5.3.5",
38
- "@equinor/fusion-framework-module-bookmark": "^1.2.5",
39
- "@equinor/fusion-framework-module-event": "^4.1.2"
37
+ "@equinor/fusion-framework-module-app": "^5.3.7",
38
+ "@equinor/fusion-framework-module-event": "^4.1.2",
39
+ "@equinor/fusion-framework-module-bookmark": "^1.2.7"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -88,14 +88,20 @@ export class PersonController implements IPersonController {
88
88
  queueOperator: 'merge',
89
89
  key: ({ azureId }) => azureId,
90
90
  client: {
91
- fn: ({ azureId }, signal) => {
91
+ fn: ({ azureId }, signal): Observable<Blob> => {
92
92
  return client.photo('v2', 'blob$', { azureId }, { signal }).pipe(
93
+ map((result) => {
94
+ return result.blob;
95
+ }),
93
96
  catchError((err) => {
94
- const apiError = err as ApiProviderError;
95
- if (apiError.response.status === 404 && options?.fallbackImage) {
97
+ if (
98
+ (err as Error).name === 'ApiProviderError' &&
99
+ (err as ApiProviderError).response?.status === 404 &&
100
+ options?.fallbackImage
101
+ ) {
96
102
  return of(options?.fallbackImage);
97
103
  }
98
- return of(err);
104
+ throw err;
99
105
  }),
100
106
  );
101
107
  },
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.3.8';
2
+ export const version = '1.4.1';