bt-core-app 1.2.7 → 1.2.8

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.
@@ -18,4 +18,5 @@ export declare function useAuthUrl(): string;
18
18
  * @returns
19
19
  */
20
20
  export declare function useDataUrl(microservice?: string): string;
21
- export declare function createUrl(options: CreateUrlOptions): void;
21
+ export declare function useUrls(): CreateUrlOptions;
22
+ export declare function createUrl(options: CreateUrlOptions): CreateUrlOptions;
package/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ export type { BTStoreDefinition, BTStore, StoreMode, StorageMode, LocalMeta, Loc
36
36
  export { createStoreBuilder, createStoreDefinition, useStore, useStoreDefinition, createWholeLastUpdateStoreDefinition, createSessionStoreDefinition } from './composables/stores';
37
37
  export type { UseTrackerOptions } from './composables/track';
38
38
  export { useTracker } from './composables/track';
39
- export { createUrl, useAuthUrl, useDbName, useDataUrl } from './composables/urls';
39
+ export { createUrl, useUrls, useAuthUrl, useDbName, useDataUrl } from './composables/urls';
40
40
  export * from './types';
41
41
  export type { CoreApp, CreateCoreOptions } from './core';
42
42
  export { createCore } from './core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
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": {
@@ -56,6 +56,11 @@ export function useDataUrl(microservice?: string): string {
56
56
  return other ?? urlSet.data ?? ''
57
57
  }
58
58
 
59
+ export function useUrls(): CreateUrlOptions {
60
+ return current
61
+ }
62
+
59
63
  export function createUrl(options: CreateUrlOptions) {
60
64
  current = options
65
+ return current
61
66
  }
package/src/index.ts CHANGED
@@ -36,7 +36,7 @@ export type { BTStoreDefinition, BTStore, StoreMode, StorageMode, LocalMeta, Loc
36
36
  export { createStoreBuilder, createStoreDefinition, useStore, useStoreDefinition, createWholeLastUpdateStoreDefinition, createSessionStoreDefinition } from './composables/stores'
37
37
  export type { UseTrackerOptions } from './composables/track'
38
38
  export { useTracker } from './composables/track'
39
- export { createUrl, useAuthUrl, useDbName, useDataUrl } from './composables/urls'
39
+ export { createUrl, useUrls, useAuthUrl, useDbName, useDataUrl } from './composables/urls'
40
40
  // export { useApi, useAuth, useDates, useDemo, useFilters, useNavigation, usePresets, usePWA, useStore } from './useApi'
41
41
  export * from './types'
42
42
  export type { CoreApp, CreateCoreOptions } from './core'