@bagelink/sdk 1.6.73 → 1.6.77
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/bin/utils.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/openAPITools/functionGenerator.ts +1 -1
package/bin/utils.ts
CHANGED
|
@@ -24,7 +24,7 @@ if (dirFlag !== undefined) {
|
|
|
24
24
|
// const bagelinkDir = join(cwd, (dirFlag ?? '.bagelink').replace(/\/$/, ''))
|
|
25
25
|
|
|
26
26
|
const bagelinkDir = join(cwd, dirFlag ?? '.bagelink')
|
|
27
|
-
const baseUrl = `${env.VITE_BAGEL_BASE_URL}`
|
|
27
|
+
const baseUrl = `${env.VITE_BAGEL_BASE_URL}` || 'http://localhost:8000'
|
|
28
28
|
|
|
29
29
|
const openApiUrl = `${baseUrl}/openapi.json`
|
|
30
30
|
|
package/dist/index.cjs
CHANGED
|
@@ -650,7 +650,7 @@ export interface UploadOptions {
|
|
|
650
650
|
* // Making a direct request with the axios instance
|
|
651
651
|
* const response = await axios.get('/some-endpoint');
|
|
652
652
|
*/
|
|
653
|
-
export const axios = ax.create({baseURL: ${baseURL}, withCredentials: true});
|
|
653
|
+
export const axios = ax.create({baseURL: '${baseURL}', withCredentials: true});
|
|
654
654
|
${tsString}`;
|
|
655
655
|
return templateCode.replace(/"([^"]+)":/g, "$1:");
|
|
656
656
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -644,7 +644,7 @@ export interface UploadOptions {
|
|
|
644
644
|
* // Making a direct request with the axios instance
|
|
645
645
|
* const response = await axios.get('/some-endpoint');
|
|
646
646
|
*/
|
|
647
|
-
export const axios = ax.create({baseURL: ${baseURL}, withCredentials: true});
|
|
647
|
+
export const axios = ax.create({baseURL: '${baseURL}', withCredentials: true});
|
|
648
648
|
${tsString}`;
|
|
649
649
|
return templateCode.replace(/"([^"]+)":/g, "$1:");
|
|
650
650
|
}
|
package/package.json
CHANGED
|
@@ -701,7 +701,7 @@ export interface UploadOptions {
|
|
|
701
701
|
* // Making a direct request with the axios instance
|
|
702
702
|
* const response = await axios.get('/some-endpoint');
|
|
703
703
|
*/
|
|
704
|
-
export const axios = ax.create({baseURL: ${baseURL}, withCredentials: true});
|
|
704
|
+
export const axios = ax.create({baseURL: '${baseURL}', withCredentials: true});
|
|
705
705
|
${tsString}`
|
|
706
706
|
|
|
707
707
|
// Remove potential double quotes around property names
|