Socket
Socket
Sign inDemoInstall

dt-common-libs

Package Overview
Dependencies
156
Maintainers
1
Versions
215
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.89 to 1.2.90

66

dist/exceptions/globalError.js

@@ -7,3 +7,3 @@ "use strict";

});
exports.ValidationError = exports.UserProfileError = exports.UnauthorizedError = exports.TransactionRequestUpdateError = exports.TransactionIsApprovedError = exports.ThirdPartyError = exports.RedisError = exports.PendingTransactionError = exports.PassthroughError = exports.OTPRequestCooldownError = exports.OTPGeneralError = exports.OTPExpiredError = exports.NoOfApproverChangedError = exports.MRRChangedError = exports.KafkaError = exports.InvalidOTPError = exports.InvalidApprovalInformationError = exports.InvalidAccountNoError = exports.InputOTPExceedsMaxLimitError = exports.FoundPendingTransactionError = exports.DatabaseError = exports.AuthenticationError = void 0;
exports.ValidationError = exports.UserProfileError = exports.UnauthorizedError = exports.TransactionRequestUpdateError = exports.TransactionIsApprovedError = exports.ThirdPartyError = exports.RedisError = exports.PendingTransactionError = exports.PassthroughError = exports.OTPRequestCooldownError = exports.OTPGeneralError = exports.OTPExpiredError = exports.NoOfApproverChangedError = exports.MRRChangedError = exports.KafkaError = exports.InvalidOTPError = exports.InvalidApprovalInformationError = exports.InvalidAccountNoError = exports.InsufficientBalancesError = exports.InputOTPExceedsMaxLimitError = exports.FoundPendingTransactionError = exports.DatabaseError = exports.BankruptcyError = exports.AuthenticationError = exports.AccountExpiredError = exports.AccountClosedError = void 0;
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }

