@equinor/cpl-top-bar-react 1.0.2 → 1.0.3

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/dist/index.js CHANGED
@@ -2722,7 +2722,7 @@ function useAppUrlByNameAndEnvironment(appName, currentEnvironment, appUrls) {
2722
2722
  if (currentEnvironment === "local") {
2723
2723
  currentEnvironment = "dev";
2724
2724
  }
2725
- const configByEnvironment = appUrls[appName];
2725
+ const configByEnvironment = appUrls[appName] ?? {};
2726
2726
  const appUrlInCurrentEnvironment = configByEnvironment[currentEnvironment];
2727
2727
  return appUrlInCurrentEnvironment || "";
2728
2728
  }
package/dist/index.mjs CHANGED
@@ -2693,7 +2693,7 @@ function useAppUrlByNameAndEnvironment(appName, currentEnvironment, appUrls) {
2693
2693
  if (currentEnvironment === "local") {
2694
2694
  currentEnvironment = "dev";
2695
2695
  }
2696
- const configByEnvironment = appUrls[appName];
2696
+ const configByEnvironment = appUrls[appName] ?? {};
2697
2697
  const appUrlInCurrentEnvironment = configByEnvironment[currentEnvironment];
2698
2698
  return appUrlInCurrentEnvironment || "";
2699
2699
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/cpl-top-bar-react",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@equinor/eds-icons": "1.2.1",
20
20
  "@equinor/eds-tokens": "2.1.1",
21
- "@equinor/cpl-env-meta-bar-react": "2.0.2"
21
+ "@equinor/cpl-env-meta-bar-react": "2.0.3"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@equinor/eds-core-react": "2.3.4",
@@ -31,8 +31,8 @@
31
31
  "react-dom": "19.2.4",
32
32
  "styled-components": "6.3.9",
33
33
  "tsup": "8.5.1",
34
- "@equinor/cpl-eslint-config": "1.0.1",
35
- "@equinor/cpl-typescript-config": "0.0.3"
34
+ "@equinor/cpl-eslint-config": "1.0.2",
35
+ "@equinor/cpl-typescript-config": "0.0.4"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@equinor/eds-core-react": ">=2.2.0",