@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 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 = initAuth({ baseURL: proxy })
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 { initAuth } from '@bagelink/auth'
180
+ import { createAuth } from '@bagelink/auth'
181
181
 
182
182
  const { proxy, host, mode } = useWorkspace()
183
- const auth = initAuth({ baseURL: proxy })
183
+ const auth = createAuth({ baseURL: proxy })
184
184
 
185
185
  console.log('API Host:', host)
186
186
  console.log('Environment:', mode)
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
21
21
  * import { useWorkspace } from '@bagelink/workspace'
22
22
  *
23
23
  * const { proxy, host } = useWorkspace()
24
- * const auth = initAuth({ baseURL: proxy })
24
+ * const auth = createAuth({ baseURL: proxy })
25
25
  * ```
26
26
  *
27
27
  * @example In Vue component
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
21
21
  * import { useWorkspace } from '@bagelink/workspace'
22
22
  *
23
23
  * const { proxy, host } = useWorkspace()
24
- * const auth = initAuth({ baseURL: proxy })
24
+ * const auth = createAuth({ baseURL: proxy })
25
25
  * ```
26
26
  *
27
27
  * @example In Vue component
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
21
21
  * import { useWorkspace } from '@bagelink/workspace'
22
22
  *
23
23
  * const { proxy, host } = useWorkspace()
24
- * const auth = initAuth({ baseURL: proxy })
24
+ * const auth = createAuth({ baseURL: proxy })
25
25
  * ```
26
26
  *
27
27
  * @example In Vue component
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/workspace",
3
3
  "type": "module",
4
- "version": "1.7.53",
4
+ "version": "1.7.55",
5
5
  "description": "Monorepo workspace tooling for Bagel projects with proxy and config management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
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 = initAuth({ baseURL: proxy })
25
+ * const auth = createAuth({ baseURL: proxy })
26
26
  * ```
27
27
  *
28
28
  * @example In Vue component