@@ -280,14 +280,62 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

}( /*#__PURE__*/_wrapNativeSuper(Error));
var PassthroughError = exports.PassthroughError = /*#__PURE__*/function (_Error22) {
_inherits(PassthroughError, _Error22);
function PassthroughError(message, data) {
var InsufficientBalancesError = exports.InsufficientBalancesError = /*#__PURE__*/function (_Error22) {
_inherits(InsufficientBalancesError, _Error22);
function InsufficientBalancesError(message) {
var _this22;
_classCallCheck(this, PassthroughError);
_this22 = _callSuper(this, PassthroughError, [message]);
_this22.name = _this22.constructor.name;
_this22.statusCode = data.status.code;
_this22.data = data.data;
_classCallCheck(this, InsufficientBalancesError);
_this22 = _callSuper(this, InsufficientBalancesError, [message]);
_this22.name = 'InsufficientBalancesError';
_this22.statusCode = 8214;
return _this22;
}
return _createClass(InsufficientBalancesError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
var AccountClosedError = exports.AccountClosedError = /*#__PURE__*/function (_Error23) {
_inherits(AccountClosedError, _Error23);
function AccountClosedError(message) {
var _this23;
_classCallCheck(this, AccountClosedError);
_this23 = _callSuper(this, AccountClosedError, [message]);
_this23.name = 'AccountClosedError';
_this23.statusCode = 8215;
return _this23;
}
return _createClass(AccountClosedError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
var BankruptcyError = exports.BankruptcyError = /*#__PURE__*/function (_Error24) {
_inherits(BankruptcyError, _Error24);
function BankruptcyError(message) {
var _this24;
_classCallCheck(this, BankruptcyError);
_this24 = _callSuper(this, BankruptcyError, [message]);
_this24.name = 'BankruptcyError';
_this24.statusCode = 8216;
return _this24;
}
return _createClass(BankruptcyError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
var AccountExpiredError = exports.AccountExpiredError = /*#__PURE__*/function (_Error25) {
_inherits(AccountExpiredError, _Error25);
function AccountExpiredError(message) {
var _this25;
_classCallCheck(this, AccountExpiredError);
_this25 = _callSuper(this, AccountExpiredError, [message]);
_this25.name = 'AccountExpiredError';
_this25.statusCode = 8217;
return _this25;
}
return _createClass(AccountExpiredError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
var PassthroughError = exports.PassthroughError = /*#__PURE__*/function (_Error26) {
_inherits(PassthroughError, _Error26);
function PassthroughError(message, data) {
var _this26;
_classCallCheck(this, PassthroughError);
_this26 = _callSuper(this, PassthroughError, [message]);
_this26.name = _this26.constructor.name;
_this26.statusCode = data.status.code;
_this26.data = data.data;
return _this26;
}
return _createClass(PassthroughError);
}( /*#__PURE__*/_wrapNativeSuper(Error));

@@ -7,2 +7,14 @@ "use strict";

});
Object.defineProperty(exports, "AccountClosedError", {
enumerable: true,
get: function get() {
return _globalError.AccountClosedError;
}
});
Object.defineProperty(exports, "AccountExpiredError", {
enumerable: true,
get: function get() {
return _globalError.AccountExpiredError;
}
});
Object.defineProperty(exports, "AuthenticationError", {

@@ -20,2 +32,8 @@ enumerable: true,

});
Object.defineProperty(exports, "BankruptcyError", {
enumerable: true,
get: function get() {
return _globalError.BankruptcyError;
}
});
exports.CONSTANTS = void 0;

@@ -40,2 +58,8 @@ Object.defineProperty(exports, "DatabaseError", {

});
Object.defineProperty(exports, "InsufficientBalancesError", {
enumerable: true,
get: function get() {
return _globalError.InsufficientBalancesError;
}
});
Object.defineProperty(exports, "InvalidAccountNoError", {

@@ -42,0 +66,0 @@ enumerable: true,

2

package.json
{
"name": "dt-common-libs",
"version": "1.2.89",
"version": "1.2.90",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -164,2 +164,34 @@ export class AuthenticationError extends Error {

export class InsufficientBalancesError extends Error {
constructor(message) {
super(message);
this.name = 'InsufficientBalancesError';
this.statusCode = 8214;
}
}
export class AccountClosedError extends Error {
constructor(message) {
super(message);
this.name = 'AccountClosedError';
this.statusCode = 8215;
}
}
export class BankruptcyError extends Error {
constructor(message) {
super(message);
this.name = 'BankruptcyError';
this.statusCode = 8216;
}
}
export class AccountExpiredError extends Error {
constructor(message) {
super(message);
this.name = 'AccountExpiredError';
this.statusCode = 8217;
}
}
export class PassthroughError extends Error {

@@ -166,0 +198,0 @@ constructor(message, data) {

@@ -13,3 +13,9 @@ // Exception Handling

TransactionRequestUpdateError,
InvalidApprovalInformationError,
OTPRequestCooldownError,
MRRChangedError,
InvalidOTPError,
InputOTPExceedsMaxLimitError,
OTPExpiredError,
OTPGeneralError,
PendingTransactionError,

@@ -19,9 +25,8 @@ TransactionIsApprovedError,

InvalidAccountNoError,
InsufficientBalancesError,
AccountClosedError,
BankruptcyError,
AccountExpiredError,
PassthroughError,
InvalidApprovalInformationError,
InvalidOTPError,
InputOTPExceedsMaxLimitError,
OTPExpiredError,
OTPGeneralError,
OTPRequestCooldownError
} from './exceptions/globalError.js';

@@ -28,0 +33,0 @@

@@ -287,3 +287,36 @@ [

}
},
{
"code": "8215",
"th": {
"head": "กรุณาติดต่อธนาคาร",
"desc": "บัญชีสินเชื่อนี้ถูกปิดแล้วสอบถามเพิ่มเติม โทร. 02-722-2222"
},
"en": {
"head": "กรุณาติดต่อธนาคาร",
"desc": "บัญชีสินเชื่อนี้ถูกปิดแล้วสอบถามเพิ่มเติม โทร. 02-722-2222"
}
},
{
"code": "8216",
"th": {
"head": "กรุณาติดต่อธนาคาร",
"desc": "เนื่องจากบัญชีสินเชื่อนี้ถูกระงับการใช้งาน สอบถามข้อมูลเพิ่มเติม โทร. 02-722-2222"
},
"en": {
"head": "กรุณาติดต่อธนาคาร",
"desc": "เนื่องจากบัญชีสินเชื่อนี้ถูกระงับการใช้งาน สอบถามข้อมูลเพิ่มเติม โทร. 02-722-2222"
}
},
{
"code": "8217",
"th": {
"head": "กรุณาติดต่อธนาคาร",
"desc": "เนื่องจากบัญชีสินเชื่อของคุณถูกระงับการเบิกใช้วงเงินสินเชื่อ สอบถามข้อมูลเพิ่มเติม โทร. 02-722-2222"
},
"en": {
"head": "กรุณาติดต่อธนาคาร",
"desc": "เนื่องจากบัญชีสินเชื่อของคุณถูกระงับการเบิกใช้วงเงินสินเชื่อ สอบถามข้อมูลเพิ่มเติม โทร. 02-722-2222"
}
}
]
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc