@unbxd-ui/unbxd-react-components 0.2.131 → 0.2.132

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.
@@ -152,7 +152,7 @@ var DataLoader = /*#__PURE__*/function () {
152
152
  var requestUrl = typeof url === "function" ? url(urlParams) : url;
153
153
  var reqMethod = method.toLowerCase();
154
154
  var requestMetadata = {
155
- method: reqMethod === "form_post" || reqMethod === "upload" ? "post" : method,
155
+ method: reqMethod === "form_post" || reqMethod === "upload" ? "post" : reqMethod === "upload_put" ? "put" : method,
156
156
  headers: _objectSpread(_objectSpread({}, this._commonHeaders), headers),
157
157
  signal: this.abortController[requestId] ? this.abortController[requestId].signal : null
158
158
  };
@@ -167,7 +167,7 @@ var DataLoader = /*#__PURE__*/function () {
167
167
  requestUrl = "".concat(requestUrl, "?").concat(_utils["default"].getQueryParams(finalRequestParams));
168
168
  } else if (["post", "delete", "put", "patch"].indexOf(reqMethod) > -1) {
169
169
  requestMetadata.body = JSON.stringify(finalRequestParams);
170
- } else if (reqMethod === "form_post" || reqMethod === "upload") {
170
+ } else if (reqMethod === "form_post" || reqMethod === "upload" || reqMethod === "upload_put") {
171
171
  var formData = new FormData();
172
172
  for (var key in finalRequestParams) {
173
173
  formData.append(key, finalRequestParams[key]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unbxd-ui/unbxd-react-components",
3
- "version": "0.2.131",
3
+ "version": "0.2.132",
4
4
  "description": "React components library",
5
5
  "keywords": [
6
6
  "react components",