From dd244fd3c85c36f9cd6d6b0b38d2a2ef930a2271 Mon Sep 17 00:00:00 2001 From: mycahjay Date: Thu, 28 Jul 2022 16:48:26 -0700 Subject: [PATCH 1/2] updated package.json --- package.json | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ebaf51037..32c3c897e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "blueimp-file-upload", + "name": "@soxhub/blueimp-file-upload", "version": "9.22.1", "title": "jQuery File Upload", "description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.", @@ -24,14 +24,11 @@ "php", "bootstrap" ], - "homepage": "https://github.com/blueimp/jQuery-File-Upload", - "author": { - "name": "Sebastian Tschan", - "url": "https://blueimp.net" - }, + "homepage": "https://github.com/soxhub/jQuery-File-Upload", + "author": "Sebastian Tschan; AuditBoard, Inc.", "repository": { "type": "git", - "url": "git://github.com/blueimp/jQuery-File-Upload.git" + "url": "git://github.com/soxhub/jQuery-File-Upload.git" }, "license": "MIT", "optionalDependencies": { @@ -52,4 +49,4 @@ "postversion": "git push --tags origin master && npm publish" }, "main": "js/jquery.fileupload.js" -} +} \ No newline at end of file From c205f5698de357ce53fba5aa8d038b85cbf10e18 Mon Sep 17 00:00:00 2001 From: mycahjay Date: Thu, 28 Jul 2022 16:51:07 -0700 Subject: [PATCH 2/2] replaced .then with .pipe in js/jquery.fileupload.js for jquery compatibility in auditboard/frontend --- js/jquery.fileupload.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/jquery.fileupload.js b/js/jquery.fileupload.js index 629f57a25..67f761462 100644 --- a/js/jquery.fileupload.js +++ b/js/jquery.fileupload.js @@ -656,7 +656,7 @@ data.process = function (resolveFunc, rejectFunc) { if (resolveFunc || rejectFunc) { data._processQueue = this._processQueue = - (this._processQueue || getPromise([this])).then( + (this._processQueue || getPromise([this])).pipe( function () { if (data.errorThrown) { return $.Deferred() @@ -664,7 +664,7 @@ } return getPromise(arguments); } - ).then(resolveFunc, rejectFunc); + ).pipe(resolveFunc, rejectFunc); } return this._processQueue || getPromise([this]); }; @@ -949,9 +949,9 @@ if (this.options.limitConcurrentUploads > 1) { slot = $.Deferred(); this._slots.push(slot); - pipe = slot.then(send); + pipe = slot.pipe(send); } else { - this._sequence = this._sequence.then(send, send); + this._sequence = this._sequence.pipe(send, send); pipe = this._sequence; } // Return the piped Promise object, enhanced with an abort method, @@ -1144,7 +1144,7 @@ $.map(entries, function (entry) { return that._handleFileTreeEntry(entry, path); }) - ).then(function () { + ).pipe(function () { return Array.prototype.concat.apply( [], arguments @@ -1213,7 +1213,7 @@ return $.when.apply( $, $.map(fileInput, this._getSingleFileInputFiles) - ).then(function () { + ).pipe(function () { return Array.prototype.concat.apply( [], arguments