@uppy/core
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1971,3 +1971,3 @@ "use strict"; | ||
Uppy.VERSION = "2.0.0"; | ||
Uppy.VERSION = "2.0.1"; | ||
module.exports = Uppy; | ||
@@ -1974,0 +1974,0 @@ module.exports.Uppy = 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.0.0", | ||
"version": "2.0.1", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "ab771cbe1cd87affd87c97bc983b19058e2e72bd" | ||
"gitHead": "8e4fae911af76b359f50faf667eb5ad118c6e8a1" | ||
} |
@@ -237,2 +237,4 @@ import * as UppyUtils from '@uppy/utils' | ||
off<K extends keyof UppyEventMap, TMeta extends IndexedObject<any>>(event: K, callback: UppyEventMap<TMeta>[K]): this | ||
/** | ||
@@ -239,0 +241,0 @@ * For use by plugins only. |
@@ -104,2 +104,9 @@ import { expectError, expectType } from 'tsd' | ||
}) | ||
// Separate event handlers | ||
const handleUpload = (file: UploadedUppyFile<Meta, unknown>) => { | ||
const meta = file.meta.myCustomMetadata | ||
} | ||
uppy.off<'upload-success', Meta>('upload-success', handleUpload) | ||
} | ||
@@ -106,0 +113,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
353584
6142
0