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

pure-upload

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-upload - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

7

CHANGELOG.md
CHANGELOG
===
2.2.2
--
New features
-
Automatic clearing of manual upload file list after puting to queue is done on parameter.
2.2.0

@@ -5,0 +12,0 @@ --

6

index.js

@@ -154,6 +154,8 @@ "use strict";

}
UploadArea.prototype.start = function () {
UploadArea.prototype.start = function (autoClear) {
if (autoClear === void 0) { autoClear = false; }
if (this.options.manualStart && this.fileList) {
this.putFilesToQueue();
this.clear();
if (autoClear)
this.clear();
}

@@ -160,0 +162,0 @@ };

@@ -274,6 +274,7 @@ export function addEventHandler(el: Element | HTMLElement, event: string, handler: (ev: UIEvent) => void) {

start() {
start(autoClear: boolean = false) {
if (this.options.manualStart && this.fileList) {
this.putFilesToQueue();
this.clear();
if (autoClear)
this.clear();
}

@@ -280,0 +281,0 @@ }

{
"name": "pure-upload",
"version": "2.2.1",
"version": "2.2.2",
"description": "The pure upload library without dependencies",

@@ -5,0 +5,0 @@ "author": {

@@ -109,3 +109,3 @@ declare module "pure-upload" {

constructor(targetElement: HTMLElement, options: IUploadAreaOptions, uploader: Uploader, formForNoFileApi?: HTMLFormElement);
start(): void;
start(autoClear?: boolean): void;
clear(): void;

@@ -112,0 +112,0 @@ destroy(): void;

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