Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/core

Package Overview
Dependencies
Maintainers
5
Versions
142
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.9.3 to 3.10.0

10

CHANGELOG.md
# @uppy/core
## 3.10.0
Released: 2024-03-27
Included in: Uppy v3.24.0
- @uppy/core: refine type of private variables (Antoine du Hamel / #5028)
- @uppy/core: fix some type errors (Antoine du Hamel / #5015)
- @uppy/core: various type fixes (Antoine du Hamel / #4995)
- @uppy/core,@uppy/provider-views: Fix breadcrumbs (Evgenia Karunus / #4986)
## 3.9.3

@@ -4,0 +14,0 @@

7

lib/Uppy.js

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

const packageJson = {
"version": "3.9.3"
"version": "3.10.0"
};

@@ -315,5 +315,2 @@ import locale from "./locale.js";

}
/** @deprecated */
on(event, callback) {

@@ -1168,3 +1165,3 @@ _classPrivateFieldLooseBase(this, _emitter)[_emitter].on(event, callback);

var _classPrivateFieldLoo;
if (!((_classPrivateFieldLoo = _classPrivateFieldLooseBase(this, _plugins)[_plugins].uploader) != null && _classPrivateFieldLoo.length)) {
if (!((_classPrivateFieldLoo = _classPrivateFieldLooseBase(this, _plugins)[_plugins]['uploader']) != null && _classPrivateFieldLoo.length)) {
this.log('No uploader type plugins are used', 'warning');

@@ -1171,0 +1168,0 @@ }

{
"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.9.3",
"version": "3.10.0",
"license": "MIT",

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

"@uppy/store-default": "^3.2.2",
"@uppy/utils": "^5.7.4",
"@uppy/utils": "^5.7.5",
"lodash": "^4.17.21",

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

@@ -19,3 +19,3 @@ /* eslint-disable class-methods-use-this */

import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { State, Uppy } from './Uppy'
import type { State, UnknownPlugin, Uppy } from './Uppy'

@@ -53,13 +53,13 @@ export type PluginOpts = {

id: string
id!: string
defaultLocale: OptionalPluralizeLocale
i18n: I18n
i18n!: I18n
i18nArray: Translator['translateArray']
i18nArray!: Translator['translateArray']
type: string
type!: string
VERSION: string
VERSION!: string

@@ -116,3 +116,3 @@ constructor(uppy: Uppy<M, B>, opts?: Opts) {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
addTarget(plugin: unknown): HTMLElement {
addTarget(plugin: UnknownPlugin<M, B>): HTMLElement | null {
throw new Error(

@@ -119,0 +119,0 @@ "Extend the addTarget method to add your plugin to another plugin's target",

export { default } from './Uppy.ts'
export {
default as Uppy,
type UppyEventMap,
type State,

@@ -9,2 +8,4 @@ type UnknownPlugin,

type UnknownSearchProviderPlugin,
type UploadResult,
type UppyEventMap,
} from './Uppy.ts'

@@ -11,0 +12,0 @@ export { default as UIPlugin } from './UIPlugin.ts'

@@ -44,3 +44,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */

file: UppyFile<M, B>
file!: UppyFile<M, B>

@@ -47,0 +47,0 @@ constructor(

@@ -48,11 +48,11 @@ /* eslint-disable class-methods-use-this */

> extends BasePlugin<Opts, M, B, PluginState> {
#updateUI: (state: Partial<State<M, B>>) => void
#updateUI!: (state: Partial<State<M, B>>) => void
isTargetDOMEl: boolean
isTargetDOMEl!: boolean
el: HTMLElement | null
el!: HTMLElement | null
parent: unknown
title: string
title!: string

@@ -141,3 +141,3 @@ getTargetPlugin<Me extends Meta, Bo extends Body>(

return this.el
return this.el!
}

@@ -153,3 +153,3 @@

this.onMount()
return this.el
return this.el!
}

@@ -156,0 +156,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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