UNPKG

1.77 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = function (d, b) {
4 extendStatics = Object.setPrototypeOf ||
5 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7 return extendStatics(d, b);
8 };
9 return function (d, b) {
10 if (typeof b !== "function" && b !== null)
11 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12 extendStatics(d, b);
13 function __() { this.constructor = d; }
14 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15 };
16})();
17var __assign = (this && this.__assign) || function () {
18 __assign = Object.assign || function(t) {
19 for (var s, i = 1, n = arguments.length; i < n; i++) {
20 s = arguments[i];
21 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22 t[p] = s[p];
23 }
24 return t;
25 };
26 return __assign.apply(this, arguments);
27};
28Object.defineProperty(exports, "__esModule", { value: true });
29exports.Client = void 0;
30var core_interface_1 = require("@ideal-postcodes/core-interface");
31var agent_1 = require("./agent");
32var Client = /** @class */ (function (_super) {
33 __extends(Client, _super);
34 /**
35 * Client constructor extends CoreInterface
36 */
37 function Client(config) {
38 var _this = this;
39 var agent = new agent_1.Agent();
40 _this = _super.call(this, __assign({ agent: agent }, config)) || this;
41 return _this;
42 }
43 return Client;
44}(core_interface_1.Client));
45exports.Client = Client;