@uppy/xhr-upload
Advanced tools
Comparing version 3.0.3 to 3.0.4
# @uppy/xhr-upload | ||
## 3.0.4 | ||
Released: 2022-10-24 | ||
Included in: Uppy v3.2.2 | ||
- @uppy/aws-s3,@uppy/tus,@uppy/xhr-upload: replace `this.getState().files` with `this.uppy.getState().files` (Artur Paikin / #4167) | ||
## 3.0.3 | ||
@@ -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.0.3" | ||
"version": "3.0.4" | ||
}; | ||
@@ -391,3 +391,3 @@ import locale from './locale.js'; | ||
const serverToken = await _classPrivateFieldLooseBase(this, _queueRequestSocketToken)[_queueRequestSocketToken](file); | ||
if (this.getState().files[file.id]) return undefined; | ||
if (!this.uppy.getState().files[file.id]) return undefined; | ||
this.uppy.setFileState(file.id, { | ||
@@ -394,0 +394,0 @@ serverToken |
{ | ||
"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.0.3", | ||
"version": "3.0.4", | ||
"license": "MIT", | ||
@@ -37,4 +37,4 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@uppy/core": "^3.0.3" | ||
"@uppy/core": "^3.0.4" | ||
} | ||
} |
@@ -388,3 +388,3 @@ import BasePlugin from '@uppy/core/lib/BasePlugin.js' | ||
if (this.getState().files[file.id]) return undefined | ||
if (!this.uppy.getState().files[file.id]) return undefined | ||
@@ -391,0 +391,0 @@ this.uppy.setFileState(file.id, { serverToken }) |
Sorry, the diff of this file is not supported yet
101785