@equinor/fusion-framework-module-app
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -6,2 +6,8 @@ # Change Log | ||
## [1.4.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-app@1.4.0...@equinor/fusion-framework-module-app@1.4.1) (2022-11-18) | ||
### Bug Fixes | ||
- **module-app:** fallback to portal ([6778624](https://github.com/equinor/fusion-framework/commit/67786241c809e27d60a2411dd6bffba315d5f3a3)) | ||
## 1.4.0 (2022-11-17) | ||
@@ -8,0 +14,0 @@ |
@@ -23,3 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const serviceDiscovery = yield init.requireInstance('serviceDiscovery'); | ||
return yield serviceDiscovery.createClient('app'); | ||
try { | ||
return yield serviceDiscovery.createClient('app'); | ||
} | ||
catch (_a) { | ||
return yield serviceDiscovery.createClient('portal'); | ||
} | ||
} | ||
@@ -26,0 +31,0 @@ }); |
{ | ||
"name": "@equinor/fusion-framework-module-app", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "", | ||
@@ -39,3 +39,3 @@ "main": "dist/esm/index.js", | ||
}, | ||
"gitHead": "9ee572428e461bc7fb2a7c01692f4de1770d18c9" | ||
"gitHead": "00a66f5c1e6f5a7892804f1ba0f939cec8320001" | ||
} |
@@ -39,4 +39,10 @@ import { AnyModule, ModuleInitializerArgs } from '@equinor/fusion-framework-module'; | ||
const serviceDiscovery = await init.requireInstance('serviceDiscovery'); | ||
// TODO - remove when refactor portal service! | ||
/** resolve and create a client from discovery */ | ||
return await serviceDiscovery.createClient('app'); | ||
try { | ||
return await serviceDiscovery.createClient('app'); | ||
} catch { | ||
return await serviceDiscovery.createClient('portal'); | ||
} | ||
} | ||
@@ -43,0 +49,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146855
637