New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/core

Package Overview
Dependencies
Maintainers
8
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/core - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

7

CHANGELOG.md
# @uppy/core
## 2.1.9
Released: 2022-04-27
Included in: Uppy v2.9.4
- @uppy/core: fix `TypeError` when file was removed (Antoine du Hamel / #3650)
## 2.1.8

@@ -4,0 +11,0 @@

4

lib/BasePlugin.js

@@ -84,3 +84,5 @@ /**

throw new Error('Extend the render method to add your plugin to a DOM element');
} // eslint-disable-next-line class-methods-use-this
} // TODO: remove in the next major version. It's not feasible to
// try to use plugins with other frameworks.
// eslint-disable-next-line class-methods-use-this

@@ -87,0 +89,0 @@

@@ -895,3 +895,3 @@ /* eslint-disable max-classes-per-file */

calculateProgress(file, data) {
if (!this.getFile(file.id)) {
if (file == null || !this.getFile(file.id)) {
this.log(`Not setting progress for a file that has been removed: ${file.id}`);

@@ -1785,3 +1785,3 @@ return;

Uppy.VERSION = "2.1.8";
Uppy.VERSION = "2.1.9";
module.exports = Uppy;
{
"name": "@uppy/core",
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
"version": "2.1.8",
"version": "2.1.9",
"license": "MIT",

@@ -25,3 +25,3 @@ "main": "lib/index.js",

"@uppy/store-default": "^2.0.3",
"@uppy/utils": "^4.0.6",
"@uppy/utils": "^4.0.7",
"lodash.throttle": "^4.1.1",

@@ -28,0 +28,0 @@ "mime-match": "^1.0.2",

@@ -78,2 +78,4 @@ /**

// TODO: remove in the next major version. It's not feasible to
// try to use plugins with other frameworks.
// eslint-disable-next-line class-methods-use-this

@@ -80,0 +82,0 @@ update () {}

@@ -854,3 +854,3 @@ /* eslint-disable max-classes-per-file */

calculateProgress (file, data) {
if (!this.getFile(file.id)) {
if (file == null || !this.getFile(file.id)) {
this.log(`Not setting progress for a file that has been removed: ${file.id}`)

@@ -857,0 +857,0 @@ return

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc