@uppy/companion-client
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -148,3 +148,6 @@ 'use strict'; | ||
}).catch(function (err) { | ||
err = err.isAuthError ? err : new Error("Could not get " + _this4._getUrl(path) + ". " + err); | ||
if (!err.isAuthError) { | ||
err.message = "Could not get " + _this4._getUrl(path) + ". " + err.message; | ||
} | ||
return Promise.reject(err); | ||
@@ -167,3 +170,6 @@ }); | ||
}).catch(function (err) { | ||
err = err.isAuthError ? err : new Error("Could not post " + _this5._getUrl(path) + ". " + err); | ||
if (!err.isAuthError) { | ||
err.message = "Could not post " + _this5._getUrl(path) + ". " + err.message; | ||
} | ||
return Promise.reject(err); | ||
@@ -186,3 +192,6 @@ }); | ||
}).catch(function (err) { | ||
err = err.isAuthError ? err : new Error("Could not delete " + _this6._getUrl(path) + ". " + err); | ||
if (!err.isAuthError) { | ||
err.message = "Could not delete " + _this6._getUrl(path) + ". " + err.message; | ||
} | ||
return Promise.reject(err); | ||
@@ -213,2 +222,2 @@ }); | ||
return RequestClient; | ||
}(), _class.VERSION = "1.9.0", _temp); | ||
}(), _class.VERSION = "1.10.0", _temp); |
{ | ||
"name": "@uppy/companion-client", | ||
"description": "Client library for communication with Companion. Intended for use in Uppy plugins.", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^3.5.0", | ||
"@uppy/utils": "^3.6.0", | ||
"namespace-emitter": "^2.0.1", | ||
@@ -30,3 +30,3 @@ "qs-stringify": "^1.1.0", | ||
}, | ||
"gitHead": "1751241362692202ed626f752fc740d4db0f2a9a" | ||
"gitHead": "12b7bd34e8f193e86561dd623024279103865a85" | ||
} |
@@ -141,3 +141,5 @@ 'use strict' | ||
.catch((err) => { | ||
err = err.isAuthError ? err : new Error(`Could not get ${this._getUrl(path)}. ${err}`) | ||
if (!err.isAuthError) { | ||
err.message = `Could not get ${this._getUrl(path)}. ${err.message}` | ||
} | ||
return Promise.reject(err) | ||
@@ -159,3 +161,5 @@ }) | ||
.catch((err) => { | ||
err = err.isAuthError ? err : new Error(`Could not post ${this._getUrl(path)}. ${err}`) | ||
if (!err.isAuthError) { | ||
err.message = `Could not post ${this._getUrl(path)}. ${err.message}` | ||
} | ||
return Promise.reject(err) | ||
@@ -177,3 +181,5 @@ }) | ||
.catch((err) => { | ||
err = err.isAuthError ? err : new Error(`Could not delete ${this._getUrl(path)}. ${err}`) | ||
if (!err.isAuthError) { | ||
err.message = `Could not delete ${this._getUrl(path)}. ${err.message}` | ||
} | ||
return Promise.reject(err) | ||
@@ -180,0 +186,0 @@ }) |
Sorry, the diff of this file is not supported yet
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
76418
1076
Updated@uppy/utils@^3.6.0