@uppy/xhr-upload
Advanced tools
Comparing version 3.6.6 to 3.6.7
# @uppy/xhr-upload | ||
## 3.6.7 | ||
Released: 2024-05-23 | ||
Included in: Uppy v3.25.5 | ||
- @uppy/xhr-upload: fix regression for lowercase HTTP methods (Antoine du Hamel / #5179) | ||
## 3.6.6 | ||
@@ -4,0 +11,0 @@ |
@@ -19,3 +19,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
const packageJson = { | ||
"version": "3.6.6" | ||
"version": "3.6.7" | ||
}; | ||
@@ -185,4 +185,6 @@ import locale from "./locale.js"; | ||
try { | ||
var _options$method; | ||
const res = await fetcher(url, { | ||
...options, | ||
method: options == null || (_options$method = options.method) == null ? void 0 : _options$method.toUpperCase(), | ||
onTimeout: timeout => { | ||
@@ -189,0 +191,0 @@ const seconds = Math.ceil(timeout / 1000); |
{ | ||
"name": "@uppy/xhr-upload", | ||
"description": "Plain and simple classic HTML multipart form uploads with Uppy, as well as uploads using the HTTP PUT method.", | ||
"version": "3.6.6", | ||
"version": "3.6.7", | ||
"license": "MIT", | ||
@@ -36,4 +36,4 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@uppy/core": "^3.11.1" | ||
"@uppy/core": "^3.11.3" | ||
} | ||
} |
@@ -217,2 +217,3 @@ import BasePlugin from '@uppy/core/lib/BasePlugin.js' | ||
...options, | ||
method: options?.method?.toUpperCase(), | ||
onTimeout: (timeout) => { | ||
@@ -219,0 +220,0 @@ const seconds = Math.ceil(timeout / 1000) |
Sorry, the diff of this file is not supported yet
82940
1112