UNPKG

keepasshttp-client

Version:

Node.js module for interaction with KeePassHTTP

57 lines 2.35 kB
"use strict"; // tslint:disable:max-classes-per-file Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var ErrorCode; (function (ErrorCode) { ErrorCode[ErrorCode["IdUndefined"] = 0] = "IdUndefined"; })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); var TypedError = /** @class */ (function (_super) { tslib_1.__extends(TypedError, _super); function TypedError(message, code) { var _newTarget = this.constructor; var _this = _super.call(this, message) || this; _this.code = code; Object.setPrototypeOf(_this, _newTarget.prototype); return _this; } return TypedError; }(Error)); exports.TypedError = TypedError; var NetworkConnectionError = /** @class */ (function (_super) { tslib_1.__extends(NetworkConnectionError, _super); function NetworkConnectionError(message) { var _newTarget = this.constructor; var _this = _super.call(this, message) || this; Object.setPrototypeOf(_this, _newTarget.prototype); return _this; } return NetworkConnectionError; }(Error)); exports.NetworkConnectionError = NetworkConnectionError; var NetworkResponseStatusCodeError = /** @class */ (function (_super) { tslib_1.__extends(NetworkResponseStatusCodeError, _super); function NetworkResponseStatusCodeError(message, statusCode) { var _newTarget = this.constructor; var _this = _super.call(this, message) || this; _this.statusCode = statusCode; Object.setPrototypeOf(_this, _newTarget.prototype); return _this; } return NetworkResponseStatusCodeError; }(Error)); exports.NetworkResponseStatusCodeError = NetworkResponseStatusCodeError; var NetworkResponseContentError = /** @class */ (function (_super) { tslib_1.__extends(NetworkResponseContentError, _super); function NetworkResponseContentError(message, request, response) { var _newTarget = this.constructor; var _this = _super.call(this, message) || this; _this.request = request; _this.response = response; Object.setPrototypeOf(_this, _newTarget.prototype); return _this; } return NetworkResponseContentError; }(Error)); exports.NetworkResponseContentError = NetworkResponseContentError; //# sourceMappingURL=common.js.map