UNPKG

infoblock

Version:

A typed wrapper of the blockchain.info API

43 lines (42 loc) 1.8 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.NoResponseError = exports.InvalidInputError = exports.NotFoundError = void 0; var NotFoundError = /** @class */ (function (_super) { __extends(NotFoundError, _super); function NotFoundError() { return _super !== null && _super.apply(this, arguments) || this; } return NotFoundError; }(Error)); exports.NotFoundError = NotFoundError; var InvalidInputError = /** @class */ (function (_super) { __extends(InvalidInputError, _super); function InvalidInputError() { return _super !== null && _super.apply(this, arguments) || this; } return InvalidInputError; }(Error)); exports.InvalidInputError = InvalidInputError; var NoResponseError = /** @class */ (function (_super) { __extends(NoResponseError, _super); function NoResponseError() { return _super.call(this, "No response from blockchain.info") || this; } return NoResponseError; }(Error)); exports.NoResponseError = NoResponseError;