@bagelink/workspace 1.7.53 → 1.7.55
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/README.md +3 -3
- package/dist/composable.d.cts +1 -1
- package/dist/composable.d.mts +1 -1
- package/dist/composable.d.ts +1 -1
- package/package.json +1 -1
- package/src/composable.ts +1 -1
package/README.md
CHANGED
|
@@ -166,7 +166,7 @@ import { useWorkspace, getApiUrl } from '@bagelink/workspace'
|
|
|
166
166
|
|
|
167
167
|
// In your app setup
|
|
168
168
|
const { proxy, host, mode } = useWorkspace()
|
|
169
|
-
const auth =
|
|
169
|
+
const auth = createAuth({ baseURL: proxy })
|
|
170
170
|
|
|
171
171
|
// Or get full API URL
|
|
172
172
|
const apiUrl = getApiUrl() // 'https://project.bagel.to/api'
|
|
@@ -177,10 +177,10 @@ const apiUrl = getApiUrl() // 'https://project.bagel.to/api'
|
|
|
177
177
|
```vue
|
|
178
178
|
<script setup lang="ts">
|
|
179
179
|
import { useWorkspace } from '@bagelink/workspace'
|
|
180
|
-
import {
|
|
180
|
+
import { createAuth } from '@bagelink/auth'
|
|
181
181
|
|
|
182
182
|
const { proxy, host, mode } = useWorkspace()
|
|
183
|
-
const auth =
|
|
183
|
+
const auth = createAuth({ baseURL: proxy })
|
|
184
184
|
|
|
185
185
|
console.log('API Host:', host)
|
|
186
186
|
console.log('Environment:', mode)
|
package/dist/composable.d.cts
CHANGED
|
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
|
|
|
21
21
|
* import { useWorkspace } from '@bagelink/workspace'
|
|
22
22
|
*
|
|
23
23
|
* const { proxy, host } = useWorkspace()
|
|
24
|
-
* const auth =
|
|
24
|
+
* const auth = createAuth({ baseURL: proxy })
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
27
|
* @example In Vue component
|
package/dist/composable.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
|
|
|
21
21
|
* import { useWorkspace } from '@bagelink/workspace'
|
|
22
22
|
*
|
|
23
23
|
* const { proxy, host } = useWorkspace()
|
|
24
|
-
* const auth =
|
|
24
|
+
* const auth = createAuth({ baseURL: proxy })
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
27
|
* @example In Vue component
|
package/dist/composable.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
|
|
|
21
21
|
* import { useWorkspace } from '@bagelink/workspace'
|
|
22
22
|
*
|
|
23
23
|
* const { proxy, host } = useWorkspace()
|
|
24
|
-
* const auth =
|
|
24
|
+
* const auth = createAuth({ baseURL: proxy })
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
27
|
* @example In Vue component
|
package/package.json
CHANGED
package/src/composable.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface RuntimeWorkspaceConfig {
|
|
|
22
22
|
* import { useWorkspace } from '@bagelink/workspace'
|
|
23
23
|
*
|
|
24
24
|
* const { proxy, host } = useWorkspace()
|
|
25
|
-
* const auth =
|
|
25
|
+
* const auth = createAuth({ baseURL: proxy })
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
28
28
|
* @example In Vue component
|