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 3.0.0-beta.1 to 3.0.0-beta.2

14

CHANGELOG.md
# @uppy/core
## 3.0.0-beta.2
Released: 2022-07-27
Included in: Uppy v3.0.0-beta.3
- @uppy/aws-s3,@uppy/core,@uppy/dashboard,@uppy/store-redux,@uppy/xhr-upload: upgrade `nanoid` to v4 (Antoine du Hamel / #3904)
## 3.0.0-beta.1

@@ -10,2 +17,9 @@

## 2.3.2
Released: 2022-07-27
Included in: Uppy v2.13.1
- @uppy/core: Add missing type for retry-all event (Luc Boissaye / #3901)
## 2.3.1

@@ -12,0 +26,0 @@

10

lib/Uppy.js

@@ -25,3 +25,3 @@ let _Symbol$for, _Symbol$for2;

const packageJson = {
"version": "3.0.0-beta.1"
"version": "3.0.0-beta.2"
};

@@ -703,2 +703,10 @@ import locale from './locale.js';

const {
capabilities
} = this.getState();
if (newFileIDs.length !== currentUploads[uploadID].fileIDs.length && !capabilities.individualCancellation) {
throw new Error('individualCancellation is disabled');
}
updatedUploads[uploadID] = { ...currentUploads[uploadID],

@@ -705,0 +713,0 @@ fileIDs: newFileIDs

4

package.json
{
"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": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"license": "MIT",

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

"namespace-emitter": "^2.0.1",
"nanoid": "^3.1.25",
"nanoid": "^4.0.0",
"preact": "^10.5.13"

@@ -33,0 +33,0 @@ },

@@ -680,2 +680,8 @@ /* eslint-disable max-classes-per-file */

const { capabilities } = this.getState()
if (newFileIDs.length !== currentUploads[uploadID].fileIDs.length
&& !capabilities.individualCancellation) {
throw new Error('individualCancellation is disabled')
}
updatedUploads[uploadID] = {

@@ -682,0 +688,0 @@ ...currentUploads[uploadID],

@@ -219,2 +219,4 @@ import * as UppyUtils from '@uppy/utils'

export type UploadRetryCallback = (fileID: string) => void;
export type RetryAllCallback = (fileIDs: string[]) => void;
// TODO: reverse the order in the next major version

@@ -236,2 +238,3 @@ export type RestrictionFailedCallback<TMeta> = (file: UppyFile<TMeta> | undefined, error: Error) => void;

'upload-retry': UploadRetryCallback
'retry-all': RetryAllCallback
'info-visible': GenericEventCallback

@@ -238,0 +241,0 @@ 'info-hidden': GenericEventCallback

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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