@bagelink/sdk 1.6.71 → 1.6.73

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
@@ -18,7 +18,7 @@ import { BagelVue } from '@bagel/vue';
18
18
  import App from './App.vue';
19
19
 
20
20
  const BagelConfig = {
21
- host: import.meta.env.VITE_BAGEL_BASE_URL,
21
+ host: '/api',
22
22
  onError: (err: any) => {
23
23
  // handle error
24
24
  // example:
package/bin/index.ts CHANGED
@@ -11,7 +11,7 @@ const { bagelinkDir, shouldSplitFiles, openApiUrl, proc } = getKwargs()
11
11
  export async function loadTypes() {
12
12
  const { types, code } = await openAPI(
13
13
  openApiUrl,
14
- 'import.meta.env.VITE_BAGEL_BASE_URL'
14
+ '/api'
15
15
  )
16
16
 
17
17
  if (!fs.existsSync(bagelinkDir)) { fs.mkdirSync(bagelinkDir) }
package/bin/utils.ts CHANGED
@@ -25,13 +25,12 @@ if (dirFlag !== undefined) {
25
25
 
26
26
  const bagelinkDir = join(cwd, dirFlag ?? '.bagelink')
27
27
  const baseUrl = `${env.VITE_BAGEL_BASE_URL}`
28
- const baseUrlEnvStr = 'import.meta.env.VITE_BAGEL_BASE_URL'
28
+
29
29
  const openApiUrl = `${baseUrl}/openapi.json`
30
30
 
31
31
  export function getKwargs() {
32
32
  return {
33
33
  baseUrl,
34
- baseUrlEnvStr,
35
34
  openApiUrl,
36
35
  bagelinkDir,
37
36
  shouldSplitFiles,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "1.6.71",
4
+ "version": "1.6.73",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",