tsviewer 1.0.12 → 1.0.13

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.
@@ -12803,13 +12803,14 @@ function useHandleXhrError(e) {
12803
12803
  EventBus.$emit("ajaxError", e);
12804
12804
  }
12805
12805
  }
12806
- function useToken() {
12807
- const e = inject("useGetToken");
12806
+ const useToken = () => {
12807
+ const e = inject("getToken");
12808
12808
  if (!e)
12809
- throw new Error("useGetToken is not provided. Make sure to provide it in your app.");
12809
+ throw new Error(
12810
+ "getToken is not provided. Please use a Nuxt plugin or Vue app to provide it."
12811
+ );
12810
12812
  return e;
12811
- }
12812
- const getLayerIndex = (e, t, n) => {
12813
+ }, getLayerIndex = (e, t, n) => {
12813
12814
  const r = propOr("", e, t);
12814
12815
  return findIndex(propEq("id", r), n);
12815
12816
  }, initialState = () => ({