rest-client-sdk 7.0.1 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/UnitOfWork.ts +1 -1
- package/src/client/AbstractClient.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('urijs'), require('deep-diff')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'urijs', 'deep-diff'], factory) :
|
|
4
4
|
(global = global || self, factory(global['rest-client-sdk'] = {}, global.URI, global.diff));
|
|
5
|
-
}(this, (function (exports, URI,
|
|
5
|
+
}(this, (function (exports, URI, diff) { 'use strict';
|
|
6
6
|
|
|
7
7
|
URI = URI && Object.prototype.hasOwnProperty.call(URI, 'default') ? URI['default'] : URI;
|
|
8
|
+
diff = diff && Object.prototype.hasOwnProperty.call(diff, 'default') ? diff['default'] : diff;
|
|
8
9
|
|
|
9
10
|
function _typeof(obj) {
|
|
10
11
|
"@babel/helpers - typeof";
|
|
@@ -1354,7 +1355,7 @@
|
|
|
1354
1355
|
} else {
|
|
1355
1356
|
// if www-authenticate header is missing, try and read json response
|
|
1356
1357
|
return response.json().then(function (body) {
|
|
1357
|
-
if (_classPrivateFieldGet(_this5, _tokenStorage) && body.error === '
|
|
1358
|
+
if (_classPrivateFieldGet(_this5, _tokenStorage) && (body.error === 'invalid_scope' || body.error === 'access_denied')) {
|
|
1358
1359
|
return _this5._refreshTokenAndRefetch(input, requestParams);
|
|
1359
1360
|
}
|
|
1360
1361
|
|
|
@@ -1683,7 +1684,7 @@
|
|
|
1683
1684
|
* deep comparaison between objects
|
|
1684
1685
|
*/
|
|
1685
1686
|
function objectDiffers(left, right) {
|
|
1686
|
-
var result =
|
|
1687
|
+
var result = diff(left, right);
|
|
1687
1688
|
return result ? result.length > 0 : false;
|
|
1688
1689
|
}
|
|
1689
1690
|
/**
|