@bagelink/sdk 1.6.31 → 1.6.36

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Neveh Allon
3
+ Copyright (c) 2023 Bagel Studio
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.cjs CHANGED
@@ -450,7 +450,8 @@ function generateAxiosFunction(method, formattedPath, allParams, responseTypeStr
450
450
  if (allParams.includes("file: File")) {
451
451
  axiosFunction += `
452
452
  const formData = new FormData()
453
- formData.append('upload', file)
453
+ formData.append('file', file)
454
+ formData.append('upload', file)
454
455
  return axios.${method}(${formattedPath}, formData, {
455
456
  headers: { 'Content-Type': 'multipart/form-data' },
456
457
  onUploadProgress: options?.onUploadProgress${paramStr ? `, ${paramStr}` : ""}
package/dist/index.mjs CHANGED
@@ -444,7 +444,8 @@ function generateAxiosFunction(method, formattedPath, allParams, responseTypeStr
444
444
  if (allParams.includes("file: File")) {
445
445
  axiosFunction += `
446
446
  const formData = new FormData()
447
- formData.append('upload', file)
447
+ formData.append('file', file)
448
+ formData.append('upload', file)
448
449
  return axios.${method}(${formattedPath}, formData, {
449
450
  headers: { 'Content-Type': 'multipart/form-data' },
450
451
  onUploadProgress: options?.onUploadProgress${paramStr ? `, ${paramStr}` : ""}
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "1.6.31",
4
+ "version": "1.6.36",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
- "name": "Neveh Allon",
8
- "email": "neveh@bagelstudio.co.il",
9
- "url": "https://github.com/nevehallon"
7
+ "name": "Bagel Studio",
8
+ "email": "hi@bagelstudio.co.il"
10
9
  },
11
10
  "license": "MIT",
12
11
  "homepage": "https://github.com/bageldb/bagelink/tree/master/packages/sdk#readme",
@@ -369,7 +369,8 @@ function generateAxiosFunction(
369
369
  if (allParams.includes('file: File')) {
370
370
  axiosFunction += `
371
371
  const formData = new FormData()
372
- formData.append('upload', file)
372
+ formData.append('file', file)
373
+ formData.append('upload', file)
373
374
  return axios.${method}(${formattedPath}, formData, {
374
375
  headers: { 'Content-Type': 'multipart/form-data' },
375
376
  onUploadProgress: options?.onUploadProgress${paramStr ? `, ${paramStr}` : ''}