@bagelink/sdk 0.0.596 → 0.0.600
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/dist/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -531,6 +531,7 @@ class Bagel {
|
|
|
531
531
|
const formData = new FormData();
|
|
532
532
|
formData.append("file", file);
|
|
533
533
|
let url = "/static_files/upload";
|
|
534
|
+
console.log(options?.topic);
|
|
534
535
|
if (options?.topic)
|
|
535
536
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
536
537
|
const { data } = await axios.post(url, formData, {
|
package/dist/index.mjs
CHANGED
|
@@ -525,6 +525,7 @@ class Bagel {
|
|
|
525
525
|
const formData = new FormData();
|
|
526
526
|
formData.append("file", file);
|
|
527
527
|
let url = "/static_files/upload";
|
|
528
|
+
console.log(options?.topic);
|
|
528
529
|
if (options?.topic)
|
|
529
530
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
530
531
|
const { data } = await axios.post(url, formData, {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -320,6 +320,7 @@ export class Bagel {
|
|
|
320
320
|
const formData = new FormData()
|
|
321
321
|
formData.append('file', file)
|
|
322
322
|
let url = '/static_files/upload'
|
|
323
|
+
console.log(options?.topic)
|
|
323
324
|
if (options?.topic) url = `/static_files/upload?topic=${options.topic}`
|
|
324
325
|
// get an indication of the progress
|
|
325
326
|
const { data } = await axios.post<T>(url, formData, {
|