@govuk-pay/pay-js-commons 7.0.13 → 7.0.14
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.
|
@@ -31,54 +31,6 @@ var RESTClientError = /*#__PURE__*/function (_Error) {
|
|
|
31
31
|
_inherits(RESTClientError, _Error);
|
|
32
32
|
return _createClass(RESTClientError);
|
|
33
33
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
34
|
-
var DomainError = /*#__PURE__*/function (_Error2) {
|
|
35
|
-
function DomainError(message) {
|
|
36
|
-
var _this2;
|
|
37
|
-
_classCallCheck(this, DomainError);
|
|
38
|
-
_this2 = _callSuper(this, DomainError, [message]);
|
|
39
|
-
_this2.name = _this2.constructor.name;
|
|
40
|
-
Error.captureStackTrace(_this2, _this2.constructor);
|
|
41
|
-
return _this2;
|
|
42
|
-
}
|
|
43
|
-
_inherits(DomainError, _Error2);
|
|
44
|
-
return _createClass(DomainError);
|
|
45
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
46
|
-
var NotFoundError = /*#__PURE__*/function (_DomainError) {
|
|
47
|
-
function NotFoundError() {
|
|
48
|
-
_classCallCheck(this, NotFoundError);
|
|
49
|
-
return _callSuper(this, NotFoundError, arguments);
|
|
50
|
-
}
|
|
51
|
-
_inherits(NotFoundError, _DomainError);
|
|
52
|
-
return _createClass(NotFoundError);
|
|
53
|
-
}(DomainError);
|
|
54
|
-
var AccountCannotTakePaymentsError = /*#__PURE__*/function (_DomainError2) {
|
|
55
|
-
function AccountCannotTakePaymentsError() {
|
|
56
|
-
_classCallCheck(this, AccountCannotTakePaymentsError);
|
|
57
|
-
return _callSuper(this, AccountCannotTakePaymentsError, arguments);
|
|
58
|
-
}
|
|
59
|
-
_inherits(AccountCannotTakePaymentsError, _DomainError2);
|
|
60
|
-
return _createClass(AccountCannotTakePaymentsError);
|
|
61
|
-
}(DomainError);
|
|
62
|
-
var InvalidPrefilledAmountError = /*#__PURE__*/function (_DomainError3) {
|
|
63
|
-
function InvalidPrefilledAmountError() {
|
|
64
|
-
_classCallCheck(this, InvalidPrefilledAmountError);
|
|
65
|
-
return _callSuper(this, InvalidPrefilledAmountError, arguments);
|
|
66
|
-
}
|
|
67
|
-
_inherits(InvalidPrefilledAmountError, _DomainError3);
|
|
68
|
-
return _createClass(InvalidPrefilledAmountError);
|
|
69
|
-
}(DomainError);
|
|
70
|
-
var InvalidPrefilledReferenceError = /*#__PURE__*/function (_DomainError4) {
|
|
71
|
-
function InvalidPrefilledReferenceError() {
|
|
72
|
-
_classCallCheck(this, InvalidPrefilledReferenceError);
|
|
73
|
-
return _callSuper(this, InvalidPrefilledReferenceError, arguments);
|
|
74
|
-
}
|
|
75
|
-
_inherits(InvalidPrefilledReferenceError, _DomainError4);
|
|
76
|
-
return _createClass(InvalidPrefilledReferenceError);
|
|
77
|
-
}(DomainError);
|
|
78
34
|
module.exports = {
|
|
79
|
-
RESTClientError: RESTClientError
|
|
80
|
-
NotFoundError: NotFoundError,
|
|
81
|
-
AccountCannotTakePaymentsError: AccountCannotTakePaymentsError,
|
|
82
|
-
InvalidPrefilledAmountError: InvalidPrefilledAmountError,
|
|
83
|
-
InvalidPrefilledReferenceError: InvalidPrefilledReferenceError
|
|
35
|
+
RESTClientError: RESTClientError
|
|
84
36
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govuk-pay/pay-js-commons",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.14",
|
|
4
4
|
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^22.16.0"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"prepare": "npm run transpile && npm run browserify-analytics",
|
|
21
21
|
"test": "npm run jest-tests npm && npm run karma-tests",
|
|
22
22
|
"karma-tests": "karma start",
|
|
23
|
-
"jest-tests": "jest src/analytics src/utils/axios-base-client
|
|
23
|
+
"jest-tests": "jest src/analytics src/utils/axios-base-client/*.test.js src/utils/middleware/*.test.js",
|
|
24
24
|
"lint": "standard --fix"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|