@govuk-pay/pay-js-commons 7.0.52 → 7.0.54
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.
|
@@ -84,8 +84,8 @@ var Client = /*#__PURE__*/function () {
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
|
-
this._axios.interceptors.response.use(
|
|
88
|
-
var _ref3 = _asyncToGenerator(
|
|
87
|
+
this._axios.interceptors.response.use(/*#__PURE__*/function () {
|
|
88
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
89
89
|
var responseContext, retryCount;
|
|
90
90
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
91
91
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -138,7 +138,7 @@ var Client = /*#__PURE__*/function () {
|
|
|
138
138
|
return _ref3.apply(this, arguments);
|
|
139
139
|
};
|
|
140
140
|
}(), /*#__PURE__*/function () {
|
|
141
|
-
var _ref4 = _asyncToGenerator(
|
|
141
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(error) {
|
|
142
142
|
var config, message, errorContext, errorCode, retryCount;
|
|
143
143
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
144
144
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30,7 +30,7 @@ var RESTClientError = /*#__PURE__*/function (_Error) {
|
|
|
30
30
|
}
|
|
31
31
|
_inherits(RESTClientError, _Error);
|
|
32
32
|
return _createClass(RESTClientError);
|
|
33
|
-
}(
|
|
33
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
34
34
|
module.exports = {
|
|
35
35
|
RESTClientError: RESTClientError
|
|
36
36
|
};
|
|
@@ -27,7 +27,7 @@ var CsrfError = /*#__PURE__*/function (_Error) {
|
|
|
27
27
|
}
|
|
28
28
|
_inherits(CsrfError, _Error);
|
|
29
29
|
return _createClass(CsrfError);
|
|
30
|
-
}(
|
|
30
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
31
31
|
/**
|
|
32
32
|
* @param logger {Logger}
|
|
33
33
|
* @param sessionName {string} the name of the object on the request where the secret key will be stored
|