pure-upload
Advanced tools
Comparing version 2.2.1 to 2.2.2
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 @@ -- |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
90425
2035
0