@uppy/xhr-upload
Advanced tools
Comparing version 3.3.1 to 3.3.2
# @uppy/xhr-upload | ||
## 3.3.2 | ||
Released: 2023-08-15 | ||
Included in: Uppy v3.14.0 | ||
- @uppy/aws-s3-multipart,@uppy/aws-s3,@uppy/companion,@uppy/transloadit,@uppy/xhr-upload: use uppercase HTTP method names (Antoine du Hamel / #4612) | ||
- @uppy/aws-s3,@uppy/tus,@uppy/xhr-upload: Invoke headers function for remote uploads (Dominik Schmidt / #4596) | ||
## 3.3.1 | ||
@@ -4,0 +12,0 @@ |
@@ -16,3 +16,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.3.1" | ||
"version": "3.3.2" | ||
}; | ||
@@ -87,3 +87,3 @@ import locale from './locale.js'; | ||
useFormData: opts.formData, | ||
headers: opts.headers | ||
headers: typeof opts.headers === 'function' ? opts.headers(file) : opts.headers | ||
}, options); | ||
@@ -135,3 +135,3 @@ return res.token; | ||
fieldName: _opts.bundle ? 'files[]' : 'file', | ||
method: 'post', | ||
method: 'POST', | ||
allowedMetaFields: null, | ||
@@ -138,0 +138,0 @@ responseUrlFieldName: 'url', |
{ | ||
"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.3.1", | ||
"version": "3.3.2", | ||
"license": "MIT", | ||
@@ -28,4 +28,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^3.2.0", | ||
"@uppy/utils": "^5.4.0", | ||
"@uppy/companion-client": "^3.3.0", | ||
"@uppy/utils": "^5.4.3", | ||
"nanoid": "^4.0.0" | ||
@@ -38,4 +38,4 @@ }, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.3.0" | ||
"@uppy/core": "^3.4.0" | ||
} | ||
} |
@@ -65,3 +65,3 @@ import UploaderPlugin from '@uppy/core/lib/UploaderPlugin.js' | ||
fieldName: opts.bundle ? 'files[]' : 'file', | ||
method: 'post', | ||
method: 'POST', | ||
allowedMetaFields: null, | ||
@@ -370,3 +370,3 @@ responseUrlFieldName: 'url', | ||
useFormData: opts.formData, | ||
headers: opts.headers, | ||
headers: typeof opts.headers === 'function' ? opts.headers(file) : opts.headers, | ||
}, options) | ||
@@ -373,0 +373,0 @@ return res.token |
Sorry, the diff of this file is not supported yet
105092
Updated@uppy/utils@^5.4.3