bt-core-app 1.2.8 → 1.2.9

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.
@@ -17932,9 +17932,12 @@ function $v() {
17932
17932
  const e = "production";
17933
17933
  return En == null ? e : (En[e] ?? En.development).localDbName ?? e;
17934
17934
  }
17935
- function Nd() {
17936
- const e = "production";
17937
- return En == null ? "" : (En[e] ?? En.development).auth ?? "";
17935
+ function Nd(e) {
17936
+ const t = e ?? "production";
17937
+ if (En == null)
17938
+ return "";
17939
+ const n = En[t] ?? En.development;
17940
+ return console.log(n), n.auth ?? "";
17938
17941
  }
17939
17942
  function t_(e) {
17940
17943
  const t = "production";
@@ -11,7 +11,7 @@ export interface UrlSet {
11
11
  other?: any;
12
12
  }
13
13
  export declare function useDbName(): string;
14
- export declare function useAuthUrl(): string;
14
+ export declare function useAuthUrl(environment?: Environment): string;
15
15
  /**
16
16
  *
17
17
  * @param microservice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {
@@ -25,13 +25,14 @@ export function useDbName(): string {
25
25
  return urlSet.localDbName ?? env as string
26
26
  }
27
27
 
28
- export function useAuthUrl(): string {
29
- const env = import.meta.env.MODE as Environment
28
+ export function useAuthUrl(environment?: Environment): string {
29
+ const env = environment ?? import.meta.env.MODE as Environment
30
30
 
31
31
  if (current == null)
32
32
  return ''
33
33
 
34
34
  const urlSet = current[env] ?? current['development']
35
+ console.log(urlSet)
35
36
  return urlSet.auth ?? ''
36
37
  }
37
38