UNPKG

864 BJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6const debug_1 = __importDefault(require("debug"));
7const debug = debug_1.default("NCServer");
8// tslint:disable-next-line: max-classes-per-file
9class Server {
10 // public constructor(url: string, basicAuth: IBasicAuth, proxy?: IProxy, logRequestResponse: boolean = false) {
11 constructor(options) {
12 debug("constructor");
13 this.url = options.url;
14 this.basicAuth = options.basicAuth;
15 this.proxy = options.proxy;
16 if (options.logRequestResponse) {
17 this.logRequestResponse = true;
18 }
19 else {
20 this.logRequestResponse = false;
21 }
22 }
23}
24exports.default = Server;