upload-js
Advanced tools
Comparing version 2.17.0 to 2.18.0
@@ -525,3 +525,4 @@ module.exports = | ||
var headers = (_g = config.internal) === null || _g === void 0 ? void 0 : _g.headers; | ||
var debugMode = config.debug === true; // ------------------ | ||
var debugMode = config.debug === true; | ||
var wasCalled = " was called by the user's code."; // ------------------ | ||
// READ/WRITE MEMBERS | ||
@@ -580,3 +581,3 @@ // ------------------ | ||
}), Upload_async(function () { | ||
debug("User code called 'beginAuthSession'"); // Explanation: | ||
debug("'beginAuthSession'".concat(wasCalled)); // Explanation: | ||
// - Prevents restarting the auth session on accidental double-calls to 'beginAuthSession': in some users' code, | ||
@@ -589,3 +590,3 @@ // this happens accidentally every second, so we want to bail-out if we detect this is occurring. | ||
if ((lastAuthSession === null || lastAuthSession === void 0 ? void 0 : lastAuthSession.authUrl) === authUrl) { | ||
error("'beginAuthSession' has already been called. Ignoring this call. (Hint: call 'endAuthSession' and then 'beginAuthSession' if you want to restart the auth session.)"); | ||
error("'beginAuthSession' already called. Ignoring this call. Hint: call 'endAuthSession' and then 'beginAuthSession' if you want to restart the auth session."); | ||
return; | ||
@@ -614,3 +615,3 @@ } | ||
}), Upload_async(function () { | ||
debug("User code called 'endAuthSession'"); | ||
debug("'endAuthSession'".concat(wasCalled)); | ||
return _callIgnored(doEndAuthSession); | ||
@@ -622,3 +623,3 @@ }))); | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
debug("User code called 'uploadFile'"); // Initial progress (raised immediately and synchronously). | ||
debug("'uploadFile'".concat(wasCalled)); // Initial progress (raised immediately and synchronously). | ||
@@ -625,0 +626,0 @@ var cancellationHandlers = []; |
{ | ||
"name": "upload-js", | ||
"version": "2.17.0", | ||
"version": "2.18.0", | ||
"author": "Upload <hello@upload.io> (https://upload.io)", | ||
@@ -5,0 +5,0 @@ "description": "File Upload Library — Upload.js gives developers AJAX multipart file uploading via XHR 🚀 Comes with Cloud Storage 🌐", |
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
78743
1487