@golocalinteractive/golocal-cloud-wrapper 1.2.1 → 1.2.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.
@@ -9970,13 +9970,13 @@ function Vp(e) {
9970
9970
  (async () => {
9971
9971
  try {
9972
9972
  o(!0), s(null);
9973
- const d = await fetch("/navigation-config.json", {
9973
+ const d = process.env.APP_ENV === "local" ? "/navigation-config.json" : "https://dev.cloud.golocal.com/navigation-config.json", u = await fetch(d, {
9974
9974
  cache: "no-store"
9975
9975
  });
9976
- if (!d.ok)
9977
- throw new Error(`Failed to fetch navigation config: ${d.status}`);
9978
- const u = await d.json();
9979
- n(u);
9976
+ if (!u.ok)
9977
+ throw new Error(`Failed to fetch navigation config: ${u.status}`);
9978
+ const f = await u.json();
9979
+ n(f);
9980
9980
  } catch (d) {
9981
9981
  const u = d instanceof Error ? d.message : "Failed to fetch navigation config";
9982
9982
  s(u), e && n(e);
@@ -1 +1 @@
1
- {"version":3,"file":"use-navigation-config.d.ts","sourceRoot":"","sources":["../../src/hooks/use-navigation-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,mBAAmB,CAAC,YAAY,CAAC,EAAE,gBAAgB;;;;EAsClE"}
1
+ {"version":3,"file":"use-navigation-config.d.ts","sourceRoot":"","sources":["../../src/hooks/use-navigation-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,mBAAmB,CAAC,YAAY,CAAC,EAAE,gBAAgB;;;;EA2ClE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golocalinteractive/golocal-cloud-wrapper",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A React provider component for Go Local Interactive's cloud services",
5
5
  "license": "ISC",
6
6
  "author": "Tanner Barrett, Cody Lacey, Go Local Interactive",