Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3
@@ -227,3 +227,3 @@ "use strict"; | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "4.0.0-alpha.2", | ||
VERSION: 'js' + "4.0.0-alpha.3", | ||
APPLICATION_ID: null, | ||
@@ -230,0 +230,0 @@ JAVASCRIPT_KEY: null, |
@@ -258,4 +258,4 @@ "use strict"; | ||
function handleProgress(type, event) { | ||
if (options && typeof options.progress === 'function') { | ||
if (options && typeof options.progress === 'function') { | ||
var handleProgress = function handleProgress(type, event) { | ||
if (event.lengthComputable) { | ||
@@ -270,13 +270,13 @@ options.progress(event.loaded / event.total, event.loaded, event.total, { | ||
} | ||
} | ||
} | ||
}; | ||
xhr.onprogress = function (event) { | ||
handleProgress('download', event); | ||
}; | ||
xhr.onprogress = function (event) { | ||
handleProgress('download', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = function (event) { | ||
handleProgress('upload', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = function (event) { | ||
handleProgress('upload', event); | ||
}; | ||
} | ||
} | ||
@@ -283,0 +283,0 @@ |
@@ -220,3 +220,3 @@ "use strict"; | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "4.0.0-alpha.2", | ||
VERSION: 'js' + "4.0.0-alpha.3", | ||
APPLICATION_ID: null, | ||
@@ -223,0 +223,0 @@ JAVASCRIPT_KEY: null, |
@@ -202,4 +202,4 @@ "use strict"; | ||
function handleProgress(type, event) { | ||
if (options && typeof options.progress === 'function') { | ||
if (options && typeof options.progress === 'function') { | ||
const handleProgress = function (type, event) { | ||
if (event.lengthComputable) { | ||
@@ -214,13 +214,13 @@ options.progress(event.loaded / event.total, event.loaded, event.total, { | ||
} | ||
} | ||
} | ||
}; | ||
xhr.onprogress = event => { | ||
handleProgress('download', event); | ||
}; | ||
xhr.onprogress = event => { | ||
handleProgress('download', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = event => { | ||
handleProgress('upload', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = event => { | ||
handleProgress('upload', event); | ||
}; | ||
} | ||
} | ||
@@ -227,0 +227,0 @@ |
@@ -11,3 +11,3 @@ var config = { | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "4.0.0-alpha.2", | ||
VERSION: 'js' + "4.0.0-alpha.3", | ||
APPLICATION_ID: null, | ||
@@ -14,0 +14,0 @@ JAVASCRIPT_KEY: null, |
@@ -186,4 +186,4 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
function handleProgress(type, event) { | ||
if (options && typeof options.progress === 'function') { | ||
if (options && typeof options.progress === 'function') { | ||
var handleProgress = function handleProgress(type, event) { | ||
if (event.lengthComputable) { | ||
@@ -198,13 +198,13 @@ options.progress(event.loaded / event.total, event.loaded, event.total, { | ||
} | ||
} | ||
} | ||
}; | ||
xhr.onprogress = function (event) { | ||
handleProgress('download', event); | ||
}; | ||
xhr.onprogress = function (event) { | ||
handleProgress('download', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = function (event) { | ||
handleProgress('upload', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = function (event) { | ||
handleProgress('upload', event); | ||
}; | ||
} | ||
} | ||
@@ -211,0 +211,0 @@ |
@@ -227,3 +227,3 @@ "use strict"; | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "4.0.0-alpha.2", | ||
VERSION: 'js' + "4.0.0-alpha.3", | ||
APPLICATION_ID: null, | ||
@@ -230,0 +230,0 @@ JAVASCRIPT_KEY: null, |
@@ -259,4 +259,4 @@ "use strict"; | ||
function handleProgress(type, event) { | ||
if (options && typeof options.progress === 'function') { | ||
if (options && typeof options.progress === 'function') { | ||
var handleProgress = function handleProgress(type, event) { | ||
if (event.lengthComputable) { | ||
@@ -271,13 +271,13 @@ options.progress(event.loaded / event.total, event.loaded, event.total, { | ||
} | ||
} | ||
} | ||
}; | ||
xhr.onprogress = function (event) { | ||
handleProgress('download', event); | ||
}; | ||
xhr.onprogress = function (event) { | ||
handleProgress('download', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = function (event) { | ||
handleProgress('upload', event); | ||
}; | ||
if (xhr.upload) { | ||
xhr.upload.onprogress = function (event) { | ||
handleProgress('upload', event); | ||
}; | ||
} | ||
} | ||
@@ -284,0 +284,0 @@ |
{ | ||
"name": "parse", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0-alpha.3", | ||
"description": "The Parse JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "homepage": "https://parseplatform.org/", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
6429790