bt-core-app 1.2.9 → 1.3.0
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/bt-core-app.js +2670 -2670
- package/dist/composables/urls.d.ts +1 -1
- package/package.json +1 -1
- package/src/composables/document-meta.ts +1 -1
- package/src/composables/urls.ts +4 -5
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ export function useDocumentMeta(options?: UseDocumentMetaOptions): BTDocumentMet
|
|
|
20
20
|
document.title = nearestWithTitle.meta.title as string
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
|
-
const env = import.meta.env.
|
|
23
|
+
const env = import.meta.env.NODE_ENV as Environment
|
|
24
24
|
let title = ''
|
|
25
25
|
|
|
26
26
|
if (env == 'development')
|
package/src/composables/urls.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface UrlSet {
|
|
|
16
16
|
let current: CreateUrlOptions
|
|
17
17
|
|
|
18
18
|
export function useDbName(): string {
|
|
19
|
-
const env = import.meta.env.
|
|
19
|
+
const env = import.meta.env.NODE_ENV as Environment
|
|
20
20
|
|
|
21
21
|
if (current == null)
|
|
22
22
|
return env as string
|
|
@@ -25,14 +25,13 @@ export function useDbName(): string {
|
|
|
25
25
|
return urlSet.localDbName ?? env as string
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export function useAuthUrl(
|
|
29
|
-
const env =
|
|
28
|
+
export function useAuthUrl(): string {
|
|
29
|
+
const env = import.meta.env.NODE_ENV 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)
|
|
36
35
|
return urlSet.auth ?? ''
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -42,7 +41,7 @@ export function useAuthUrl(environment?: Environment): string {
|
|
|
42
41
|
* @returns
|
|
43
42
|
*/
|
|
44
43
|
export function useDataUrl(microservice?: string): string {
|
|
45
|
-
const env = import.meta.env.
|
|
44
|
+
const env = import.meta.env.NODE_ENV as Environment
|
|
46
45
|
|
|
47
46
|
if (current == null)
|
|
48
47
|
return ''
|